vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to remove unexpected text from Google cache (https://vborg.vbsupport.ru/showthread.php?t=311333)

webmastersun 05-14-2014 01:23 AM

How to remove unexpected text from Google cache
 
Hello,

I'm running a SEO forum http://www.webmastersun.com

My google cache text is ok but only 1 thing(error code) showed on my Google cache web page, it makes me annoy with this

on the top, it showed

Quote:

'); var sidebar_align = 'right'; var content_container_margin = parseInt('320px'); var sidebar_width = parseInt('300px'); //-->
you can see full in this link

and I report that it also showed the same in old Internet explorer old versions (in web browser, not in google cache text)

If I remove this code or remove --> in vbulletin template, it will make error on forum sidebar or my forum layout. ( Note: code above is default from vbulletin template)

I saw some threads asked about that, but didn't give solutions for it.

Just want to make question here, hope I can have the best solution.

Thank you

tbworld 05-14-2014 01:32 AM

You have JavaScript errors on that page.

webmastersun 05-14-2014 02:34 AM

Quote:

Originally Posted by tbworld (Post 2497722)
You have JavaScript errors on that page.

That code came from vbulletin sidebar template, I don't know what purpose it used for ?

tbworld 05-14-2014 02:54 AM

Start with fixing your Javascript error on your megamenu. :)

webmastersun 05-14-2014 04:29 AM

Quote:

Originally Posted by tbworld (Post 2497737)
Start with fixing your Javascript error on your megamenu. :)

what is error on mega menu?
can you show the details or taking a screenshot about error?

tbworld 05-14-2014 07:22 AM

Use the development mode (Console) of your browser, all JavaScript errors will be reported there. :)

Zachery 05-14-2014 09:07 AM

Code:

[COLOR=red !important]Uncaught TypeError: undefined is not a function (index):112[/COLOR]
Attr.specified is deprecated. Its value is always true.
Fire vB_XHTML_Ready vbulletin-core.js?v=420:11
Fetch Cookie :: vbulletin_collapse (null) vbulletin-core.js?v=420:11
Invalid App Id: Must be a number or numeric string representing the application id. all.js:53
FB.getLoginStatus() called before calling FB.init(). all.js:53
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) tweet_button.1400006231.html:1
Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) follow_button.1400006231.html:1
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
[COLOR=red !important]Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://www.stumbleupon.com') does not match the recipient window's origin ('http://www.webmastersun.com').[/COLOR]


http://validator.w3.org/check?uri=ht...Inline&group=0

From your normal page:

HTML Code:

<script type="text/javascript">
<!--
document.write('<script type="text/javascript" src="' + yuipath + '/animation/animation-min.js?v=420"></script>');
var sidebar_align = 'right';
var content_container_margin = parseInt('320px');
var sidebar_width = parseInt('300px');
//-->

</script>

From the google source

Code:

');
var sidebar_align = 'right';
var content_container_margin = parseInt('320px');
var sidebar_width = parseInt('300px');
//-->



Its chopping it off, there isn't much we can do about that.

webmastersun 05-16-2014 08:08 AM

Thanks Zachery, I will fix errors on code when checking with validator.w3.org
Still finding ways to remove this code without getting errors.
Code:

');
var sidebar_align = 'right';
var content_container_margin = parseInt('320px');
var sidebar_width = parseInt('300px');
//-->


romaine 10-25-2015 01:00 AM

I am getting the same problem when using vB4xx.

If I delete these codes then seem the right sidebar will not work. Can any one show tips to remove codes without any problems?


All times are GMT. The time now is 01:15 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.01095 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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