XFileSharing Pro - Include comparison.html in another page

Message
Author
papa_face
Posts: 2
Joined: Jul 16, 2012 7:24 pm

Include comparison.html in another page

#1 Postby papa_face » Jul 16, 2012 7:25 pm

Hi

How can you include the comparison table in another page such as registration.html ?

Copying or including the code from comparison.html doesnt work because there are vars that must not be accessible within the other pages.

Any help is appreciated :)

Thanks

stamos
Posts: 139
Joined: Nov 11, 2010 5:37 pm

#2 Postby stamos » Jul 17, 2012 9:12 am

only with editing index.cgi and sending the variables.
ask sibsoft support better.

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

#3 Postby randy » Jul 17, 2012 3:40 pm

if you want to have 2 html files in 1 then you could do the following with registration.html

create a html file only including this lines:

Code: Select all

<TMPL_INCLUDE registration.html>
<br>
<TMPL_INCLUDE comparison.html>
this means first page will be registration.html

if you want to show comparison.html first then change to

Code: Select all

<TMPL_INCLUDE comparison.html>
<br>
<TMPL_INCLUDE registration.html>
save this file under e.g. register.html and upload it to your cgi-bin/Templates folder

after that you have to modify ".htaccess" from your public html folder where all other folders are.

edit the registration line to this line (only use Notepad++ to edit this file):

RewriteRule ^register\.html$ /cgi-bin/index.cgi?op=registration [L]

upload the ".htaccess" again and overwrite existing ".htaccess" but be sure you upload the right ".htaccess" to the public html folder

after that you have to edit all pages where you can find the register Link with <TMPL_VAR site_url>/register.html">

mostly in main.html. edit, safe and upload.

then you should have the registration incl. the premium features available on your site ;-)