Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #42  
Old 01-24-2002, 10:59 AM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have the time, is there a way you can just post what we need to do w/o using the installer file? I could do it manually if needed over using the installer file, just need to make sure that I am doing it right.

--------------------

I will give you one bit of feedback that I don't think anyone else has mentioned. In the installed file, once you click install, the error page pops up.

Well, the error is due to the fact that you are not placing data into all the fields (see below):

You are asking it to use the below fields:

settingid
settinggroupid
title
varname
value
description
optioncode
displayorder

Yet you do not use all of those to insert data into, you only use 7 of the 8 fields and it is causing a data error. You are using the below:

Code:
NULL,'Bronze Donator','bronze','10','How much of a donation is required to be a bronze level contributor','','1'
I think that is your problem right there, you need to specify what goes in the 8th field that you left out.

That is what the problem is from my point and after viewing it and the error, I think that is the problem.
Reply With Quote
  #43  
Old 02-08-2002, 10:47 AM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats right.

take a look into your settinggroup table

write down the settingroupid for the donation, in my case 41.

so i change the sql query from

PHP Code:
INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorderVALUES (NULL,'Bronze Donator','bronze','10','How much of a donation is required to be a bronze level contributor','','1'
to

PHP Code:
INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorderVALUES (NULL,'41','Bronze Donator','bronze','10','How much of a donation is required to be a bronze level contributor','','1'
this worked for me. simply exchange the 41 in the example with your matching settinggroupid.

kreftt
Reply With Quote
  #44  
Old 02-13-2002, 02:57 PM
maverick1236 maverick1236 is offline
 
Join Date: Oct 2001
Location: NY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could someone give me text files for these templates?

getinfo_bdonation, getinfo_donation, getinfo_gdonation, getinfo_pdonation, getinfo_sdonation

it would be a big help-tx!!!!!!!!!
Reply With Quote
  #45  
Old 02-25-2002, 05:03 AM
streamzone streamzone is offline
 
Join Date: Nov 2001
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm..i am having problems that i just cant figure out with this one. using 2.2.1 and i get this error:

"Invalid SQL: ALTER TABLE `user` CHANGE `donator` SMALLINT UNSIGNED NOT NULL
mysql error: You have an error in your SQL syntax near 'SMALLINT UNSIGNED NOT NULL' at line 1"

i just cant figure it out. any suggestions?
Reply With Quote
  #46  
Old 03-05-2002, 12:33 AM
Lucky Lucky is offline
 
Join Date: Dec 2001
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So does this work in 2.2.2?

There is a lot of confusion in this thread. Can someone please clarify that the installer infact works, and if not can someone post the text files needed to manually install.

TIA
Reply With Quote
  #47  
Old 03-24-2002, 08:07 PM
vertex's Avatar
vertex vertex is offline
 
Join Date: Nov 2001
Location: Some City/Canada/ON
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesnt look like it works on 2.2.4

everytime i mark a user as a contributor i get:

PHP Code:
mysql errorUnknown column 'showdonation' in 'field list'

mysql error number1054

Date
Sunday 24th of March 2002 03:59:55 PM
Script
: [url]http://www.somethingleet.com/admin/user.php[/url]
Referer: [url]http://www.somethingleet.com/admin/user.php?s=&action=edit&userid=131[/url] 
Reply With Quote
  #48  
Old 04-01-2002, 11:59 AM
vertex's Avatar
vertex vertex is offline
 
Join Date: Nov 2001
Location: Some City/Canada/ON
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

crappiest hack ever since it totally ****ed up our cookies, it replaced browse board with cookies which we need to keep user's logged in.
Reply With Quote
  #49  
Old 01-16-2003, 05:47 AM
GCPrez GCPrez is offline
 
Join Date: Dec 2002
Location: OTown
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by masood


Looks like you have similar problem

This involves two MySQL tables, 'settinggroup' and 'setting'. If you browse the 'settinggroup' table (through phpMyAdmin etc.) look for the 'settinggroupid' value corresponding to the "Donator" - should be the last row in this table if you have not installed another hack involving change of this table...

Now this 'settinggroupid' value must match with the 'settinggroupid' in 'setting' table (where corresponding options are defined). If you browse 'setting' table, you can look for Silver, Bronze and Gold rows at the end.

In my case these values did not match, so I could not see the options under Donator in control panel options. I just edited those rows in 'setting' table and bingo!
Reply With Quote
  #50  
Old 01-16-2003, 08:14 AM
GCPrez GCPrez is offline
 
Join Date: Dec 2002
Location: OTown
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I finally figured it out! :dead:

Here's what I did to work around it...

Run the install, then Login to MySQL and locate your settinggroupid for the Donations block. Since 'contribute.php' tries to install a duplicate of this, it stops and doesn't finish the install.

Take the ID and change all the VALUES in 'contribute.php' file like this:

PHP Code:
[PHP]$DB_site->query("INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL,'Bronze Donator','bronze','10','How much of a donation is required to be a bronze level contributor','','1')"); 
[/PHP]

to:

PHP Code:
$DB_site->query("INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL,'32','Bronze Donator','bronze','10','How much of a donation is required to be a bronze level contributor','','1')"); 
* '32' = (your id)

rerun the install but you might get the same error so you may want to try the upgrade so that it can finish the install.

Because of this, you may now have duplicates blocks setup...just delete them and now it all should be working.
Reply With Quote
  #51  
Old 01-23-2003, 08:26 PM
darkmaninc darkmaninc is offline
 
Join Date: Jun 2002
Location: Jackson, MS
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've tried to do this and this is what i now get
Database error in vBulletin Control Panel 2.2.8:

Invalid SQL: INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,'Silver Donator','silver','25','How much of a donation is required to be a silver level contributor','','2')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136
Reply With Quote
Reply


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 08:12 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.04769 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (5)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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