vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Referrals in Postbit (https://vborg.vbsupport.ru/showthread.php?t=53146)

Corleone 05-20-2003 06:38 PM

It worked! Thanks a lot. Your help on this has been greatly appreciated.

Talisman 05-20-2003 06:57 PM

It's fixed. Yay!! :banana:

partang2 05-20-2003 07:54 PM

Thanks m8!

*Clicks Install*

Talisman 05-21-2003 05:33 AM

I made a change to ours that someone else might like. For anyone using vbStats (or another hack like it) that shows your top referrers on a page, you could make this part in your postbit.... clickable.

That lets your members go check who all those people are that someone referred.

In the postbit template, instead of using "Referred: $post[ referredcount] users" ..... you would use:

Referred: <a href="/forum/vbstats.php?action=memberrefer" target="_blank">$post[ referredcount] users</a>

(Guess I'll also attach a screenshot to show how it looks on our posts.)

Cheers all,

Talis.

PS ~ We're using "member(s)" instead of "users."

PPS ~ Hellsatan is just kidding us about the <br /> :cross-eyed:

Chris M 05-21-2003 09:04 AM

No I am not:)

<br /> is what it should be;)

<br /> is what vBulletin should make vB3 templates...

<br /> is XHTML compliant...

Satan

Talisman 05-21-2003 09:08 AM

Hehehe.

(Men are so easy.)

:p

Alien 05-21-2003 07:07 PM

:)

So this adds 1 query to each postbit page?

Erwin 05-22-2003 06:45 AM

Wouldn't this add one query for EACH post in showthread? So if you have 20 posts, that is an additional 20 queries in showthread on top of whatever you have already? Plus since you are doing a count, this will slow down the loading of showthread. Not that there is any way around this without adding another column to store the number. But good work in making it work. Not sure if this can be optimized without adding another column to the user table.

Boofo 05-22-2003 07:23 AM

I thought it only added 2 queries to the showthread. ;)

Talisman 05-22-2003 07:54 AM

Well, I wondered about that, too. So I disabled it by commenting out that line in the postbit and there was no difference. Same number of queries on the page (showing 5 posts) as when it was active.

That doesn't seem right though .... the queries don't run if the variable is commented out, do they?

Anyway, with everything else I've got going already, I figure my site's gonna blow up sometime next week ..... either way. :p


All times are GMT. The time now is 07:12 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.01187 seconds
  • Memory Usage 1,729KB
  • 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
  • (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