How to rename

GK User
Thu Aug 18, 2011 4:51 pm
Hi Guys,

I would like to rename the template folder.
Reason: Security concerns if there is any known bug. Doing the same by hiding the Joomla Meta.
As I leave everything else intact I guess this shouldn't be a problem at all, right?

Thank you.
User avatar
Junior Boarder

GK User
Thu Aug 18, 2011 6:05 pm
I'll do this tonight, and if no one tells you how I explain it to you.

Well, also blocking folder indexes access via .htaccess helps preventing many things.
User avatar
Expert Boarder

GK User
Thu Aug 18, 2011 6:20 pm
Hi maconsocial

Thanks for your message!
I tried it already by myself but I don't know what went wrong. I have done this many times with other templates (non-Gavick) and it worked. I'm always getting problems with the language file. Templates.xml is pointing to the correct language file but it won't render the file. It just shows the stuff up with ie TPL_GK_APPSITE_LOGIN (just an example, don't look for the correct typo).

So it seems I have something done wrong but I can't figure it out.
Looking forward to your steps ;)

Nick
User avatar
Junior Boarder

GK User
Sat Aug 20, 2011 8:34 pm
Hi,

did you had any success?
Would love to hear your solution if any ;)
User avatar
Junior Boarder

GK User
Sat Aug 20, 2011 8:50 pm
Sorry, haven't done it yet, will try now.

Was to do it sooner but a family member died, so... I'll return with my findings.
User avatar
Expert Boarder

GK User
Sat Aug 20, 2011 9:20 pm
I began by creating a folder inside my /templates, called /default, then via FTP I copied all files from the server /gk_twn2 into the local folder /default

After all files been copied from server to my local machine, I opened Dreamweaver CS5, then on toolbar, I selected the option Edit » Find and Replace... then on Find in: I selected my local folder /default, selecting also on Search drop down for: Source Code and added on the Find: box

Code: Select all
gk_twn2


Then I pressed Find All button.

By doing so, it returns me all codes with that query, making easier to find things rather than replace automatically and get errors.

So I selected one by one, replaced the original tag by

Code: Select all
default


Which is the name of the folder I want the template to work.

Found on TemplateDetails.xml the following line:

Code: Select all
<language tag="en-GB">en-GB.tpl_gk_twn2.ini</language>


Which I took note first, then replaced with my own:

Code: Select all
<language tag="en-GB">en-GB.tpl_default.ini</language>


I left this line untouched, so that I can get templates updates:

Code: Select all
var update_url = 'http://www.gavick.com/updates.raw?task=json&tmpl=component&query=product&product=gk_twn2_j16';


And all tags like this, also left those untouched:

Code: Select all
gk_twn2_16_style


After this down, I save all changed, now, remember?

Code: Select all
<language tag="en-GB">en-GB.tpl_gk_twn2.ini</language>


You'll find this file here:

language/en-GB


Rename it from:

Code: Select all
en-GB.tpl_gk_twn2.ini


to:

Code: Select all
en-GB.tpl_default.ini


And save.

Now upload the /default template via FTP to the /templates folder, go to Joomla and apply as default to see if it works.

Please note that "default" here is just an example, you can use another name.
User avatar
Expert Boarder

GK User
Sun Aug 21, 2011 9:04 am
First: My deepest condolence goes to you and your family!

Thank you for your detailed explanation. I have tried this in the same way but it has broken my template design as well.
There seems to be something, somewhere inside the template folder which still takes care of the correct naming of the template.
Maybe I should open a support ticket and ask them where the problem could be.
I can't explain it as I have done this many times before with other templates (different providers).

Anyway, I will ask the support team about this and will get back to you.

Thank you so far!
User avatar
Junior Boarder

GK User
Mon Aug 22, 2011 1:52 am
Hello itw, I would be happy to take a look for you. If you are interested then please send me an email with admin and frp details.
User avatar
Gold Boarder

GK User
Wed Aug 24, 2011 1:06 pm
Hi,

I've tried following maconsocial's instructions but with no luck: The new template would not appear under Extensions Manager->Template Manager.
So I made the changes directly to the original template folder. I also added one step that I believe was missing (at least when you work directly with the original template folder): rename the template in db table xxx_template_styles. I did this as well but after going to Extensions Manager->Template Manager there was no site template appearing at all.

Any idea? Has anyone managed to rename the template yet?

Cheers
User avatar
Fresh Boarder

GK User
Thu Sep 01, 2011 4:55 am
Try to zip it and install, adding the en-GB.tpl_default.ini file inside a /language folder before zipping, then, after install, copy the original codes, settings etc into the renamed template.
User avatar
Expert Boarder

GK User
Mon Sep 19, 2011 6:11 pm
Sorry for late reply due vacation.

Was someone able to solve this?
User avatar
Junior Boarder

GK User
Sat Oct 01, 2011 2:21 pm
Thought about bumping this after a week...
User avatar
Junior Boarder

GK User
Thu Dec 08, 2011 11:42 am
User avatar
Gold Boarder


cron