vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Mobile style breaks if javascript is added to footer template (https://vborg.vbsupport.ru/showthread.php?t=272913)

develop_827 10-27-2011 10:21 AM

Mobile style breaks if javascript is added to footer template
 
Mobile style breaks if javascript is added to footer template.

Here is the problem:

1) Add the code to footer template:

Code:

<vb:literal><script type="text/javascript"><!--
document.write("vBulletin Mobile doesn't work")
//--></script></vb:literal>

2) Open Mobile style page WITH ANY anchor in URL (for example add "#test" at the end of URL).
The page will be loading till the end of time and will contain only text "vBulletin Mobile doesn't work".

My actual javascript counter code is more complicated.

Why does the code above breaks Mobile Style?
Why does the page source contain ONLY text "vBulletin Mobile doesn't work"?
How can I change my javascript to work fine?

develop_827 10-31-2011 09:55 PM

Nobody knows?
((

MaXimus 11-21-2011 07:52 AM

hope someone can help, perhaps contact the mobile style developer?

Lynne 11-21-2011 06:09 PM

I just added that exact text to the bottom of my mobile footer and then added #test to the end of my URL and it works just fine.

develop_827 11-22-2011 04:51 PM

Lynne, did you try to reload page with #test?
Adding #test to opened URL and pressing Enter key does no request to the server.

Sorry if it was obvious for you.

I have reproduced it 2 minutes ago on 4.1.8 (with mobile style from 4.1.6).

Lynne 11-22-2011 06:10 PM

I added the #test to the end of the URL and tried reloading the page several times. Nothing happened. Perhaps it is page specific?

Try upgrading your mobile style. I believe there were many mobile changes in 4.1.7. https://www.vbulletin.com/forum/show...=1#post2216358


All times are GMT. The time now is 03:49 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.01007 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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