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

DieselMinded 05-09-2008 02:27 AM

Working on 3.7.0 Gold

WhaLberg 05-11-2008 02:20 AM

The next release will be for vB 3.7 with the functionalities I promised.

Alfa1 05-11-2008 11:26 AM

Will you solve the problem with large table scans slowing larger forums down?

Boofo 05-11-2008 11:28 AM

Does this still add a query for every post on the page?

DieselMinded 11-22-2008 04:13 AM

This quit working in ver 3.7.4

Alfa1 12-25-2008 01:42 PM

Quote:

Originally Posted by WhaLberg (Post 1515503)
The next release will be for vB 3.7 with the functionalities I promised.

Quote:

Originally Posted by Alfa1 (Post 1515832)
Will you solve the problem with large table scans slowing larger forums down?

Will this be upgraded to vb 3.8?

Thanks.

Rickeo 02-04-2009 01:46 PM

Yea I really like this one hope it gets updated to 3.8

josefebus 06-20-2009 11:44 AM

I already install this in 3.8...thanks....


All times are GMT. The time now is 02:53 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.01183 seconds
  • Memory Usage 1,754KB
  • 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
  • (3)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
  • (18)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