1

(5 replies, posted in Feature requests)

That's exactly what i have done at saunalan.nu

if ($cur_topic['closed'] && $cur_user['show_img'] != '0')
    $icon = '<img src="img/closed.gif" width="16" height="16" alt="">';

Row 180 or something in viewforum.php just before the comment "// Should we display the dot or not? smile"

2

(1 replies, posted in Archive)

Hej hej,
det är inte alls svårt, allt jag gjort är att runt rad 180 i vieforum.php lagt till

if ($cur_topic['closed'] && $cur_user['show_img'] != '0')
    $icon = '<img src="img/closed.gif" width="16" height="16" alt="">';

Alldeles innan kommentaren "// Should we display the dot or not? smile"

Sen sparar du bara bilden som du vill ha i img-mappen med namnet closed.gif

3

(2 replies, posted in PunBB 1.2 show off)

It looks better, thanks smile

4

(2 replies, posted in PunBB 1.2 show off)

http://www.saunalan.nu/

works great, fully integrated with the rest of the site too smile

User error caused it smile
I had forgotten that I use $db in my own db-include.

And
global $db;
is needed in the censor-function too.

Are calling parse_message() from one of my own functions but get the error:
Fatal error: Call to a member function on a non-object in /home/www-data/saunalan/forum/include/common.php on line 427

A check shows that that is the censor_words-function that is trying to use the db-object.

I suspect it got something to do with my many includes, and perhaps the db-layer-scope-or-what-its-called.
I do the following:

In my own index.php

<?
chdir('forum');
require('config.php');
require('include/common.php');
require('include/parser.php');
chdir('..');

require('inc/functions.php');

$some_text = "mekkish";

ob_start();
    db_include($some_text);
    $main_content = ob_get_contents();
ob_end_clean();

echo $main_content;
?>

In inc/functions.php

<?
function db_include($text) {
    echo parse_message($text,1);
}
?>

*The code is stripped of non-relevant stuff

7

(4 replies, posted in Archive)

Jepp nu fungerar det perfekt, gött big_smile

8

(4 replies, posted in Archive)

Såg att denna buggen redan var rapporterad. Men det fungerar fortfarande inte för mig.
Problemet är att man inte kan logga ut med Opera. När man trycker på logout kommar man till "mellansidan" och skickas sedan tillbaka.
Men man är fortfarande inloggad. Hjälper inte att refresha. Jag tömde varenda cache jag kunde hitta men det fungerar inte ändå. Jag kör med Opera 7.11.