PDA

View Full Version : Show Thread Enhancements - Affiliate links for each user on first post


cosy
27 Aug 2008, 16:33
i know that is not big deal but n00bs like me need some time to make this things

first u have to make a new plug-in to get user names
Hook Location: global_complete
Title: bla bla
Execution Order: 5
$output = str_replace('[123username321]', $vbulletin->userinfo['username'], $output);
this will replace [123username321] whit user names, u can put a random number just encase someone post that
this work on any version but 3.7.3 have ad_showthread_firstpost_sig and ad_showthread_firstpost_start
on this templates u add
[123username321] this thread: $thread[title] is sponsored by<a href="http://www.xnamex.com">xnamex</a>

if u just need clicks u can use this trick
[123username321] u can read more about $thread[title] <a href="http://www.site.com">here</a>
if want to display only to some user groups use this
<if condition=" is_member_of($bbuserinfo,array(6,5))">


u can see on the second foto it look very "natural"
http://www.vbulletin.org/forum/attachment.php?attachmentid=86114&stc=1&d=1219851057
http://www.vbulletin.org/forum/attachment.php?attachmentid=86115&stc=1&d=1219851057

R-D
27 Aug 2008, 20:31
The plugin is unnecessary, you can just use $bbuserinfo[username] instead of [123username321]. Or $bbuserinfo[musername] for the marked up username (the username with colours, etc. specified in the usergroup options in the ACP)

ZombieAndy
28 Aug 2008, 01:10
I Dont understand what this does..

cosy
28 Aug 2008, 02:39
The plugin is unnecessary, you can just use $bbuserinfo[username] instead of [123username321]. Or $bbuserinfo[musername] for the marked up username (the username with colours, etc. specified in the usergroup options in the ACP)
thx allot


I Dont understand what this does..
:( sry i cant explain this in a proper English

R-D
28 Aug 2008, 12:44
I Dont understand what this does..

In the ad locations specified above, it'll say either "YOURUSERNAME this thread: THREADTITLE is sponsored by so-and-so" or "YOURUSERNAME this thread: THREADTITLE is sponsored by so-and-so."

YOURUSERNAME changes to the username of whoever is viewing the post. Kinda like personalizing the ads for each user without actually having to personalize them for each user.