|
Haven't registered yet? Do it here now!
|
|
|
|
globalinsites
Joined: 20 Feb 2010 Posts: 4
|
|
|
|
|
|
|
Posted: Sat Feb 20, 2010 9:51 pm Post subject: Confused about include in html template |
|
|
|
|
|
|
|
|
|
|
I want to display a table with links on my tube site which uses .html templates. For some reason the table with links won't show up.
I first tested the template by going to the template url in my browser and I see the table with a link showing up fine, so no problem so far.
I have this in my htacess file which is in the root of the domain:
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
I have tried adding all 3 includes in my html tube template file (I did that one by one of course), but the table with link did not show up.
My tube script is in
/tube
My tube template files are in
/tube/templates/default
(not sure if you needed that information..)
I then noticed that I have a index.php in /tube although I always go to /tube/index.html. I then found this in my htaccess which could explain that:
RewriteEngine on
RewriteRule ^index.html$ index.php [L]
(and lots more)
I then got very confused and not sure what to do anymore LOL
Any tips?
Thanks |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Sat Feb 20, 2010 10:58 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
well, lets start from here..
if your tube is on same server as is LO, grab the first local php include code from LO. If your tube is on another server, grab the CURL link code from LO
make a new file without any contents and put the LO code in it, and save it like http://www.yourtube.com/kaktusan.html
then visit the url in your browser and let me know if yo usee the trades or no.. if no there's a problem with calling the trades..
if you saw the trades, then calling the trades works with that code you used, so now you need to put it in your tube templates. But, be sure you templates allow php inside them.. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
globalinsites
Joined: 20 Feb 2010 Posts: 4
|
|
|
|
|
|
|
Posted: Sat Feb 20, 2010 11:21 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
My tube is on the same server as LO. I did what you said and I can see the table with trades on kaktusan.html.
I then copied the code to my template, but the table with trades does not show up
How can I find out if my templates allow php in them or not? |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Sun Feb 21, 2010 12:06 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
i see, then everything about LO is fine.. you now need to talk to your tube script support and ask them how to insert properly php code inside the template.. i am not familiar with the tube scripts, sorry.. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
globalinsites
Joined: 20 Feb 2010 Posts: 4
|
|
|
|
|
|
|
Posted: Sun Feb 21, 2010 1:17 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
I spoke to him and finally got it to work by adding this in my template:
{include_php file="my_file.php"}
I replaced my_file.php with the url to the LO template and it seem to work just fine now.
Thanks for your help. |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Sun Feb 21, 2010 8:35 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
ok, cool! glad you worked it out _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
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
|
Powered by phpBB © 2001, 2002 phpBB Group
|
|
|
|
| |