Hi,
I have created an Report Abuse page named report.html and would like to link it from the main.html.
I have found where the link should be in the main.html and I am not sure where and how it should be done in the index.cgi file.
<a href="<TMPL_VAR site_url>/links.html"><TMPL_VAR lang_links></a> |
<a href="<TMPL_VAR site_url>/contact.html"><TMPL_VAR lang_contact_us></a> |
<a href="<TMPL_VAR site_url>/report.html"><TMPL_VAR lang_??????></a>
What code and where do I add in the index.cgi file?
I searched and found this thread but it didn't give me much details on where and how...
http://www.sibsoft.net/forum/adding-new ... light=subs
Thanks for your help!
XFileSharing Pro - Adding New Link From Main.Html To New Page?
You don't need to edit index.cgi for this
you can just edit templates/main.html and add
If you want to do it neatly, edit the language files in cgi bin..
you can just edit templates/main.html and add
Code: Select all
|
<a href="http://www.sitename.com/report.html">Report abuse</a>
-
- Posts: 29
- Joined: Jul 05, 2010 12:08 am
That's what I ended up doing and it works perfectly!nyan wrote:You don't need to edit index.cgi for this
you can just edit templates/main.html and addIf you want to do it neatly, edit the language files in cgi bin..Code: Select all
| <a href="http://www.sitename.com/report.html">Report abuse</a>
Thanks for the assistance!
-
- Posts: 28
- Joined: Jun 22, 2012 10:01 pm
I've been trying to add this to the knowledgebase, but I keep getting SQL error when I try to add articles.
You first need to modify your .htaccess file rules. Add this (given you made a page in /cgi-bin/Templates/pages/english/)
RewriteRule ^report\.html$ /cgi-bin/index.cgi?op=report [L]
that makes it so you can link to sitename.com/report.html
at the moment you will only be able to find it by going to sitename.com/pages/report.html
done and done
You first need to modify your .htaccess file rules. Add this (given you made a page in /cgi-bin/Templates/pages/english/)
RewriteRule ^report\.html$ /cgi-bin/index.cgi?op=report [L]
that makes it so you can link to sitename.com/report.html
at the moment you will only be able to find it by going to sitename.com/pages/report.html
done and done
@Jesse202 ,
I have little more evolved problem . How to add .php page to the main.html one ?
Tryed with the htaccess editing (on both rewrite rules for /pages/file and tmpl section , but it just doesnt want to accept php as file , it doesnt give even error , just returning the users to the home page.
I have little more evolved problem . How to add .php page to the main.html one ?
Tryed with the htaccess editing (on both rewrite rules for /pages/file and tmpl section , but it just doesnt want to accept php as file , it doesnt give even error , just returning the users to the home page.