Quote:
Originally Posted by Lynne
What is the code you are adding to the plugin? Perhaps that is incorrect.
|
I've no experiance with hooks, so I used a similar way that I use to add menus in left sidebar in user settings page.
1.- Plugin code:
Code:
<plugin active="1" executionorder="10">
<title>RateMySite: Includes</title>
<hookname>parse_templates</hookname>
<phpcode><![CDATA[
$template_hook['headinclude_css'] .= vB_Template::create('ratemysite_headinclude')->render();
]]></phpcode>
</plugin>
2.- Template code:
Code:
<template name="ratemysite_headinclude" templatetype="template" date="1160112327" username="ChrisTERiS" version="1.0.0">
<![CDATA[
<script type="text/javascript" src="christeris/ratemysite/includes/jquery.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js"></script>
<script type="text/javascript" src="christeris/ratemysite/includes/skinable_tabs.min.js"></script>
]]>
</template>
Thank you
Christos