vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - UserCP Referral ID and Count (https://vborg.vbsupport.ru/showthread.php?t=202533)

Phaedrus 01-20-2009 10:00 PM

UserCP Referral ID and Count
 
1 Attachment(s)
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... :D)

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'.

Rene Kriest 01-21-2009 02:47 AM

Rocks! And even with a screenshot. ;)

This is way to go. Many ppl forget about the Why in their functions - why users should make use of it.

Edit: bring back the script! :)

Phaedrus 01-21-2009 02:50 AM

Quote:

Originally Posted by Rene Kriest (Post 1719687)
Rocks! And even with a screenshot. ;)

This is way to go. Many ppl forget about the Why in their functions - why users should make use of it.

Edit: bring back the script! :)

Thanks. That was one quick reply!

Rene Kriest 01-21-2009 02:54 AM

Quote:

Originally Posted by Phaedrus (Post 1719690)
Thanks. That was one quick reply!

I already enjoyed you mini-mod. Thanks for this script. I really appreciate it. :)

lazydesis 01-21-2009 04:48 AM

i got this error when trying to import the product

Code:

The following dependencies were not met:

  1. The product 74201 must be installed before this product may be installed. (Compatible starting with 3.6.0)

i am running vb 3.8

Mukashi 01-21-2009 05:01 AM

Got the same error sadly.

TandyServices 01-21-2009 06:02 AM

I have it too

buileminh 01-21-2009 06:32 AM

How can the user see who he has referred to the forums?

MandarS 01-21-2009 07:39 AM

Installed :)

Edit - Not working ! :( Getting same error.. 3.6!

R-D 01-21-2009 08:07 AM

Edit the xml and remove:

Code:

dependencytype="product" parentproductid="74201"

Then it works fine.


All times are GMT. The time now is 06:50 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.01112 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_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