1 (edited by c72 2007-01-26 17:58)

Topic: installed miniportal - how to move Show new posts since last visit?

Hi,

How do I move "Show new posts since last visit" and "Mark all posts as read" from my new index page back to the forums, where I think they probably are more useful?

site: http://www.geeessemm.com/index.php


Thanks a lot!

Re: installed miniportal - how to move Show new posts since last visit?

Edit this code in header.php to reflect what files you want the links shown on:

    if (in_array(basename($_SERVER['PHP_SELF']), array('index.php', 'search.php')))
        $tpl_temp .= "\n\t\t\t".'</ul>'."\n\t\t\t".'<ul class="conr">'."\n\t\t\t\t".'<li><a href="search.php?action=show_new">'.$lang_common['Show new posts'].'</a></li>'."\n\t\t\t\t".'<li><a href="misc.php?action=markread">'.$lang_common['Mark all as read'].'</a></li>'."\n\t\t\t".'</ul>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
    else
        $tpl_temp .= "\n\t\t\t".'</ul>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
Looking for a certain modification for your forum? Please take a look here before posting.

3

Re: installed miniportal - how to move Show new posts since last visit?

Thanks for your help.

Re: installed miniportal - how to move Show new posts since last visit?

I've got the same problem. The basename($_SERVER['PHP_SELF']) returns "index" instead of "index.php" for me. I could fix it, but it makes me shiver.

Looking for a good game?
Do it yourself - GLBasic, you can do!