![]() |
1 Attachment(s)
Hi,
I am trying to setup a hack that would display an icon in front of each forum title/description (see attachment). The hack is a modification from Firefly's Category sponsoring hack and I managed to do the template and MySQL part of things. However I am having problems with modifying the code in index.php. This is what I have now: PHP Code:
I can't figure out how to undo the double-up on my forums. Any help much appreciated! |
Where are you placing that code?
|
Hi FireFly,
I put the code right under the code from your sponsoring hack. |
Can you please post the whole block of that code, plus 5-10 lines above and below? :)
|
There you go:
PHP Code:
|
Code:
if ( !isset($forum['moderators']) ) { |
Bingo! That works like a charm. I now also understand where the double evaluation comes from :) Thanks Firefly!
Do you reckon this is worth putting up as an official hack? |
Up to you. :)
|
Might do. Just trying to elaborate on the hack: would it be possible to have the icon also show up on the 2nd level forum display? I assume this would mean to make a custom template for forumdisplay_forumbit_level2_post but I don't know what PHP code to put in?
|
All times are GMT. The time now is 11:42 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|