Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
CMPS Module: Contributors Details »»
CMPS Module: Contributors
Version: 1.3, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 07-21-2004 Last Update: Never Installs: 7
DB Changes
 
No support by the author.

/* ---------------------------------------------------
This is a Module for CMPS to place Contributors in a block. :alien:
Hope it helps !!! Zack - http://www.gzhq.net

NEEDED To Install:

vBadvanced CMPS
https://vborg.vbsupport.ru/showthread.php?t=65797
Coded by: Tigga

Mark User as Contributor [vB3]
https://vborg.vbsupport.ru/showthread.php?t=61082
Coded by: assassingod
Original: MarkB

=== Display page for all Contributors ======

This is a display page. (contributors.php)
https://vborg.vbsupport.ru/showpost....3&postcount=33

I did some personal Mods my self:
https://vborg.vbsupport.ru/showpost....4&postcount=37


--------------------------------------------------*/

11.24.04 - Fixed the code to remove 2 extra queries from uncached templates. (edit global.php) Added ".TABLE_PREFIX." to the contrib.php placed in the Moduel folder.

Edit global.php find:
Code:
'adv_portal',
After add:
Code:
'contrib_bit',
'adv_portal_contrib',
Upload new contrib.php to Moduel folder

9.13.04 - requested - post 14
Added option for desired number of users to display on block and a link in template to full user list.

Upgrade: replace contrib.php file and adv_portal_contrib template.

7.22.04

Fixed - missing template

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-13-2004, 03:52 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool. It is working flawlessly. Even with your own personal customizations. Can you write this up and have all those instructions and the image in the first post?

Also, I love that it lists contributors. But I would love to see a way to display what they contributed (a service, money, equipment, etc.)
Reply With Quote
  #13  
Old 08-13-2004, 03:59 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HarryButt
BTW: Location: Van Nuys, CA -- AKKKKKKKKKKK BUDWEISER HOPS !!!!
I live 5 minutes from the Budweiser plant.
Reply With Quote
  #14  
Old 08-29-2004, 11:54 PM
y2krazy y2krazy is offline
 
Join Date: Jun 2003
Location: Houston, Texas
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me clicks install!
Reply With Quote
  #15  
Old 09-09-2004, 04:52 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
Is there a way that we could have this shows a "more" button like the smilies do? For sites that have a large contribution list,this will look very odd as it lengthens with names. A cut off point of like 5-10 names would be great and then a "more" button/link to display all of them.
Reply With Quote
  #16  
Old 09-14-2004, 02:00 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iguanairs
Hello,
Is there a way that we could have this shows a "more" button like the smilies do? For sites that have a large contribution list,this will look very odd as it lengthens with names. A cut off point of like 5-10 names would be great and then a "more" button/link to display all of them.

Yes

Edit contrib.php

Find:

Code:
// query to get the users who are contributors
	$getusers = $DB_site->query("
		SELECT userid,username
		FROM user
		WHERE contrib = '1'
	");
replace: ( "LIMIT 10" was added. * change to a desired value*)

Code:
// query to get the users who are contributors
	$getusers = $DB_site->query("
		SELECT userid,username
		FROM user
		WHERE contrib = '1' LIMIT 10
	");
Edit:
adv_portal_contrib

Find:
$contrib_bit

After add:
Code:
<br>[<a href="../forums/contributors.php">more</a>]<br>

That should do it.
Reply With Quote
  #17  
Old 09-14-2004, 08:51 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
Thanks for the response! I really appreciate it. I will give this a whirl and see how well it goes. Thanks again.
Reply With Quote
  #18  
Old 10-15-2004, 07:55 PM
Hialls's Avatar
Hialls Hialls is offline
 
Join Date: Jul 2002
Location: Reading, England
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm i didn't find where contrib was added while users paid to a subscription...

so i changed the code slightly if anyone else wants it here is what to do..

Replace:
PHP Code:
$getusers $DB_site->query("
        SELECT userid,username
        FROM user
        WHERE contrib = '1'
    "
); 

With:

PHP Code:
$getusers $DB_site->query("
        SELECT userid,username
        FROM user
        WHERE (usergroupid IN (7) OR CONCAT(',', membergroupids, ',') LIKE '%,7,%')
    "
); 
Where 7 is the usergroup users are added to when they subscribe.
Reply With Quote
  #19  
Old 10-15-2004, 07:56 PM
Hialls's Avatar
Hialls Hialls is offline
 
Join Date: Jul 2002
Location: Reading, England
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this can also work with multiple usergroups, and ofcourse this way you can add who's a gold/silver/bronze contributor
Reply With Quote
  #20  
Old 10-24-2004, 02:18 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hialls
this can also work with multiple usergroups, and ofcourse this way you can add who's a gold/silver/bronze contributor
Nice !!! :speechless:
Reply With Quote
  #21  
Old 11-16-2004, 02:08 AM
twoseven twoseven is offline
 
Join Date: Jan 2004
Location: in floris' pants
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
 
// query to get the users who are contributors
	$getusers = $DB_site->query("
		SELECT userid,username
		FROM " . TABLE_PREFIX . "user
		WHERE contrib = '1' LIMIT $limit
	");
you forgot the table prefix
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 03:27 PM.


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.04889 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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