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)

WhaLberg 04-06-2007 10:00 PM

Referrals in Postbit
 
Dear vBulletin users,

Yesterday I saw a thread about "how to show referrals in postbit" and I decided to do a favour to those people who want that.

HOW TO INSTALL

1) Please upload the "plugin" first.

2) Go to your postbit or postbit_legacy template and find:
HTML Code:

$vbphrase[posts]: $post[posts]
Add after:
HTML Code:

<br />Referrals: $referrals
That's all!

Congratulations! You have it working!


zhabbo 04-07-2007 11:57 AM

Thanks,

Floris 04-07-2007 09:12 PM

Nice, installed.
I changed <br> to <br /> though

bacanze 04-07-2007 09:53 PM

Cheers, might be useful.

Logikos 04-07-2007 11:39 PM

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

NaughtyStud 04-08-2007 12:32 AM

Nice plugin, Thanks. ;)

jerrygad 04-08-2007 05:28 AM

Yeah, nice plugin, indeed. Thanks for sharing it with us :D
*installed*

zınar 04-08-2007 05:41 AM

Nice plugin thanks whalberg,installed.

Jay... 04-08-2007 02:22 PM

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

Brandon Sheley 04-08-2007 02:53 PM

nice hack, I agree .. I would want the font a little smaller to match

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

WhaLberg 04-11-2007 11:46 AM

Quote:

Originally Posted by DiesellMinded (Post 1224535)
This has caused an uprise in referrals Members dont like seeing a Zero in there :)

Thanks Again

DM

So do you want me to change the code? I mean if they have zero referrals, it won't show up, but if they have at least 1, it will show up.

DieselMinded 04-11-2007 09:33 PM

Its showing up and it says Referrals - 0 I like it this way This is why the members are going to find referrals to get rid of the zero in there :)

www.dieselbombers.com

Thanks for the Hack Brother !

DM

DieselMinded 04-11-2007 09:34 PM

Quote:

Join Date: Mar 2007
Location: Northwest Arkansas
Posts: 227
Referrals: 0
Thanks: 31
Thanked 5 Times in 5 Posts
Heres An Example

WhaLberg 04-12-2007 01:18 PM

Quote:

Originally Posted by DiesellMinded (Post 1225368)
Its showing up and it says Referrals - 0 I like it this way This is why the members are going to find referrals to get rid of the zero in there :)

www.dieselbombers.com

Thanks for the Hack Brother !

DM

Ah, sorry I am the dumb, I got it now. :)

You are welcome.

If you have other genius ideas, let us know. :)

DieselMinded 04-13-2007 08:40 PM

This may be the most Productive hack ive installed

Thanks Again !

DM

WhiteEagle 04-13-2007 09:01 PM

Thanks for the plugin!
--> installed

DieselMinded 04-15-2007 06:18 PM

Found a Bud :

The Referrals show up Backwards on Private Messages

DM

Majest 05-05-2007 07:44 AM

Referrals don't seem to show up for me, I have followed the instructions but they still don't show up. :confused:

EDIT: I figured out the problem, learnt much about vBulletin coding since I originally made this post.

Great mod something that really should come standard in vBulletin.

*Clicks Install.

biggeorge 06-07-2007 10:02 PM

I cannot get this to work. Installed the plugin first and then modified the template. It shows up in the plugin list but nothing is displayed in the forum. I'm using 3.6.7. Any help would be appreciated.

kennethsia 06-08-2007 04:40 AM

works on my 3.6.5 thanks

biggeorge 06-08-2007 01:27 PM

Quote:

Originally Posted by biggeorge (Post 1263668)
I cannot get this to work. Installed the plugin first and then modified the template. It shows up in the plugin list but nothing is displayed in the forum. I'm using 3.6.7. Any help would be appreciated.

Got it working! I was placing the code in the legacy postbit template - foolish of me! Works great! Thank you. [clicks installed]

DieselMinded 06-27-2007 08:14 PM

This is great and was written for me ,

There is a bug that needs addressed when in Pm's the profile field is flip flopped it shows the person who pmed you has your exact amount of referrals and it shows him that you have his exact amount of referrals

Please look into this

Thanks

DM

WhaLberg 06-28-2007 07:26 AM

I will check this. ;)

AuroraStorm 07-08-2007 01:44 PM

This would be really +++++in if it could list the name of the referrer...my members get points for referrals and this would cut down on the bickering on who referred who...

DieselMinded 07-08-2007 03:02 PM

This Displays The Amount of Referrals on your posts , Theres another hack that adds a referrals page

SBlueman 07-08-2007 08:21 PM

I am getting this message:

This file appears to be a Plugin, not a Product. Please use the Plugin Manager to add this file.

How do I do this?

DieselMinded 07-08-2007 10:14 PM

Click plug in manager directly below product manager ,, then scroll down and click add new plug in

SBlueman 07-08-2007 10:39 PM

Yeah then when I get there it is asking me to enter some information....I don't know what to enter:

https://vborg.vbsupport.ru/

SBlueman 07-11-2007 01:32 AM

Anyone? Help!

Censtudios 07-18-2007 06:29 AM

Quote:

Originally Posted by Floris (Post 1222219)
Nice, installed.
I changed <br> to <br /> though

why <br />

??? whats the difference


All times are GMT. The time now is 05:10 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.01523 seconds
  • Memory Usage 1,818KB
  • 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
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (12)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
  • (40)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