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)
-   -   Forum Home Enhancements - Latest Referral On Forum Home (Digg Like) (https://vborg.vbsupport.ru/showthread.php?t=155769)

sunilvarma 08-19-2007 10:00 PM

Latest Referral On Forum Home (Digg Like)
 
(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.

yahoooh 08-20-2007 08:44 PM

any demo?

asj 08-20-2007 10:32 PM

user just invited to join ? :(

ElForro 08-20-2007 11:39 PM

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

Here is one screenshot...

http://img248.imageshack.us/img248/2294/imagen1hk1.jpg

In english it would be something like:

"Spreading the Word... The user ‘TAtari’ just invited ‘Tb3o3’ to join yourforum! Invite your own friends!"

sunilvarma 08-21-2007 12:57 AM

thats more digg like! thanks for the screen.

Hornstar 08-21-2007 07:29 AM

Thanks, this looks helpful to building your site members up more!

4x4 Mecca 08-21-2007 08:55 PM

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?

SCRIPT3R 08-21-2007 09:48 PM

could you do the template addition via injection from the plugin; very nice.

sunilvarma 08-22-2007 12:27 AM

Quote:

Originally Posted by 4x4 Mecca (Post 1322640)
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?

danward 08-22-2007 02:00 PM

Quote:

Originally Posted by 4x4 Mecca (Post 1322640)
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! ;)


All times are GMT. The time now is 05:18 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.00992 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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