XFileSharing Pro - Adding New Link From Main.Html To New Page?

Message
Author
shareitall
Posts: 29
Joined: Jul 05, 2010 12:08 am

Adding New Link From Main.Html To New Page?

#1 Postby shareitall » Sep 15, 2011 3:55 pm

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!

:-)

nyan
Posts: 163
Joined: Oct 28, 2010 8:01 pm

#2 Postby nyan » Sep 15, 2011 9:37 pm

You don't need to edit index.cgi for this
you can just edit templates/main.html and add

Code: Select all

|
<a href="http://www.sitename.com/report.html">Report abuse</a>


If you want to do it neatly, edit the language files in cgi bin..

shareitall
Posts: 29
Joined: Jul 05, 2010 12:08 am

#3 Postby shareitall » Sep 15, 2011 9:56 pm

nyan wrote:You don't need to edit index.cgi for this
you can just edit templates/main.html and add

Code: Select all

|
<a href="http://www.sitename.com/report.html">Report abuse</a>


If you want to do it neatly, edit the language files in cgi bin..


That's what I ended up doing and it works perfectly!

Thanks for the assistance!

;-)

inspired32
Posts: 28
Joined: Jun 22, 2012 10:01 pm

hey

#4 Postby inspired32 » Jul 01, 2012 11:39 pm

i have done also this but when visiting www.site.com/abuse.html

i got
File Not Found

Any solution?

Jesse202
Posts: 246
Joined: May 07, 2010 6:24 pm

#5 Postby Jesse202 » Jul 02, 2012 4:16 am

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

Stefanzm
Posts: 85
Joined: Apr 08, 2012 3:41 pm

#6 Postby Stefanzm » Jul 18, 2012 5:05 pm

@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.

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

#7 Postby randy » Jul 19, 2012 1:39 am

what is your site stefan so I can check? its better than only code snippets.

Stefanzm
Posts: 85
Joined: Apr 08, 2012 3:41 pm

#8 Postby Stefanzm » Jul 20, 2012 5:06 pm

Hello randy ,
I prefer to keep the name of my website private :)
But as for the code on the site , its basic XFS pro , with minor changes to templates and few other cgi stuff.
But if you have an idea about how to add .php page to the main one , i`ll be happy to test it out :)


Return to “XFileSharing Pro”



Who is online

Users browsing this forum: No registered users and 0 guests