vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Show Thread Enhancements - Affiliate links for each user on first post (https://vborg.vbsupport.ru/showthread.php?t=189274)

cosy 08-26-2008 10:00 PM

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 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

R-D 08-27-2008 06:31 PM

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 08-27-2008 11:10 PM

I Dont understand what this does..

cosy 08-28-2008 12:39 AM

Quote:

Originally Posted by R-D (Post 1608392)
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 (Post 1608570)
I Dont understand what this does..

:( sry i cant explain this in a proper English

R-D 08-28-2008 10:44 AM

Quote:

Originally Posted by ZombieAndy (Post 1608570)
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.


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
  • Page Generation 0.01146 seconds
  • Memory Usage 1,724KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete