The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Forum Title as Image or Text (Depending on page)
Hey there everyone. I'm a novice when it comes to php and even more so when it comes to vBulletin's plugin and hook system. I would be grateful if anyone could help me with a problem I'm having.
On my forum's index page, I would like to have the titles of the forums appear as linkable images. How I figured I'd do this is simply edit the Forum Title to be an image. Yet, I realized that it was an image anywhere the forum title appeared. I then attempted to create a plugin which would decipher whether or not the forum title was being called on the index.php page. If so, it would show the image, and if not, it would show the text title. This is the code I attempted to use in the plugin: PHP Code:
PHP Code:
|
#2
|
||||
|
||||
I would use template conditions if I were trying to do that. Something along these lines:
Code:
<if condition="THIS_SCRIPT == 'index'">Show Image<else />Show text</if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|