PDA

View Full Version : Latest Referral On Forum Home (Digg Like)


sunilvarma
20 Aug 2007, 17:57
(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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



BELOW, ADD:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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
20 Aug 2007, 21:44
any demo?

asj
20 Aug 2007, 23:32
user just invited to join ? :(

ElForro
21 Aug 2007, 00:39
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
21 Aug 2007, 01:57
thats more digg like! thanks for the screen.

Hornstar
21 Aug 2007, 08:29
Thanks, this looks helpful to building your site members up more!

4x4 Mecca
21 Aug 2007, 21:55
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
21 Aug 2007, 22:48
could you do the template addition via injection from the plugin; very nice.

sunilvarma
22 Aug 2007, 01:27
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
22 Aug 2007, 15:00
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! ;)

sunilvarma
22 Aug 2007, 15:28
Thanks danward and 4x4 Mecca for the hint. I fixed the problem.

rayphua
22 Aug 2007, 16:25
Hi, how do i get the output to be in a box like how yours is like?

sunilvarma
22 Aug 2007, 17:55
Hi, how do i get the output to be in a box like how yours is like?

In template, FORUMHOME,

FIND:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



AFTER ADD:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Save the template and upload the attached image to your images/misc folder.

danward
23 Aug 2007, 10:40
Thanks danward and 4x4 Mecca for the hint. I fixed the problem.

No problem, glad to help! ;)

extreme101a
25 Aug 2007, 11:59
really want to use this mod. but i get this error



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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.

rayphua
25 Aug 2007, 12:33
In template, FORUMHOME,

FIND:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



AFTER ADD:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Save the template and upload the attached image to your images/misc folder.

Thank you!!!

rnadmo
02 Jan 2008, 00:00
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.

TCE Killa
02 Jan 2008, 00:15
Great mod, thanks.

ERAFOX
08 Oct 2008, 03:29
whit global star no problems

great mod !

Sadie Frost
09 Sep 2010, 20:54
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

:(