Page Index Toggle Pages: [1] 2 3 
Topic Tools
Very Hot Topic (More than 25 Replies) Forum is total mess (Read 7,231 times)
Titusaduxas
YaBB Newcomer
*
Offline



Posts: 14
Forum is total mess
Mar 5th, 2012 at 10:03am
Post Tools
Hi

My forum has been working fine for some time now. However I took a look today and was greeted by this mess



My version is YaBB 2.3.1.

I noticed that there was a message informing me the board was in Maintenance Mode so I checked the mode in maintenance settings and unticked the box. This made no difference at all.

I have been messing with .pl files following a posting I saw on this board as how to alter the captcha image to eliminate auto spam by adding two letters before and two after the captcha image. I followed the steps to the letter but was unsuccessful in attaining the desired result. Having done that I needed to undo the changes I had made so I decided to take the cowards way out and restore the board from one of the backups I have kept and all was fine. That was a couple of weeks ago and all has been well till today  Sad

I am not well informed on YaBB software and class myself as a total newbie who got lucky in managing to create a working board. I have tried to restore from backup again today (twice with different backup dates) but they have not worked even though the files have been restored fully. If anyone has any suggestions as to how I may get things back  as they were I would be gratefull.

Phil
  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,365
Location: Earth

YaBB 2.6.1
Re: Forum is total mess
Reply #1 - Mar 5th, 2012 at 4:37pm
Post Tools
Your browser cache has been cleared out, OR css file is either gone or not being read, ditto your image files.

First, try CRTL & F-5. That will force your browser to re-read the css file and re-download the images. (You may have to do this more than once.) If that doesn't do it, check and make sure your css file and image files are where they belong in the yabbfiles/Templates/ folder.

Although this doesn't explain why your forum went into maintenance mode without you telling it to, the rest is likely related to a temp file cleaner on your own computer.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,675
Location: Los Angeles

YaBB 2.5
Re: Forum is total mess
Reply #2 - Mar 5th, 2012 at 8:44pm
Post Tools
Phil,

Dandello is correct. I can see that you're missing at least one css file reference if not more. This is a realtively easy fix.

Ideally, you can retrieve a backup copy of your pl file when it was working. That way, you can figure out exactly what you're missing.

But if you don't have a backup copy ...

What you have now is the following:

Code
Select All
<link rel="stylesheet" href="http://eurolures.co.uk/yabb/Templates/Forum/Orange.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="10 most recent posts" href="http://eurolures.co.uk/yabb/YaBB.pl?action=RSSrecent" />

<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabb/YaBB.js"></script>
<script language="JavaScript1.2" type="text/javascript">
 


What you need are one or more of the following lines of code after the line of code listed above. My recommendation is to add each line of code you see below one at a time until your forum renders as it should. Or add all of those lines of code at the same time, and delete each line of code until you get it right.

So, the following lines of code may be what you're missing (although I'm pretty sure you don't need all of those lines of code):

Code
Select All
<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabbfiles/shjs/sh_cpp.js"></script>
<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabbfiles/shjs/sh_css.js"></script>
<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabbfiles/shjs/sh_html.js"></script>
<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabbfiles/shjs/sh_java.js"></script>
<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabbfiles/shjs/sh_javascript.js"></script>
<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabbfiles/shjs/sh_pascal.js"></script>
<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabbfiles/shjs/sh_perl.js"></script>
<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabbfiles/shjs/sh_php.js"></script>
<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabbfiles/shjs/sh_sql.js"></script>
<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabbfiles/YaBB.js"></script>
<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabbfiles/ajax.js"></script>

<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabbfiles/YaBB.js"></script>
<script language="JavaScript1.2" type="text/javascript">

 


While editing our own forum's template, I once inadvertently deleted lines of code that were needed to render the forum properly, but I had a backup copy to compare to, so I was able to fix my inadvertent mistakes pretty quickly.

By the way, making edits to the captcha code doesn't affect the pl file at all; at least not with the template. There's nothing to edit there. Besides, as you seem to already know, you can change your edits back to the way you had them originally.

Good luck!

Edited:
P.S. You can look at the source code of any working YaBB forum to get an idea about what you might be missing. Of course, you'll want to remember to use your own domain name.  Wink

« Last Edit: Mar 5th, 2012 at 8:50pm by Bill Myers »  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Titusaduxas
YaBB Newcomer
*
Offline



Posts: 14
Re: Forum is total mess
Reply #3 - Mar 5th, 2012 at 9:18pm
Post Tools
Thanks for the advice gentlemen. I would have expected the backups I restored to have worked as the forum was ok when the backups were done. I'll follow the recommendations though as lets face it I have nothing to lose  Wink
  
Back to top
 
IP Logged
 
Titusaduxas
YaBB Newcomer
*
Offline



Posts: 14
Re: Forum is total mess
Reply #4 - Mar 5th, 2012 at 9:51pm
Post Tools
Oh by the way and at extreme risk of embarrassment, where will I find the pl file ?? Which is it and where should it be  Embarrassed

Phil
  
Back to top
 
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,675
Location: Los Angeles

YaBB 2.5
Re: Forum is total mess
Reply #5 - Mar 5th, 2012 at 10:12pm
Post Tools
Phil,

For now you really only need to edit your template file. Simply access it via your Admin Center, and make your edits there.

The template file itself is called default.html and it's located in your cgi bin folder, then in the Templates folder, and then the default folder.

By the way, as with any file you choose to edit, you should always have a backup copy of an original for a quick reference, and/or as needed.

Edited:
Titusaduxas wrote on Mar 5th, 2012 at 9:51pm:
Oh by the way and at extreme risk of embarrassment, where will I find the pl file ?? Which is it and where should it be  Embarrassed
Phil

If you mean the YaBB.pl file, it's in your main cgi folder. But again, I think you only need to fix your template file.

« Last Edit: Mar 5th, 2012 at 10:18pm by Bill Myers »  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,675
Location: Los Angeles

YaBB 2.5
Re: Forum is total mess
Reply #6 - Mar 5th, 2012 at 10:14pm
Post Tools
Titusaduxas wrote on Mar 5th, 2012 at 9:18pm:
Thanks for the advice gentlemen.
...

Just so you know, Dandello is all woman, and smarter than both of us put together! Wink

  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Titusaduxas
YaBB Newcomer
*
Offline



Posts: 14
Re: Forum is total mess
Reply #7 - Mar 5th, 2012 at 10:18pm
Post Tools
Bill Myers wrote on Mar 5th, 2012 at 10:14pm:
Titusaduxas wrote on Mar 5th, 2012 at 9:18pm:
Thanks for the advice gentlemen.
...

Just so you know, Dandello is all woman, and smarter than both of us put together! Wink




Dohhhhhhhh gone and dunitagain  Embarrassed
  
Back to top
 
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,675
Location: Los Angeles

YaBB 2.5
Re: Forum is total mess
Reply #8 - Mar 6th, 2012 at 12:57am
Post Tools
Phil,

Just to see if I could do it, I saved a local copy of your YaBB.pl file, which includes your template, and edited in the lines of code to properly render your forum. It worked! Your forum rendered just fine! That is, it rendered your forum in the colors that I have in our forum, which are basically the same colors that are in this YaBB support forum here.

So, if you edit in what I did, your forum will work again. But ... you'll need to then go into your Admin Center to use the kind of template you want, i.e., to use the colors you want, etc.

Also, you'll need to make sure that the paths are correct for your own domain. Why? Because when I used your domain name as a test, I could see that the paths are evidently incorrect.

In other words, look to see where the files that I highlighted in yellow are, and then edit in the proper url.

Code
Select All
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" href="http://eurolures.co.uk/yabbfiles/Templates/Forum/default.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="most recent posts" href="http://eurolures.co.uk/cgi-bin/yabb/YaBB.pl?action=RSSrecent" />


<link href="http://eurolures.co.uk/yabbfiles/greybox/gb_styles.css" rel="stylesheet" type="text/css" />

<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabb/YaBB.js"></script>
<script language="JavaScript1.2" type="text/javascript">
 



Bottom line: Simply put, you're currently missing a few lines of code that need to be in your template to make your forum look like you had it before.

Hopefully with the information that I've provide above, you can see what's going on, and tweak what you need from it to get your forum to look the way that you want.

Good luck!


« Last Edit: Mar 6th, 2012 at 1:04am by Bill Myers »  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,675
Location: Los Angeles

YaBB 2.5
Re: Forum is total mess
Reply #9 - Mar 6th, 2012 at 1:02am
Post Tools
Okay, your YaBB.js file is at the following address:

Code
Select All
http://eurolures.co.uk/yabb/YaBB.js
 


« Last Edit: Mar 6th, 2012 at 1:04am by Bill Myers »  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,675
Location: Los Angeles

YaBB 2.5
Re: Forum is total mess
Reply #10 - Mar 6th, 2012 at 1:35am
Post Tools
Phil,

Until you can find where your Orange.css file is, or your default.css file is, if you edit in the following lines of code into your template, in between what I highlighted in yellow, your forum will come up just fine (I've tested it locally using my own domain's css file, and your forum renders just fine):

Code
Select All
<title>EUROLURES.CO.UK - Maintenance Mode</title>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" href="http://www.yabbforum.com/yabbfiles/Templates/Forum/default.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="10 most recent posts" href="http://eurolures.co.uk/yabb/YaBB.pl?action=RSSrecent" />
<script language="JavaScript1.2" type="text/javascript" src="http://eurolures.co.uk/yabb/YaBB.js"></script>
<script language="JavaScript1.2" type="text/javascript">

<!--
//force no cache

 


Edited:
A line of code referencing the rss feed was inserted above to be more accurate.


Important: It's not appropriate to use this support forum's css file as I listed it above. Using it will simply show you that your forum will work just fine with the lines of code that I listed.

« Last Edit: Mar 6th, 2012 at 5:01pm by Bill Myers »  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,591
Location: UK:Scotland/livingston

None
Re: Forum is total mess
Reply #11 - Mar 6th, 2012 at 3:38am
Post Tools
i think there is more to this than just code as when i was trying to load the forum logo here http://eurolures.co.uk/yabb/Templates/Forum/default/3dlogo.jpg it spat out a 403 Forbidden!
so it may also be a permissions problem as well  Roll Eyes
Edited:
or a .htaccess malformed anti hotlinking code problem < i have done this to my self lol
« Last Edit: Mar 6th, 2012 at 3:44am by xnoddyx »  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,675
Location: Los Angeles

YaBB 2.5
Re: Forum is total mess
Reply #12 - Mar 6th, 2012 at 6:00am
Post Tools
xnoddyx wrote on Mar 6th, 2012 at 3:38am:
i think there is more to this than just code ...


Actually, no. That 403 error is really a 404 error, and it's unrelated to the rendering of the forum.

As for the forum not rendering correctly, it's simply missing the lines of code that I listed. I confirmed this by locally editing the template myself, and testing it. The forum rendered just fine, and looked good.

That is, if you forgive that it's been in maintenance mode for a few hours now.  Roll Eyes

Remember, even with the missing lines of code, the forum still works just fine.

« Last Edit: Mar 6th, 2012 at 6:02am by Bill Myers »  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Titusaduxas
YaBB Newcomer
*
Offline



Posts: 14
Re: Forum is total mess
Reply #13 - Mar 6th, 2012 at 7:40am
Post Tools
Gosh fellas (and gals  Wink) your knowledge of YaBB is amazing. Please bear with me on this one as for a numpty like me it's a bit daunting but I'm going to see what I can do with it today.

Phil
  
Back to top
 
IP Logged
 
Titusaduxas
YaBB Newcomer
*
Offline



Posts: 14
Re: Forum is total mess
Reply #14 - Mar 6th, 2012 at 8:18am
Post Tools
Bill Myers wrote on Mar 6th, 2012 at 12:57am:
YaBB.js


OK

I know the locations of the files.. I have downloaded my yabb.pl file and can edit the code to point to the correct locations. Where should the code be inserted in the yabb.pl file ?? Do I insert the code fragment at the end ??

Phil
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 
Topic Tools
 
  « Board Index ‹ Board  ^Top