Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 12-07-2009, 12:28 PM
Erpenator Erpenator is offline
 
Join Date: Oct 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Custom style causes a javascript/css bug in IE

We've implemented a custom style for our vBulletin forum and so far everything seems to work well. But there are 2 bugs which we do not seem to be able to tackle.

One of these bugs is when you go (for example) to this thread in Internet Explorer (7 or 8). When you remove the #post2472435 from the URL everything seems to work okay.

The same this occurs when you edit a message. I've debugged as much as possible and it seems, this part of the vBulletin script will move the #content div to the left:
var cpost=document.location.hash;if(cpost){ if(cobj = fetch_object(cpost.substring(1,cpost.length)))cobj .scrollIntoView(true);else {cpostno = cpost.substring(5,cpost.length);if(parseInt(cpostn o)>0 && (cpost.substring(1,5)=='post')){document.location. href='showthread.php?p='+cpostno;};} }

I wasn't able to find the script which is causing the same behavior when editing a message. Hopefully there are some VB, js, css guru's out here who can help me understand why this bug is showing up.
Reply With Quote
  #2  
Old 12-07-2009, 02:24 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Judging by the url structure, the first issue seems to be an issue with your SEO. (It works fine in IE7 in Parallels on my Mac).
Reply With Quote
  #3  
Old 12-08-2009, 06:17 AM
Erpenator Erpenator is offline
 
Join Date: Oct 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you explain what you mean? Because we have vbSEO installed and with an other theme on the same site and with the same urls it works fine.
Reply With Quote
  #4  
Old 12-08-2009, 01:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So it works fine with one style but not the other? (Sorry, I didn't get that part from your original post.) So, same exactly url, just a different style? Have you compared the source code from a working style page to a non-working style page and see what you have done differently in them?
Reply With Quote
  #5  
Old 12-08-2009, 02:00 PM
Erpenator Erpenator is offline
 
Join Date: Oct 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it does work with the default vbulletin style but not with the custom one (It seems I forgot to mention that in my first post ). The html and css are completely different than the default style so it's hard to compare them and find something useful.

I think it's a css bug and some properties of an unknown div aren't set correctly. But I don't know which div is involved or what property.
Reply With Quote
  #6  
Old 12-08-2009, 02:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have firebug for firefox? It's a great addon that will help you with your css issues. I'm not sure how much help it may be here, but if you think the issue is css, then it may help.
Reply With Quote
  #7  
Old 12-08-2009, 02:11 PM
Erpenator Erpenator is offline
 
Join Date: Oct 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, i do have firebug en some debug tools for IE 8.0 but none of them helped me so far
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 03:53 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.03448 seconds
  • Memory Usage 2,199KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete