Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Latest Referral On Forum Home (Digg Like) Details »»
Latest Referral On Forum Home (Digg Like)
Version: 1.00, by sunilvarma sunilvarma is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.x Rating:
Released: 08-19-2007 Last Update: 08-21-2007 Installs: 32
Uses Plugins Template Edits
Re-useable Code Translations  
No support by the author.

(My First Add-on! )

This add-on displays the latest referral on the Forum Home below the navbar just like on Digg.

UPDATE

(I was so excited to release my first add-on that I didn't pay attention to some finer details!)

The latest referral will not be shown to Unregistered Users/Guests and Banned Users.

Fixed a bug. (If there are no referrals yet on your forum, there was some problem earlier.) (Thanks danward for the hint.)

Only the template edit is updated. Its not required to add the plugin again.

Installation Instructions

Download and extract the attached zip file.

Import the plugin_latestreferral.xml file as a plugin.

See the readme.txt file or the below section for instructions to edit the FORUMHOME template.

Template Edits

In the FORUMHOME template, FIND:
Code:
$navbar
BELOW, ADD:
Code:
<if condition="!is_member_of($bbuserinfo,1, 8) && $last_referrer[userid]">
<center>
$vboptions[bbtitle] user <a href="member.php?u=$last_referrer[userid]">$last_referrer[username]</a> just invited <a href="member.php?u=$last_referred_userid">$last_referred_username</a> to join $vboptions[bbtitle]
</center>
<br />
</if>
Uninstalling Instructions

1) In the ACP, in plugin manager, just uncheck the "Active" option against the "Latest Referral On Forum Home" and click on "Save Active Status"

2) Open the FORUMHOME template and remove the code you added earlier.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-22-2007, 02:28 PM
sunilvarma's Avatar
sunilvarma sunilvarma is offline
 
Join Date: Sep 2005
Location: Gainesville, FL
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks danward and 4x4 Mecca for the hint. I fixed the problem.
Reply With Quote
  #13  
Old 08-22-2007, 03:25 PM
rayphua rayphua is offline
 
Join Date: Jul 2007
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, how do i get the output to be in a box like how yours is like?
Reply With Quote
  #14  
Old 08-22-2007, 04:55 PM
sunilvarma's Avatar
sunilvarma sunilvarma is offline
 
Join Date: Sep 2005
Location: Gainesville, FL
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rayphua View Post
Hi, how do i get the output to be in a box like how yours is like?
In template, FORUMHOME,

FIND:
Code:
$navbar
AFTER ADD:
Code:
<if condition="!is_member_of($bbuserinfo,1, 8) && $last_referrer[userid]">
<table class="tborder" width="100%">
<tr>
<td width="3%" align="left"><img src="images/misc/latest-referral.png" /></td>
	<td align="left">$vboptions[bbtitle] user <a href="/forum/member.php?u=$last_referrer[userid]">$last_referrer[username]</a> just invited <a href="/forum/member.php?u=$last_referred_userid">$last_referred_username</a> to join $vboptions[bbtitle]!</td>
</tr>
</table>
<br />
</if>
Save the template and upload the attached image to your images/misc folder.
Reply With Quote
  #15  
Old 08-23-2007, 09:40 AM
danward's Avatar
danward danward is offline
 
Join Date: Dec 2006
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sunilvarma View Post
Thanks danward and 4x4 Mecca for the hint. I fixed the problem.
No problem, glad to help!
Reply With Quote
  #16  
Old 08-25-2007, 10:59 AM
extreme101a extreme101a is offline
 
Join Date: Mar 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

really want to use this mod. but i get this error

Code:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1243) : eval()'d code on line 5
it does work, but with the error up top of page.
uploaded the plugin, and put code it.

im on vb 3.6.7 PL1.
Reply With Quote
  #17  
Old 08-25-2007, 11:33 AM
rayphua rayphua is offline
 
Join Date: Jul 2007
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sunilvarma View Post
In template, FORUMHOME,

FIND:
Code:
$navbar
AFTER ADD:
Code:
<if condition="!is_member_of($bbuserinfo,1, 8) && $last_referrer[userid]">
<table class="tborder" width="100%">
<tr>
<td width="3%" align="left"><img src="images/misc/latest-referral.png" /></td>
	<td align="left">$vboptions[bbtitle] user <a href="/forum/member.php?u=$last_referrer[userid]">$last_referrer[username]</a> just invited <a href="/forum/member.php?u=$last_referred_userid">$last_referred_username</a> to join $vboptions[bbtitle]!</td>
</tr>
</table>
<br />
</if>
Save the template and upload the attached image to your images/misc folder.
Thank you!!!
Reply With Quote
  #18  
Old 01-01-2008, 11:00 PM
rnadmo rnadmo is offline
 
Join Date: Nov 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone got this working on 3.7.0b3?

Mine won't work..

It's the <if condition="!is_member_of($bbuserinfo,1, 8) && $last_referrer[userid]"> that it doesn't like.. where is that variable coming from? It's empty now.
Reply With Quote
  #19  
Old 01-01-2008, 11:15 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod, thanks.
Reply With Quote
  #20  
Old 10-08-2008, 02:29 AM
ERAFOX ERAFOX is offline
 
Join Date: Nov 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whit global star no problems

great mod !
Reply With Quote
  #21  
Old 09-09-2010, 07:54 PM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This worked fine on 3.8X until my host upgraded php and mysql, and now with it enabled I get this message:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/functions.php(1455) : eval()'d code on line 5

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:48 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.05225 seconds
  • Memory Usage 2,313KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete