276

(4 replies, posted in PunBB 1.3 troubleshooting)

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.

PunBB (Oxygen) doesn't work in IE5.

278

(5 replies, posted in PunBB 1.3 discussion)

colak wrote:

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

(1 replies, posted in Discussions)

You can add some HTML-code to templates.

280

(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.

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?

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

(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

(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.

Eaglesight wrote:

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

(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?

I think it would be hard (if possible at all). You can put a random content into templates (like main.tpl).

Ok, thanks smile
We'll see this script.

289

(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.

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

(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.

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.

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

(2 replies, posted in PunBB 1.3 additions)

Are you sure you save files in UTF-8 without BOM?

295

(35 replies, posted in PunBB 1.3 additions)

SuperMAG wrote:

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

SuperMAG wrote:

And i didnt messed with the plugin file. just edited that login and a widget.

Ok, I've got it.

296

(35 replies, posted in PunBB 1.3 additions)

SuperMAG wrote:

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

(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

(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:

SuperMAG wrote:

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

(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?

Slavok wrote:
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.