I wanna ask something.
Is it possible to change default theme path rather than /themes/ ?
thanks for the answer. :)

Comments

SteveK’s picture

If you want to change the naming convention, the short answer is no. If you want to upload your themes in another directory and have them still be read by drupal, you can do this by setting up the "themes" folder as a symlink to the other folder of choice. ex:

default path:
public_html/themes (symlinks to public_html/some/path/here)

uploaded themes to:
public_html/some/path/here

hope that makes sense (?) or answers your question.

---
I work here: Raincity Studios.com
I hang out here: Steve Krueger.com

takien’s picture

thanks stevek for your fast answer,
but i don't know how to run symlink in cpanel

SteveK’s picture

You can run some code through a php file. Throw this in a file, maybe symlink.php, and put it in your public_html folder:

<?php
echo 'creating symlink...';
symlink( '/home/accountusername/public_html/path/to/theme', 'themes' );
echo 'created symlink.';
?>

replace "accountusername" with your cpanel username and change the path/to/theme to make it according to wherever you'll upload your theme files/folders. Then all you have to do is access this file by going to http://yourdomainname.com/symlink.php and it will create the symlink that you need/want.

---
I work here: Raincity Studios.com
I hang out here: Steve Krueger.com

takien’s picture

I got this warning...

creating symlink...
Warning: symlink() [function.symlink]: File exists in /home/myaccount/public_html/sytt.php on line 3
created symlink.

is this an error?

SteveK’s picture

this would mean the folder "themes" already exists... which is does. You'll have to remove this in order for this to work.

WARNING: if the theme that you're using isnt located in the new folder, your site will "break" or won't load properly.

---
I work here: Raincity Studios.com
I hang out here: Steve Krueger.com

takien’s picture

i have removed themes folder, it looks okay but the another error appears

creating symlink...
Warning: symlink() [function.symlink]: Permission denied in /home/myaccount/public_html/symtt.php on line 3
created symlink.
SteveK’s picture

hmm wierd, doesn't look like permissions are granted for you. Best bet is to contact your hosting provider and double check to see if you'd be able to create one.

---
I work here: Raincity Studios.com
I hang out here: Steve Krueger.com

takien’s picture

ok. many thanks anyway
sorry if this little bit annoying :)

stevek, your drupal site is GREAT!! congrats!