vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Body Onload Issue

This is a discussion on Body Onload Issue within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hello, everyone. I'm having an issue which I believe is stemming from VBSEO , and I can't seem to figure ...

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > Troubleshooting

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-09-2008, 04:55 PM
Junior Member
 
Real Name: jude
Join Date: Feb 2007
Posts: 2
Body Onload Issue

Hello, everyone.

I'm having an issue which I believe is stemming from VBSEO, and I can't seem to figure it out.

I've got an image rotation script I use on my site which requires onload="adrotate()" to be in the body tag.

<body onload="adrotate()">

It used to work fine, and the Styles & Templates > Replacement Variable Manager was replacing the code properly. At some point (though we noticed it today, we're not sure exactly when it started), the body tag now loads as the following:

<body onload="if (is_ie || is_moz) { var cpost=document.location.hash;if(cpost){ if(cobj = fetch_object(cpost.substring(1,cpost.length)))cobj .scrollIntoView(true); }}">

As you can see, there's no reference to the aforementioned onload element we need; and any attempt to replace the above line of code to add the needed code for my image rotation script either displays part of the above code, or doesn't show the needed code in the source at all. And I can't figure out where the "onload/if" code is coming from.

Can anyone give me a heads-up as to how this code is appearing, what it's used for, and how to add the bit of code I need?

Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 10-09-2008, 06:00 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,780
you should never use body onload. it's deprecated. maybe one day vb will catch up with the times.... i doubt it though :(

use a linked function in a remote file, ie, script.js
Code:
function myname() {

//do stuff
}
window.onload = function myname;
done.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 10-09-2008, 06:16 PM
Junior Member
 
Real Name: jude
Join Date: Feb 2007
Posts: 2
I've tried this, and while 99% of the script is in a remote .js file, it doesn't appear to be working. The window.onload does not appear to be working like the body onload was.

I am still perplexed where this mystery body onload is coming from though.

<body onload="if (is_ie || is_moz) { var cpost=document.location.hash;if(cpost){ if(cobj = fetch_object(cpost.substring(1,cpost.length)))cobj .scrollIntoView(true); }}">

I can't find any reference to where it's being created anywhere.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 10-09-2008, 06:40 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,780
it's probably from a bad .org mod/add on.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 10-09-2008, 11:19 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,923
Please open a ticket with admincp access to check the issue.
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
some body help me ?? CuTe JoJo Troubleshooting 2 07-08-2008 09:55 AM
F-Body Online study Rocket 442 vBSEO Reviews 18 06-22-2008 01:12 PM
F-Body Online Critique Rocket 442 Critique Please 1 12-29-2007 06:32 PM
marhaba every body uaefist Introduce Yourself 5 07-01-2007 03:20 AM


All times are GMT -4. The time now is 02:05 AM.


Powered by vBulletin Version 3.8.0 Release Candidate 2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.