Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Referrals in Postbit Details »»
Referrals in Postbit
Version: 1.00, by WhaLberg WhaLberg is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.5 Rating:
Released: 04-06-2007 Last Update: Never Installs: 111
 
No support by the author.

Dear vBulletin users,

Yesterday I saw a thread about "how to show referrals in postbit" and I decided to do a favour to those people who want that.

HOW TO INSTALL

1) Please upload the "plugin" first.

2) Go to your postbit or postbit_legacy template and find:
HTML Code:
$vbphrase[posts]: $post[posts]
Add after:
HTML Code:
<br />Referrals: $referrals
That's all!

Congratulations! You have it working!

Supporters / CoAuthors

Show Your Support

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

Comments
  #82  
Old 01-06-2008, 05:39 PM
zendiver zendiver is offline
 
Join Date: Sep 2004
Location: Houston, TX
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm a bit confused why this 'plug-in' is needed. Isn't this actually already part of vBulletin. Can't you just use the following without having to install another plug-in? Just make a new phrase variable as referrals and make it vBulletin Global.

Code:
<if condition="$vboptions['usereferrer']">$vbphrase[referrals]: <strong>$referrals</strong></if>
Well, I guess not, but I find this exact code in the MEMBERINFO template. Not sure why it will not work in the postbit(_legacy)

UPDATE: I found the plug-in already installed in vBulletin ("Number of Referrals") for the hook_location "usercp_complete". Took the exact information and duplicated for the hook_location "postbit_display_start" then everything is as it is suppose to be. Sorry for the rant and thread hi-jack.
Reply With Quote
  #83  
Old 01-09-2008, 09:39 AM
grant.hayman grant.hayman is offline
 
Join Date: Feb 2007
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Was wondering if it is possible to to show referrers from this month only...

I want to run a monthly competition for referrels and this would show users where they stand.

Is there somwhere i can edit the query?

Also I am looking for some type of leader board anyone know of any or where is best to start to create one. would love to add to this hack as it looks like this would help increase membership to any forum.

Thanks
Reply With Quote
  #84  
Old 01-09-2008, 01:28 PM
grant.hayman grant.hayman is offline
 
Join Date: Feb 2007
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Managed to sort out the this month bit...

altered the code to this: (hope this is ok to alter code, if not please remove this post and except my appologies :erm

Code:
$usersid = $this->post['userid'];
	$refcount = mysql_query("SELECT username FROM " . TABLE_PREFIX . "user WHERE referrerid='$usersid' AND MONTH(FROM_UNIXTIME(`joindate`))=MONTH(now())
 ");
	$referrals = mysql_num_rows($refcount);
Baisicly added the AND clause on the end and it seems to work great.

I was also wondering if I only want certain user groups for this to work on (usergroup of the poster not viewer) and I put an conditional statement in my posbit will the queries still run but wont show or do they not run at all.

Thanks again for a great hack
Reply With Quote
  #85  
Old 01-25-2008, 12:54 AM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337 View Post
Looking forward to this update. How is the progress coming?
Im Game
Reply With Quote
  #86  
Old 01-27-2008, 08:02 PM
WhaLberg's Avatar
WhaLberg WhaLberg is offline
 
Join Date: Nov 2006
Location: Dersaadet
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The new release is coming soon. I will update all of my released products together.
Reply With Quote
  #87  
Old 01-30-2008, 09:18 AM
Gharibe Gharibe is offline
 
Join Date: Oct 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks ,
it was what i requested

works fine
Reply With Quote
  #88  
Old 03-19-2008, 12:40 PM
CrashPush's Avatar
CrashPush CrashPush is offline
 
Join Date: Feb 2007
Location: New York
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack that works with 3.7.0 B5 just fine.
Reply With Quote
  #89  
Old 03-20-2008, 08:35 AM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this fix in vb 3.7 RC1 resolve the problem of this hack with large table scans:
http://www.vbulletin.com/forum/proje...?issueid=24856
It was causing my forum to drastically slow down.
Reply With Quote
  #90  
Old 04-25-2008, 09:21 PM
figu120 figu120 is offline
 
Join Date: Feb 2008
Location: medellin
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gracais lo ensayare a ver pues se ve algo interesante
Reply With Quote
  #91  
Old 04-25-2008, 10:07 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There has been numerous promises of updates and fixes and nothing seems to have happened so far. Are you even supporting this hack any more? Shouldn't make promises you don't intend to keep.
Reply With Quote
Reply

Thread Tools

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 05:56 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.07910 seconds
  • Memory Usage 2,298KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_html
  • (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
  • (3)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete