MetalORock
05-08-2008, 04:54 PM
Hi all
I try to make a product who add a sentence in the footer, for exemple, underneath the copyright vbulletin.
I start in php code so i need help :)
See here the source of this product, but it must have some errors i think...
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="tradvbr" active="1">
<title>Traduction des Hacks</title>
<description><![CDATA[Ajoute en dessous du Copyright l'origine de la traduction des hacks.]]></description>
<version>1.0</version>
<url />
<versioncheckurl />
<dependencies>
</dependencies>
<codes>
</codes>
<templates>
<template name="tradvbr_footer" templatetype="template" date="1210176369" username="LtD" version="1.0"><![CDATA[<if condition="$vboptions[tradvbr_oui]==1">
<br />Traduction des Hacks
</if>]]></template>
</templates>
<plugins>
<plugin active="1" executionorder="5">
<title>cache</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[$globaltemplates = array_merge($globaltemplates, array('tradvbr_footer'));]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>main_code</title>
<hookname>global_start</hookname>
<phpcode><![CDATA[
if ($vbulletin->options['tradvbr_oui'] == '1')
{
$vbulletin->templatecache['footer'] = str_replace('tradvbr_footer'),$vbulletin->templatecache['footer']);
}
]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_tradvbr_oui_desc" date="1210176369" username="LtD" version="1.0"><![CDATA[Voulez vous ajouter dans le copyright l'origine des traductions de hacks ?]]></phrase>
<phrase name="setting_tradvbr_oui_title" date="1210176369" username="LtD" version="1.0"><![CDATA[Activation]]></phrase>
<phrase name="settinggroup_tradvbr" date="1210176051" username="LtD" version="1.0"><![CDATA[Traduction des Hacks]]></phrase>
</phrasetype>
</phrases>
<options>
<settinggroup name="tradvbr" displayorder="65535">
<setting varname="tradvbr_oui" displayorder="1">
<datatype>boolean</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>1</defaultvalue>
</setting>
</settinggroup>
</options>
<helptopics>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
</product>
Thanks in advance for your help :)
I try to make a product who add a sentence in the footer, for exemple, underneath the copyright vbulletin.
I start in php code so i need help :)
See here the source of this product, but it must have some errors i think...
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="tradvbr" active="1">
<title>Traduction des Hacks</title>
<description><![CDATA[Ajoute en dessous du Copyright l'origine de la traduction des hacks.]]></description>
<version>1.0</version>
<url />
<versioncheckurl />
<dependencies>
</dependencies>
<codes>
</codes>
<templates>
<template name="tradvbr_footer" templatetype="template" date="1210176369" username="LtD" version="1.0"><![CDATA[<if condition="$vboptions[tradvbr_oui]==1">
<br />Traduction des Hacks
</if>]]></template>
</templates>
<plugins>
<plugin active="1" executionorder="5">
<title>cache</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[$globaltemplates = array_merge($globaltemplates, array('tradvbr_footer'));]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>main_code</title>
<hookname>global_start</hookname>
<phpcode><![CDATA[
if ($vbulletin->options['tradvbr_oui'] == '1')
{
$vbulletin->templatecache['footer'] = str_replace('tradvbr_footer'),$vbulletin->templatecache['footer']);
}
]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_tradvbr_oui_desc" date="1210176369" username="LtD" version="1.0"><![CDATA[Voulez vous ajouter dans le copyright l'origine des traductions de hacks ?]]></phrase>
<phrase name="setting_tradvbr_oui_title" date="1210176369" username="LtD" version="1.0"><![CDATA[Activation]]></phrase>
<phrase name="settinggroup_tradvbr" date="1210176051" username="LtD" version="1.0"><![CDATA[Traduction des Hacks]]></phrase>
</phrasetype>
</phrases>
<options>
<settinggroup name="tradvbr" displayorder="65535">
<setting varname="tradvbr_oui" displayorder="1">
<datatype>boolean</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>1</defaultvalue>
</setting>
</settinggroup>
</options>
<helptopics>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
</product>
Thanks in advance for your help :)