vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Mark User As Contributor V 2.0 Multi Tier (https://vborg.vbsupport.ru/showthread.php?t=33441)

GeorgeofCS 12-22-2001 10:00 PM

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

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

GeorgeofCS 12-23-2001 12:29 PM

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]) {

TheComputerGuy 12-23-2001 01:32 PM

Looks like pretty work, Great improvment

bokhalifa 12-23-2001 02:09 PM

good work

vertex 12-23-2001 02:34 PM

nice we are using V1 of it right now, a demo of V2?

JohnBradshaw 12-25-2001 04:34 PM

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,

masood 12-25-2001 05:27 PM

Yep, right. there is additional 'donator' in the script :p which should be removed.

JohnBradshaw 12-25-2001 05:30 PM

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,

masood 12-25-2001 05:33 PM

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.

masood 12-25-2001 05:35 PM

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


All times are GMT. The time now is 06:29 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.01044 seconds
  • Memory Usage 1,746KB
  • 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_php_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