vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Editing footer of home page only? (https://vborg.vbsupport.ru/showthread.php?t=279073)

Fergal C 02-23-2012 09:33 PM

Editing footer of home page only?
 
I want to add some text to the footer of my forum home page. The text should only appear on the home page, i.e. it should not appear on every page of the site.

How do I do that?

Thanks,

Fergal

kh99 02-23-2012 10:28 PM

You could edit the footer template and add your text inside a vb:if tag, like:

Code:

<vb:if condition="THIS_SCRIPT == 'index'">
This text only on forum home page
</vb:if>


Fergal C 02-24-2012 06:52 AM

Quote:

Originally Posted by kh99 (Post 2302809)
You could edit the footer template and add your text inside a vb:if tag, like:

Code:

<vb:if condition="THIS_SCRIPT == 'index'">
This text only on forum home page
</vb:if>


Thanks for your help kh99. For the "THIS_SCRIPT" part, do I write that exactly as it is, or do I need to replace the "THIS_SCRIPT" with something specific to my site?

kh99 02-24-2012 10:38 AM

Quote:

Originally Posted by Fergal C (Post 2302902)
Thanks for your help kh99. For the "THIS_SCRIPT" part, do I write that exactly as it is, or do I need to replace the "THIS_SCRIPT" with something specific to my site?

I think it should work exactly like it is.

Fergal C 02-26-2012 02:24 PM

Thanks very much kh99, that works perfectly.


All times are GMT. The time now is 05:31 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.01075 seconds
  • Memory Usage 1,718KB
  • 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
  • (2)bbcode_code_printable
  • (2)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