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)

Surviver 04-08-2007 03:08 PM

This Hack adds 1 Query to echt post in showthread.php. That isnÄt good for the performace (You can get problems if your Server is slow).

WhaLberg 04-08-2007 07:36 PM

Quote:

Originally Posted by Jay... (Post 1222674)
is there anyway to get the font of 'Referrals' in the postbit the same as the rest of the items in the postbit?

have a look at where it says referrals, you'll see what i mean

http://www.donkproject.net/forum/showthread.php?t=399

Quote:

Originally Posted by Loco.M (Post 1222686)
nice hack, I agree .. I would want the font a little smaller to match

Change that
HTML Code:

<br />Referrals: $refferals
to:
HTML Code:

<br /><div class="smallfont">Referrals: $referrals</div>
This should work.

Quote:

Originally Posted by Surviver (Post 1222697)
This Hack adds 1 Query to echt post in showthread.php. That isn?t good for the performace (You can get problems if your Server is slow).

A suggestion would be better.

Quote:

Originally Posted by Ken Iovino (Post 1222334)
I would suggest using vBulletins database class to do this.

PHP Code:

$refcount $db->query_first_slave("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "user WHERE referrerid = $this->post[userid]");
$referrals vb_number_format($refcount['count']); 



Would be more efficient. :)

I used that before but there were some errors so I changed it. Thanks for the information.

Zerovb 04-09-2007 03:30 AM

Thnaks Good Idea

But I Cant Find The Code In Postbit_Legacy

I Only Found It In Postbit

Logikos 04-09-2007 04:51 AM

Quote:

Originally Posted by whalberg (Post 1222833)
I used that before but there were some errors so I changed it. Thanks for the information.

What were the errors? That code is also used in the default member.php file, so I don't see how there could have been errors.

WhaLberg 04-09-2007 10:52 AM

Quote:

Originally Posted by Ken Iovino (Post 1223084)
What were the errors? That code is also used in the default member.php file, so I don't see how there could have been errors.

Yes, I know, that's why I tried it first. :)

It was about the variable. I'll check it later again.

ChinniePaws 04-09-2007 03:12 PM

*Installs*
Thanks - so far so good ;)

DieselMinded 04-09-2007 10:05 PM

Thanks Worked Great !

DM

krazycivik 04-10-2007 04:32 PM

it comes up but i dont see the number of refferals :S

WhaLberg 04-10-2007 07:12 PM

Quote:

Originally Posted by krazycivik (Post 1224288)
it comes up but i dont see the number of refferals :S

How come?

It works great for everyone?

DieselMinded 04-10-2007 10:58 PM

This has caused an uprise in referrals Members dont like seeing a Zero in there :)

Thanks Again

DM


All times are GMT. The time now is 03:03 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.01034 seconds
  • Memory Usage 1,740KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (7)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