Fading last messages on header

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
User avatar
boardtalk.net
BBCoder II
BBCoder II
Posts: 35
Joined: 05 Mar 2010, 13:55
Favourite MOD: Default Random 'No Avatar
Location: Éire
Contact:

Re: Fading last messages on header

Post 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 -->
Last edited by boardtalk.net on 16 May 2010, 12:30, edited 1 time in total.
User avatar
Oliver
BBCoder III
BBCoder III
Posts: 120
Joined: 07 Mar 2010, 11:55

Re: Fading last messages on header

Post by Oliver »

Thank you very much.
User avatar
boardtalk.net
BBCoder II
BBCoder II
Posts: 35
Joined: 05 Mar 2010, 13:55
Favourite MOD: Default Random 'No Avatar
Location: Éire
Contact:

Re: Fading last messages on header

Post by boardtalk.net »

Your welcome
User avatar
boardtalk.net
BBCoder II
BBCoder II
Posts: 35
Joined: 05 Mar 2010, 13:55
Favourite MOD: Default Random 'No Avatar
Location: Éire
Contact:

Re: Fading last messages on header

Post 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 :? .
User avatar
Oliver
BBCoder III
BBCoder III
Posts: 120
Joined: 07 Mar 2010, 11:55

Re: Fading last messages on header

Post 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);
User avatar
boardtalk.net
BBCoder II
BBCoder II
Posts: 35
Joined: 05 Mar 2010, 13:55
Favourite MOD: Default Random 'No Avatar
Location: Éire
Contact:

Re: Fading last messages on header

Post by boardtalk.net »

What is the error?
User avatar
Oliver
BBCoder III
BBCoder III
Posts: 120
Joined: 07 Mar 2010, 11:55

Re: Fading last messages on header

Post 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'
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Fading last messages on header

Post by cisco007 »

Oliver please use the code tags, i did it for you this time!
User avatar
boardtalk.net
BBCoder II
BBCoder II
Posts: 35
Joined: 05 Mar 2010, 13:55
Favourite MOD: Default Random 'No Avatar
Location: Éire
Contact:

Re: Fading last messages on header

Post 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
Locked