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 (https://vborg.vbsupport.ru/showthread.php?t=33195)

cobradude 04-30-2002 02:03 AM

Anyone have this working for 2.2.5?

cobradude 04-30-2002 03:42 AM

Answered my own question. Works great on 2.2.5 :)

Martz 05-14-2002 08:05 PM

Great hack :)

Carnage Media 05-28-2002 06:14 AM

it didnt' work on 2.2.5 for me?

** edit - yes it did, I didn't read the instructions thoroughly :)

XFLBret 06-05-2002 07:06 AM

I dont understand....

the original hack just marks a little blubs called "contributor", but some of you have got it to display little icons above it, and pick and choose which ones...

how do i get the hack to show the little icons, one that works on 2.2.6?

XFLBret 06-06-2002 10:52 AM

[QUOTE]Originally posted by Jakeman
nevermind... i got it uninstalled using this thingy i put together with some help (see my attachment)

i'm just doing what this hack does with templates now. i think it's better. just make a custom user info field that can only be changed in the admin cp. add post[fieldx] to your postbit with link tags around it. then edit profiles by putting "Contributor" into that field. it works the same. you can change the text for each user to whatever you want for making levels of contributors and stuff.

i'm working on a member listing using the custom fields that will only list members with a value in the donation field.

Sinecure 06-19-2002 06:16 PM

Installed perfectly on 2.2.5

Cygnus 07-10-2002 05:13 AM

Great Hack. We just closed a large majority of our boards for what we are calling "Premium Members" and I was having to add a little icon to each member's profile. This cuts that step out.

What would be cool is if this could be done and the person was added to a different user group all at the same time.

Hack well done.
Cygnus

bandersen 07-12-2002 06:00 PM

Nice hack - I think I will install this one!

Edit: Installed it on 2.2.6... works like a charm.

A few questions:

2.Let's say you have a bunch of donating members.... how do you all handle that - you get an email from the member and manually check it.. or do you have some other routine for this?

3. Let's say you want the "supporting member" in postbit to expire after a certain amount of time....(6 months donation).... how can I include that?

Thank you for a nice hack!!

Dean C 07-15-2002 10:59 AM

i uploaded contribute.php to my admin directory and ran it, clicked install and i got disconnected... now im getting an error...

what would be the query i would run to drop the "donator" field from my user table??

Thanks in Advance

justsomedude 07-15-2002 11:11 AM

[QUOTE]Originally posted by Mist
i uploaded contribute.php to my admin directory and ran it, clicked install and i got disconnected... now im getting an error...

what would be the query i would run to drop the "donator" field from my user table??

Thanks in Advance

Dean C 07-15-2002 02:18 PM

thankyou! :D

thenetbox 07-17-2002 02:57 PM

this works for 2.2.6?

thenetbox 07-17-2002 03:28 PM

cool.. works perfectly in 2.2.6 .. can I add HTML in the donation templates?

justsomedude 07-17-2002 07:31 PM

[QUOTE]Originally posted by thenetbox
cool.. works perfectly in 2.2.6 .. can I add HTML in the donation templates?

thenetbox 07-19-2002 01:36 PM

oooh :) coolness

JGUNS 08-22-2002 08:35 PM

I installed it and I get the "contributor" in my post box, but how do I put in an image next to it? I read someone said "edit the template" but how?

omegauk 08-28-2002 07:50 PM

Can anyone help me with a problem I am having regarding this hack? I've done has described but I cant make the actual text center on my postbit, believe me i tried, whats wrong?
Look Here:

http://www.musclemorpheus.com/muscle...=&threadid=205

Dean C 08-28-2002 08:22 PM

set up a test account ^

omegauk 08-28-2002 08:24 PM

Fixed now anyways.

Dean C 08-29-2002 09:55 AM

:D

N9ne 08-31-2002 01:51 PM

Does this work in 2.2.7?

MarkB 08-31-2002 01:57 PM

I see no reason why it shouldn't, but I haven't upgraded yet, so have no idea :)

wolfman 09-18-2002 01:17 AM

I have 2.2.7 installed and I installed it and had no problems everything seems to work. :)

Booba88 09-19-2002 12:51 PM

With version 2.2.7 i found that there were differences in two of the lines to be replaced

they are in admin/user.php

it involves the nosessionhash field in the user table.

i have attached a text file that is updated from the original release on page 1 of this thread.

Regards,
Booba

wastegate 09-24-2002 03:15 AM

Also just would like everyone to know in the query edits on the install guide it is missing the "$" sign infront of birthdays.. Stuffed up my birthdays for abit there.

GunsNetwork 10-01-2002 08:39 PM

I am having a problem on 2.2.8

Does not work for some reason?

Any idea's?

I had no problem on any of the upgrqades all the way up to vB v2.2.7

BowHunt

Erwin 10-01-2002 09:01 PM

This hacks works with 2.2.8 - it should - it does nothing to affect the running of the rest of the code.

GunsNetwork 10-01-2002 09:13 PM

well it doesn't work on my site now.

I just upgraded to the 2.2.8 and upgraded this hack on the certain files and nothing.

alkatraz 10-13-2002 06:19 AM

I'm trying to run contributer.php on my forums (v2.28) and I get this error:
Quote:

Fatal error: Call to undefined function: cpheader() in /home2/alkatraz/www/board/contribute.php on line 4
Anyone know what's up? Im going to try the modified instructions the other person posted

arcab4 10-23-2002 04:34 AM

darn..i just tried to install this on 2.2.8 and it doesnt' work. it does show up in the profile but not when i view the threads.

was there a solution to this?

thanks,

The Piper 10-23-2002 04:11 PM

I'm a bit confused if this works or not on 2.2.8. I wish someone would re-release this hack with the fixes that people came up with... :)

N9ne 10-23-2002 04:12 PM

I have this installed on my 2.2.8 and it works without any bugs...

Merjawy 10-23-2002 04:22 PM

This I want one of two of it please.. installing soon :) thnx

arcab4 10-23-2002 04:34 PM

hey Tha Rock,

you got it to work? man. i guess i'll go and try it again. also, someone mentioned it earlier..but in one of the changes, birthday is missing a $ in front of it. make sure you make that change.

thnks - testing it out again!

N9ne 10-23-2002 04:58 PM

I think people with newer versions of vB and people who have hacks installed which use templates will find this hack will need some work to get installed. Some of the lines you search for are for the 2.2.2 standard vB files, the code has changed 6 versions down the line and those with hacks will have further modified their code. You have to search for maybe the first few words of a line and then insert changes directly into the code instead of an easy simple supercool copy and paste :)

Like it's said: For the good things in life you must work :)

The thing is, the work you have to do for this hack is minimal, it takes what, an extra 2 minutes to do the hack if you suffer from having a later version and/or have modified code already ;)

arcab4 10-23-2002 05:19 PM

for newbies like me,

what exact changes did you make? would you mind posting what was different?

thanks!

N9ne 10-23-2002 05:46 PM

There were mostly things that would apply to individual's code...

but for example, in admin/user.php, the these two steps will have been modified a few times already by other hacks and you might not find them straight off:

## FIND:

$DB_site->query("INSERT INTO user (userid,usergroupid,username,password,email,stylei d,parentemail,coppauser,homepa ge,icq,aim,yahoo,signature,adminemail,showemail,in visible,usertitle,customtitle, joindate,cookieuser,daysprune,lastvisit,lastactivi ty,lastpost,posts,timezoneoffs et,emailnotification,receivepm,emailonpm,ipaddress ,pmpopup,options,birthday) VALUES (NULL,'$usergroupid','".addslashes(htmlspecialchar s($ausername))."','".addslashe s(md5($apassword))."','".addslashes(htmlspecialcha rs($email))."','$userstyleid', '".addslashes(htmlspecialchars($parentemail))."',' $coppauser','".addslashes(html specialchars($homepage))."','".addslashes(htmlspec ialchars($icq))."','".addslash es(htmlspecialchars($aim))."','".addslashes(htmlsp ecialchars($yahoo))."','".adds lashes($signature)."','$adminemail','$showemail',' $invisible','".addslashes($use rtitle)."','$customtitle',$joindate,'$cookieuser', '$daysprune',$lastvisit,$lasta ctivity,$lastpost,'$posts','$timezoneoffset','$ema ilnotification','$receivepm',' $emailonpm','".addslashes($aipaddress)."','$pmpopu p','$options','birthday')");

## REPLACE WITH:

$DB_site->query("INSERT INTO user (userid,usergroupid,username,password,email,stylei d,parentemail,coppauser,homepa ge,icq,aim,yahoo,signature,adminemail,showemail,in visible,usertitle,customtitle, joindate,cookieuser,daysprune,lastvisit,lastactivi ty,lastpost,posts,timezoneoffs et,emailnotification,receivepm,emailonpm,ipaddress ,donator,pmpopup,options,birth day) VALUES (NULL,'$usergroupid','".addslashes(htmlspecialchar s($ausername))."','".addslashe s(md5($apassword))."','".addslashes(htmlspecialcha rs($email))."','$userstyleid', '".addslashes(htmlspecialchars($parentemail))."',' $coppauser','".addslashes(html specialchars($homepage))."','".addslashes(htmlspec ialchars($icq))."','".addslash es(htmlspecialchars($aim))."','".addslashes(htmlsp ecialchars($yahoo))."','".adds lashes($signature)."','$adminemail','$showemail',' $invisible','".addslashes($use rtitle)."','$customtitle',$joindate,'$cookieuser', '$daysprune',$lastvisit,$lasta ctivity,$lastpost,'$posts','$timezoneoffset','$ema ilnotification','$receivepm',' $emailonpm','".addslashes($aipaddress)."','$donati on','$pmpopup','$options','bir thday')");

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

## FIND: (around line 344)

$DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupi d='$usergroupid',username='".a ddslashes(htmlspecialchars($ausername))."'$pwdincl ude,email='".addslashes(htmlsp ecialchars($email))."',styleid='$userstyleid',pare ntemail='".addslashes(htmlspec ialchars($parentemail))."',coppauser=$coppauser,ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',signature='".addslashes($signature)."',adminemai l=$adminemail,showemail=$showe mail,invisible=$invisible,usertitle='".addslashes( $usertitle)."',customtitle=$cu stomtitle,joindate=$joindate,cookieuser=$cookieuse r,nosessionhash=$nosessionhash ,daysprune='$daysprune',lastvisit=$lastvisit,lasta ctivity=$lastactivity,lastpost =$lastpost,posts='$posts',timezoneoffset='$timezon eoffset',emailnotification=$em ailnotification,receivepm='$receivepm',emailonpm=' $emailonpm',ipaddress='".addsl ashes($aipaddress)."',pmpopup=IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid");

## REPLACE WITH:

$DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupi d='$usergroupid',username='".a ddslashes(htmlspecialchars($ausername))."'$pwdincl ude,email='".addslashes(htmlsp ecialchars($email))."',styleid='$userstyleid',pare ntemail='".addslashes(htmlspec ialchars($parentemail))."',coppauser=$coppauser,ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',signature='".addslashes($signature)."',adminemai l=$adminemail,showemail=$showe mail,invisible=$invisible,usertitle='".addslashes( $usertitle)."',customtitle=$cu stomtitle,joindate=$joindate,cookieuser=$cookieuse r,nosessionhash=$nosessionhash ,daysprune='$daysprune',lastvisit=$lastvisit,lasta ctivity=$lastactivity,lastpost =$lastpost,posts='$posts',timezoneoffset='$timezon eoffset',emailnotification=$em ailnotification,receivepm='$receivepm',emailonpm=' $emailonpm',ipaddress='".addsl ashes($aipaddress)."',donator='$donation',pmpopup= IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid");

arcab4 10-23-2002 05:52 PM

weird. i made the following changes and still no luck. i guess i'll start from scratch again. this is the first hack for the board so it's not like it's conflicting with other hacks.

i do get the 'contributor' to show up in the profile but just not in the threads. hmm.

N9ne 10-23-2002 06:29 PM

Did you edit your postbit template...


All times are GMT. The time now is 04:20 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.02314 seconds
  • Memory Usage 1,823KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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