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
  #2  
Old 08-20-2007, 08:44 PM
yahoooh yahoooh is offline
 
Join Date: Oct 2002
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any demo?
Reply With Quote
  #3  
Old 08-20-2007, 10:32 PM
asj's Avatar
asj asj is offline
 
Join Date: Jul 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

user just invited to join ?
Reply With Quote
  #4  
Old 08-20-2007, 11:39 PM
ElForro ElForro is offline
 
Join Date: Mar 2006
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks... I've asked for this a few days ago...

Here is one screenshot...



In english it would be something like:

"Spreading the Word... The user ‘TAtari’ just invited ‘Tb3o3’ to join yourforum! Invite your own friends!"
Reply With Quote
  #5  
Old 08-21-2007, 12:57 AM
sunilvarma's Avatar
sunilvarma sunilvarma is offline
 
Join Date: Sep 2005
Location: Gainesville, FL
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats more digg like! thanks for the screen.
Reply With Quote
  #6  
Old 08-21-2007, 07:29 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, this looks helpful to building your site members up more!
Reply With Quote
  #7  
Old 08-21-2007, 08:55 PM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Spreading the Word... 4x4 Mecca user just invited to join 4x4 Mecca Invite your own friends!

That's how mine reads... Any idea why it's not calling out the data?
Reply With Quote
  #8  
Old 08-21-2007, 09:48 PM
SCRIPT3R SCRIPT3R is offline
 
Join Date: Jan 2005
Posts: 1,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could you do the template addition via injection from the plugin; very nice.
Reply With Quote
  #9  
Old 08-22-2007, 12:27 AM
sunilvarma's Avatar
sunilvarma sunilvarma is offline
 
Join Date: Sep 2005
Location: Gainesville, FL
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 4x4 Mecca View Post
Spreading the Word... 4x4 Mecca user just invited to join 4x4 Mecca Invite your own friends!

That's how mine reads... Any idea why it's not calling out the data?
did you actually add the plugin?
Reply With Quote
  #10  
Old 08-22-2007, 02:00 PM
danward's Avatar
danward danward is offline
 
Join Date: Dec 2006
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 4x4 Mecca View Post
Spreading the Word... 4x4 Mecca user just invited to join 4x4 Mecca Invite your own friends!

That's how mine reads... Any idea why it's not calling out the data?
This may be because no one has yet referred a user to your site. Set up a test account and input a referrer and see if it works once this has been done!
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 12:38 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06395 seconds
  • Memory Usage 2,294KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (2)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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