vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Referral Statistics (https://vborg.vbsupport.ru/showthread.php?t=64469)

gspot 04-27-2004 10:00 PM

Referral Statistics
 
Are you looking for statistics on the number of referrals your members have made? Or are interested in promoting your website by allowing members to engage in a referral competition?


THIS HACK IS FOR YOU
To show referral statistics from members and to manage referral competitions.
- this hack is to help you manage your forums referrals
- promote new user registrations
- perfect for contests/promotional giveaways or incentives for referrals
- INSTALL today and start managing your boards referrals.

Features:

- Limit the number of results shown
- Admin ability to reset all members referrals to zero
- Admin ability to reset "specific members" referrals to zero
- Includes an update to your whois online
- Up-to-date listing on when you last reset all members referrals to zero
*** Seen in the admincp and an option for all members to view
- Total number of referrals since last reset
*** viewable in admincp and again an option for all members to view
- Pagination is now included and an option for another at bottom of results
- Shows up-to-date total number of board referrals
- Shows leading referrer in admincp
- Ability to limit referral results by number of posts or a usergroupid(s)
- Configuration is now done in admincp
- Auto installer now included w/ auto un-installer
- BEST OF ALL (LETS MEMBERS REFER MORE PEOPLE TO YOUR SITE. :)

I will like always SUPPORT my hacks

Thanks goes out to: unixman - for all the referred members are now clickable to their profile.

Total install time: less than 3 minutes.
New templates: 2 - refer, referbit
New files to upload: 2 pages
Edit templates: 2 - footer, /includes/functions_online.php
File edit: 1 - /admincp/index.php


** 4/17/05 - Version 2.3 Released = Includes many new one click options in the admincp, also auto configures your vbulletin path (which many people were having errors performing) **

FrOgZ 04-28-2004 01:31 AM

Sounds cool ty! You should put it all into one big zip file to make it easier to dl.

Anyhow, cool stuff!

insanctus 04-28-2004 01:38 AM

Perhaps a screan shot? but does sound cool.

???`S?LV?R???` 04-28-2004 01:45 AM

yeah, i wanna see a screen shot first too before i install. :)

???`S?LV?R???` 04-28-2004 02:32 AM

nice screen, I think i'll use this.

gspot 04-28-2004 02:39 AM

Quote:

Originally Posted by ???`S?LV?R???`
nice screen, I think i'll use this.

Remember: Please click install

Wifey 04-28-2004 03:04 AM

Hey gspot, I can't seem to find the showgallery part of that function :) I have just plain gallery, does that work?


Also, where do you upload the new php file to? You didn't specify where to save it in the database.

edit: Okay, so you just upload it to your main forum. You should add thatto the instructions since it isn't there.

Also, so this start counting from referrals AFTER I install? I have a bunch of referrals and nobody is showing up as having any. I'd like to get it to count from previous referrals.

Yeah, so I just made a new account and used myself as a referral to test it - it's not working. I have the follow e-mail link disabled for my board...

gspot 04-28-2004 04:17 AM

Quote:

Originally Posted by ashkarita
Hey gspot, I can't seem to find the showgallery part of that function :) I have just plain gallery, does that work?


Also, where do you upload the new php file to? You didn't specify where to save it in the database.

edit: Okay, so you just upload it to your main forum. You should add thatto the instructions since it isn't there.

Also, so this start counting from referrals AFTER I install? I have a bunch of referrals and nobody is showing up as having any. I'd like to get it to count from previous referrals.

Yeah, so I just made a new account and used myself as a referral to test it - it's not working. I have the follow e-mail link disabled for my board...

ashkarita - sorry about that, I have re-edited the instructions for the readme.txt

Also, are you using a special usergroup?? Other than registered as the default usergroup??
If so, you will have to change the number in the referals.php for user.usergroupid to whatever the correct number is for your usergroup. If you have any problems, please let me know. I will help you...

???`S?LV?R???` 04-28-2004 04:35 AM

this hack's instruction's wasn't written right :-\

gspot 04-28-2004 04:36 AM

Quote:

Originally Posted by ???`S?LV?R???`
this hack's instruction's wasn't written right :-\

Did you re-download the zip??? Please do that now... Sorry (:

???`S?LV?R???` 04-28-2004 04:41 AM

This hack was a good idea, but was poorly written. It should of went beta first

gspot 04-28-2004 04:44 AM

Quote:

Originally Posted by ???`S?LV?R???`
This hack was a good idea, but was poorly written. It should of went beta first

Like I stated it is my first hack, so if you would like to help out in modifying it in anyway, please do so, I would like to see people even help add-on more options for this hack. It is just a good start.

msimplay 04-28-2004 04:25 PM

i'd like it if all usergroups are counted for referals
if thats possible

ps would it be possible to display all users via pagination
instead of user limit

Wifey 04-28-2004 06:17 PM

Okay, yes I am using different usergroups. I had admin, moderator, supermoderator, registered students and then 4 others. I'm not sure how I change that in the php file. I would love it if you could help me out with that when you get a chance, but I know you're busy so take your time!

edit: I need it to work for all of my usergroups - how can Ido that? Also, I tried switching it to my usergroup and when I opened that page all there was was a 1 in the middle column - nothing else.

msimplay 04-28-2004 06:41 PM

you will have 2 uncached templates unless you put this code in your referals.php

find

PHP Code:

 //Your full path to vbulletin forum 

and place underneath

PHP Code:

 $globaltemplates = array(
 
'reflist',
 
'GENERIC_SHELL'
 
); 

save and upload

joeychgo 04-28-2004 07:04 PM

can this hack be set so that "successful registrations" could be changed to another dynamic?

Example..... If a user on my site makes 5 posts, he is upgraded to "full member" --- I woulld like to run a contest for those who refer the most users that become upgraded to FULL member status --- not just register.

BigJohnson 04-28-2004 08:01 PM

Quote:

Originally Posted by joeychgo
can this hack be set so that "successful registrations" could be changed to another dynamic?

Example..... If a user on my site makes 5 posts, he is upgraded to "full member" --- I woulld like to run a contest for those who refer the most users that become upgraded to FULL member status --- not just register.

ya same here. i have something that works this way and would like this idea better.

gspot 04-28-2004 08:28 PM

Quote:

Originally Posted by BigJohnson
ya same here. i have something that works this way and would like this idea better.

Yes, I can look into this for you... But it shouldn't be to hard to add that to this hack.

gspot 04-28-2004 08:33 PM

Everyone please redownload the zip file... New changes have been made.

Wifey 04-28-2004 08:34 PM

I've done everything - even added that new code, and this is what I'm getting

http://www.degrassi-boards.com/referals.php

Any idea? I want it to count the referrals of 8 different usergroups, but I don't know how to add more usergroups.

Is the reason this isn't working because I have the e-mail user and have them click back to the boards disabled?

gspot 04-28-2004 10:23 PM

Quote:

Originally Posted by ashkarita
I've done everything - even added that new code, and this is what I'm getting

http://www.degrassi-boards.com/referals.php

Any idea? I want it to count the referrals of 8 different usergroups, but I don't know how to add more usergroups.

Is the reason this isn't working because I have the e-mail user and have them click back to the boards disabled?

Ashkarita,

Please upload the new templates that are in the zip and the new referals.php page in the zip. This will show all your referrals.. If you have any questions, i will email you my aim.. Just re-follow all the instructions in the new zip that I have uploaded to this thread.

Wifey 04-28-2004 10:40 PM

It's working perfectly now! Thank you so much! GREAT HACK!

edit: I take that back - I'm getting this above my top banner

Warning: chdir(): No such file or directory (errno 2) in /home/degrassi/public_html/referals.php on line 28

Everything else is working.

gspot 04-28-2004 10:49 PM

Quote:

Originally Posted by ashkarita
It's working perfectly now! Thank you so much! GREAT HACK!

edit: I take that back - I'm getting this above my top banner

Warning: chdir(): No such file or directory (errno 2) in /home/degrassi/public_html/referals.php on line 28


Everything else is working.

try blocking out the chdir part of the script example:
// chdir ('/path/to/vbulletin/forums/');

Since your root directory is already the forum...
just add the 2 back slashes in front of the chdir

msimplay 04-28-2004 10:52 PM

is there anyway to make the referal stats users limitless ie not ten not a number but limitless
and then add pagination on the user names and reduce the names in the members refered to click here to see members refered by this user
and add pagination to that aswell
it would be a much better hack this way

gspot 04-28-2004 10:53 PM

Quote:

Originally Posted by gspot
try blocking out the chdir part of the script example:
// chdir ('/path/to/vbulletin/forums/');

Since your root directory is already the forum...
just add the 2 back slashes in front of the chdir

Also, are you sure that is the right path to where the file resides on your server???
/home/degrassi/public_html/referals.php

But my first suggestion should help u... :)

gspot 04-28-2004 10:55 PM

msimplay,

Yes, take out the $max in the first database query in referals.php file.. then comment out the $max=number line and there will be no limit for the results... Let me look into the pagination thing.

ryancooper 04-28-2004 11:10 PM

installed and working perfectly! Thanks

msimplay 04-28-2004 11:15 PM

Quote:

Originally Posted by gspot
msimplay,

Yes, take out the $max in the first database query in referals.php file.. then comment out the $max=number line and there will be no limit for the results... Let me look into the pagination thing.

thanks :)
with those mods i'll be able to hold a referal competition

Wifey 04-28-2004 11:33 PM

gspot - that fixed it - the //

And yes, that is where all the information is on my server. I use f5hosting and I can edit my files in my server database as opposed to having to reupload things everytime.

Thanks again!

gspot 04-28-2004 11:51 PM

I'm glad everyone likes it... Had a few minor errors, but seems that all is fixed.. :)

minerva1 04-29-2004 04:35 AM

Quote:

Originally Posted by joeychgo
can this hack be set so that "successful registrations" could be changed to another dynamic?

Example..... If a user on my site makes 5 posts, he is upgraded to "full member" --- I woulld like to run a contest for those who refer the most users that become upgraded to FULL member status --- not just register.


This would be awesome!

joeychgo 04-29-2004 10:29 AM

Quote:

Originally Posted by joeychgo
can this hack be set so that "successful registrations" could be changed to another dynamic?

Example..... If a user on my site makes 5 posts, he is upgraded to "full member" --- I woulld like to run a contest for those who refer the most users that become upgraded to FULL member status --- not just register.


Has this been incorporated in the new zip?

gspot 04-29-2004 03:08 PM

Quote:

Originally Posted by joeychgo
Has this been incorporated in the new zip?

I almost have this feature working.. What it will do is allow you to select how many posts the member needs to have if any, how many referrals the member needs to have if any, and what usergroup you want them updated to upon receiving the requirements... I'm still testing this script and everything is working... I just need to add one last thing.. Hopefully have this completed by the end of the week.. I will keep all of you updated.

msimplay 04-29-2004 03:11 PM

Quote:

Originally Posted by gspot
I almost have this feature working.. What it will do is allow you to select how many posts the member needs to have if any, how many referrals the member needs to have if any, and what usergroup you want them updated to upon receiving the requirements... I'm still testing this script and everything is working... I just need to add one last thing.. Hopefully have this completed by the end of the week.. I will keep all of you updated.

thank you

gspot 04-30-2004 02:46 AM

I don't know if this was exactly what everyone was looking for, but please feel free to try it as well as add some more features to it if you wish. This script will be hidden to everyone once installed, and will be ran everytime someone views your homepage of the forum, thus leaving your users usergroup status up-to-date.

This script is a completely different hack in addition to the one here I previously released. It has it's own installation/readme.txt file ect. It has limiting conditionals including number of referrals, number of posts on the forum. More can be added pending on a persons needs. I have tested it many times on my own forum and it works GREAT.

TWO INSTALLATION METHODS AVAILABLE:
1) require_once('promo.php'); in your forums index.php
2) Set-up a scheduled task cron

** Both installation instructions are in the zip in the same file readme.txt **

ENJOY, PLEASE LEAVE SOME FEEDBACK. :rolleyes:

gmarik 04-30-2004 03:45 PM

nice and easy one

Fluous 05-01-2004 03:11 AM

GSpot = nice person. I asked him for a hack, and he did it for free. Well somewhat, I asked him for a modification to this hack, and he did it. Very trustworthy, and very fast. He wasn't a problem at all, and didn't get mad at me when I asked him to go the extra mile. Great person, I suggest him for your next one. :)

Lee Wilde 05-08-2004 07:39 AM

Thank you very much. My site is still under construction and I am new to vbulletin, but I was able to get this hack up and running within minutes, as promised. Very much appreciated.

gspot 05-08-2004 02:51 PM

Quote:

Originally Posted by Lee Wilde
Thank you very much. My site is still under construction and I am new to vbulletin, but I was able to get this hack up and running within minutes, as promised. Very much appreciated.

Remember to click install :)

lifesourcerec 05-10-2004 12:23 AM

I got 5 uncached templates (2 from the referals hack). even after adding
PHP Code:

$globaltemplates = array(
'reflist',
'GENERIC_SHELL'
); 



All times are GMT. The time now is 04:52 PM.

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.01801 seconds
  • Memory Usage 1,840KB
  • 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
  • (3)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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