hello , i try to create hook plugin but its see to me wrong ..
i want the plugin do var text and i can to use that in all the temples vbulletin
and we edit the text in the panel .
my code destroying now ..
who can to example me some plugin like what i request .
PHP Code:
<product productid="myproduct" active="1">
<title>My Product</title>
<description>A test product</description>
<version>1.0</version>
<codes>
<code version="1.0">
<installcode>
<![CDATA[
$db->query("
CREATE TABLE " . TABLE_PREFIX . "profilelog (
userid INT UNSIGNED NOT NULL,
dateline INT NOT NULL,
INDEX (userid)
)
");
]]>
</installcode>
<uninstallcode>
<![CDATA[
$db->query("
DROP TABLE " . TABLE_PREFIX . "profilelog
");
]]>
</uninstallcode>
</code>
<code version="2.0">
<installcode>
<![CDATA[
$db->query("
ALTER TABLE " . TABLE_PREFIX . "profilelog
CHANGE dateline dateline INT UNSIGNED NOT NULL
");
]]>
</installcode>
<uninstallcode>//moo</uninstallcode>
</code>
</codes>
<templates>
<template name="profile_log" templatetype="template" date="1127469263" username="Administrator" version="3.5.0">
<![CDATA[
<div>
<div style="margin-bottom:10px">Most recent profile updates:</div>
$profile_logbits
</div>
]]>
</template>
<template name="profile_logbit" templatetype="template" date="1127472467" username="Administrator" version="3.5.0">
<![CDATA[
<div>
$log[username] @ $log[date] <span class="time">$log[date]</span>
</div>
]]>
</template>
</templates>
<plugins>
<plugin active="1">
<title>Profile Update Logger</title>
<hookname>profile_updateprofile</hookname>
<phpcode>
<![CDATA[
$text = 1;
]]>
</phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="Permissions" fieldname="cppermission">
<phrase name="can_bar">
<![CDATA[ Can Bar ]]>
</phrase>
<phrase name="can_foo">
<![CDATA[ Can Foo ]]>
</phrase>
<phrase name="myproduct_permissions">
<![CDATA[ My Product Permissions ]]>
</phrase>
</phrasetype>
<phrasetype name="Control Panel Home Pages" fieldname="cphome">
<phrase name="add_new_item">
<![CDATA[ Add New Item ]]>
</phrase>
<phrase name="my_product">
<![CDATA[ ShlomiGay ]]>
here i want to change the text .
</phrase>
<phrase name="my_product_manager">
<![CDATA[ ShlomiKoKsinel ]]>
</phrase>
</phrasetype>
</phrases>
<options></options>
</product>
i use var from php what its not ok in that?