PDA

View Full Version : [release] Show Multiple Announcements in forumdisplay


filburt1
12-23-2002, 10:00 PM
Author: filburt1
Description: Displays all announcements for the current forum (and global announcements) instead of just one. Also adds a divider breaking up the announcements from the threads.
Screenshot: next post

The latter part of the description was requested here at vBT. This requires PAPI 1.0.4 (link in the instructions) and adds one query to forumdisplay.

filburt1
12-24-2002, 02:08 AM
Screenshot:

BLaRmuS
12-24-2002, 02:10 AM
i really dont like the divider

filburt1
12-24-2002, 02:11 AM
The whole thing is template-driven so you can remove it easily.

Tony G
12-24-2002, 03:31 AM
Hmm, the different layout of the last post column makes it look a bit weird but if seperated a little better. :D

filburt1
12-24-2002, 03:35 AM
Couldn't think of a better way to lay it out :(

Tony G
12-24-2002, 03:37 AM
Here's my suggestion:

Use the forumdisplay_threadslist as the divider and then add your own little header at the top for the announcements display.

Sephiroth32
12-24-2002, 03:48 AM
I would use this but I use that announcement but table so it would look to weird

nice mod though

filburt1
12-24-2002, 03:50 AM
People, it's template-driven if you look at the instructions. All you have to do to change the appearance is edit the templates just like a normal template mod, not edit anything in phpinclude.

Oldfart
12-24-2002, 04:27 AM
Well I installed it and it doesn't look to bad. I only have one question tho. Can I add the text ANNOUNCEMENTS: back in the thread discription? If so where would I insert this at?

Nice mod BTW. I was looking for something like this earlier.

Tony G
12-24-2002, 05:57 AM
Yes, just edit the appropiate template.

Oldfart
12-24-2002, 07:29 AM
Originally posted by Tony
Yes, just edit the appropiate template.

Ok I figured that out before I posted, but my question was more along the lines which template should I edit.

Tony G
12-24-2002, 08:27 AM
forumdisplay_singleannouncement

It's done you create with this mod, find this code inside the file:

<td bgcolor="{firstaltcolor}"><normalfont><a href="announcement.php?s=$session[sessionhash]&forumid=$announcement[forumid]">$announcement[title]</a></normalfont></td>

Thats the code for the announcement title. Just put it what you want. If you want the title to show Announcement: Title here use this:

<td bgcolor="{firstaltcolor}"><normalfont><a href="announcement.php?s=$session[sessionhash]&forumid=$announcement[forumid]"><b>Announcement:</b>: $announcement[title]</a></normalfont></td>

Oldfart
12-24-2002, 08:45 AM
Thank you very much Tony I appreciate the help. ;)

Tony G
12-24-2002, 09:35 AM
No problem, and merry christmas! :)

Sanctum
01-13-2003, 08:18 AM
Ive gone through and added about 4 filgurt mods and almost everyone is name "instructions.txt" for his files roflmao. I need you to stop doing that :p

filburt1
01-13-2003, 02:21 PM
I'm consistant :)

Sanctum
01-14-2003, 05:31 AM
Yes yes you are sweety thank you for being so :)

Orfejs
01-15-2003, 06:03 AM
The one I needed so much. I hope they'll include in the 3.0 final version?!

Red Spider
02-10-2007, 09:34 PM
can we get this for 3.6? pwetty pweeeeese :D