TinyPortal
Development => Block Codes => Topic started by: agent47 on January 24, 2011, 11:15:09 AM
First of all I would like to say, I know you guys are busy so if I don't get a response I'll totally understand.
I basically need to know how does one implement a simple plugin such as this (http://www.sunsean.com/idTabs/#t1) one with the use of a php block. I know this is possible. Once I implement this plugin I wish to add the recent topics (http://www.tinyportal.net/index.php?topic=30884.0) code which I grabbed from this site. Each tab will consist of recent posts from particular boards.
Mainly, I just like to know how to implement the plugin.
Yours sincerely
You do exactly what they instruct on the site. The only difference is you don't put anything in the head. You just put all the code in the block.
Followed exactly as stated on the website but I keep getting this error
Parse error: syntax error, unexpected '<' in /home/super849/public_html/Sources/Load.php(2390) : eval()'d code(48) : eval()'d code on line 1
I basically pasted the .js file in themes/default/scripts folder and pasted this bit:
<ul class="idTabs">
<li><a href="#jquery">jQuery</a></li>
<li><a href="#official">Tabs 3</a></li>
</ul>
<div id="jquery">If you haven't checked out ...</div>
<div id="official">idTabs is only a simple ...</div> on a PHP block.
Anytime you put HTML into PHP it has to be in an echo statement.
echo ' all your html goes in between the single quotes and ends with a semi-colon ';