The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Copy "Forum Leaders" for different user group?
I have a usergroup for paid subscribers on my forum, and I would like to make a list similar to "Forum Leaders" with the names of the people in this usergroup. I copied the template and the php file for ShowGroups and renamed them. However the problem I am having now is that it still shows the same forum leaders as the original. How would I go about changing the usergroups on the new file while still leaving the old forum leaders page the same?
Thanks. |
#2
|
||||
|
||||
On your new page (the showgroups.php that you copied and renamed), change the following line:
Code:
WHERE (usergroup.genericoptions & " . $vbulletin->bf_ugp_genericoptions['showgroup'] . ") Code:
WHERE usergroup.usergroupid=12345 Also, change this line: PHP Code:
No need to use your copied template, unless you made changes to it. --------------- Added [DATE]1344126854[/DATE] at [TIME]1344126854[/TIME] --------------- Oh, also take out the whole IF block for showing Moderators. Begins with: PHP Code:
|
#3
|
|||
|
|||
Thanks a million! That worked great. Only one more question! When on the page above the page title it still says "Show Groups". It seems that it references a 'showgroups' phrace somewhere, so I don't really know how to change it.
I think I would have to copy the template and rename it to change the bottom "Show Groups", but the really hard one is in the navbar. I have no clue how to go about this? Thanks, |
#4
|
||||
|
||||
Change the line
PHP Code:
PHP Code:
Oh, oh, that might be quicknav, now that I think about it. X3 You'd wanna alter this instead: PHP Code:
PHP Code:
|
#5
|
|||
|
|||
Thanks fixed some of it the "Show Groups" under new posts in the screen cap from before is still there. But I'll play around with it to figure it out. It's pretty good for now.
Thanks a million for the very helpful and fast response! |
#6
|
||||
|
||||
All right. Let us know here if you still have the problem, and I'll see what I can do about hunting down the right stuff. X3
|
#7
|
|||
|
|||
Hope I may jump in in this thread
Sarteck, I wanted to achieve similar for several of my usergroups to show. I modified my showgroups.php with the instructions you gave by replacing Code:
WHERE (usergroup.genericoptions & " . $vbulletin->bf_ugp_genericoptions['showgroup'] . ") Code:
WHERE usergroup.usergroupid=12 After changing the code I renamed the usergroups.php into usergroupspremium.php. Works fine and it shows exactly all the members from user group 12. Now I wanted to do the same for another usergroup and replaced this time the 12 with 9 and called the file usergroupspremium2.php I changed also the "define('THIS_SCRIPT', 'showgroups');" accordingly to point to the different php files However when I call the usergroupspermium2.php it only shows the users from usergroup 12. Does vBulletin keeps a cache somewhere or the template instructs it to do this and it doesn't get emptied? Any help greatly appreciated Michael |
#8
|
||||
|
||||
Michael,
As far as I know, no--your second page should be working just fine. :hmm: Ah, wait. XD It's right there in the page. Dunno how I missed it. PHP Code:
PHP Code:
|
#9
|
|||
|
|||
Quote:
Thanks so much again for you help. I had something different in the file but removed it and now it works great. I had (running vB 4.2.0): Code:
// VBIV-6689 Caching. $groupcache = array(); if ($vbulletin->options['flcache']) { $groupcache = vB_Cache::instance()->read('showgroups.groupcache'); } Definitely not a PRO like you and others here. I am just going to use it for 2 or 3 groups and really wouldn't know so far how to put a plugin together but as you mentioned just for a couple groups it works for me the way it is. Once again really appreciate your help Michael |
#10
|
||||
|
||||
Ah, okay; I use 4.1.11, so yeah, that's the reason for the difference. And yup, that's what you'd have to remove to disable the caching on that page. :3
Also, I'm no pro by any means. X3 I'm pretty decent at cobbling stuff together, but that's about it. I started off knowing a bit of PHP, and only learned by making mistake after mistake after mistake. XD Best way to learn, heh. And all right, if it's just two or three groups, then I guess you'd be fine. Since it seems to be something other vB owners want, though, I might make a product for it, anyways. And no prob. That's what this forum is for--to find out how to modify your vBulletin to do what you want it to do. :3 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|