vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Referrals in Postbit (https://vborg.vbsupport.ru/showthread.php?t=144222)

zendiver 01-06-2008 05:39 PM

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.

grant.hayman 01-09-2008 09:39 AM

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

grant.hayman 01-09-2008 01:28 PM

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

DieselMinded 01-25-2008 12:54 AM

Quote:

Originally Posted by hornstar1337 (Post 1413525)
Looking forward to this update. How is the progress coming?

Im Game

WhaLberg 01-27-2008 08:02 PM

The new release is coming soon. I will update all of my released products together.

Gharibe 01-30-2008 09:18 AM

Thanks ,
it was what i requested

works fine

CrashPush 03-19-2008 12:40 PM

Great hack that works with 3.7.0 B5 just fine.

Alfa1 03-20-2008 08:35 AM

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.

figu120 04-25-2008 09:21 PM

Gracais lo ensayare a ver pues se ve algo interesante

Boofo 04-25-2008 10:07 PM

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. ;)


All times are GMT. The time now is 11:03 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.01439 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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