Just do as above, make sure that the call to parse_message() has a third argument (true)
1,876 2006-07-12 15:14
Re: Help with the poll mod please! (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
1,877 2006-07-12 14:16
Re: Variables for login and usergroup? (3 replies, posted in PunBB 1.2 troubleshooting)
well, $pun_user['is_guest'] can be used
1,878 2006-07-12 12:01
Re: Pulling subjects and authors from ONLY one forum to display on page (4 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Something like this:
http://punbb.org/forums/search.php?search_id=1635462458
?
1,879 2006-07-11 16:38
Re: Cant get easy poll install to work (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Just adding to the array should work =/
1,880 2006-07-11 13:54
Re: Help with the poll mod please! (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Second thing: yes.
First thing: go to the line where you call parser.php and add ', true'
1,881 2006-07-11 13:50
Re: Cant get easy poll install to work (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Normally you shouldn't remove any of the other versions =/ Ah well
1,882 2006-07-11 10:06
Re: Cant get easy poll install to work (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Yes, install_mod.php ins't configured to work with 1.2.10. Just add it in the array
1,883 2006-07-10 17:36
Re: Help to reduce the size of font GESHI (3 replies, posted in PunBB 1.2 troubleshooting)
Look for ".php" in your style files, and change/remove the font-size
1,884 2006-07-10 16:33
Re: Lock admin account to a specific ip (12 replies, posted in Feature requests)
That's done through moderate.php, no?
1,885 2006-07-10 15:48
Re: Lock admin account to a specific ip (12 replies, posted in Feature requests)
Include this at the top of each admin page:
if($_SERVER['REMOTE_ADDR'] == "<your ip here>")
message("Sorry, this forum can only be administrated from one computer");
1,886 2006-07-10 15:42
Re: Lock admin account to a specific ip (12 replies, posted in Feature requests)
Well, you can have multiple admins... and doing a DNS lookup on each pageload can slow it down quite a bit too =/
1,887 2006-07-10 14:45
Re: install problems (1 replies, posted in PunBB 1.2 troubleshooting)
Check if every file was uploaded correctly (language files etc)
1,888 2006-07-09 16:56
Re: Lock admin account to a specific ip (12 replies, posted in Feature requests)
Feature requests I suppose Although it fits better in here, as it won't be implemented.
1,890 2006-07-08 18:19
Re: Editing Admin options...error (5 replies, posted in PunBB 1.2 troubleshooting)
Make sure it's set to 777. CuteFTP, for example, never changed it for me
1,891 2006-07-08 11:47
Re: Config.php woe (5 replies, posted in PunBB 1.2 troubleshooting)
I use Dreamweaver too... but I use the code view to modify code
1,892 2006-07-07 18:27
Re: Config.php woe (5 replies, posted in PunBB 1.2 troubleshooting)
Why, oh why, are you adding <br /> after each line? Remove those and it should work.
1,893 2006-07-06 18:22
Re: Insert query help needed (4 replies, posted in PunBB 1.2 discussion)
Well, strings should be between single quotes when entering into the DB, like this:
$db->query("INSERT INTO ebookbooks (`link`, `desc`, `uploaded_by`, `date_uploaded`) VALUES('".$f_name."','".$f_desc."','".$user['username']."','".date("Y-m-j")."')") or error('Unable to add ebook to database", __FILE__, __LINE__, $db->error());
1,894 2006-07-06 16:24
Re: Giving up on PunBB,. sorry! Going back to Invision. (7 replies, posted in PunBB 1.2 troubleshooting)
The problem is most likely on your side, and not PunBB's fault. If Invision works fine for you, have fun with it.
1,895 2006-07-06 15:47
Re: Adding a upload script into profiles (13 replies, posted in PunBB 1.2 discussion)
$upload_dir isn't the same as $uploaddir -.-
Oh, and I'd find it suprising that move_uploaded_file() returns true if it was unsuccesful
1,896 2006-07-06 15:25
Re: Adding a upload script into profiles (13 replies, posted in PunBB 1.2 discussion)
Could be it.
1,897 2006-07-06 14:57
Re: Adding a upload script into profiles (13 replies, posted in PunBB 1.2 discussion)
This should do the trick:
else if ($action == 'upload_ebook')
{
$file_name = PUN_ROOT."ebooks/".$_FILES['file']['name'];
$file_desc = $_POST['desc'];
if(is_uploaded_file($_FILES['file']['tmp_name']) && !file_exists($file_name))
{
move_uploaded_file($_FILES['file_name']['tmp_name'], $file_name);
redirect($_SERVER['PHP_SELF'], "File uploaded");
}
}
You might want to ttake a look at this too: http://be2.php.net/manual/en/features.file-upload.php
1,898 2006-07-06 14:41
Re: Smileys and Parser.php (3 replies, posted in PunBB 1.2 troubleshooting)
Remove width="15" height="15"
1,899 2006-07-06 14:39
Re: Adding a upload script into profiles (13 replies, posted in PunBB 1.2 discussion)
Can you post your HTML too?
1,900 2006-07-06 14:22
Re: Adding a upload script into profiles (13 replies, posted in PunBB 1.2 discussion)
Minor error there... but else it should work:
<?php
if(is_uploaded_file($_FILES['file']['tmp_name']) && !file_exists(PUN_ROOT."uploads/".$_FILES['file']['name']))
{
move_uploaded_file($_FILES['file']['tmp_name'], PUN_ROOT."uploads/".$_FILES['file']['name']);
redirect($_SERVER['PHP_SELF'], "File uploaded");
}
?>
Make sure ['file'] resembles the name of the form element.