Drupal 4.7.5

I added the themes "Nifty Corners" and "Internet Jobs" to my theme folder, but I can not see them listed when I view my themes. The only themes I see listed are the default themes.

Comments

jdevries’s picture

Did a quick test with those themes, but they work fine with me. Are you sure you installed them in the right folder? That is, did you install them like this:

<drupal folder>
--themes
----niftyCorners
------<niftyCorners files>
----internet_jobs
------<intermet_jobs files>

Alternatively, you might also install them under you sites folder, but make sure you check the handbook on how to set this up.
_______________
Drupal rookie (but working on it...)
Links that I found handy | IBM

walterbyrd’s picture

That is where I have them.

I am using the Drupal 4.7.5 and the pushbutton theme.

jdevries’s picture

Few questions you could check:

  1. Have you doublechecked the folder? Make sure you don't have accidently created a folder layout like <drupal>/themes/niftyCorners/niftyCorners/*. It should look like this: <drupal>/themes/niftyCorners/* (or a similar setup in your sites folder, see handbook remark above).
  2. Where are you trying to switch themes? In your profile or in administer >> themes?
  3. Can you see the themes on the administration page?
  4. If yes, have you enabled the themes there and/or made one of these themes the default?

If you want your users to be able to switch theme, make sure you give them the appropriate permission in administer >> access control.
_______________
Drupal rookie (but working on it...)
Links that I found handy | IBM

walterbyrd’s picture

See screenshots:

http://synet-consulting.com/files/ss1.doc
http://synet-consulting.com/files/ss2.doc
http://synet-consulting.com/files/ss3.doc

1. Have you doublechecked the folder? Make sure you don't have accidently created a folder layout like /themes/niftyCorners/niftyCorners/*. It should look like this: /themes/niftyCorners/* (or a similar setup in your sites folder, see handbook remark above).

I doublechecked the folder. Everything is settup correctly.

2. Where are you trying to switch themes? In your profile or in administer >> themes?

administer >> themes.

3. Can you see the themes on the administration page?

No.

4. If yes, have you enabled the themes there and/or made one of these themes the default?

I only want to be able to view/change themes as administrator.

jdevries’s picture

Ss1.doc is showing the internet_Jobs theme right between chamleon and marvin. Since you have checked the folder setup I am running out of ideas what might prevent the niftyCorners theme from showing up, as it worked first time 'round on my system. Sorry. Maybe someone else can provide you with other suggestions though.

_______________
Drupal rookie (but working on it...)
Links that I found handy | IBM

styro’s picture

Drupal won't be able to find the themes if it doesn't have the right permissions. In most cases (ie when not using phpsuexec) Apache (and therefore Drupal) runs as a different user than the one you upload files with.

Usually this means that the files need to be world readable and directories need to be world readable and executable. The world permission is the last digit in the chmod number - ie it should be 4 for files and 5 for directories that Drupal needs to 'browse'.

Read and execute permissions on a directory allows it to be browsed for files - with just execute permissions, you can access files in it only if you know the exact path. Drupal definitely needs to browse the site, theme and module directories as they get all kinds of files put in there that Drupal can't know about in advance.

More gory permissions details here: http://drupal.org/node/34022

--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ

texas-bronius’s picture

Just wanted to drop more search keywords on the matter, as I have just burned an afternoon stepping through in a debugger to finally discover that even the point of the theme inclusion had a properly built path and filename, yet the rendered themed view in the browser was a nothing by UL/LI's and no content.

I set the file permission on my *.php.tpl's to give apache (wwwrun in my case) read access, and voila, the themed output rendered as expected.

--
http://drupaltees.com
80s themed Drupal T-Shirts

PaulDing’s picture

I just upgraded a 4.7.x site to 5.1, and had problems with the 5.1 version of niftyCorners.

The downloads page recommended using the HEAD release, because of a bug the guy couldn't fix. That didn't help, but I found that doing a global search/replace on template.php, changing form_render to drupal_render fixed the problem.

Nice theme. You can see how I've changed it a little, at http://a.amishhosting.com

The "fancy" theme is nice, too. http://lancaviews.com

jaskegreen’s picture

I'm working with D5.1 and specifically with the Amadou theme, but none of my themes were working. I tried many of the suggestions here, as well as, deleting empty lines in theme files. Nothing worked.

I then started poking around and found a .htaccess file in my files directory. My host does not like .htaccess files, so I renamed it and presto, it worked until I uploaded another image. I then found a post that said to comment out the lines in the file using # at the beginning of each of the three lines. This could possibly create a security risk, but if my site's theme doesn't work, I'll take the risk.

Thought I would add this for anyone dealing with a similar issue.

Jason
JC SWAK - web hosting & design
www.jcswak.com