The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Announcements on Forum Home
Hi,
I want to show announcement "bits" on forum home, just like in forumdisplay_threadlist, but using an own template. Could anyone help me? |
#2
|
||||
|
||||
Do you want it so you can choose to put it on the index when you make the announcement?
|
#3
|
|||
|
|||
That'd be very cool, though I'm already satisfied when it only shows "global" announcements. To make forumhome an own entity in the whole "where to show announcement" system is probably much more work - not that I understand these things. If it is made so I have to chose whether or not to show on index, I have to be able to edit existing announcements.
Aside from that, I just want to be able to call some sort of "forumhome_announcement" template with $announcement in the forumhome template, so I can integrate the announcement title display flawlessly in my Welcome Panel thingie. Basically like in the threadlist. Oh, and I'm running 2.2.6, FYI. |
#4
|
||||
|
||||
insert that in your index.php:
PHP Code:
PHP Code:
as you can see i've just renamed the template names, just create these and style em as you want you can use $announcement in your forumhome template now i hope it works, it's not fine but should work |
#5
|
|||
|
|||
Works! Thanks for the fast help, Xenon!
Two questions, though: a) This will show only global announcements, yes? b) Shouldn't I add "forumhome_announcement" to $templatesused in index.php? I have no idea what purpose this line serves, just curious. |
#6
|
||||
|
||||
a) i think so
b)yes you should add it to templateused it'll reduce the ammount of querys |
#7
|
|||
|
|||
Quote:
|
#8
|
|||
|
|||
I'd like to see if anyone has this hack running on Gamma? Could someone post or PM me a link if you do?! TIA!!
|
#9
|
||||
|
||||
Try over at www.vbulletin.nl for vB3 hacks. You need to make more than 2 posts, and then wait a hour before you can download over there though.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|