Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2001, 12:39 AM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #2  
Old 03-19-2001, 01:00 AM
Guest
 
Posts: n/a
Default

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;
after these you need to add
Code:
$clan_usergroup = 45995;
(assuming that the id number of your clan usergroup is 45995... which it probably isn't

4) Find this code:
Code:
WHERE user.usergroupid IN($admin_usergroup,$supermod_usergroup)
and replace with this
Code:
WHERE user.usergroupid IN($admin_usergroup,$supermod_usergroup,$clan_usergroup)
5) Find this code:
Code:
		eval("\$adminbits .= \"".gettemplate("showmods_adminbit")."\";");
	}
and immediately after it, add this:
Code:
	elseif ($user[usergroupid] == $clan_usergroup) {
		if (($clancount++ % 2) == 0) $backcolor = "{ secondaltcolor }";
		else $backcolor = "{ firstaltcolor }";
		douserinfo();
		eval("\$clanbits .= \"".gettemplate("showmods_adminbit")."\";");
	}
(removing the spaces from the red code)

That will add your clan listing to the showmods.php page... the rest will need a bit more coding...
Reply With Quote
  #3  
Old 03-19-2001, 01:05 AM
Guest
 
Posts: n/a
Default

Is this guy not freakin awesome?
Reply With Quote
  #4  
Old 03-19-2001, 02:31 AM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #5  
Old 03-19-2001, 02:37 AM
Guest
 
Posts: n/a
Default

Send me another email and I'll come up with a custom page for you
Reply With Quote
  #6  
Old 03-19-2001, 02:32 PM
Guest
 
Posts: n/a
Default

cool. Ok, I've sent you another e-mail.
Reply With Quote
  #7  
Old 03-20-2001, 05:13 AM
Guest
 
Posts: n/a
Default

*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!
Reply With Quote
  #8  
Old 03-20-2001, 05:15 AM
Guest
 
Posts: n/a
Default

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)
Reply With Quote
  #9  
Old 03-20-2001, 05:31 AM
Guest
 
Posts: n/a
Default

sweet. That's cool of you to do all this grata.
Reply With Quote
  #10  
Old 03-20-2001, 08:42 AM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Jakeman
sweet. That's cool of you to do all this grata.
How much does it cost to send beer from California to the UK?
Reply With Quote
Reply


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 02:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04174 seconds
  • Memory Usage 2,236KB
  • 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
  • (6)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete