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-22-2007 02:28 PM

Thanks danward and 4x4 Mecca for the hint. I fixed the problem.

rayphua 08-22-2007 03:25 PM

Hi, how do i get the output to be in a box like how yours is like?

sunilvarma 08-22-2007 04:55 PM

Quote:

Originally Posted by rayphua (Post 1323228)
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.

danward 08-23-2007 09:40 AM

Quote:

Originally Posted by sunilvarma (Post 1323178)
Thanks danward and 4x4 Mecca for the hint. I fixed the problem.

No problem, glad to help! ;)

extreme101a 08-25-2007 10:59 AM

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.

rayphua 08-25-2007 11:33 AM

Quote:

Originally Posted by sunilvarma (Post 1323327)
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!!!

rnadmo 01-01-2008 11:00 PM

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 01-01-2008 11:15 PM

Great mod, thanks.

ERAFOX 10-08-2008 02:29 AM

whit global star no problems

great mod !

Sadie Frost 09-09-2010 07:54 PM

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

:(


All times are GMT. The time now is 08:38 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.01062 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_code_printable
  • (3)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