Themes Not Working

You made an own skin or theme for phpMyFAQ. You can share it here with others!

Moderator: Thorsten

Post Reply
terabyte2007
Posts: 5
Joined: Sun May 09, 2010 2:02 am

Themes Not Working

Post by terabyte2007 » Sun May 09, 2010 2:07 am

Hello, I am running phpMyFAQ 2.6.4 and none of the themes that were posted here seem to work? Anyone have ideas as to why? I made sure that the path to images were correct, checked everything I know of. All I get is image place-mark squares and text. No styles seemed to be getting applied. Tried refresh, clearing caches and etc. Help!

Eric

Thorsten
Posts: 14754
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Themes Not Working

Post by Thorsten » Sun May 09, 2010 8:32 am

Hi,

how do you add the template files?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

terabyte2007
Posts: 5
Joined: Sun May 09, 2010 2:02 am

Re: Themes Not Working

Post by terabyte2007 » Sun May 09, 2010 10:46 pm

I created another directory under templates called default4 and then selected that theme in the config. I also tried the default directory by backing up my current default and then copying the new default directory to templates and selecting in config.

Eric

Thorsten
Posts: 14754
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Themes Not Working

Post by Thorsten » Mon May 10, 2010 7:57 am

HI Eric,

could you please point me your FAQ to check what's happening there? Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

terabyte2007
Posts: 5
Joined: Sun May 09, 2010 2:02 am

Re: Themes Not Working

Post by terabyte2007 » Mon May 10, 2010 12:33 pm

Ok, I re-installed the theme that was provided as "default.zip" from a few posts ago. I just renamed the directory and enabled the theme and no styles take effect. Not sure what I am doing wrong, probably something stupid I would guess. Here is the URL to the FAQ site.

http://www.munroe-falls-paranormal-society.com/faq/

Eric

Thorsten
Posts: 14754
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Themes Not Working

Post by Thorsten » Mon May 10, 2010 8:01 pm

Hi,

the stylesheet files are missing: http://www.munroe-falls-paranormal-soci ... /style.css

This produces a 404 "File not found".

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

terabyte2007
Posts: 5
Joined: Sun May 09, 2010 2:02 am

Re: Themes Not Working

Post by terabyte2007 » Tue May 11, 2010 4:50 am

Yes I see that the directory, is not pointing correctly but I have it installed in /faq/templates/default4 and everything references /templates/default4.

Is there anyway to change the reference directory? I checked the index.php and others but could not find the file. Thanks for your help!

Eric

Thorsten
Posts: 14754
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Themes Not Working

Post by Thorsten » Tue May 11, 2010 7:41 am

Hi,

well.. you changed that in the index.tpl file:

Code: Select all

  <link rel="stylesheet" type="text/css" media="screen,projection,print" href="/template/{tplSetName}/mf54_reset.css;" />
  <link rel="stylesheet" type="text/css" media="screen,projection,print" href="/template/{tplSetName}/mf54_grid.css" />
  <link rel="stylesheet" type="text/css" media="screen,projection,print" href="/template/{tplSetName}/style.css" /> 
Just remove the / before /template/{tplSetName}/mf54_reset.css

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

terabyte2007
Posts: 5
Joined: Sun May 09, 2010 2:02 am

Re: Themes Not Working

Post by terabyte2007 » Tue May 11, 2010 3:28 pm

I have made the edits to the index.tpl file and the style is still not right, although better. I went through the .css files and changed references from /template/ to template/ and this did not help. It appears that many references in other files are looking for /templates and /inc and so on but SimpleScripts from my hosting service installed this upgrade version with all these references. The old version never had this issue until I did the upgrade.

My question, do I have to change all references in all editable files that contact /{directory} to either /faq/{directory} or just {directory}?

Thanks for all your help!

Eric

Thorsten
Posts: 14754
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Themes Not Working

Post by Thorsten » Tue May 11, 2010 7:13 pm

Hi,

please use Firefox and the FireBug add-on to fix all path problems... then it will work.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply