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)

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


All times are GMT. The time now is 01:45 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.00994 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete