Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-26-2014, 03:50 PM
BoostedK20 BoostedK20 is offline
 
Join Date: Mar 2011
Location: NY
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Style css Randomly Missing

Hey vB.org members,

My website (http://www.BoostedK20.com) has randomly had a style issue over the past few days. As you may see upon visiting my website, the images are appearing in wacky sizes, shapes, and places. I figured it was a simple GoDaddy server mishap/update and would soon be fixed. Well, I contacted them today, they went above and beyond with their detective work. They told me that the /forums/style.css file is missing entirely. I went into my vB account and re-downloaded the software to find the file and upload that file, but I cannot find that file. I also did a good ol' Google search, but nothing came up pertaining to my situation (except forthose upgrading from vB 3.x.x to vB4). So, I'm out of options thus far. I'm hoping some of you can shine some light on what needs to be done to figure this out. Also, you may notice that I am running vB 4.1.2 (because I haven't seen or had a need to update to the latest 4.2.2). If this is something that can help resolve the situation, I would appreciate a bit of a step-by-step on how to do this update, as well as subsequent methods of hitting the nail on the head and resolving this problem.

I appreciate your help in advance, and I hope this can be resolved soon!

Best Regards,
Dan
Reply With Quote
  #2  
Old 10-26-2014, 03:55 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well first off I would upgrade to at least vBulletin 4.2.2 Patch Level 2, since there is security issues in earlier versions.

As far as upgrading, read the manual, http://www.vbulletin.com/docs/html/upgrade

It may or may not fix your issues.
Reply With Quote
  #3  
Old 10-26-2014, 04:13 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's definitely something wrong with your forum:
The source contains the following:

HTML Code:
<img src=”http://i.imgur.com/SQ1BnJU.jpg”/>
You are supposed to use double quotes, not backticks for the src.

Also at around line 475 in the source, it includes a page with html/body tags. HTML is invalid. (It's one of your block modules?)
Reply With Quote
Благодарность от:
ozzy47
  #4  
Old 10-26-2014, 04:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no style.css file in default vB4. So, that file is from a modification/style you uploaded.

You have many problems with that page. I threw it into an html validator and got 74 Errors, 32 warning(s). And yeah, you can ignore many of what it says, but having two <DOCTYPE> and <html> and <head> and <body> tags in a page is a BIG NO-NO and it will screw up your page.
Reply With Quote
Благодарность от:
ozzy47
  #5  
Old 10-26-2014, 11:33 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Remove this piece of code renders the page correctly in firebug

HTML Code:
<style>
iframe{
opacity: 0;
border: 0px none transparent;
position: absolute;
top: 0px;
left: 0px;
height: 300px;
width: 250px;
filter:alpha(opacity=0);
}
img{
position: absolute;
top: -50px;
left: 0px;
height: 475px;
width: 342px;
}
</style>
Reply With Quote
Благодарность от:
ozzy47
  #6  
Old 10-29-2014, 06:59 PM
BoostedK20 BoostedK20 is offline
 
Join Date: Mar 2011
Location: NY
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Before I try the things you have all posted above (and thank you for them), I would like it to be known that this happened suddenly, with no back-end changes. I logged in and it was like that. So something that already exists somehow created this issue. Being that there are multiple problems with the page, what should be done first? You all seem to know this better than I do, so I figure certain things should be done before others.

Again, thank you all for your help.

Quote:
Originally Posted by Lynne View Post
There is no style.css file in default vB4. So, that file is from a modification/style you uploaded.

You have many problems with that page. I threw it into an html validator and got 74 Errors, 32 warning(s). And yeah, you can ignore many of what it says, but having two <DOCTYPE> and <html> and <head> and <body> tags in a page is a BIG NO-NO and it will screw up your page.
Can you tell me where these are and how to address them? Thank you for chiming in Lynne, you've always been a big help!

--------------- Added [DATE]1414612901[/DATE] at [TIME]1414612901[/TIME] ---------------

Quote:
Originally Posted by Dave View Post
There's definitely something wrong with your forum:
The source contains the following:

HTML Code:
<img src=?http://i.imgur.com/SQ1BnJU.jpg?/>
You are supposed to use double quotes, not backticks for the src.

Also at around line 475 in the source, it includes a page with html/body tags. HTML is invalid. (It's one of your block modules?)
Dave, where did that image come from?! It says the site will shut down as of 4 days ago.... EDIT: I just searched in templates and this came up in the 'header' template under the current active style but no others... It shows my google ads after it.
Code:
<body>
<div>
<img src=?http://i.imgur.com/SQ1BnJU.jpg?/>
<script type="text/javascript">
    google_ad_client = "ca-pub-2427967321404401";
    google_ad_slot = "6801652175";
    google_ad_width = 336;
    google_ad_height = 280;
</script>
<!-- ads -->
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<center>Watch versus cycling in this video clip.<br>Versus Cycling is some
great videos to watch!
</div>
</body>
Clearly the cycling text and the imgur image link is not from me, and I am the only one with access to the back end to edit things... Now what? I removed the above code and it changed nothing, so I put it back without those two parts of the code I just mentioned.

--------------- Added [DATE]1414613079[/DATE] at [TIME]1414613079[/TIME] ---------------

Quote:
Originally Posted by ozzy47 View Post
Well first off I would upgrade to at least vBulletin 4.2.2 Patch Level 2, since there is security issues in earlier versions.

As far as upgrading, read the manual, http://www.vbulletin.com/docs/html/upgrade

It may or may not fix your issues.
Thank you ozzy. Regarding the update, it says to do a database backup. The methods shown in the backup link (http://www.vbulletin.com/docs/html/m...atabase_backup) I am unfamiliar with. Do I need anything additional to do any of the methods on that page? I apologize if these are more 'entry level' questions. I'm overwhelmed with the abundance of issues going on with the website right now.



_______________________


As a current update: I removed the following code entirely and things are back to normal, minus the google ads:
Code:
<body>
<div>
<center>
<script type="text/javascript">
    google_ad_client = "ca-pub-2427967321404401";
    google_ad_slot = "6801652175";
    google_ad_width = 336;
    google_ad_height = 280;
</script>
</center>
<!-- ads -->
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</body>
Reply With Quote
  #7  
Old 10-30-2014, 09:52 PM
BoostedK20 BoostedK20 is offline
 
Join Date: Mar 2011
Location: NY
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BUMP
Reply With Quote
  #8  
Old 10-30-2014, 10:58 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First thing you need to do is .. remove the body tag around google ads.

e.g.

HTML Code:
<div style="text-align: center;">
  <script type="text/javascript">
      google_ad_client = "ca-pub-2427967321404401";
      google_ad_slot = "6801652175";
      google_ad_width = 336;
      google_ad_height = 280;
  </script>
  <script type="text/javascript" src="//pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>


If you did not made the changes to the templates then your site may have been hacked. Here is the link for you to read.

http://www.vbulletin.com/forum/blogs...vbulletin-site
http://www.vbulletin.com/forum/blogs...ve-been-hacked
Reply With Quote
Благодарность от:
TheLastSuperman
Reply


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 01:44 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.03887 seconds
  • Memory Usage 2,254KB
  • 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
  • (2)bbcode_code
  • (4)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (4)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete