Look global announcements.

Makes it posible to post Global announcements, viewble in all forums

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Look global announcements.

Postby BeaMeR on Wed 26. May, 2004 02:42

Hello I know you can lock global announcemenets but how can I make it so once Global Announcemenet is looked it changes to different image and goes to the bottom of the Global Announcements in viewforum.php. I would really appreciate this and thank you.
BeaMeR
Poster
Poster
 
Posts: 10
Joined: Tue 24. Feb, 2004 05:01

Postby BeaMeR on Thu 27. May, 2004 05:04

UP
BeaMeR
Poster
Poster
 
Posts: 10
Joined: Tue 24. Feb, 2004 05:01

Postby Niels on Thu 17. Jun, 2004 23:44

you may try this (I haven't tested this)

in file viewforum.php
Code: Select all
[FIND]
if( $topic_rowset[$i]['topic_type'] == POST_GLOBAL_ANNOUNCE )
{
   $folder = $images['folder_global_announce'];
   $folder_new = $images['folder_global_announce_new'];
}
else

[REPLACE WITH]
if( $topic_rowset[$i]['topic_type'] == POST_GLOBAL_ANNOUNCE )
{
   if ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED )
   {
      $folder = $images['folder_global_announce_locked'];
      $folder_new = $images['folder_global_announce_locked_new'];
   } else
   {
      $folder = $images['folder_global_announce'];
      $folder_new = $images['folder_global_announce_new'];
   }
}
else


then inside all tempaltes.cfg files, you will need to add the images url...
e.g. for subsilver

in file
subSilver.cfg
add in the button
Code: Select all
$images['folder_global_announce_locked'] = "$current_template_images/folder_global_announce_locked.gif";
$images['folder_global_announce_locked_new'] = "$current_template_images/folder_global_announce_locked_new.gif";


I guess this should do it
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby BeaMeR on Fri 18. Jun, 2004 00:08

Alright I will be trying that right now and I will let you know what happens.
BeaMeR
Poster
Poster
 
Posts: 10
Joined: Tue 24. Feb, 2004 05:01

Postby BeaMeR on Fri 18. Jun, 2004 05:41

Thank you it works it would be really cool if you included that in the official release.
BeaMeR
Poster
Poster
 
Posts: 10
Joined: Tue 24. Feb, 2004 05:01


Return to Global announcement [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron