vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   CMPS Module: Contributors (https://vborg.vbsupport.ru/showthread.php?t=67474)

Zachariah 07-21-2004 10:00 PM

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',
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

Sean S 07-22-2004 04:01 AM

Thank you, I was actually looking for this for my new site :)

y2krazy 07-22-2004 06:14 AM

You might want to include the contrib_bit template as well... ;)

Zachariah 07-22-2004 12:42 PM

Quote:

Originally Posted by y2krazy
You might want to include the contrib_bit template as well... ;)

Fixed :o

wanga 07-30-2004 01:13 PM

uh, where does it fetch who contributed or not?

Zachariah 08-02-2004 12:36 PM

Quote:

Originally Posted by wanga
uh, where does it fetch who contributed or not?

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

Holidazed 08-11-2004 03:00 PM

I am getting a database error when I use this module.

Code:

mysql error: Unknown column 'contrib' in 'where clause'
I saw no instructions that said I needed to execute a mysql commmand. Also, how do I add a contributer to the list?

Holidazed 08-11-2004 03:09 PM

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!!

Zachariah 08-13-2004 02:42 PM

Quote:

Originally Posted by bitg
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!!

Sorry man - 70 or so add-ons installed :surprised: ... This is a display page.
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 !!!!

HiDeo 08-13-2004 03:19 PM

Nice job, thanks

Holidazed 08-13-2004 03:52 PM

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.)

Holidazed 08-13-2004 03:59 PM

Quote:

Originally Posted by HarryButt
BTW: Location: Van Nuys, CA -- AKKKKKKKKKKK BUDWEISER HOPS !!!!

I live 5 minutes from the Budweiser plant.

y2krazy 08-29-2004 11:54 PM

/me clicks install!

Rich 09-09-2004 04:52 PM

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.

Zachariah 09-14-2004 02:00 AM

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.

Rich 09-14-2004 08:51 PM

Hello,
Thanks for the response! I really appreciate it. I will give this a whirl and see how well it goes. Thanks again.

Hialls 10-15-2004 07:55 PM

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.

Hialls 10-15-2004 07:56 PM

this can also work with multiple usergroups, and ofcourse this way you can add who's a gold/silver/bronze contributor :D

Zachariah 10-24-2004 02:18 PM

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 :D

Nice !!! :speechless:

twoseven 11-16-2004 02:08 AM

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

Zachariah 11-24-2004 10:11 PM

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',
After add:
Code:

'contrib_bit',
'adv_portal_contrib',

Upload new contrib.php to Moduel folder

docvader 12-04-2004 06:16 AM

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.

Zachariah 04-17-2005 03:28 PM

Quote:

Originally Posted by CallieJo2
Will this work for 3.07? Thanks ;-)

yes.


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
  • Page Generation 0.01326 seconds
  • Memory Usage 1,778KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete