![]() |
Affiliate links for each user on first post
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 Code:
$output = str_replace('[123username321]', $vbulletin->userinfo['username'], $output); this work on any version but 3.7.3 have ad_showthread_firstpost_sig and ad_showthread_firstpost_start on this templates u add Code:
[123username321] this thread: $thread[title] is sponsored by<a href="http://www.xnamex.com">xnamex</a> Code:
[123username321] u can read more about $thread[title] <a href="http://www.site.com">here</a> Code:
<if condition=" is_member_of($bbuserinfo,array(6,5))"> u can see on the second foto it look very "natural" https://vborg.vbsupport.ru/attachmen...1&d=1219851057 https://vborg.vbsupport.ru/attachmen...1&d=1219851057 |
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)
|
I Dont understand what this does..
|
Quote:
Quote:
|
Quote:
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. |
All times are GMT. The time now is 09:54 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|