The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
<?php in 'description' under forum manager?
I am versed in adding HTML to the 'description' field under the forum manager for specific forums, for example to allow me to draw attention to a specific forum of interest by adding <b>bold</b> or even <img src="abc"> and so on.
However, I would like know if I can use php in there too? If not... why not? I have a simple ad rotator and would like to put some links to books of interest under the forum for 'mens health', but have them rotate every refresh. I have the script and have added the necessary require_once added to the forumdisplay.php file. However, the intended outcome is not possible as it doesn't appear to be reading the php code to randomly select data from the source file. Any help always appreciated. |
#2
|
||||
|
||||
You'll have to put the php in a plugin and then find a way to insert it where the description goes in the template (maybe there is a template_hook?).
|
#3
|
||||
|
||||
Quote:
So.. could you perhaps offer a smidgen more information? |
#4
|
||||
|
||||
Quote:
https://vborg.vbsupport.ru/showthread.php?t=242454 Then once your ready for more info visit this link: https://vborg.vbsupport.ru/forumdisplay.php?f=242 Hope that helps |
#5
|
|||
|
|||
You can go to the acp and create a new plugin (hook location: forumdisplay_complete).
If you want to add a certain code at the bottom of the description of all forums, you would do something like this: Code:
$foruminfo['description'] .= 'your custom code'; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|