vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Popup on cms homepage only (https://vborg.vbsupport.ru/showthread.php?t=264798)

davidallsop 06-06-2011 03:14 PM

Yes it is, but the headinclude edited is for that style.

So it's not picking up that it's the CMS page.

Lynne 06-06-2011 03:22 PM

Can we get a link to the site?

davidallsop 06-06-2011 03:47 PM

Sorry as mentioned this is only on a dev server locally at the moment.

I'm pretty sure vbcms (e.g. content.php) doesn't include the code added to the header.

Is THIS_SCRIPT == 'vbcms' correct?

kh99 06-06-2011 05:18 PM

In the ACP under Settings -> Options -> General Settings there's "Add Template Name in HTML Comments", which will let you view the html source and see which templates are included. I have pretty much the default 4.1.3 install and the main page (content.php) includes the headinclude template. I suppose it's possible that yours doesn't for some reason. And like Lynne said, you can have a different one for each style so you could have edited a headinclude but not the right one.

In any case, content.php contains "define('THIS_SCRIPT', 'vbcms');", so the problem should be that your popup appears on every content.php page and not just the home page.


All times are GMT. The time now is 07:30 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.01677 seconds
  • Memory Usage 1,708KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete