![]() |
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:
|
Probably the easiest thing to do is to use output buffering.
E.g. PHP Code:
|
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:
|
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)"> like Code:
$alnav .= '<li><a href="../?p=home" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'home\',\'\',\'../images/nav/nav_home_h.gif\',1)"> |
Quote:
|
All times are GMT. The time now is 08:12 PM. |
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:
|