MyBB Community Forums

Full Version: How to Add Templates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi im just asking,,,
cause i cant figure it out...

i can add some templates,

for example:

title of templates: radio

inside the templates:
<br>
<table width="181" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td align="left" border="0"><img src="images/clyght/sideleft.gif" /></td>
      
        <td align="center" class="sideback" style="background-image:url(images/clyght/sideback.gif)" width="100%">
<div><strong>Radio</strong></div></td></td>
		
     <td align="right" border="0"><img src="images/clyght/sideright.gif" /></td>
      </tr>
    </table>
	<table width="181" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="side" width="100" align="center" border="0" bgcolor="#D6DFF7">
       
<object type='video/x-ms-wmv' width='100%' height='64' data='http://eradioportal.com/energyfm-metromanila.asx'>
<param value='1' name='ShowStatusBar' />
<param value='1' name='enableContextMenu' />
<param value='http://eradioportal.com/energyfm-metromanila.asx' name='src' />
<param value='1' name='autostart' />
<param value='0' name='volume' /></object>     </td> </tr>
    </table>


and my problem is how to run my added templates.what code should i put to the location where i put the templates?

for example i want to put this templates inside the header what code should i use?

i try this code {$radio} but nothings happen? help me please?
i dont want to put this full codes inside the header...
You'll need a plugin to evaluate the template into the $radio variable before it'll display, unfortunately.
If you only want it in one place, you could just place the full code there (if you think this is messy, you can stick comments around it or lots of whitespace).
thanks zinga,

hmmm,my prob is i dont know hoe to make some plugins...

and what code should i put into the plugins file...
anyone can make plugins for this? i want to learn how to create some plugins, and your finish plugins for this is my guide... i want to put this on my portal first layer for side boxes..


anyone? im willing to create and learn how to do this...

thanks in advanced....
alright ive got it....now i know how to create a simple plugins..

ive learn it by edeting hello.php plugins.....
There's information on how to get started with plugins on the Resource section.

Getting Started With Plugins