First time here? Check out the FAQ!
1

How to change askbot skin ?
 

Hey,

I've modified Askbot skin and place it in an other foler (/home/name/myskin) and created a symbolic link (ln -s) from this folder to askbot/skins/myskins.

Now I would like to know how to use this new skin by default ?

Thank you :)

Edit : in settings, under Skins tab, myskin doesn't appear in the select menu to choose skin.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
AlexP's avatar
23
AlexP
updated 13 years ago, asked 13 years ago

Comments

see more comments

2 Answers

1

Try adding ASKBOT_EXTRA_SKINS_DIR setting to your settings.py as described here.

Please post an update if it does not help.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 13 years ago
link

Comments

set skin path to ASKBOTEXTRASKINS_DIR works for me

byron's avatar byron (13 years ago)
see more comments
0

I've defined ASKBOT_EXTRA_SKINS_DIR as follow :

ASKBOT_EXTRA_SKINS_DIR = '/home/name'

with and without trailling slash, but myskin still doesn't appear in settings. I've check the folder syntax, and it has the required folders.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
AlexP's avatar
23
AlexP
answered 13 years ago
link

Comments

1

Hmm, works for me, probably your directory path is incorrect... I have dir /home/username/extraskins, and inside extraskins have the skin directory myskin. The ASKBOT_EXTRA_SKINS_DIR = '/home/username/extraskins' and the skin works - both appears in the dropdown and loads correct templates & media.

Evgeny's avatar Evgeny (13 years ago)

I've check directory structure, and as it's base on default, it has the exact same one. I also checked the CHMOD of the directory structure, and it seems good for me (apache:apache). I don't know what may cause the problem now ...

Do I have to restart server after doing a change ? If yes, how ?

AlexP's avatar AlexP (13 years ago)

Does it work with python manage.py runserver? One way to restart apache is /etc/init.d/httpd restart or /etc/init.d/apache2 restart depending on the system and the version of the webserver.

Evgeny's avatar Evgeny (13 years ago)

I just had to restart the server with "service httpd restart" and the skin appears in the list and the media are correctly loaded.

Thank you for your help !

AlexP's avatar AlexP (13 years ago)

Hey, is it possible to mark a comment as favorite? So I can mark this problem as solved

AlexP's avatar AlexP (13 years ago)
see more comments