551

(10 replies, posted in Programming)

That'd be using the same method as you suggested, ( and which I did implement, cheers again for that advice, smile ), for the download mod to cater for multiple download locations, would it not?

552

(10 replies, posted in Programming)

If it's any use, that'd probably be the way I'd do the same. smile

Klappspaten wrote:

Okay, i see. I've corrected the code:

<?
if($_GET['section'] != board) {
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_QUIET_VISIT', 1);
define('PUN_ROOT', './board/');
require PUN_ROOT.'include/common.php';
}
?>

But now, when I try to open index.php?section=board, the following error appears:

Warning: require() [function.require]: Unable to access ./include/common.php in /srv/www/httpd/phost/d/de/pytalhost/dav/web/ema09/board/index.php on line 27

Warning: require(./include/common.php) [function.require]: failed to open stream: No such file or directory in /srv/www/httpd/phost/d/de/pytalhost/dav/web/ema09/board/index.php on line 27

That error message and the defined path in that code above would appear to be contradictory.

Only include/require common.php once. Require it in the parent script alone, and not in the required/included script.

May be useful in regards to debugging:

http://archives.postgresql.org/pgsql-ge … g01385.php

If I remember correctly, it's due to some mod using addslashes instead of db->escape. PgSQL is very strict by default. Do you have the PM mod installed, perchance?

557

(8 replies, posted in PunBB 1.2 troubleshooting)

elbekko wrote:

Just modifying the value won't work, you have to move the files too.

That helps too. big_smile

558

(8 replies, posted in PunBB 1.2 troubleshooting)

Delete the php files in the cache dir once you have updated the setting.

559

(17 replies, posted in PunBB 1.3 troubleshooting)

SuperMAG wrote:

I would guess its BBCode Bar

Don't guess. Disable them one by one until the problem disappears. You then know which one is causing the problem.

pedrotuga wrote:

This is something i've been very curios about for very long.
A lot of other software comes with a newsletter feature, i think that should be officiall supporteb by punbb, a suported extension maybe.
Does anybody has knowledge of how this is done in other software?

There's the broadcast e-mail plugin for 1.2*. Same as.

If you're going to use sleep to pause it, it might be worthwhile chunking them then pausing, i.e: sending 25 then pausing, sending another 25 and pausing, etc. If not, it'll take a coons age on a large userbase, and most likely get timed out.

Another of my muppet moments. big_smile The penny never dropped when looking at the code.

Just out of curiosity, with regards to this in 1.2*, where is the sig caching done? Just grepped for it, and all I found were these three lines:

viewtopic.php:303:              if (isset($signature_cache[$cur_post['poster_id']]))
viewtopic.php:304:                      $signature = $signature_cache[$cur_post['poster_id']];
viewtopic.php:308:                      $signature_cache[$cur_post['poster_id']] = $signature;

564

(13 replies, posted in General discussion)

Okey dokey. Managed to appropriate an icon which didn't rescale too badly. big_smile What's the opinion on the first icon in that post above?

565

(3 replies, posted in PunBB 1.2 show off)

Work fine on K-Meleon too.

http://punbb.org/docs/dev.html#integration

567

(24 replies, posted in PunBB 1.2 show off)

Personally, not fussed on it. I'm not a fan of these minimalistic layouts. I like tables to look like tables, with each part perfectly sectioned from the next.

568

(24 replies, posted in PunBB 1.2 show off)

FSX wrote:

People should update to IE7 or Firefox. IE6 is outdated. I'm not going to support IE6 anymore on my website.

Smart move. What happens to anyone using <XP?

http://punbb.org/forums/viewtopic.php?id=10518

570

(21 replies, posted in PunBB 1.2 troubleshooting)

For christs sake, how many times do you need to be told that it's perfect for everyone else? It's fine. There is no problem. It's displaying correctly. It's pointing in the direction it should. It's not wrong. Check from another machine.

571

(13 replies, posted in General discussion)

Well, decided to call it a day with the html2pdf, and switched over to TCPDF. Output is nowhere near as pretty, (doesn't have the CSS support), but by christ, it's a damned sight less flaky than the previous software/parser. big_smile When it decided to work smoothly, it could easily ramp up stupid amounts of memory whilst parsing/processing. Set the PHP mem limit upto 256MB at one point, and it still ditched. So, thought sod that for a lark and switched. big_smile This one, (http://www.tecnick.com/public/code/cp_d … p_dp=tcpdf), is far less intensive, but still has a fairly straight forward API that doesn't require cartloads of cryptic pointers.

572

(6 replies, posted in PunBB 1.2 troubleshooting)

quaker wrote:

understand that... but it would help in the beginning.. and with some modding to the online.php it could show sometype of tracking for each user.

By the sounds of what the OP wants, it would need something more along the lines of proper db tracking entries.

573

(13 replies, posted in General discussion)

Same topic, slightly different question. big_smile I've implemented caching on the pdf feed now. Any chance someone could double check it's feeding okay, not corrupting, etc? smile Working fine from this end, but ne'er hurts to double check. big_smile First click on the pdf icon now creates the cache and feeds from it, and the second click just feeds directly from the cached copy unless the thread/article has been updated.

574

(3 replies, posted in PunBB 1.2 discussion)

You're either not logged in as admin, you're logged in as a mod with no mod rights on that forum or you've edited and mucked up the code.

What CSS do you have for the hover? Colouring/shading is the same as for button hover in I.E, (which almost isn't there in Moz), so I'd personally look there.