Page 2 of 2

Re: Fading last messages on header

Posted: 16 May 2010, 12:29
by boardtalk.net
Oliver.

Open forum/styles/prosilver/template/overall_header.html
Find:

Code: Select all

        /***********************************************
        * fading last messages
Add before:

Code: Select all

<!-- IF not FORUM_ID=2 and not FORUM_ID=3 -->
changing the two and three to where you don't want it to display

Find:

Code: Select all

        if (window.addEventListener)
        window.addEventListener("load", changecontent, false)
        else if (window.attachEvent)
        window.attachEvent("onload", changecontent)
        else if (document.getElementById)
        window.onload=changecontent

        </script>
Add after:

Code: Select all

<!-- ENDIF -->

Re: Fading last messages on header

Posted: 16 May 2010, 13:13
by Oliver
Thank you very much.

Re: Fading last messages on header

Posted: 16 May 2010, 13:14
by boardtalk.net
Your welcome

Re: Fading last messages on header

Posted: 16 May 2010, 14:39
by boardtalk.net
Oliver, re the above If statement... I want to check this better tonight as I want to make sure it works as it should... just a busy day here in 'boardtalk's' real world :? .

Re: Fading last messages on header

Posted: 16 May 2010, 14:53
by Oliver
My forum goes error when I do this step. :(




Open forum/include/functions.php

Find:

Code: Select all

// The following assigns all _common_ variables that may be used at any point in a template
Add before:

Code: Select all

    // Recent Posts

      $query1= $db->sql_query("SELECT posts.post_id, posts.topic_id, posts.poster_id, posts.post_time, posts.post_subject, users.username, users.user_avatar_type
               FROM posts LEFT JOIN users ON posts.poster_id = users.user_id
               ORDER BY posts.post_id DESC LIMIT 10");

      $n=0;
        while ($row1 = $db->sql_fetchrow($query1))
      {

      $gon_id      =   $row1['poster_id'];
      $gon      =   $row1['username'];
      $konu_id    =   $row1['topic_id'];
      $mesaj_id   =   $row1['post_id'];
      $header   =   $row1['post_subject']."</a>";
      $date      =   date("d F G:i", $row1['post_time']);


      $template->assign_block_vars('mesajlar', array(
       'N'       => $n,
       'GON'      => $gon,
       'GON_ID'      => $gon_id,
       'KONU_ID'     => $konu_id,
       'MESAJ_ID'   => $mesaj_id,
       'HEADER'      => $header,
       'DATE'       => $date,
        ));
      $n=$n+1;
      }
       $db->sql_freeresult($query1);

Re: Fading last messages on header

Posted: 16 May 2010, 20:48
by boardtalk.net
What is the error?

Re: Fading last messages on header

Posted: 16 May 2010, 21:15
by Oliver
I do not remember anymore, but became a big list of errors. I would guess that Turkey is due to those kind of stuff.

Code: Select all

     $gon_id      =   $row1['poster_id'];
      $gon      =   $row1['username'];
      $konu_id    =   $row1['topic_id'];
      $mesaj_id   =   $row1['post_id'];
      $header   =   $row1['post_subject']."</a>";
      $date      =   date("d F G:i", $row1['post_time']);


      $template->assign_block_vars('mesajlar', array(
       'N'       => $n,
       'GON'      => $gon,
       'GON_ID'      => $gon_id,
       'KONU_ID'     => $konu_id,
       'MESAJ_ID'   => $mesaj_id,
       'HEADER'      => $header,
       'DATE'

Re: Fading last messages on header

Posted: 16 May 2010, 22:34
by cisco007
Oliver please use the code tags, i did it for you this time!

Re: Fading last messages on header

Posted: 17 May 2010, 23:55
by boardtalk.net
Oliver, I cant help you further. As I said before this is not my mod and had only shown what little I had changed to function on my forum. You should ask the mod author, here: phpbb.com