![]() |
CMPS Module: Contributors
/* ---------------------------------------------------
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', Code:
'contrib_bit', 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 |
Thank you, I was actually looking for this for my new site :)
|
You might want to include the contrib_bit template as well... ;)
|
Quote:
|
uh, where does it fetch who contributed or not?
|
Quote:
Coded by: assassingod Original: MarkB |
I am getting a database error when I use this module.
Code:
mysql error: Unknown column 'contrib' in 'where clause' |
NM, you did not say in the instructions that this hack required that the hack at https://vborg.vbsupport.ru/showthread.php?t=61082 (Mark User as Contributor) be installed first.
In addition, when this hack is installed, my portal page has a link to "contributors.php" but your file is named "contrib.php". I renamed it. When I click on the "Contributors" link, I get an error. It is as follows: Fatal error: Call to a member function on a non-object in /home/dungeon/public_html/forums/contributors.php on line 28 Help!! |
Quote:
https://vborg.vbsupport.ru/showpost....3&postcount=33 I did some personal Mods my self: https://vborg.vbsupport.ru/showpost....4&postcount=37 Out come http://www.gzhq.net/forums/contributors.php BTW: Location: Van Nuys, CA -- AKKKKKKKKKKK BUDWEISER HOPS !!!! |
Nice job, thanks
|
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.) |
Quote:
|
/me clicks install!
|
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. |
Quote:
Yes Edit contrib.php Find: Code:
// query to get the users who are contributors Code:
// query to get the users who are contributors adv_portal_contrib Find: $contrib_bit After add: Code:
<br>[<a href="../forums/contributors.php">more</a>]<br> That should do it. |
Hello,
Thanks for the response! I really appreciate it. I will give this a whirl and see how well it goes. Thanks again. |
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:
With: PHP Code:
|
this can also work with multiple usergroups, and ofcourse this way you can add who's a gold/silver/bronze contributor :D
|
Quote:
|
Code:
|
1.3 Update - Killed 2 extra queries !! :banana: - Updated 1st post.
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', Code:
'contrib_bit', |
Awesome. But you might want to mention that you need to alter the global php after the second 'adv_portal' mention. I put it after the first mention and it wiped out my index page, lol.
Nice job. My community will like the mentions. |
Quote:
|
All times are GMT. The time now is 02:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|