The Arcive of vBulletin Modifications Site. |
|
How do I add an image to the bottom of each category Details »»
|
|||||||||||||||||||||||||||
|
How do I add an image to the bottom of each category
Developer Last Online: Jan 2003
I edited the forumhome_forumbit_level1_nopost template to add a graphic to my category header. But I don't know how or where to add a table to add a similar image to the bottom of each category (after the last forumhome_forumbit_level2_post template).
I enclosed a screenshot hoping it may help. You can see I have an image for each category header. I'd like to add a small image beneath the last forum of each category to balance out the look. Example: beneath the forum titled Public Server Info, then beneath Ridiculous Onion, then beneath About this Site, etc. The category header image was pretty simple. I added a table to my forumhome_forumbit_level1_nopost template: PHP Code:
Thanks. Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Killer effect, good job.
![]() This might work, it should but I can't promise. In both forumdisplay.php and index.php replace this code: Code:
} else {
$tempext = '_nopost';
}
Code:
} else {
$tempext = '_nopost';
if (!empty($forumbits)) {
eval("\$forumbits .= \"".gettemplate('forumhome_forumbit_closingtable')."\";");
}
}
|
|
#3
|
|||
|
|||
|
Wow, thanks for the compliment and thanks for the help, Firefly.
I'll post the result. |
|
#4
|
|||
|
|||
|
Here's the current screenshot after the replacement code to forumdisplay.php and index.php
![]() There is a mysterious comma between the end of the forumhome_forumbit_level2_post template and the beginning of the forumhome_forumbit_closing template: Code:
<!-- END TEMPLATE: forumhome_forumbit_level2_post -->,<!-- BEGIN TEMPLATE: forumhome_forumbit_closingtable --> Code:
<!-- END TEMPLATE: forumhome_forumbit_closingtable --><!-- BEGIN TEMPLATE: forumhome_forumbit_level1_nopost --> I also don't understand why the new forumhome_forumbit_closingtable did not show up below the last category (Bogs' Corner). Here is my forumhome_forumbit_level1_nopost PHP Code:
PHP Code:
PHP Code:
Firefly, or anyone, can you help get me out the fine mess I've gotten myself into? I have dug myself a hole I can't get out of... Yeehaw. |
|
#5
|
||||
|
||||
|
Re-apply the code from my post, I had a bug in there.
|
|
#6
|
|||
|
|||
|
Lol, thanks Firefly.
|
|
#7
|
||||
|
||||
|
Hmmm, I guess I did not realize it works on all of the forums, but the last group.
|
![]() |
|
|