Script Pulse

Trade Pulse => Trade Pulse Support => Topic started by: sophocles on January 14, 2009, 03:37:36 AM

Title: include toplist
Post by: sophocles on January 14, 2009, 03:37:36 AM
I have install the toplist suc6 on my front <!--#include virtual="tp/toplist1.html" -->
but if i want to try the toplist include  like this page http://www.mysite.com/pivot/entry.php the toplist are not showing

How i can include the toplist in al my pages??

Sorry for my bad english
Title: Re: include toplist
Post by: Ric on January 14, 2009, 05:35:18 AM
<!--#include virtual="tp/toplist1.html" -->

That is for an SSI include... since it looks like you are using a PHP page.

Quote
http://www.mysite.com/pivot/entry.php

you need to have it like this

<?php include('tp/toplist1.html'); ?>


Title: Re: include toplist
Post by: sophocles on January 14, 2009, 05:52:36 AM
<!--#include virtual="tp/toplist1.html" -->

That is for an SSI include... since it looks like you are using a PHP page.

Quote
http://www.mysite.com/pivot/entry.php

you need to have it like this

<?php include('tp/toplist1.html'); ?>




Thanks for your response
I have try <?php include('tp/toplist1.html');  and the same problem whit this include <!--#include virtual="tp/toplist1.html" -->
First i have a problem with couting in.php and solved  with include ("/home/admin/domains/mysite.com/public_html/tp/ssi_in.php"); on the first line

While this working? include ("/home/admin/domains/mysite.com/public_html/tp/toplist1.html"); ??
Title: Re: include toplist
Post by: ip0li on January 14, 2009, 05:58:35 AM
it should, try it mate...
Title: Re: include toplist
Post by: sophocles on January 14, 2009, 08:26:10 AM
it should, try it mate...
Now way same problem the toplist are not showing
Title: Re: include toplist
Post by: Ric on January 14, 2009, 01:57:30 PM
Do you have trades to show on the Toplist?

If yes I'm confused by your directory structure:

Is toplist1.html being created in the TP directory?
If so what HTML does it contain?

So your TP is in:
/home/admin/domains/mysite.com/public_html/tp/

But from your sample URL (http://www.mysite.com/pivot/entry.php)
I'm guessing your front page is in
/home/admin/domains/mysite.com/public_html/pivot/

I'd have TP installed in my web root directory.

Title: Re: include toplist
Post by: sophocles on January 15, 2009, 02:25:26 PM
Yeah now its works the code whas [[include:tp/toplist.html]] for pivot script ;D
Title: Re: include toplist
Post by: ip0li on January 15, 2009, 04:18:51 PM
perfect :)