vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Recurring link at the bottom of the first post (https://vborg.vbsupport.ru/showthread.php?t=222287)

Sp32 09-01-2009 10:00 PM

Recurring link at the bottom of the first post
 
Pretty versatile mod

I made this mod for a referral site called removed and what it does is put a link saying:

"Whatever you want to link to here"

x = the thread title

obviously there are so many edits you can make to this for your needs



In a nut shell:

Puts a link at the bottom of the first thread in x forum/s to guests/members/both



Should work with all previous versions as well but untested







go to admincp - styles & templates - search in styles type:

Code:

                      $post[message]
click search

click postbit

find:

Code:

                      $post[message]
then enter this:

Code:

<if condition="$show['guest']">
(replace guest with member if you only want to show to members or delete this line to show to everyone)

Code:

<if condition="$forum[forumid] == x">
(replace x with the forum you want this link to appear in or delete this line to appear in every forum)

Code:

<center><a href="x"><b></b></a></center>
</if></if>

(replace my link with your referral link/whatever you want to link to)


Below:

Code:

$post[message]
Save!


You can use several variables in this mod too to grab other words such as thread title:

$post[title] <- put that where the red x is



https://vborg.vbsupport.ru/external/2009/09/79.jpg


All times are GMT. The time now is 01:06 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.01002 seconds
  • Memory Usage 1,712KB
  • 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
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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