The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need a little help with a plug-in pls :)
hi folks, i've a trouble with this hack (by [name]vbenhancer[/name])
https://vborg.vbsupport.ru/showthread.php?t=230593 i need to put this hack onto my new Suite board, but i saw that there are some troubles ... this is the code: Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="nex_active_users_legend" active="1"> <title><![CDATA[Nexia's Active Users Legend]]></title> <description>Gives you the choice to display a legend of the usergroups markups in the active users listing.</description> <version>1.0.1</version> <url>http://www.vbenhancer.com/</url> <versioncheckurl /> <dependencies> <dependency dependencytype="vbulletin" minversion="3.8.0" maxversion="" /> </dependencies> <codes> </codes> <templates> <template name="nex_active_users_legend_wol" templatetype="template" date="1217606436" username="nexia" version="1.0.0"><![CDATA[ </table><br /> <table class="tborder" width="100%" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0"> <tr> <td class="alt1 smallfont">$vbphrase[nex_active_users_legend_wol]$legend_ugs </td> </tr> ]]></template> </templates> <plugins> <plugin active="1" executionorder="5"> <title>add nex_active_users_legend_wol to the cache</title> <hookname>cache_templates</hookname> <phpcode><![CDATA[$globaltemplates[] = 'nex_active_users_legend_wol';]]></phpcode> </plugin> <plugin active="1" executionorder="999"> <title>Active Users Legend on Forumdisplay</title> <hookname>forumdisplay_complete</hookname> <phpcode><![CDATA[ if ($show['activeusers'] AND $vbulletin->options['nex_active_users_legend']) { $ug_list = explode(',', $vbulletin->options['nex_active_users_legend_ug']); $legend_ug = array(); foreach($ug_list AS $key => $value) { if($value > 0) $legend_ug[] = $vbulletin->usergroupcache["$value"]['opentag'] . $vbulletin->usergroupcache["$value"]['title'] . $vbulletin->usergroupcache["$value"]['closetag']; } if(count($legend_ug) > 0) $activeusers .= $vbphrase['nex_active_users_legend_sep'] . implode(', ', $legend_ug); } ]]></phpcode> </plugin> <plugin active="1" executionorder="999"> <title>Active Users Legend on Forumhome</title> <hookname>forumhome_complete</hookname> <phpcode><![CDATA[ if ($vbulletin->options['nex_active_users_legend']) { $ug_list = explode(',', $vbulletin->options['nex_active_users_legend_ug']); $legend_ug = array(); foreach($ug_list AS $key => $value) { if($value > 0) $legend_ug[] = $vbulletin->usergroupcache["$value"]['opentag'] . $vbulletin->usergroupcache["$value"]['title'] . $vbulletin->usergroupcache["$value"]['closetag']; } if(count($legend_ug) > 0) $activeusers .= $vbphrase['nex_active_users_legend_sep'] . implode(', ', $legend_ug); } ]]></phpcode> </plugin> <plugin active="1" executionorder="999"> <title>Active Users Legend on Forumhome</title> <hookname>online_complete</hookname> <phpcode><![CDATA[ if ($vbulletin->options['nex_active_users_legend']) { $ug_list = explode(',', $vbulletin->options['nex_active_users_legend_ug']); $legend_ug = array(); foreach($ug_list AS $key => $value) { if($value > 0) $legend_ug[] = $vbulletin->usergroupcache["$value"]['opentag'] . $vbulletin->usergroupcache["$value"]['title'] . $vbulletin->usergroupcache["$value"]['closetag']; } if(count($legend_ug) > 0) { $legend_ugs = implode(', ', $legend_ug); eval('$onlinebits .= "' . fetch_template('nex_active_users_legend_wol') . '";'); } } ]]></phpcode> </plugin> <plugin active="1" executionorder="999"> <title>Active Users Legend on ShowThread</title> <hookname>showthread_complete</hookname> <phpcode><![CDATA[ if ($show['activeusers'] AND $vbulletin->options['nex_active_users_legend']) { $ug_list = explode(',', $vbulletin->options['nex_active_users_legend_ug']); $legend_ug = array(); foreach($ug_list AS $key => $value) { if($value > 0) $legend_ug[] = $vbulletin->usergroupcache["$value"]['opentag'] . $vbulletin->usergroupcache["$value"]['title'] . $vbulletin->usergroupcache["$value"]['closetag']; } if(count($legend_ug) > 0) $activeusers .= $vbphrase['nex_active_users_legend_sep'] . implode(', ', $legend_ug); } ]]></phpcode> </plugin> </plugins> <phrases> <phrasetype name="GLOBAL" fieldname="global"> <phrase name="nex_active_users_legend_sep" date="1185364479" username="nexia" version="1.0.0"><![CDATA[<hr align="left" width="99%" />Legend: ]]></phrase> <phrase name="nex_active_users_legend_wol" date="1185364479" username="nexia" version="1.0.0"><![CDATA[Legend: ]]></phrase> </phrasetype> <phrasetype name="vBulletin Settings" fieldname="vbsettings"> <phrase name="setting_nex_active_users_legend_desc" date="1185275296" username="nexia" version="1.0.0"><![CDATA[If set to Yes, will display a legend of the active users usergroup markups that you specify in the list below. It is displayed in forumhome, forumdisplay and showthread pages when you activate this feature for each page, named "Show Users Browsing Forums/Threads"]]></phrase> <phrase name="setting_nex_active_users_legend_title" date="1185275296" username="nexia" version="1.0.0"><![CDATA[Activate the Active Users Legend display]]></phrase> <phrase name="setting_nex_active_users_legend_ug_desc" date="1245201733" username="nexia" version="2.0.0"><![CDATA[Select which usergroups have to be listed in the legend. Enter each usergroupID that you want to display, in the order you want them to show in the legend, seperated by a comma (1,2,3).]]></phrase> <phrase name="setting_nex_active_users_legend_ug_title" date="1245201733" username="nexia" version="2.0.0"><![CDATA[Which Usergroups Markup have to be listed]]></phrase> <phrase name="settinggroup_nex_active_users_legend" date="1185275204" username="nexia" version="1.0.0"><![CDATA[Nexia's Active Users Legend]]></phrase> </phrasetype> </phrases> <options> <settinggroup name="nex_active_users_legend" displayorder="580"> <setting varname="nex_active_users_legend" displayorder="10"> <datatype>boolean</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> <setting varname="nex_active_users_legend_ug" displayorder="20"> <datatype>free</datatype> <defaultvalue>5,6,7</defaultvalue> </setting> </settinggroup> </options> <helptopics> </helptopics> <cronentries> </cronentries> <faqentries> </faqentries> </product> also there aren't any troubles in the showthread page, instead i've saw a little trouble in the WOL page like you can see in the following pic: what i need is a simple tip to correct the small cosmetic trouble in this page ... any suggestion will be really appreciated ... :P TIA --------------- Added [DATE]1268916830[/DATE] at [TIME]1268916830[/TIME] --------------- anyone? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|