XFileSharing Pro - How to modify templates on local server?

Message
Author
erama
Posts: 2
Joined: Jul 04, 2012 4:07 am

How to modify templates on local server?

#1 Postby erama » Jul 04, 2012 4:53 am

I need edit all templates in my local server, but I can't : error:"invalid license_key".
I want not modify the templates over production server .
I tried emulate the main domain (it has licence) in my local server, but It's the same error. How can I modify and test the new designs of my templates in my local server?

Thanks

randy
Posts: 321
Joined: Mar 13, 2012 7:00 pm

#2 Postby randy » Jul 04, 2012 10:32 am

you can only test it live :( (so be fast)

key works for domain only where it was uploaded. no chance to create it on another site. you would have to buy another key. I was told like that....for me it was a big problem too. you can test html sites but not the CSS. because css works for all sites!

I know that it's a big problem as you cannot test the layout on another server. you must buy a 2nd license for a test site I think....

trinsic
Posts: 149
Joined: Dec 21, 2009 9:24 am

#3 Postby trinsic » Jul 20, 2012 12:43 am

Not true randy!

Upload your template under a new folder e.g Templates2, Templates3, Templates4 etc. It must be in this fashion ("Templates" + a number).

Go to your site and at the end of the URL add: /?design=2

Where 2 is the number of the template folder. A cookie will be set for you and only you to use the design. You may switch back by doing design=0.

You can also use this for people who want a different theme on your site.

randy
Posts: 321
Joined: Mar 13, 2012 7:00 pm

#4 Postby randy » Jul 20, 2012 11:01 am

ok but .css will be activated for all sites even if its a new template!

because css will be used for all sites.

if the new site is red and the old one was yellow and I change the css body background to red the existing site will show red and not the old yellow!

thats the problem

for the next layout I will have to buy a new script just for layout. or admin can offer temporary license key for testdomain...

after that all css and html files will be uploaded to existing site

trinsic
Posts: 149
Joined: Dec 21, 2009 9:24 am

#5 Postby trinsic » Jul 20, 2012 11:17 am

You can very easily change the location of the CSS for the second template in the main.html file.

magnum
Posts: 8
Joined: Jul 03, 2012 2:46 pm

#6 Postby magnum » Aug 11, 2012 6:24 pm

Thanks for the tips trinsic, I try with the main page and it works. but how can we see preview for other page? I try to click other page but it wont work. it keep showing me the main page although the URL is already correct
website/faq.html
Any tips or advices will be greatly appreciated. Thanks

randy
Posts: 321
Joined: Mar 13, 2012 7:00 pm

#7 Postby randy » Aug 12, 2012 2:25 pm

yoursite.com/pages/faq.html :)

magnum
Posts: 8
Joined: Jul 03, 2012 2:46 pm

#8 Postby magnum » Aug 13, 2012 1:08 pm

randy wrote:yoursite.com/pages/faq.html :)
Thanks Randy, somehow it redirect me into this mywebsite.com/pages/blank.html
dunno where I made mistake :(

randy
Posts: 321
Joined: Mar 13, 2012 7:00 pm

#9 Postby randy » Aug 13, 2012 3:37 pm

hmm probably htaccess problem?

magnum
Posts: 8
Joined: Jul 03, 2012 2:46 pm

#10 Postby magnum » Aug 14, 2012 1:08 pm

hmm I already follow instruction and added new link on htaccess but still wont work and redirect to blank.html

randy
Posts: 321
Joined: Mar 13, 2012 7:00 pm

#11 Postby randy » Aug 14, 2012 1:14 pm

open htaccess of public html

check e.g. this line

Code: Select all

RewriteRule    ^tos\.html$					/cgi-bin/index.cgi?op=page&tmpl=tos [L]
add another line next to it for e.g. test.html

Code: Select all

RewriteRule    ^test\.html$					/cgi-bin/index.cgi?op=page&tmpl=test [L]
looks like that then

Code: Select all

RewriteRule    ^tos\.html$					/cgi-bin/index.cgi?op=page&tmpl=tos [L]
RewriteRule    ^test\.html$					/cgi-bin/index.cgi?op=page&tmpl=test [L]
create file in Templates/pages/english

test.html

switch english language and you have it

if you want it for other languages you must upload the html file to other languages too

magnum
Posts: 8
Joined: Jul 03, 2012 2:46 pm

#12 Postby magnum » Aug 28, 2012 3:24 pm

Thank you randy you've so helpful.
It working now, I found out that its because I've been trying to check the website on development mode which is mywebsite.com?design=2
meanwhile I'm uploading the page on template2/pages
so to fix this I upload the copy into template/pages and it works now.

although I believe this can be set from htaccess pointing on template2 folder but nvm its worked :)