The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[HEPL] Product who adds a sentence in the footer
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... HTML Code:
<?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 |
#2
|
||||
|
||||
Why don't you just use the copyright text setting in the vBulletin options?
|
#3
|
||||
|
||||
Yes i know this options, but i want simply create a product who do this too, is this possible?
|
#4
|
||||
|
||||
I'm sure it can be done very easily.
|
#5
|
||||
|
||||
Possible, so if you have the time, dont hesitate to help me on this subject
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|