Maybe this page has been loaded before you changed the permissions.

You can create config.php manually, see this topic: http://punbb.informer.com/forums/topic/ … configphp/

Works fine for me. This can't depend on browser. Check your browser settings.

329

(35 replies, posted in PunBB 1.3 additions)

The code above is just an example.

However, one can copy it into a php file and obtain a correctly functioning login form.

Your question is related sooner to Wordpress than PunBB.

330

(35 replies, posted in PunBB 1.3 additions)

It happens because you put the code inside a function. There are two solutions, the first (to place require FORUM_ROOT.'include/common.php'; in the global scope) is better.

<?php

// Define the path to the forum root
define('FORUM_ROOT', './');
require FORUM_ROOT.'include/common.php';

function my_login_form() {

    global $forum_url;

    // Where will we go after login?
    $forum_page['redirect_url'] = 'http://punbb/';

    $forum_page['form_action'] = forum_link($forum_url['login']);

    $forum_page['hidden_fields'] = array(
        'form_sent'        => '<input type="hidden" name="form_sent" value="1" />',
        'redirect_url'    => '<input type="hidden" name="redirect_url" value="'.forum_htmlencode($forum_page['redirect_url']).'" />',
        'csrf_token'    => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />'
    );

?>
<form method="post" action="<?php echo $forum_page['form_action'] ?>">
    <?php echo implode("\n\t\t", $forum_page['hidden_fields'])."\n" ?>

    Username:
    <input type="text" id="fld1" name="req_username" value="" />
    <br />

    Password:
    <input type="password" id="fld2" name="req_password" value="" />
    <br />

    <input type="checkbox" id="fld3" name="save_pass" value="1" />
    <label for="fld3">Log me in automatically each time I visit.</label>
    <br />

    <input type="submit" name="login" value="Login" />
</form>

<?

}

my_login_form();
<?php

function my_login_form() {

    global $forum_url, $forum_db, $forum_user, $forum_config, $base_url;

    // Define the path to the forum root
    define('FORUM_ROOT', './');
    require FORUM_ROOT.'include/common.php';

    // Where will we go after login?
    $forum_page['redirect_url'] = 'http://punbb/';

    $forum_page['form_action'] = forum_link($forum_url['login']);

    $forum_page['hidden_fields'] = array(
        'form_sent'        => '<input type="hidden" name="form_sent" value="1" />',
        'redirect_url'    => '<input type="hidden" name="redirect_url" value="'.forum_htmlencode($forum_page['redirect_url']).'" />',
        'csrf_token'    => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />'
    );

?>
<form method="post" action="<?php echo $forum_page['form_action'] ?>">
    <?php echo implode("\n\t\t", $forum_page['hidden_fields'])."\n" ?>

    Username:
    <input type="text" id="fld1" name="req_username" value="" />
    <br />

    Password:
    <input type="password" id="fld2" name="req_password" value="" />
    <br />

    <input type="checkbox" id="fld3" name="save_pass" value="1" />
    <label for="fld3">Log me in automatically each time I visit.</label>
    <br />

    <input type="submit" name="login" value="Login" />
</form>

<?

}

my_login_form();

Ok, thanks smile

Try to disable this feature: "User has posted - Display a dot in front of topics to indicate to a user that they have posted in that topic earlier. Disable if you are experiencing high server load" (Administration » Settings » Features). Please, tell us if this solution works.

333

(35 replies, posted in PunBB 1.3 additions)

I've fixed your code and added it to the wiki: http://punbb.informer.com/wiki/punbb13/ … _the_forum.

334

(4 replies, posted in PunBB 1.3 extensions)

pun_quote requires javascript. Is it turned on?

335

(15 replies, posted in PunBB 1.3 troubleshooting)

Maybe there is something wrong with URL schemes? (about URL schemes in wiki)
Try to set default scheme.

336

(30 replies, posted in News)

You can use the download archive. For example, 1.3.3 to 1.3.4 changed files (zip) or hdiff 1.3.3 to 1.3.4 is there. Also one can browse the changes via trac.

The only way to update the forum from 1.3.x to 1.3.(x+1) is to upload new files manually (see the wiki installation page). Admin panel can only display an alert when a new version of forum is released.

337

(6 replies, posted in PunBB 1.3 discussion)

Huge URLs are cut automatically. For example, this code

[url]http://an_example.com/this_is_a_very_long_directory/and_this_is_a_very_long_file_name[/url]

gives the following link:

http://an_example.com/this_is_a_very_lo … _file_name

SuperMAG wrote:

i want to put the Login block that you see on my forum main page into a widget in the wordpress.

Maybe you'll find something useful in this topic: http://punbb.informer.com/forums/topic/ … for-login/

339

(15 replies, posted in PunBB 1.3 troubleshooting)

You have to get database host, username, password and name from your hosting support or to set somewhere in the admin panel of your hosting.

340

(35 replies, posted in PunBB 1.3 additions)

This is how the CSRF token is generated in login.php (line 360):

$forum_page['hidden_fields'] = array(
    'form_sent'        => '<input type="hidden" name="form_sent" value="1" />',
    'redirect_url'    => '<input type="hidden" name="redirect_url" value="'.forum_htmlencode($forum_user['prev_url']).'" />',
    'csrf_token'    => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />'
);

You have to include common.php to use the generate_form_token function:

<?php
 
// Add these lines in the very top of your code
define('FORUM_ROOT', 'forum/');
require FORUM_ROOT.'include/common.php';
 
?>

(See the wiki integration page for details.)

Changed.

342

(15 replies, posted in PunBB 1.3 troubleshooting)

By the way, 1.3.4 has been just released. It's better to install this version, not 1.3.3.

343

(15 replies, posted in PunBB 1.3 troubleshooting)

Seems like there is a mistake in the database password.

What about config.php? Have you uploaded it like I wrote before?

344

(30 replies, posted in News)

No.

345

(15 replies, posted in PunBB 1.3 troubleshooting)

malc wrote:

I double clicked the install.php

Where did you double clicked install.php?

Seems like I didn't understand you from the beginning, and you try to run a file into a file manager. You should only upload files in a file manager to your server. And then you should open http://your_site.com/forum/ in a browser and follow instructions.

346

(30 replies, posted in News)

PunBB 1.3.4 has been released. The main change since 1.3.3 is the fix of the possible XSS vulnerability in profile.php on password and e-mail change (reported by Richard Sammet). As usual, the hotfix for older versions is released as well, which resolves the same security issue. If, for the reason of possible incompatibility of styles and extensions, you have not upgraded to 1.3.3 yet, you may also get along without upgrading to 1.3.4.

Downloads: get PunBB 1.3.4 on Downloads page or via Subversion repository.

347

(15 replies, posted in PunBB 1.3 troubleshooting)

install.php asks to save config.php only for a fresh install. If you have a PunBB 1.2 forum, you can upgrade it to PunBB 1.3, see instructions in wiki. In this case do not forget to make a backup of 1.2 database.

348

(6 replies, posted in PunBB 1.3 discussion)

xMatthew wrote:

Would I be able to use PHP's Explode function in PunBB. If so, how?

I didn't get it. What exactly do you want?

349

(15 replies, posted in PunBB 1.3 troubleshooting)

The file you have to save is config.php. You should copy it's content into a text editor, then save and upload it to the forum root directory.

350

(2 replies, posted in PunBB 1.3 extensions)

Could you post the error message, please?