Page Index Toggle Pages: [1] 2 
Topic Tools
Very Hot Topic (More than 25 Replies) style sheets have stopped working ! (Read 3,450 times)
curious aardvark
YaBB Newcomer
*
Offline



Posts: 29
style sheets have stopped working !
Jul 1st, 2013 at 11:26pm
Post Tools
Background from original upgrade thread here


So I've had to move everything back into the original folders to maintain url integrity both on and off the forum.

That sort of worked.
I had weird style sheet and template issues.
ie: different user names saw different templates. Weird but true. No amount of cookie killing or browser cache clearing made any difference.
And only those who saw the blue yabb template could also see pictures and use the quotes feature.
Also the admin section was telling me the attachments folder did not exist - I could see it so i knew that wasn't right.

At this point I had 2 yabbfile folders.
So, thinks I, I'll amalgamate the yabbfiles folders in the original folder position. So I'll only have one yabbfile directory and all the old paths and links will be identical.

So earlier this evening that's exactly what i did.

Instantly lost all styling - forum and admin page. Checked the paths file against the old paths file (all files are now - supposedly - right back where they used to be) changed the paths to the old settings and got styling back for the admin page while still not having it for the forum.

Okay I re-uploaded all the original and new template and .css files.

Now on the template sections I can see and select all the files. But While the css files appear to work on the style sheet section - nothing I pick on the main template page does anything. I'm just left with a blank background .

Attachment 1 shows what the style sheet editing page shows - ie: the correct style sheet.

Attachment 2 shows what I actually get on the template configuration page when I select the style sheet - or any style sheet for that matter. Absolutely bugger all.

Now if the paths were wrong surely I wouldn't see the style sheet in the style sheet editing tab.
So why can't I apply ANY style sheets to my forum now ?
I've checked chmods for all relevant and most irrelevant files and they are what i think they should be. ie: 755 for folders and 644 for non-.pl files.  

It's doing my head in.




 
« Last Edit: Jul 1st, 2013 at 11:30pm by curious aardvark »  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,387
Location: Earth

YaBB 2.6.1
Re: style sheets have stopped working !
Reply #1 - Jul 1st, 2013 at 11:43pm
Post Tools
There are two paths for style sheets and the graphics - an html path ie: 'yourforum.com/yabbfiles/templates/default/default.css' and an absolute path on the order of 'home/public-html/my_files/yabbfiles/templates/default/default.css'

The browser uses the html path. To edit the files, YaBB needs the absolute path. Having one correct doesn't guarantee the other is.
  

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



Posts: 528
Re: style sheets have stopped working !
Reply #2 - Jul 1st, 2013 at 11:52pm
Post Tools
I had a similar problem, try keeping your style sheet as you have it now and change everything else to default. Then one at a time make a change and watch what changes.
« Last Edit: Jul 1st, 2013 at 11:53pm by ------ »  
Back to top
 
IP Logged
 
curious aardvark
YaBB Newcomer
*
Offline



Posts: 29
Re: style sheets have stopped working !
Reply #3 - Jul 2nd, 2013 at 10:34am
Post Tools
------ wrote on Jul 1st, 2013 at 11:52pm:
I had a similar problem, try keeping your style sheet as you have it now and change everything else to default. Then one at a time make a change and watch what changes.


I get a completely blank preview screen.

I mean it definitely looks like a paths issue (blanl screens would seem to point at that) . But I've checked everything a 100 times and it's not only what it used to be (and the files are in the same places) it's using the new formats as well.

I've tried lots of variations as well.

why would the admin template work (it didn't initially) and the forum templates not work ?


Okay lets see if anyone can spot the obvious mistake (got to be one)

the admin page tells me that
Quote:
Absolute Path to your main YaBB directory (containing YaBB.pl)
This information may be useful for troubleshooting purposes

/home/slinging/www/www/forum/


My home url for the forum - I can run perl scripts in the forum directory with this url, so I'm pretty sure it's the right one:
http://slinging.org/forum
The yabbfiles folder is in the forum folder
http://slinging.org/forum/yabbfiles

This is my current paths file.

Quote:
###############################################################################
# Paths.pl                                                                    #
###############################################################################
# YaBB: Yet another Bulletin Board                                            #
# Open-Source Community Software for Webmasters                               #
# Version:        YaBB 2.5.2                                                  #
# Packaged:       September 30, 2012                                          #
# Distributed by: http://www.yabbforum.com                                    #
# =========================================================================== #
# Copyright (c) 2000-2012  YaBB (www.yabbforum.com) - All Rights Reserved.    #
# Software by:  The YaBB Development Team                                     #
#               with assistance from the YaBB community.                      #
###############################################################################

$lastsaved = "YaBB Administrator";
$lastdate = "1370980188";

########## Directories ##########

$boardurl = "http://slinging.org/forum"; # URL of your board's folder (without trailing '/')
$boarddir = ".";                                  # The server path to the board's folder (usually can be left as '.')
$boardsdir = "./Boards";                          # Directory with board data files
$datadir = "./Messages";                          # Directory with messages
$memberdir = "./Members";                         # Directory with member files
$sourcedir = "./Sources";                         # Directory with YaBB source files
$admindir = "./Admin";                            # Directory with YaBB admin source files
$vardir = "./Variables";                          # Directory with variable files
$langdir = "./Languages";                         # Directory with Language files and folders
$helpfile = "./Help";                             # Directory with Help files and folders
$templatesdir = "./Templates";                    # Directory with template files and folders
$htmldir = "/home/slinging/www/www/forum/yabbfiles";    # Base Path for all public-html files and folders
$facesdir = "/home/slinging/www/www/forum/yabbfiles/avatars"; # Base Path for all avatar files
$uploaddir = "/home/slinging/www/www/forum/yabbfiles/Attachments"; # Base Path for all attachment files

########## URL's ##########

$yyhtml_root = "http://slinging.org/forum/yabbfiles"; # Base URL for all html/css files and folders
$facesurl = "http://slinging.org/forum/yabbfiles/avatars"; # Base URL for all avatar files
$uploadurl = "http://slinging.org/forum/yabbfiles/Attachments"; # Base URL for all attachment files

########## Old Path Settings ################################
########## The following variables are deprecated! ##########
########## Don't use them for new code! #####################

$forumstylesdir = $htmldir . "/Templates/Forum";  # Directory with forum style files and folders
$adminstylesdir = $htmldir . "/Templates/Admin";  # Directory with admin style files and folders
$smiliesdir = $htmldir . "/Smilies";              # Base Path for all smilie files
$modimgdir = $htmldir . "/ModImages";             # Base Path for all mod images

$forumstylesurl = $yyhtml_root . "/Templates/Forum"; # Default Forum Style Directory
$adminstylesurl = $yyhtml_root . "/Templates/Admin"; # Default Admin Style Directory
$smiliesurl = $yyhtml_root . "/Smilies";          # Base URL for all smilie files
$modimgurl = $yyhtml_root . "/ModImages";         # Base URL for all mod images

1;


So which bit's wrong ?
« Last Edit: Jul 2nd, 2013 at 10:43am by curious aardvark »  
Back to top
 
IP Logged
 
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: style sheets have stopped working !
Reply #4 - Jul 2nd, 2013 at 12:28pm
Post Tools
Just a shot in the dark, whats the directory name on your server?

http://slinging.org/forum/yabb2files

/home/slinging/www/www/forum/yabb2files


What's with the www?  Just looks strange to my eye.
curious aardvark wrote on Jul 2nd, 2013 at 10:34am:
$htmldir = "/home/slinging/www/www/forum/yabbfiles";    # Base Path for all public-html files and folders
$facesdir = "/home/slinging/www/www/forum/yabbfiles/avatars"; # Base Path for all avatar files
$uploaddir = "/home/slinging/www/www/forum/yabbfiles/Attachments"; # Base Path for all attachment files

« Last Edit: Jul 2nd, 2013 at 12:37pm by ------ »  
Back to top
 
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,684
Location: Los Angeles

YaBB 2.5
Re: style sheets have stopped working !
Reply #5 - Jul 2nd, 2013 at 1:33pm
Post Tools
curious aardvark wrote on Jul 2nd, 2013 at 10:34am:
So which bit's wrong ?

I noticed one apparent error right away. As you have it now, the stylesheet you're using is as follows:

Code
Select All
<link rel="stylesheet" href="http://slinging.org/forum/yabbfiles/Templates/Forum/default.css" type="text/css" /> 



However, the correct stylesheet appears to be as follows (but this is not the one that should be used):

Code
Select All
<link rel="stylesheet" href="http://slinging.org/forum/yabbfiles/Templates/Admin/default.css" type="text/css" /> 


I tested this locally after correcting the stylehseet, and your forum rendered better (but not yet fully rendered).

Hopefully, this will be a clue to what's going on. Later on, one of YaBB's experts can give you the real answer if this clue doesn't get you going.

Note: Your "/Templates/Forum" appears to be missing entirely. I'm guessing if you fix that, your forum will render perfectly.

Good luck!

« Last Edit: Jul 2nd, 2013 at 1:38pm 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
 
curious aardvark
YaBB Newcomer
*
Offline



Posts: 29
Re: style sheets have stopped working !
Reply #6 - Jul 2nd, 2013 at 6:53pm
Post Tools
------ wrote on Jul 2nd, 2013 at 12:28pm:
Just a shot in the dark, whats the directory name on your server?

http://slinging.org/forum/yabb2files

/home/slinging/www/www/forum/yabb2files


What's with the www?  Just looks strange to my eye.
curious aardvark wrote on Jul 2nd, 2013 at 10:34am:
$htmldir = "/home/slinging/www/www/forum/yabbfiles";    # Base Path for all public-html files and folders
$facesdir = "/home/slinging/www/www/forum/yabbfiles/avatars"; # Base Path for all avatar files
$uploaddir = "/home/slinging/www/www/forum/yabbfiles/Attachments"; # Base Path for all attachment files



lol yeah that whole/www/www/ is pretty weird.
In my defence i had nothing to do with the initial setup Smiley
I suspect it was when he was setting up the ftp folder - that's not always the most obvious.
yabbfiles name on server is simply 'yabbfiles'. Always has been.

Quote:
curious aardvark wrote Today at 5:34am:
So which bit's wrong ?

I noticed one apparent error right away. As you have it now, the stylesheet you're using is as follows:

Code      Select All

<link rel="stylesheet" href="http://slinging.org/forum/yabbfiles/Templates/Forum/default.css" type="text/css" />



However, the correct stylesheet appears to be as follows (but this is not the one that should be used):

Code      Select All

<link rel="stylesheet" href="http://slinging.org/forum/yabbfiles/Templates/Admin/default.css" type="text/css" />


I tested this locally after correcting the stylehseet, and your forum rendered better (but not yet fully rendered).

Hopefully, this will be a clue to what's going on. Later on, one of YaBB's experts can give you the real answer if this clue doesn't get you going.

Note
: Your "/Templates/Forum" appears to be missing entirely. I'm guessing if you fix that, your forum will render perfectly.

Good luck!


Okay I'm slightly encouraged but more confused.
the /Templates/Forum' folder is in the yabbfiles folder and it's definitely there. Are you saying there should be one in the 'forum/Templates' folder as well ?  

And where does that stylesheet reference go ?
Quote:
<link rel="stylesheet" href="http://slinging.org/forum/yabbfiles/Templates/Admin/default.css" type="text/css" />
« Last Edit: Jul 2nd, 2013 at 6:57pm by curious aardvark »  

templatesforum.jpg ( 58 KB | 27 Downloads )
templatesforum.jpg
Back to top
 
IP Logged
 
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: style sheets have stopped working !
Reply #7 - Jul 2nd, 2013 at 7:19pm
Post Tools
I took this form your site
Code
Select All
<link rel="stylesheet" href="http://slinging.org/forum/yabbfiles/Templates/Forum/default.css" type="text/css" />
 



And this from my site
Code
Select All
<link rel="stylesheet" href="http://www.woodturnersresource.com/yabb2files/Templates/Forum/wr4.css" type="text/css" /> 



The only thing I see different is www.  I don't know?

Just curious is your YaBB.pl inside the cgi-bin?
  
Back to top
 
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,684
Location: Los Angeles

YaBB 2.5
Re: style sheets have stopped working !
Reply #8 - Jul 2nd, 2013 at 7:21pm
Post Tools
curious aardvark wrote on Jul 2nd, 2013 at 6:53pm:
Okay I'm slightly encouraged but more confused.
the /Templates/Forum' folder is in the yabbfiles folder and it's definitely there. Are you saying there should be one in the 'forum/Templates' folder as well ?

The /Templates/Forum folder you need is evidently on your local computer, but according to your online directory here, that folder hasn't been uploaded to your server. The only folder listed is your Admin directory.

Take a look, and you'll see what I mean. Wink

Edited:
------ wrote on Jul 2nd, 2013 at 7:19pm:
... your site ...

So if you take a look at what RonS2 mentioned, you'll notice that his css file appears, and yours does not (as of this edit).
« Last Edit: Jul 2nd, 2013 at 7:30pm 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,684
Location: Los Angeles

YaBB 2.5
Re: style sheets have stopped working !
Reply #9 - Jul 2nd, 2013 at 7:55pm
Post Tools
Okay, I think I see what's wrong. You evidently have two different yabbfiles folders. The one you've referenced is as follows"

Code
Select All
http://slinging.org/forum/yabbfiles/yabbfiles/Templates/Forum/default.css 


So all you need to do is to upload your folders and files to their proper places (or change your forum's Path Settings). Either way should work.

Apples and oranges. Wink

« Last Edit: Jul 2nd, 2013 at 7:55pm 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
 
curious aardvark
YaBB Newcomer
*
Offline



Posts: 29
Re: style sheets have stopped working !
Reply #10 - Jul 3rd, 2013 at 3:14pm
Post Tools
okay - that does sort of make sense. although I have no idea where the double yabbfiles link is coming from.
The (most recent) problem started when I amalgamated my previous two yabbfile folders into one yabbfile folder back where it used to be before I updated t 2.5.2

So where the hell is that double yabbfile line coming from ?

This is my current paths.pl file:
Quote:
This is my current paths file.

Quote:
###############################################################################
# Paths.pl                                                                    #
###############################################################################
# YaBB: Yet another Bulletin Board                                            #
# Open-Source Community Software for Webmasters                               #
# Version:        YaBB 2.5.2                                                  #
# Packaged:       September 30, 2012                                          #
# Distributed by: http://www.yabbforum.com                                    #
# =========================================================================== #
# Copyright (c) 2000-2012  YaBB (www.yabbforum.com) - All Rights Reserved.    #
# Software by:  The YaBB Development Team                                     #
#               with assistance from the YaBB community.                      #
###############################################################################

$lastsaved = "YaBB Administrator";
$lastdate = "1370980188";

########## Directories ##########

$boardurl = "http://slinging.org/forum"; # URL of your board's folder (without trailing '/')
$boarddir = ".";                                  # The server path to the board's folder (usually can be left as '.')
$boardsdir = "./Boards";                          # Directory with board data files
$datadir = "./Messages";                          # Directory with messages
$memberdir = "./Members";                         # Directory with member files
$sourcedir = "./Sources";                         # Directory with YaBB source files
$admindir = "./Admin";                            # Directory with YaBB admin source files
$vardir = "./Variables";                          # Directory with variable files
$langdir = "./Languages";                         # Directory with Language files and folders
$helpfile = "./Help";                             # Directory with Help files and folders
$templatesdir = "./Templates";                    # Directory with template files and folders
$htmldir = "/home/slinging/www/www/forum/yabbfiles";    # Base Path for all public-html files and folders
$facesdir = "/home/slinging/www/www/forum/yabbfiles/avatars"; # Base Path for all avatar files
$uploaddir = "/home/slinging/www/www/forum/yabbfiles/Attachments"; # Base Path for all attachment files

########## URL's ##########

$yyhtml_root = "http://slinging.org/forum/yabbfiles"; # Base URL for all html/css files and folders
$facesurl = "http://slinging.org/forum/yabbfiles/avatars"; # Base URL for all avatar files
$uploadurl = "http://slinging.org/forum/yabbfiles/Attachments"; # Base URL for all attachment files

########## Old Path Settings ################################
########## The following variables are deprecated! ##########
########## Don't use them for new code! #####################

$forumstylesdir = $htmldir . "/Templates/Forum";  # Directory with forum style files and folders
$adminstylesdir = $htmldir . "/Templates/Admin";  # Directory with admin style files and folders
$smiliesdir = $htmldir . "/Smilies";              # Base Path for all smilie files
$modimgdir = $htmldir . "/ModImages";             # Base Path for all mod images

$forumstylesurl = $yyhtml_root . "/Templates/Forum"; # Default Forum Style Directory
$adminstylesurl = $yyhtml_root . "/Templates/Admin"; # Default Admin Style Directory
$smiliesurl = $yyhtml_root . "/Smilies";          # Base URL for all smilie files
$modimgurl = $yyhtml_root . "/ModImages";         # Base URL for all mod images

1;


and the picture of filezilla are the folders and files on the server - not on my pc.



Right - yep had nested yabbfiles, dunno how I missed that. currently changing to just one.
fingers crossed this will help  Smiley
« Last Edit: Jul 3rd, 2013 at 3:25pm by curious aardvark »  
Back to top
 
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,684
Location: Los Angeles

YaBB 2.5
Re: style sheets have stopped working !
Reply #11 - Jul 3rd, 2013 at 3:28pm
Post Tools
curious aardvark wrote on Jul 3rd, 2013 at 3:14pm:
... the picture of filezilla are the folders and files on the server - not on my pc.

I see what you mean. I think what may have happened is that you inadvertently copied your YaBB files into another folder on your server. For now, I would keep those files there (you can delete them later when this problem is fixed).

What you might want to try is to FTP into your site with Filezilla again, and then go up from your /www/www/forum/yabbfiles/Templates/Forum directory so that you can access your /www/forum/yabbfiles/Templates directory.

What you'll most probably see is that your Forum directory is missing. All that's probably there is your Admin directory.

If it makes you feel any better, I've done exactly what you've done, especially when I've accessed other servers to help people out, or I've moved onto a new server with slightly different parameters.

Please let us know how this turns out for you. Thanks.

Edited:
curious aardvark wrote on Jul 3rd, 2013 at 3:14pm:
Right - yep had nested yabbfiles, dunno how I missed that. currently changing to just one.
fingers crossed this will help  Smiley

Ah, ha! So maybe /yabbfiles/yabbfiles/ became /www/www/ ...

I'm keeping my fingers crossed for you. Wink
« Last Edit: Jul 3rd, 2013 at 4:24pm 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
 
curious aardvark
YaBB Newcomer
*
Offline



Posts: 29
Re: style sheets have stopped working !
Reply #12 - Jul 3rd, 2013 at 4:05pm
Post Tools
nah that didn't do it - still not got a clue Sad

If you look at my latst filezilla shot - all the files are exactly where they should be. forum folder as well.

Plus i re uploaded them all yesteday. (I think) kinda losing the plot here.
« Last Edit: Jul 3rd, 2013 at 4:09pm by curious aardvark »  

yabbfiletemplate.jpg ( 76 KB | 25 Downloads )
yabbfiletemplate.jpg
Back to top
 
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,684
Location: Los Angeles

YaBB 2.5
Re: style sheets have stopped working !
Reply #13 - Jul 3rd, 2013 at 4:16pm
Post Tools
curious aardvark wrote on Jul 3rd, 2013 at 4:05pm:
nah that didn't do it - still not got a clue  Sad

Actually, yours is an easy fix, and a relatively quick one, too.

All you need to do is to FTP into your server, and copy your Forum folder to the following directory:

http://slinging.org/forum/yabbfiles/Templates/

As you have it now, only your Admin directory is showing. Reading my previous post might help (or read the skinny below).

Edited:
Bill Myers wrote on Jul 3rd, 2013 at 3:28pm:
... go up from your /www/www/forum/yabbfiles/Templates/Forum directory so that you can access your /www/forum/yabbfiles/Templates directory.
« Last Edit: Jul 3rd, 2013 at 4:25pm 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
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,387
Location: Earth

YaBB 2.6.1
Re: style sheets have stopped working !
Reply #14 - Jul 3rd, 2013 at 4:19pm
Post Tools
And if Bill's advice doesn't work, contact xnoddyx and see if he can help.  Smiley
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Topic Tools
 
  « Board Index ‹ Board  ^Top