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
Mark user as a Referrer [v 1.0.1] Details »»
Mark user as a Referrer [v 1.0.1]
Version: 1.00, by Buczilla Buczilla is offline
Developer Last Online: Jul 2007 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 07-26-2003 Last Update: Never Installs: 4
 
No support by the author.

I don't know if anyone has been needing a hack like this... but I did, so decided to make it. 90% of the credit for this hack goes to MarkB (his contributor hack), as I don't know any php, so just changed all the variables in his hack. Thanks alot MarkB!!!

What this hack does: It allows you to mark a user as a referrer, so, if a user has referred a bunch of people, or anything, you can select (in the Admin CP - Under Edit User), that they are a referrer... it will then display an image (or whatever you want) in postbit.

You really could edit MarkB's hack to be ANYTHING (as an option) to be displayed in postbit, but if you don't want to edit the php, this is made for you. Please report any bugs in this thread, it should work, but I don't want to be responsible for a messed up board... so PLEASE BACKUP YOUR DATABASE, AND ALL FILES RELATED TO THIS HACK!!!

Also, please click Install if you use this hack! If you need a hack similiar to this, except for something else you want displayed in postbit... let me know, or try to edit the php yourself (like I did :banana: )

Thanks again MarkB!!!

What might come later: Auto-update if user has an AdminCP-Definable number of referrals. I'm gonna need help with this.

Screenshots to follow:

Show Your Support

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

Comments
  #12  
Old 07-30-2003, 02:30 PM
esfron esfron is offline
 
Join Date: Nov 2002
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 07:09 AM Buczilla said this in Post #10
Oops... try this: (Remember, not user.php, but admin/user.php)!!!

In Line Find:

PHP Code:
".addslashes($aipaddress)." 
In line after add:

PHP Code:
',referrer='$referrer', 
That code section should look like this:

PHP Code:
".addslashes($aipaddress)."','$referrer', 

Sorry. I am confused.

..Should look like ... '".addslashes($aipaddress)."',referrer='$referrer' , ...

or like
','$emailonpm','".addslashes($aipaddress)."','$ref errer', ...

???

Anyway, in first case. I got no MySQL error. All seems OK. I selected an user as referrer in AdminCP but user is not marked as referrer in postbit (no text). I see nothing. Are you sure for $post[donation] in Postbit ? Why donation ?
Reply With Quote
  #13  
Old 07-30-2003, 07:57 PM
Buczilla Buczilla is offline
 
Join Date: Jun 2003
Location: St. Petersburg, FL
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$post[referrer]

is what it's supposed to be. Fixed in the zip.
Reply With Quote
  #14  
Old 07-30-2003, 11:59 PM
esfron esfron is offline
 
Join Date: Nov 2002
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's working now. Very nice hack. Clicked Install.

Thx. :glasses:
Reply With Quote
  #15  
Old 07-31-2003, 04:52 AM
Buczilla Buczilla is offline
 
Join Date: Jun 2003
Location: St. Petersburg, FL
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, all should work now... you were my lab rat

j/k
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 07:31 AM.


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.04483 seconds
  • Memory Usage 2,249KB
  • Queries Executed 21 (?)
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
  • (3)bbcode_php
  • (1)bbcode_quote
  • (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
  • (1)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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