vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Adding Popup Code to Forum Template (https://vborg.vbsupport.ru/showthread.php?t=282928)

Mondi 05-15-2012 12:03 AM

Adding Popup Code to Forum Template
 
1 Attachment(s)
Hi all -

I am planning to add a popup email subscription form to my board and have found an application that helps me with this.

The application instructs me to use the code it generates as shown in the attachment:

I am now looking for the template(s) to which the two code blocks need to be added - could anyone give me advise on which one(s) please?

I am specifically referring to the code/instructions under Step 1,2 and 3, as shown in the attachment.

Thanks heaps for assistance in advance - look forward to receiving your response(s).

Mondi

kh99 05-16-2012 08:52 AM

Step 1 would go in the headinclude template. If the popup's only going to be on the forum home page, then you'd want an 'if' around it, like:

Code:

<vb:if condition="THIS_SCRIPT == 'index'">
// paste code here
</vb:if>


Steps 2 and 3, you should just be able to edit the FORUMHOME template and follow the instructions.


All times are GMT. The time now is 12:17 PM.

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.01505 seconds
  • Memory Usage 1,706KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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