Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Affiliate links for each user on first post Details »»
Affiliate links for each user on first post
Version: 0.01, by cosy cosy is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.x Rating:
Released: 08-26-2008 Last Update: Never Installs: 3
Uses Plugins Template Edits
Re-useable Code Is in Beta Stage  
No support by the author.

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 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
Code:
[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
Code:
[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
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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-27-2008, 06:31 PM
R-D's Avatar
R-D R-D is offline
 
Join Date: Jan 2008
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #3  
Old 08-27-2008, 11:10 PM
ZombieAndy's Avatar
ZombieAndy ZombieAndy is offline
 
Join Date: Oct 2004
Location: UK
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I Dont understand what this does..
Reply With Quote
  #4  
Old 08-28-2008, 12:39 AM
cosy cosy is offline
 
Join Date: Jul 2007
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by R-D View Post
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


Quote:
Originally Posted by ZombieAndy View Post
I Dont understand what this does..
sry i cant explain this in a proper English
Reply With Quote
  #5  
Old 08-28-2008, 10:44 AM
R-D's Avatar
R-D R-D is offline
 
Join Date: Jan 2008
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ZombieAndy View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03828 seconds
  • Memory Usage 2,241KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete