We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Update Request - OldFuture Theme Changer | Forum

Mark
Mark May 3 '14

On a future update - can you make it to where you can name the themes in the Theme Changer - We would like to make it to where they can choose between light or dark - and with the current names members have to select each one until they figure out which one is the light and which one is the dark.

 

Thanks

Sen Projects
Sen Projects May 4 '14
Hi Mark,


It is a a great idea.


Thank you.

Mark
Mark May 5 '14

Do you want to change the names on the Theme Changer Slider?

Here are step by step instructions if you want to use them.

 

These steps will need to be completed for each theme you have installed on your site.

 

Using your FTP Client, login to your site.

Browse the following folder:

ox_themes

open the theme folder that you want to change.

In this example we are using the theme "Silent"

open up the Silent Theme folder and download the following file to your computer,

theme.xml

 

Once downloaded, open up the file with any type of editor, we use notepad++  ( Encode in UTF-8 with out BOM selected in the encoding  - this keeps the format correct)

 

you will see the following lines:

<theme>
    <name>Silent</name>
 <key>silent</key>
    <description>The 'Silent' theme with sidebar</description>
    <author>Oxwall Foundation</author>
    <authorEmail>themes@oxwall.org</authorEmail>
 <authorUrl>http://www.oxwall.org/foundation</authorUrl>;
    <developerKey>e547ebcf734341ec11911209d93a1054</developerKey>
    <build>6515</build>
    <copyright>(C) 2013 Oxwall Foundation. All rights reserved.</copyright>
 <license>The BSD License</license>
    <licenseUrl>http://www.opensource.org/...hp</licenseUrl>;
    <sidebarPosition>right</sidebarPosition>
</theme>

 

You only need to change the top line

<name>Silent</name>

We will name it "Dark" in this example

<name>Dark</name>

 

Save the file.

 

Using your FTP Client, right click on the Theme.xml on the site and rename the file to theme.xml.old

Upload the theme.xml you just modified to the theme folder.

 

Now browse the ox_static/themes folder open the theme folder that you just modified in the ox_themes - and rename the theme.xml to theme.xml.old.

Upload the modified theme.xml to the same area.

 

YOU WILL NEED TO DO THE ABOVE STEPS FOR EACH THEME YOU HAVE INSTALLED ON YOUR SITE.

 

DATABASE CHANGES:

Using a MySQL client or if your host allows you access to phpMyAdmin in your host panel, open the database.

open the table ox_themes

Browse the table you will see a column name "title"

this is where the Theme Changer pulls the name of the themes from.

With phpMyAdmin if you click on the entry it will allow you to change the name inline.

MAKE SURE YOU PUT IN THE NAME YOU ENTERED IN THE THEME.XML FILE.

click anywhere outside of the entry and it will apply the changes.

Change each title to what you named the themes on your theme.xml files.

 

Once done - close out of your phpMyAdmin and also the FTP Client

go to your Admin login and select Manage Plugins

Go to the "Cache Extreme" and select settings

make sure all the boxes are checked and click on "Clean It Up"

this will remove all your cached items from the site.

 

now go to the main site and refresh your page - your theme changer should have the new names in the slider.

 

Key Points:

Any errors/differences in your naming between the DATABASE and XML FILES will create a error

If you don't follow these steps and just rename the database titles, as soon as the site refreshes or you choose a different theme as the default, the new names will revert back to the original names.

 

Hope This Helps

 

ONE OTHER KEY THING

DO NOT CHANGE ANY OTHER LINES IN THE XML FILE - KEEP THE AUTHOR AND COPYRIGHT INTACT - GIVE CREDIT WHERE CREDIT IS DUE -

 

The Forum post is edited by Mark May 5 '14
Sen Projects
Sen Projects May 5 '14
+1
Mark
Mark May 5 '14
Not sure what the +1 means - Thank you?
Sen Projects
Sen Projects May 8 '14
It's more of a "Like" in Social Networking and also a way of showing appreciation.

By the way kindly check our new services http://www.senhosting.com/en/


Thank you.

You do not have permission to reply this topic