The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Split Useronline on Forumhome Details »» | |||||||||||||||||||||||||
Description
Splits the User Online section on the Forum Home to allow for staff/team members and users to be separated into groups. This is a new version of Surviver's original modification which was made for vBulletin 3.6.4. This new product was made with Survivor's permission and is heavily based upon the original modification. The original modification can be found here: https://vborg.vbsupport.ru/showthread.php?t=135771 Features
Installation
Upgrade Unfortunately anyone wishing to upgrade from the previous modification to this will be unable to. I was advised to create this as a seperate product to avoid any potential conflicts in the future, and also due to the differences in how the settings are done there would have been no way to keep the saved settings anyway. However anyone who has already experienced the saving issue with the existing Product will have already lost their settings. Template Edit
Author Notes The change of location for the settings was done for two reasons: it was easier to sort out and I wanted the settings to be more logically placed. This allows for anyone with several 'team' usergroups to create new usergroups based on the permissions of an existing one therefore keeping the relevant permissions. Meaning it should make things easier in the long term. Credit for the original modification obviously goes to Surviver as mentioned at the top. Also the credit for the above template edit goes to GamerGirl27 though I will be trying to find a solution that removes the need for any template edits. Show Your Support
|
Comments |
#12
|
|||
|
|||
Are the usergroups they're in definitely included in the group? Or is there anything specific about them? i.e. are they in the usergroup as additional users whereas the ones that work are primary? Helps to find the bug if I know what situation causes the error if an error exists.
Otherwise if you'd be happy with it I'd be happy to take a look in your admincp and try and work out the problem from there? Pureturk: For the moment you could always edit the phrase values for two (can do all three but for what you want you'd only need to change two) of the existing three groups to make them be called whatever you like. Just search for "Team", "VIP", and "Premium" and you should be able to find the relevant phrases. On those same searches you should be able to change what it says on the usergroup manager page too if you want that to change too. the format should be "This is a ...." Usergroup" or something along those lines. Though I think I will at some stage try and make it so you can have as many or as little groups as you want with you selecting their names. Not yet sure how I'd approach that though lol. But the above phrase edits would give you what you want for the moment. @ killer: I think I know what you mean, you want it to put all of a particular usergroup in alphabetical order within the same section? This plugin doesn't actually control the order of the names, even in the seperate groups. The order is still fed from the system and basically I just have three variables for the different types of groups possible and add to each one any new members of that group. So it just results in three alphabetically ordered groups. I think the best way to do what you want would be to have them as seperate groups, if you need them in the same group you'd need to find where the variable $loggedin is created and alter that to order by usergroup and name. |
#13
|
||||
|
||||
Hello,
I think i know the answer to that. You must set the primary correctly for these mod's, i.e., they are mod's and regular users. If the primary group is users they apeear as users. KK |
#14
|
|||
|
|||
It would be good if you included the option to show usergroup X and it would show all users in that usergroup whether they are primary or secondary. some may want this others may not.
|
#15
|
|||
|
|||
Quote:
I''ll get it sorted sometime this week so that it also looks at your additional usergroups. It will increase the processing a bit though as I'll have to make it check each usergroup. I'll do some brainstorming in the meantime though. |
#16
|
|||
|
|||
Quote:
THANK YOU for updating this!!!!! I need only ONE extra group. Is there an easy way to do this? |
#17
|
|||
|
|||
Nice hack. But i want something more. I want that u recode this hack in which anyone can add extra legends because there are only three only. Also to change there name. I think u understood. I want this one because i needed this kind of legend bar i edited from existing one but errors errors errors on eval code on index page. Reply soon after modification. Regards!
|
#18
|
|||
|
|||
Also i tried again today. I wanted to add programmer and crackers group into the legend. The edited product xml file is this look
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?> - <product productid="rjs_split_online" active="1"> <title>Split Useronline</title> <description>Splits the online user listing in FORUMHOME. vBulletin 3.7 Compatible.</description> <version>2.0.0</version> - <url> - <![CDATA[ https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=rjs_split_online ]]> </url> - <versioncheckurl> - <![CDATA[ https://vborg.vbsupport.ru/misc.php?do=productcheck&pid=rjs_split_online ]]> </versioncheckurl> - <dependencies> <dependency dependencytype="vbulletin" minversion="3.7" maxversion="" /> </dependencies> - <codes> - <code version="2.0.0"> - <installcode> - <![CDATA[ $db->hide_errors(); $db->query("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD split_useronline_permissions INT UNSIGNED NOT NULL DEFAULT 0"); $db->show_errors(); ]]> </installcode> - <uninstallcode> - <![CDATA[ $db->hide_errors(); $db->query("ALTER TABLE ". TABLE_PREFIX . "usergroup DROP split_useronline_permissions"); $db->show_errors(); ]]> </uninstallcode> </code> </codes> <templates /> - <plugins> - <plugin active="1" executionorder="5"> <title>Display</title> <hookname>forumhome_complete</hookname> - <phpcode> - <![CDATA[ if(($activeonlineusers['team'] $activeonlineusers['programmers'] OR $activeonlineusers['members'] OR $activeonlineusers['premiummembers'] OR $activeonlineusers['vips']) AND $vbulletin->options['split_useronline_active']) { unset($activeusers); if($activeonlineusers['team']) { $activeonlineusers['team'] = substr($activeonlineusers['team'], 2); $activeusers .= "<b>".$vbphrase['team'].":</b> ".$activeonlineusers['team']."<br /><br />"; } if($activeonlineusers['programmers']) { $activeonlineusers['programmers'] = substr($activeonlineusers['programmers'], 0); $activeusers .= "<b>".$vbphrase['programmers'].":</b> ".$activeonlineusers['programmers']."<br /><br />"; } if($activeonlineusers['vips']) { $activeonlineusers['vips'] = substr($activeonlineusers['vips'], 2); $activeusers .= "<b>".$vbphrase['vips'].":</b> ".$activeonlineusers['vips']."<br /><br />"; } if($activeonlineusers['premiummembers']) { $activeonlineusers['premiummembers'] = substr($activeonlineusers['premiummembers'], 2); $activeusers .= "<b>".$vbphrase['premiummembers'].":</b> ".$activeonlineusers['premiummembers']."<br /><br />"; } if($activeonlineusers['members']) { iif(!$activeonlineusers['team'] AND !$activeonlineusers['premiummembers'], $activeonlineusers['members'] = substr($activeonlineusers['members'], 2)); $activeusers .= iif($show['othergroups'], "<b>".$vbphrase['members'].":</b> ").$activeonlineusers['members']."<br />"; } } ]]> </phpcode> </plugin> - <plugin active="1" executionorder="5"> <title>Split</title> <hookname>forumhome_loggedinuser</hookname> - <phpcode> - <![CDATA[ if($vbulletin->options['split_useronline_active']) { $split = $vbulletin->bf_ugp_split_useronline_permissions; $bit = $vbulletin->usergroupcache[$loggedin['displaygroupid']]['split_useronline_permissions']; if ($bit & $split['split_useronline_team'] AND fetch_online_status($loggedin)) { eval('$activeonlineusers[\'team\'] .= ", ' . fetch_template('forumhome_loggedinuser') . '";'); $numbervisible++; $show['othergroups'] = true; } elseif ($bit & $split['split_useronline_programmers'] AND fetch_online_status($loggedin)) { eval('$activeonlineusers[\'programmers\'] .= ", ' . fetch_template('forumhome_loggedinuser') . '";'); $numbervisible++; $show['othergroups'] = true; } elseif ($bit & $split['split_useronline_vip'] AND fetch_online_status($loggedin)) { eval('$activeonlineusers[\'vips\'] .= ", ' . fetch_template('forumhome_loggedinuser') . '";'); $numbervisible++; $show['othergroups'] = true; } elseif ($bit & $split['split_useronline_premium'] AND fetch_online_status($loggedin)) { eval('$activeonlineusers[\'premiummembers\'] .= ", ' . fetch_template('forumhome_loggedinuser') . '";'); $numbervisible++; $show['othergroups'] = true; } elseif (fetch_online_status($loggedin)) { eval('$activeonlineusers[\'members\'] .= ", ' . fetch_template('forumhome_loggedinuser') . '";'); $numbervisible++; } return; } ]]> </phpcode> </plugin> </plugins> - <phrases> - <phrasetype name="Permissions" fieldname="cppermission"> - <phrase name="setting_split_useronline_premiumusers_title" date="1212283503" username="Rjs37" version="2.0.0"> - <![CDATA[ This is a Premium Usergroup ]]> </phrase> - <phrase name="setting_split_useronline_teamusers_title" date="1212283535" username="Rjs37" version="2.0.0"> - <![CDATA[ This is a Team Usergroup ]]> </phrase> - <phrase name="setting_split_useronline_programmers and Crackersusers_title" date="1212283543" username="Rjs37" version="2.0.0"> - <![CDATA[ This is a programmers and Crackers Usergroup ]]> </phrase> - <phrase name="setting_split_useronline_vipusers_title" date="1212283556" username="Rjs37" version="2.0.0"> - <![CDATA[ This is a VIP Usergroup ]]> </phrase> - <phrase name="split_useronline_permissions" date="1212283584" username="Rjs37" version="2.0.0"> - <![CDATA[ Split Useronline ]]> </phrase> </phrasetype> - <phrasetype name="GLOBAL" fieldname="global"> - <phrase name="premiummembers" date="1212285962" username="Rjs37" version="2.0.0"> - <![CDATA[ Members ]]> </phrase> - <phrase name="team" date="1212285847" username="Rjs37" version="2.0.0"> - <![CDATA[ Staff ]]> </phrase> - <phrase name="programmers and Crackers" date="1212285843" username="Rjs37" version="2.0.0"> - <![CDATA[ programmers and Crackers ]]> </phrase> - <phrase name="vips" date="1212285904" username="Rjs37" version="2.0.0"> - <![CDATA[ VIPs and Contributors ]]> </phrase> </phrasetype> - <phrasetype name="vBulletin Settings" fieldname="vbsettings"> - <phrase name="setting_split_useronline_active_desc" date="1212283388" username="Rjs37" version="2.0.0"> - <![CDATA[ Activate the splitting of usergroups on forumhome ? ]]> </phrase> - <phrase name="setting_split_useronline_active_title" date="1212283388" username="Rjs37" version="2.0.0"> - <![CDATA[ Split Useronline ]]> </phrase> </phrasetype> </phrases> - <options> - <settinggroup name="forumhome" displayorder="400"> - <setting varname="split_useronline_active" displayorder="90"> <datatype>free</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> </settinggroup> </options> <helptopics /> <cronentries /> <faqentries /> </product> and bitfield xml file like this Code:
<?xml version="1.0" encoding="ISO-8859-1" ?> - <bitfields product="rjs_split_online"> - <bitfielddefs> - <group name="ugp"> - <group name="split_useronline_permissions"> <bitfield name="split_useronline_team" group="split_useronline_permissions" phrase="setting_split_useronline_teamusers_title" install="">1</bitfield> <bitfield name="split_useronline_programmers" group="split_useronline_permissions" phrase="setting_split_useronline_programmersusers_title" install="">2</bitfield> <bitfield name="split_useronline_premium" group="split_useronline_permissions" phrase="setting_split_useronline_premiumusers_title" install="">3</bitfield> <bitfield name="split_useronline_vip" group="split_useronline_permissions" phrase="setting_split_useronline_vipusers_title" install="">4</bitfield> </group> </group> </bitfielddefs> </bitfields> Pls i need this to be solved as soon as possible. |
#19
|
|||
|
|||
it showing
Quote:
I want Staff There, how to change ? |
#20
|
|||
|
|||
Ah Rjs from ConsoleGaming, how are you mate? Dignitas Thalix here.
Thanks for this, i could use this as well. Can't you release that ladder system of yours? . Just joking :P. Cheers. |
#21
|
|||
|
|||
Thanks, installed..
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|