Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 03-17-2010, 04:38 PM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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>
i've noticed a small cosmetic issue into the forumhome so i've changed the simple <hr/> tag with <hr align="left" width="99%" /> and now there isn't any trouble like you can see in the following pic:



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?
Reply With Quote
  #2  
Old 03-22-2010, 11:28 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone?
Reply With Quote
  #3  
Old 03-22-2010, 02:10 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to post this in the modification thread.
Reply With Quote
  #4  
Old 03-24-2010, 10:33 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You need to post this in the modification thread.
OK, thanks Lynne
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04058 seconds
  • Memory Usage 2,196KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete