You are not logged in. Please login or register.
Active topics Unanswered topics
Search options
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? "
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? "
Sen sparar du bara bilden som du vill ha i img-mappen med namnet closed.gif
It looks better, thanks
http://www.saunalan.nu/
works great, fully integrated with the rest of the site too
User error caused it
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
Jepp nu fungerar det perfekt, gött
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.
Posts found: 8