RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File sharing script

File mirror script
Adding a new page..

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
scarab



Joined: 19 Feb 2012
Posts: 11

PostPosted: Mar 16, 2012 10:19 pm    Post subject: Adding a new page.. Reply with quote

funny but I have small problem with quite simple thing. I want to add new link to page (privacy policy) in footer where rest of links are.
Like this:
Home | News | FAQ | Terms of service | Privacy Policy | Link Checker | Links | Contact Us

So, basically what I did is:

I have added a line in templates/main.html
Code:
<a href="<TMPL_VAR site_url>/privacy.html"><TMPL_VAR lang_privacy></a> |


And:
In language/english.lng
Code:
lang_privacy            => "Privacy Policy",


Also:
I have uploaded privacy.html page in /Templates/Pages/english

I believe that everything i did should be correct. There is a link is named Privacy Policy is in footer..

BUT:
When I click on Privacy Policy it says File not Found

Also there is one more interesting this on that file not found page. there is a link back to main page which is linked to sibsoft main page not mine website. So that brings another question. Where I can change that?

Can anyone give me a hint what am doing wrong with this..
I will appreciate that..
Thanks
Back to top
View user's profile
ufkabakan



Joined: 13 Apr 2011
Posts: 271

PostPosted: Mar 17, 2012 12:31 am    Post subject: Reply with quote

try this for links:
htxp://www.mydomain.com/pages/privacy.html
Back to top
View user's profile
scarab



Joined: 19 Feb 2012
Posts: 11

PostPosted: Mar 17, 2012 11:23 am    Post subject: Reply with quote

aha, now i got it. I have followed example how sibsoft done tos.html and faq.html and put in templates/pages/english or ..../german to have localization for each language but ok nvm..

I have uploaded privacy.html to templates/pages/

and instead of:
Code:
<a href="<TMPL_VAR site_url>/privacy.html"><TMPL_VAR lang_privacy></a> |


used this:
Code:
<a href="<TMPL_VAR site_url>/pages/privacy.html"><TMPL_VAR lang_privacy></a> |


Now it works, thanks for help:)
Back to top
View user's profile
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright © 2003-2013 Sibsoft Ltd