control panel theme

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
oxygenws

control panel theme

Post by oxygenws »

i want to change DIRECTION of control panel pages. (dir=rtl (in html) OR direction: rtl; (in CSS))
but there isn't any configuration and theme for changing direction!!
how can i change it??
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: control panel theme

Post by garvinhicking »

Yes, we have no option for that. Nobody of our developers knows a right-handed language and knows how to implement that.

Anyone volunteering for that is welcome. The HTML code code can be edited in serendipity_entries.php and serendipity_admin.php, the CSS code can be edited in the templates CSS style.css (or admin/style.css for Serendipity 0.8).

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

:) Thanks, i'll check that files :D

i live in Iran and i have about 3 years experiences in PHP developement, so i think that i can help you :) if you want ;)

i try to develope your code to be compatible with RTL and BIDI languages. but i need your help to support this in your next versions.

you have my email, if you want, for further developes, i can help you for RTL langs and ....

:)
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

sorry Garvin....
i can't find serendipity_entries.php and admin/style.css
did you mean "templates/default/admin/admin.css"??

but i can't find serendipity_entries.php at all!!!
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

another problem is with the calendar translation :)
where are the week day names??
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You need to download latest 0.8 snapshot of Serendipity. The files are only there! "include/serendipity_entries.inc.php"

The admin.css is inside the template' templates/TEMPLATENAME/css/admin folder.

The weekday names for calendar are outputted via your system's locale.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

You need to download latest 0.8 snapshot of Serendipity. The files are only there! "include/serendipity_entries.inc.php"
i think you mean "include/functions_entries.inc.php", thanks.
The admin.css is inside the template' templates/TEMPLATENAME/css/admin folder.
Thanks, i solved most of problems!! but i think your uri is wrong again, it would be "templates/TEMPLATENAME/admin"

a new question (should i open a new topic for new question??)
1- i changed the language to my own language (Persian)
2- i must logged out, then logged in...
3- all langs are Persian.
4- after clicking on ANY link, it switched to english!!
5- it happend in admin control panel only.

another question!!
why it shows "Warning: Your current template is using a deprecated template method, you are advised to update if possible" for "Mozilla Modern Tribute"???

Best Regards, Omid
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

a new question (should i open a new topic for new question??)
1- i changed the language to my own language (Persian)
2- i must logged out, then logged in...
3- all langs are Persian.
4- after clicking on ANY link, it switched to english!!
5- it happend in admin control panel only.
oops, i must change my own user language to Persian too :oops:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi oxygenws!

Sorry for the wrong URLs, I wasn't being exact there. :(
why it shows "Warning: Your current template is using a deprecated template method, you are advised to update if possible" for "Mozilla Modern Tribute"???
Since Serendipity 0.8, we offer the users a way to use Smarty Templating to customize their templates. This means that older 'layout.php' files inside the templates directories are no longer needed, as everything done there can be achieved via editing the various *.tpl files.

The usage of that layout.php method is still possible, but you get better performance, if you adjust the template to use Smarty. If Serendipity detects that you use the old method, it emits a warning on the Theme Selection panel:

"Warning: Your current template is using a deprecated template method, you are advised to update if possible"

Doing that is quite easy: Take the .tpl files you need from the 'default' template folder and adjust them to fit the style of your template. Make it look like it looked previously using the layout.php.

If you need to execute certain PHP-code within the layout.php you can now put that code into 'config.inc.php' inside your template directory. This PHP code is then executed before our templating engine displays your templates. That means you can also add your custom Smarty modifiers in that file.

After having adjusted the files (you usually only need to edit the index.tpl file) you can delete layout.php and the warning message will disappear, and you will be able to use the full power of Smarty Templating.

Currently, a few bundled templates (like Mozilla Modern) are still using the old method. As soon as the developers find some time, they will be adapted to the new templating.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

Hi :)

thanks, i will create my own theme asap :)
i will send it to you ;)
Post Reply