![]() |
Referrals In Postbit
Number Of Referrals In Postbit Description::.Version 1.1.0 This hack shows in postbit Number Of Referrals[Requested By cmiller1014 ]Hack Features::. 1-easy yo install Installation::. 1-Import The product.History::. 1.0.0 On 21. Feb 2006 Initial Version.Hack Languages::. Details::. 2 plugins, 3 phrases, 0 option, 0 query Donation::. Feel Free To https://vborg.vbsupport.ru/external/2010/09/1.gifaT lAsT::. IF YOu lIkE iT cLIcK INSTALL[/B] Support Given For Who Clicked Install {ONLY} |
Hi m8
Me again, tis sommat about your hacks :) Anyway just installed this (im gonna have to stop this soon lol) and i can see the number of refferrals but not the phrase... I only see e.g. :4 I have edited both templates and imported the plugin :) Sorry m8 lol.... |
same thing is happening to me. ON people who have no referrals its blank, no number, and all we see is :
|
Quote:
|
Quote:
what do you mean? where to add and how? I have teh same problem |
I am getting this problem:
Quote:
|
Quote:
|
Here is the fix...
In postbit template Find: Code:
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if> Code:
<if condition="$vboptions['usereferrer']"> Find: Code:
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if> Code:
<if condition="$vboptions['usereferrer']"> |
Cheers m8 working fine now!!
|
That looks cool! Nice to have :) Nice postbit too btw ;)
|
could someone tell me how to fix this error, i get many of these emailed to me:
Database error in vBulletin 3.5.2: Invalid SQL: SELECT COUNT(*) AS count FROM user WHERE referrerid =; MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Error Number : 1064 Date : Tuesday, February 21st 2006 @ 09:50:38 PM Script : http://***/showthread.php?p=6720 Referrer : IP Address : 65.54.111.69 Username : Unregistered Classname : vb_database |
Doesn't this add one query to EACH post? :confused:
|
Just thought i would let the developer know that when I applied the plugin and edited the templates that it was calling for the referrals vbphrase when in my 3.5.4 forum the phrase was referrers..
Don't know if it was due some change I did but putting it out there anyway. |
I am having this same issue, The cause is from the post being by a guest or user 0. Since I have some USENET posts these have no userid and the plugin crashes the thread.
Any idea if we can get an update that eliminates the referall call on guest posts? Thanks! -Jason |
i'll update this hack soon
|
Thanks! It is a great hack!!
|
Any luck?
|
Ok, had some other folks here help me on this and here is the patch:
Go into your Admincp, plugins and edit the plugin: Number Of Referrals in postbit-by Developer Replace this: Code:
if ($vbulletin->options['usereferrer']) Code:
if ($this->post['userid']) (Thanks to tnguy3n, Hambil, gio~logist and Zachery!) |
Still, a problem with this hack is it runs an addtional query for each post.
It would much better to do an update for each user and log their total user referals. Then log new referals from then on out. |
Fixing It now i'll add a plugin in update counters so you have to run something after installing the hack so it counts referrals and then insert it in a field in user's table using datamanger.
|
Version 1.1.0 Released fixs all bugs, added a new field in user table to add in it the total number of referrals to avoid using query for each post and you have first to uninstall the old plugin then install the new product and make sure overwrite set on no, after this u've to run this script admincp/misc.php?do=referrals to insert number of referrals into the new field, then do the new template edit
|
Will you have to always manually update the referrals in the Admin CP or just the first time?
|
Nop, first time only
after that automatically in registration using datamanger it will add + 1 to the field in user's table.(look at the product) |
Great! I'll give it a shot then. ;)
|
Quote:
Or am I missing it altogether about that query and what it does? |
You could run it again, noting bad should happen. It basicly rebuilds the entire count and sets it even.
|
Quote:
|
Installed!
Working Properly :) |
Quote:
|
works awesome, thanks!
/me clicks install |
This does not work in combo with Allow users to delete their account
Show referal count in postbit. Code:
Database error in vBulletin 3.5.4: |
anyone?
|
Make sure you are running the latest version.
|
Quote:
I only get this error if a member has deleted their account and had a post in the thread im trying to look @. |
But the latest version doesn't query the database.
|
Works like a charm, thank you.
|
thanks.. real nice code
|
does this one work in 3.6.x?
|
Working fine in our testforum after the upgrade from 3.6.0 to 3.6.4
|
thanks acco!
|
All times are GMT. The time now is 10:33 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|