Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
UserCP Referral ID and Count Details »»
UserCP Referral ID and Count
Version: 1.0.3, by Phaedrus Phaedrus is offline
Developer Last Online: Nov 2021 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 01-20-2009 Last Update: 03-27-2009 Installs: 307
Auto-Templates
Re-useable Code Translations  
No support by the author.

While supporting my mini-mod I came across a more in depth version of what I was trying to do. Once I saw it I had to add it to my site. Since I couldn't find it here, I created something of my own.

This hack will add a collapsible box in your UserCP with a message informing the user what the referral ID is, what it is for, and how to use it. The message can be, of course, rewritten in your phrases to fit your own site and users.

To install, simply install the product below in Manage Products, then of course you should click installed. :up:

Update: Sorry, re-uploaded the xml. I had set the wrong product dependency on the xml. I have removed it. It works again.

(first Code jitters I guess... )

Version 1.0.2:
Added a bit of code so that it will remember if you collapse it, or expand it and keep that formation so that you don't have to collapse it each time you go into the UserCP.

Version 1.0.3:
Corrected the query string so that it would not count users that had not been verified or passed through moderation. (user group 3 and 4 are not included in the referral counts now).

re-uploaded 1.0.3, minor change on version listed in the mod.

To upgrade install normally, set "Allow Overwrite" to 'yes'.

Download Now

File Type: xml product-usercpreferralid_103_38x.xml (3.9 KB, 1220 views)

Screenshots

File Type: jpg RefID101.jpg (85.9 KB, 0 views)

Show Your Support

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

Comments
  #72  
Old 11-05-2009, 02:02 PM
realdx realdx is offline
 
Join Date: Mar 2009
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will this work with vbadvanced? the original vb index.php has been replaced by the vbavanced one and renamed to indexb.php.. thanks!
Reply With Quote
  #73  
Old 11-08-2009, 09:17 PM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by realdx View Post
will this work with vbadvanced? the original vb index.php has been replaced by the vbavanced one and renamed to indexb.php.. thanks!
I actually don't know if it would work because the link is the one generated by bvulletin... I can't see why it wouldn't.


I think it would depend on what the url for your home page is. It uses the link generated by vbulletin that points them to index.php...

In you user_cp templates it creates a new template, in that template you would need to find the line below...

Code:
6="$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]" >$vbphrase[refid_usercp]
And change the "index.php" portion to refer to your index.
Reply With Quote
  #74  
Old 11-08-2009, 09:17 PM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by maXmood View Post
Bump!

anyone ????
You would edit it in phrases.

Edit this phrase: refid_usercp
Reply With Quote
  #75  
Old 11-08-2009, 09:18 PM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dd365media View Post
I get this message, when trying to install is.

XML Error: syntax error at Line 1
What version are you trying to install it on?
Reply With Quote
  #76  
Old 11-08-2009, 09:20 PM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kjsmith84 View Post
i have vbadvanced and it is linking to my forums page- is there a way to link it to my homepage?
I think it would depend on what the url for your home page is. It uses the link generated by vbulletin that points them to index.php...

In you user_cp templates it creates a new template, in that template you would need to find the line below...

Code:
6="$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]" >$vbphrase[refid_usercp]
And change the "index.php" portion to refer to your index.
Reply With Quote
  #77  
Old 11-09-2009, 09:36 AM
realdx realdx is offline
 
Join Date: Mar 2009
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Phaedrus View Post
I actually don't know if it would work because the link is the one generated by bvulletin... I can't see why it wouldn't.


I think it would depend on what the url for your home page is. It uses the link generated by vbulletin that points them to index.php...

In you user_cp templates it creates a new template, in that template you would need to find the line below...

Code:
6="$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]" >$vbphrase[refid_usercp]
And change the "index.php" portion to refer to your index.
done! and thanks for the hint! now the referal system is pointing to indexb.htm, that is the original vbulletin index file, thus jumping all the vbadvanced portal, but who cares, is just for the registration... thanks!
Reply With Quote
  #78  
Old 11-09-2009, 10:54 AM
P?ŋĭsЋ?я's Avatar
P?ŋĭsЋ?я P?ŋĭsЋ?я is offline
 
Join Date: Mar 2009
Location: Trabzon
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very nice
Reply With Quote
  #79  
Old 11-23-2009, 08:07 PM
Alirezatr Alirezatr is offline
 
Join Date: Apr 2009
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This plugin is awesome.. thanks for your work..
Reply With Quote
  #80  
Old 12-24-2009, 08:59 PM
Bouncer222 Bouncer222 is offline
 
Join Date: Oct 2009
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would this work for vb4? if not, is this going to be upgraded anytime soon please?
Reply With Quote
  #81  
Old 01-16-2010, 09:24 PM
Bouncer222 Bouncer222 is offline
 
Join Date: Oct 2009
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is anyone going to upgrade this????

I NEED it for vb4 please!
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 01:07 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.14310 seconds
  • Memory Usage 2,339KB
  • Queries Executed 26 (?)
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_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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
  • (2)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete