Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by GeorgeofCS GeorgeofCS is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-22-2001 Last Update: Never Installs: 27
 
No support by the author.

This is a modification of MarkB's Mark User As Contributor hack. It allows for 4 different tiers of Contributors based on what you set for donation limits for each tier.

It also allows the user to have the option of being listed as a "contributor" and not be listed in the various levels. Some of my users are happy to show that they support the site, but know their wife/husband won't be happy if they saw they were a platinum donator and such

Updated 1/13 To fix bugs in install file once again

Show Your Support

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

Comments
  #2  
Old 12-23-2001, 12:29 PM
GeorgeofCS's Avatar
GeorgeofCS GeorgeofCS is offline
 
Join Date: Oct 2001
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry Already found a bug in the dang thing

The attachment has been fixed. If you've already downloaded it all you gotta do is change:

member.php

if ($userinfo[showdonation]!="1") {

to

if ($userinfo[showdonation]!="1" and $userinfo[donator]) {

and the admin/functions.php

if ($post[showdonation]!="" and $post[showdonation]!="1") {

to

if ($post[showdonation]!="" and $post[showdonation]!="1" and $post[donator]) {
Reply With Quote
  #3  
Old 12-23-2001, 01:32 PM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like pretty work, Great improvment
Reply With Quote
  #4  
Old 12-23-2001, 02:09 PM
bokhalifa bokhalifa is offline
 
Join Date: Oct 2001
Location: U A E Dubai
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good work
Reply With Quote
  #5  
Old 12-23-2001, 02:34 PM
vertex's Avatar
vertex vertex is offline
 
Join Date: Nov 2001
Location: Some City/Canada/ON
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice we are using V1 of it right now, a demo of V2?
Reply With Quote
  #6  
Old 12-25-2001, 04:34 PM
JohnBradshaw's Avatar
JohnBradshaw JohnBradshaw is offline
 
Join Date: Oct 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Looks like a great hack but I am having a problem installing I am getting this error:

PHP Code:
Database error in vBulletin Control Panel 2.2.1:

Invalid SQLALTER TABLE `userADD `donator` `donatorSMALLINT UNSIGNED NOT NULL
mysql error
You have an error in your SQL syntax near 'donator` SMALLINT UNSIGNED NOT NULL' at line 1

mysql error number
1064

Date
Tuesday 25th of December 2001 03:46:15 PM
Script
: [url]http://www.mydomain.org/forums/forums/admin/contribute.php[/url]
Referer: [url]http://www.mydomain.org/forums/admin/contribute.php[/url] 
I am running: mysqladmin Ver 8.21 Distrib 3.23.43 if thats any help
Any ideas as I really want this hack!

Managed To Fix This By Removing The Second `Donation` Bit In The Code (Hope This Helps Someone)

Cheers and Merry Christmas,
Reply With Quote
  #7  
Old 12-25-2001, 05:27 PM
masood masood is offline
 
Join Date: Dec 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, right. there is additional 'donator' in the script which should be removed.
Reply With Quote
  #8  
Old 12-25-2001, 05:30 PM
JohnBradshaw's Avatar
JohnBradshaw JohnBradshaw is offline
 
Join Date: Oct 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, different problem this time!

In the installation guide it says to find this in admin/functions.php:
PHP Code:
## FIND:

if ($bbuserinfo[adminemail]) {
    
$allowmailchecked="checked";
    
$allowmailnotchecked="";
  } else {
    
$allowmailchecked="";
    
$allowmailnotchecked="checked";
  }

## FIND:

$nosessionhash=iif($nosessionhash=="yes",1,0); 
But I have checked my copy of vBulletin 2.2.1 and these are not present any clues? Also is it possible to change the level names, eg Bronze etc, to different ones?

Cheers,
Reply With Quote
  #9  
Old 12-25-2001, 05:33 PM
masood masood is offline
 
Join Date: Dec 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another problem: Where do we define the variables

PHP Code:
$platinum,$gold,$silver,$bronze 
all users get marked as platinum

And please be aware that you might have installed some other hack, so just by replacing a whole sql query (like user update/insert), you might get into trouble.

So only add the 'donator' and 'donation' appropriately in queries.
Reply With Quote
  #10  
Old 12-25-2001, 05:35 PM
masood masood is offline
 
Join Date: Dec 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by JohnBradshaw
Hi, different problem this time!

In the installation guide it says to find this in admin/functions.php:
PHP Code:
## FIND:

if ($bbuserinfo[adminemail]) {
    
$allowmailchecked="checked";
    
$allowmailnotchecked="";
  } else {
    
$allowmailchecked="";
    
$allowmailnotchecked="checked";
  }

## FIND:

$nosessionhash=iif($nosessionhash=="yes",1,0); 
But I have checked my copy of vBulletin 2.2.1 and these are not present any clues? Also is it possible to change the level names, eg Bronze etc, to different ones?

Cheers,
Reply With Quote
Reply

Thread Tools

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 09:00 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.09537 seconds
  • Memory Usage 2,305KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_php
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)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