The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
You got it a little confused. You use PHP directly in the plug-in and then place the HTML you want into a variable to be displayed in the template...
Here is a quick example of what a plugin would look like with your first if statement.... PHP Code:
|
#12
|
|||
|
|||
Probably the easiest thing to do is to use output buffering.
E.g. PHP Code:
|
#13
|
|||
|
|||
thanks for the help i'll give it a go
--------------- Added [DATE]1216814486[/DATE] at [TIME]1216814486[/TIME] --------------- as a test i ran this: nothing shows... and whenever i enable the plugin i get this error: Fatal error: Call to a member function on a non-object in /home/forcer/public_html/forums/includes/functions_forumdisplay.php on line 182 thats with the hook global_start, when i use the hook global_setup_complete i get an error at the top of the page. PHP Code:
|
#14
|
|||
|
|||
If you are using
Code:
$alnav .= '<li><a href="../?p=home" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','../images/nav/nav_home_h.gif',1)"> <img src="../images/nav/nav_home_a.gif" id="home" /></a></li>'; like Code:
$alnav .= '<li><a href="../?p=home" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'home\',\'\',\'../images/nav/nav_home_h.gif\',1)"> <img src="../images/nav/nav_home_a.gif" id="home" /></a></li>'; |
#15
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|