Maybe this page has been loaded before you changed the permissions.
326 2009-05-22 14:49
Re: PunBB 1.3 install write permissions, config.php (3 replies, posted in PunBB 1.3 troubleshooting)
327 2009-05-22 13:13
Re: PunBB 1.3 install write permissions, config.php (3 replies, posted in PunBB 1.3 troubleshooting)
You can create config.php manually, see this topic: http://punbb.informer.com/forums/topic/ … configphp/
328 2009-05-22 13:07
Re: Proble with Images does not show in signatures (15 replies, posted in PunBB 1.3 troubleshooting)
Works fine for me. This can't depend on browser. Check your browser settings.
329 2009-05-22 13:01
Re: Create a external form for login (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 2009-05-22 10:08
Re: Create a external form for login (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();
331 2009-05-21 14:32
Re: Database error when logged in after upgrade (3 replies, posted in PunBB 1.3 troubleshooting)
Ok, thanks
332 2009-05-21 13:36
Re: Database error when logged in after upgrade (3 replies, posted in PunBB 1.3 troubleshooting)
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 2009-05-21 13:25
Re: Create a external form for login (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 2009-05-21 13:05
Re: Quick reply (4 replies, posted in PunBB 1.3 extensions)
pun_quote requires javascript. Is it turned on?
335 2009-05-21 13:03
Re: 1.3.3 Installation Problem (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 2009-05-21 12:55
Re: PunBB 1.3.4 (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 2009-05-20 12:58
Re: Styling-? (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:
338 2009-05-20 12:45
Re: Help with my active topics list. (20 replies, posted in PunBB 1.3 troubleshooting)
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 2009-05-20 12:39
Re: 1.3.3 Installation Problem (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 2009-05-20 12:37
Re: Create a external form for login (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.)
341 2009-05-20 11:46
Re: error_reporting setting in include/essentials.php (4 replies, posted in PunBB 1.3 discussion)
342 2009-05-20 11:15
Re: 1.3.3 Installation Problem (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 2009-05-20 11:13
Re: 1.3.3 Installation Problem (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?
345 2009-05-20 10:45
Re: 1.3.3 Installation Problem (15 replies, posted in PunBB 1.3 troubleshooting)
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 2009-05-20 10:29
Topic: PunBB 1.3.4 (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 2009-05-20 10:04
Re: 1.3.3 Installation Problem (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 2009-05-20 08:29
Re: Styling-? (6 replies, posted in PunBB 1.3 discussion)
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 2009-05-20 08:27
Re: 1.3.3 Installation Problem (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 2009-05-16 20:04
Re: 1.3.3 and pun_antispam (2 replies, posted in PunBB 1.3 extensions)
Could you post the error message, please?