The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
need help creating a product...
Hi,
I have tried creating a product xml file but its not going that well.. Here is the xml code: Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="ecig_video_chat_statistics" active="1"> <title>ECIG - Video Chat Statistics</title> <description><![CDATA[Adds Video Chat statistics in the statistics box]]></description> <version>1</version> <url></url> <versioncheckurl /> <dependencies> </dependencies> <codes> </codes> <templates> <template name="forumhome_videochat_stat" templatetype="template" date="00" username="Ecig" version="1.0"> <![CDATA[ <div id="latest_posts" class="wgo_subblock collapse"> <h3><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="test" />test</h3> <a class="collapse" id="collapse_ltp_list" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse.png" alt="" title="Collapse/Expand" /></a> <div id="ltp_list"> <table width="100%"><tr><td> {vb:raw video_chat_stat} </td></tr></table> </div> </div> ]]> </template> </templates> <stylevardfns> </stylevardfns> <stylevars> </stylevars> <plugins> <plugin active="1" executionorder="5"> <title>Video Chat Statistics</title> <hookname>forumhome_start</hookname> <phpcode><![CDATA[ if ($vbulletin->options['videochat_stat_active'] $video_chat_stat = 'SOME TEST'; $templater = vB_Template::create('forumhome_videochat_stat'); $templater->register('video_chat_stat', $video_chat_stat); $template_hook[forumhome_wgo_pos2] .= $templater->render(); } ]]></phpcode> </plugin> </plugins> <phrases> <phrasetype name="vBulletin Settings" fieldname="vbsettings"> <phrase name="setting_videochat_stat_url_desc" date="00" username="Ecig" version="1.0"><![CDATA[Url to Video Chat json]]></phrase> <phrase name="setting_videochat_stat_url_title" date="00" username="Ecig" version="1.0"><![CDATA[Url]]></phrase> <phrase name="setting_videochat_stat_active_desc" date="00" username="Ecig" version="1.0"><![CDATA[Activate Video Chat Statistics.]]></phrase> <phrase name="setting_videochat_stat_active_title" date="00" username="Ecig" version="1.0"><![CDATA[Video Chat Statistics Active]]></phrase> <phrase name="settinggroup_videochat_stat" date="00" username="Ecig" version="1.0"><![CDATA[ECIG Video Chat Statistics]]></phrase> </phrasetype> </phrases> <options> <settinggroup name="videochat_stat" displayorder="65535"> <setting varname="videochat_stat_active" displayorder="10"> <datatype>free</datatype> <optioncode>yesno</optioncode> </setting> <setting varname="videochat_stat_url" displayorder="20"> <datatype>free</datatype> <defaultvalue>http://</defaultvalue> </setting> </settinggroup> </options> <helptopics> </helptopics> <cronentries> </cronentries> <faqentries> </faqentries> </product> I dont get any errors, but nothing show up either on my forum. Also Im a little in doubt about the date and username tags used in phrases and template tags. Any help appreciated. Or a link to where I can study this (the vbulletin manual doesnt give much info on this.) |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|