I have a similar problem.

I'd like to have a "log out"-link on the front page, and now I have code which looks like this:

<a href ="$baseurl.'forum/login.php?action=out&id='.$forum_user['id'].'
&csrf_token='.generate_form_token(forum_link($forum_url['login']))">Logga ut</a>

I'm pretty sure it's the generate_form_token() that is causing my headache, because I get the same errors as the topic started when I'm using this.

Isn't there any documentation for this function?

2

(9 replies, posted in PunBB 1.3 troubleshooting)

http://c1974.com/help.php
still works meaning that the page is loading. It's however strange that when supplying arguments, nothing is outputted.

Perhaps go through the source and echo things at different places to see where it is faulty?

Doing that returns an empty string I'm afraid.

I solved it. It was related to the connection between php and mySql.
Performing a

mysql_set_charset('utf8',$objConn); 

immediately after connecting to the database solved it.

See http://www.phpwact.org/php/i18n/utf-8/mysql

Hello, I'm trying to display my news from a special category in the forum on the front page.
But I get these encoding problems as shown in the image. It's the swedish character Ä that
is haunting me.
http://bennehag.com/pics/screen4.png

The foo_posts-table is utf8-general-ci according to phpMyAdmin and the html-file is also utf8:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

More details
The result from the query is just echo'ed without any special work performed on it.
The data displays fine in phpMyAdmin.

So the question is, does PunBB perform any post-processing of the string after reading from
the database? I have tried looking into the source but it is still a bit advanced for me.

Hello,

In the old 1.2 it was rather easy to validate a user outside the forum using the forums login-routines.
By checking the $pun_user-array it was an easy task to determine if the user was logged in or not.

I have searched and looked into the source but I cannot figure out how to do this in 1.3, does anyone know?

EDIT: Ahh, I understand it's related to the $forum_user-array.

echo "<pre>";
Print_r($forum_user);
echo "</pre>";

A quick question, is the id-variable unique to each user?

Aye, that worked, thank you!

kierownik wrote:

the only way to do that is to login to your phpmyadmin of your webhost and change it to Default in the config table, I think!

I found this entry:
o_sef      File_based_(fancy)
Should I change it to default?

EDIT: I tried that, didnt' work.

Any idea on how to do that when I'm not able to log in smile

Hello
I've been using punbb 1.2 for years now and it's been great.

When I tried punbb 1.3 on a new forum, all the links ended with .html instead of .php.
Does anyone know the cause of this?

Hello, is it possible for the plugin, AP_News_Generator to automatically
generate news instead of having to click the generate button?
Once every hour would be perfect.

Hello, I did a backup of the database through phpMyAdmin and export. After that I transfered all my files from the server onto my hard drive.

After doing this I tried to enter the forum and I got an error. I turned debug on and got this:

File: /var/www/htdocs/ssoeu.apakossa.org/forum/index.php
Line: 42

PunBB reported: Unable to fetch category/forum list

Database reported: Got error 28 from table handler (Errno: 1030)


What do I do?

EDIT: Nevermind, it was server side.

I need a list or vector with all the registred users usernames in the forum. How do I do?

Does it matter where in the css-file I put it? I put it at the top and it didn't do anything.

Hello, I've just installed PunBB and done some very very minor modifications. I love it!
One thing is bothering me though, I would like to remove the text that tells you who is moderating.

It looks like this:

<Section name>
<brief explanation>
(Moderated by <moderator>)

I would like to remove the third line, I want it clean and everyone already knows who the moderators
are in my forum.

15

(180 replies, posted in PunBB 1.2 troubleshooting)

I want to add support for another internet browser, where do I do that?
As it is, the forum complains about bad HTTP_REFERER, so I guess I need to
add this browsers referer somewhere.