The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
I sent this to your e-mail but I figured I might as well post it here too.
[random comments and questions] I downloaded your show mods hack. I installed it and it works great. But I'm trying to use it for a different purpose. I want to display all the admin, mod, and super mod peeps, as well as a custom user group I have created for my gaming clan. I can't figure out how to add this listing to your hack. Also, how hard would it be to make this hack (for my needs of displaying that custom group as well) independant of vB. Like, could it be made so you just insert the php code into an existing html page and have that pull from the database? [/random comments and questions] I want to know if you can do some custom stuff for me. See the following link: http://216.122.219.45/mactest/rev2/ There are basically 3 things on that page I need to happen. First, in the red-outlined box on the right, I need the total number of clan members displayed (adding up the clan members that are in the admin, mod, and custom clan member group). Right below that I need the next "x" number of calendar events (from the vB calendar) displayed and linked to their "info" pages within the vB calendar. Then on the members page I want to do what I described above. The member listing will be in the main, middle table below that "folder tab" image. Can this be done? I would be willing to pay for your services on this if you are willing. Because of all the different queries on the same page I was curious whether this should be integrated directly with vB and its templates or a separate thing where the proper code is inserted into the existing page. I'm really good with html but just starting to learn php and stuff. What would be the best way to implement this? |
#2
|
|||
|
|||
Ok, here's what you need to do...
1) Edit the showmoderators template to add the table for your custom user group. Grab a copy of the table used to house the administrator listing and paste it where you want your clan to be shown in the page. 2) In the newly-copied table, remove the variable called $adminbits and replace it with $clanbits. 3) In the showmods.php code, at the top of the page you will find two lines that read Code:
$supermod_usergroup = 5; $admin_usergroup = 6; Code:
$clan_usergroup = 45995; 4) Find this code: Code:
WHERE user.usergroupid IN($admin_usergroup,$supermod_usergroup) Code:
WHERE user.usergroupid IN($admin_usergroup,$supermod_usergroup,$clan_usergroup) Code:
eval("\$adminbits .= \"".gettemplate("showmods_adminbit")."\";"); } Code:
elseif ($user[usergroupid] == $clan_usergroup) { if (($clancount++ % 2) == 0) $backcolor = "{ secondaltcolor }"; else $backcolor = "{ firstaltcolor }"; douserinfo(); eval("\$clanbits .= \"".gettemplate("showmods_adminbit")."\";"); } That will add your clan listing to the showmods.php page... the rest will need a bit more coding... |
#3
|
|||
|
|||
Is this guy not freakin awesome?
|
#4
|
|||
|
|||
ok, i did it. It works like a charm! While I've got you here. How would I add a user e-mail column and a # of posts column. Adding tables to the templates I can do. But I'm not sure of the arguments I need to include in the script.
|
#5
|
|||
|
|||
Send me another email and I'll come up with a custom page for you
|
#6
|
|||
|
|||
cool. Ok, I've sent you another e-mail.
|
#7
|
|||
|
|||
*ahem* so what's the good word? (I say timidly trying not to seem like too much of a moocher ). Did you get my e-mail? It seems like forever since I sent it, but then I DO check my e-mail 50 times a day!
|
#8
|
|||
|
|||
Sorry, I haven't had a chance to really look at your email yet... been a bit busy cooking up my new PM enhancement hack...
I'll take a good look at your requirements sometime today (20th) |
#9
|
|||
|
|||
sweet. That's cool of you to do all this grata.
|
#10
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|