Author Topic: TP & TGPX issues  (Read 9117 times)

0 Members and 1 Guest are viewing this topic.

Offline George

  • Newbie
  • *
  • Posts: 5
    • View Profile
TP & TGPX issues
« on: April 15, 2009, 04:09:11 AM »
I moving from Comus Thumbs to TGPX and I'm having a few problems getting the script to work correctly.

I’m having some problems getting my Trade Pulse script working with click.php.

I've added the following Template to click.php

Code: [Select]
$TEMPLATE = ‘http://www.mydomain.com/tp/out.php?fc=1&p=60&url={$gallery_url}’;

My template reads as the following:

Code: [Select]
{foreach var=$gallery from=$galleries counter=$counter}
<td><a href="/tgpx/click.php?id={$gallery.gallery_url|htmlspecialchars}" target="_blank"><img src="{$gallery.preview_url|htmlspecialchars}" border="0" alt="Thumb"></a></td>
{insert counter=$counter location=+4 max=36}

Clicks do go to my trades however when a click attempts to go to a gallery it sends me to the Trade Pulse admin login page www.mydomain.com/ tp/login.php


Also my toplist is not visable any longer using <!--#include virtual="tp/toplist.html"-->

Any ideas why this is happening?

(Please note the script is currently working fine on my index.shtml with Comus, It's just not working using TGPX on main.html)

Thanks in advance

Offline Web_Master

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • Amadoras Famintas
Re: TP & TGPX issues
« Reply #1 on: April 15, 2009, 04:50:26 AM »
This code is incomplete:

Code: [Select]
{foreach var=$gallery from=$galleries counter=$counter}
<td><a href="/tgpx/click.php?id={$gallery.gallery_url|htmlspecialchars}" target="_blank"><img src="{$gallery.preview_url|htmlspecialchars}" border="0" alt="Thumb"></a></td>
{insert counter=$counter location=+4 max=36}

The truth will:

Code: [Select]
{foreach var=$gallery from=$galleries counter=$counter}
<td><a href="tgpx/click.php?id={$gallery.gallery_id|urlencode}&u={$gallery.gallery_url|urlencode}" target="_blank"><img src="{$gallery.preview_url|htmlspecialchars}" border="0" alt="Thumb"></a></td>
{insert counter=$counter location=+4 max=36}

Change the quotes on page click.php to stay well:

Code: [Select]
$TEMPLATE = 'http://www.yourdomain.com/tp/out.php?fc=1&p=60&url={$gallery_url}';
Change and see if it works correctly. ;)

Offline Web_Master

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • Amadoras Famintas
Re: TP & TGPX issues
« Reply #2 on: April 15, 2009, 04:55:00 AM »
<!--#include virtual="tp/toplist.html"-->

This code only work on pages with extensions .shtml
Rename the main.html to main.shtml

 ;)

Offline Web_Master

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • Amadoras Famintas
Re: TP & TGPX issues
« Reply #3 on: April 15, 2009, 07:18:48 AM »
I saw that information on the forum asking them: http://www.jmbsoft.com/support/viewtopic/5082/

 :-X