The permissions for the "cache" directory should be 0777 too. This directory contains executable PHP code. So pun_repository isn't less secure than the whole forum.
277 2009-06-25 10:37
Re: Problems in Opera 8.54 and Internet Explorer 5.0 (10 replies, posted in PunBB 1.3 troubleshooting)
PunBB (Oxygen) doesn't work in IE5.
278 2009-06-25 10:21
Re: Show recent posts (5 replies, posted in PunBB 1.3 discussion)
In PunBb 1.2.x there used to be a "show recent posts" link pointing to /search.php?action=show_24h
I didn't get the difference between this function in 1.2 and "Active topics" in 1.3.
279 2009-06-25 10:00
Re: Customize design? (1 replies, posted in Discussions)
You can add some HTML-code to templates.
280 2009-06-25 09:57
Re: Little PHP help please (PunBB related) (9 replies, posted in Programming)
Actually the best way to add an image is to edit the 'New link active' entry in the language file.
Or you could create an extension and place your code in pun_pm_fn_unread_messages_end and pun_pm_hd_visit_elements_pre_change hooks.
281 2009-06-11 12:50
Re: [Request mod/extension] PunBB Mobile (33 replies, posted in PunBB 1.3 extensions)
I've tested how PunBB looks at small screens. Seems like it's Ok.
What exactly do you expect from a style or extension for mobile devices?
282 2009-06-11 11:43
Re: Is Anti Spam Bot mod needed for 1.3? (12 replies, posted in PunBB 1.3 extensions)
I've added Securimage CAPTCHA to pun_antispam. Please, test out the svn version of pun_antispam ("Download in other formats: Zip Archive" link at the bottom of the trac page).
283 2009-06-11 08:59
Re: extend time posts show as new (1 replies, posted in PunBB 1.3 discussion)
You can set up timeouts in Administration -> Settings -> Setup.
Please, ensure that time zones are set correctly (server-side and client-side). An incorrect setting can cause issues like ones described here: http://punbb.informer.com/forums/topic/ … -solution/
284 2009-06-11 08:50
Re: How to Ping (3 replies, posted in PunBB 1.2 troubleshooting)
Maybe this extension will help you.
Edit: Oh, this extension is for PunBB 1.3. But I think it's possible to make a mod for 1.2 based on it.
285 2009-06-09 15:32
Re: No clue how to include certain elements. (5 replies, posted in PunBB 1.3 troubleshooting)
how diablo3.se have managed to cut out the title and title description then?
They've obviously deleted
<!-- forum_title -->
<!-- forum_desc -->
in main.tpl.
286 2009-06-09 10:33
Re: Users.php -> Crash (1 replies, posted in PunBB 1.3 bug reports)
Line 72 is Ok. Works fine for me.
Could you post steps to reproduce this bug, please?
287 2009-06-09 10:23
Re: No clue how to include certain elements. (5 replies, posted in PunBB 1.3 troubleshooting)
I think it would be hard (if possible at all). You can put a random content into templates (like main.tpl).
288 2009-06-08 14:57
Re: Is Anti Spam Bot mod needed for 1.3? (12 replies, posted in PunBB 1.3 extensions)
Ok, thanks
We'll see this script.
289 2009-06-08 13:23
Re: Create a external form for login (35 replies, posted in PunBB 1.3 additions)
I think this code is placed into a Wordpress plugin and then is eval'ed. And there is no defined FORUM_ROOT constant in Wordpress.
290 2009-06-08 09:31
Re: Is Anti Spam Bot mod needed for 1.3? (12 replies, posted in PunBB 1.3 extensions)
We wanted to implement the reCAPTCHA support but switched to other tasks. Maybe someone knows a good GPL script that generates CAPTCHA images. We could use it in pun_antispam.
291 2009-06-07 13:49
Re: Create a external form for login (35 replies, posted in PunBB 1.3 additions)
This means that PunBB and Wordpress both have functions validate_username(). So integration is not as easy. Maybe it's worth to copy the generate_form_token() function from PunBB core into a separate file. I'll return to this question after some days.
292 2009-06-07 13:42
Re: Your database is already as up-to-date as this script can make it. (2 replies, posted in PunBB 1.3 troubleshooting)
An error was encountered
Your database is already as up-to-date as this script can make it.
Seems like you had to clear cache - remove *.php files from the "cache" directory.
A style can have its own main.tpl and admin.tpl files (for example, Informer style has). I think you have to edit those files too.
293 2009-06-07 13:33
Re: Is Anti Spam Bot mod needed for 1.3? (12 replies, posted in PunBB 1.3 extensions)
You are right. The CAPTCHA text in pun_antispam isn't well-protected.
You can use pun_antispam as an example to make your own extension. Seems like you should use the same hooks, you have only to change them.
294 2009-06-07 13:20
Re: bug in lang/serach.php (2 replies, posted in PunBB 1.3 additions)
Are you sure you save files in UTF-8 without BOM?
295 2009-06-05 13:04
Re: Create a external form for login (35 replies, posted in PunBB 1.3 additions)
Warning: include(../../sitetools/pages/login.php) [function.include]: failed to open stream: No such file or directory in /home/supermag/public_html/wp-content/plugins/php-code-widget/execphp.php(37) : eval()'d code on line 2
And i didnt messed with the plugin file. just edited that login and a widget.
Ok, I've got it.
296 2009-06-05 13:01
Re: Create a external form for login (35 replies, posted in PunBB 1.3 additions)
But i still dont know if this is correct Include
Actually depends on where you place it.
It's quite a good code, and it works if you have really got the error described here: http://punbb.informer.com/forums/post/128228/#p128228
But it's better to write
<?php
include $_SERVER['DOCUMENT_ROOT'].'/sitetools/pages/login.php';
?>
297 2009-06-05 12:00
Re: Create a external form for login (35 replies, posted in PunBB 1.3 additions)
BTW, there can be an issue with relative paths when one tries to include a file A into a file B, and then the file B into a file C (just like you do). It's better to write something like this:
define('FORUM_ROOT', $_SERVER['DOCUMENT_ROOT'].'/community/');
298 2009-06-05 11:44
Re: Create a external form for login (35 replies, posted in PunBB 1.3 additions)
SuperMAG! You had written that the error is in your /home/supermag/public_html/sitetools/pages/login.php file:
Warning: require() [function.require]: URL file-access is disabled in the server configuration in /home/supermag/public_html/sitetools/pages/login.php on line 5
I had told you to change the define('FORUM_ROOT', ...) in that file (/home/supermag/public_html/sitetools/pages/login.php) on line 4 because there is the error on line 5.
But you have obviously changed another file, /home/supermag/public_html/wp-content/plugins/php-code-widget/execphp.php. And now the include command in your /home/supermag/public_html/wp-content/plugins/php-code-widget/execphp.php file can't find the /home/supermag/public_html/sitetools/pages/login.php file.
Gosh!
Now, rollback the changes in /home/supermag/public_html/wp-content/plugins/php-code-widget/execphp.php and modify the define('FORUM_ROOT', ...) on line 4 in /home/supermag/public_html/sitetools/pages/login.php.
299 2009-06-05 09:44
Re: Create a external form for login (35 replies, posted in PunBB 1.3 additions)
If the file is http://sports2all.com/sitetools/pages/login.php and the forum is http://sports2all.com/community/ then you should write
define('FORUM_ROOT', '../../community/');
Doesn't require any PHP knowledge, does it?
300 2009-06-05 09:37
Re: [Request mod/extension] PunBB Mobile (33 replies, posted in PunBB 1.3 extensions)
fantasma wrote:Yes ok but the style must change in automatic when mobile browser is detected, it's possible?
Yes, it is. It can be done via "HTTP_USER_AGENT" key of $_SERVER array.
And this should be done as an extension.