Try adding a shortcode to do this. In pto.php look for the following code at line 550:
case "atoz":
...and REPLACE with:
case "marquee":
global $pto_config_databaseTablePrefix;
global $pto_config_merchantBaseHREF;
global $pto_config_externalPath;
global $pto_config_externalBaseHREF;
$html .= "<marquee>";
$sql = "SELECT DISTINCT(merchant) AS merchant FROM
`".$pto_config_databaseTablePrefix."products` ORDER BY merchant";
$wpdb->query($sql);
foreach($wpdb->last_result as $row)
{
$href = get_bloginfo('url').$pto_config_merchantBaseHREF."/".pto_common_hyphenate($row->merchant);
$html .= " <a href='".$href."'>";
if (file_exists($pto_config_externalPath."logos/".$row->merchant))
{
$html .= "<img border='0' src='".$pto_config_externalBaseHREF."logos/".$row->merchant."' />";
}
else
{
$html .= $row->merchant;
}
}
$html .= "</marquee>";
break;
case "atoz":
Hi Paul,
Try adding a shortcode to do this. In pto.php look for the following code at line 550:
case "atoz":
...and REPLACE with:
case "marquee":
global $pto_config_databaseTablePrefix;
global $pto_config_merchantBaseHREF;
global $pto_config_externalPath;
global $pto_config_externalBaseHREF;
$html .= "<marquee>";
$sql = "SELECT DISTINCT(merchant) AS merchant FROM
`".$pto_config_databaseTablePrefix."products` ORDER BY merchant";
$wpdb->query($sql);
foreach($wpdb->last_result as $row)
{
$href = get_bloginfo('url').$pto_config_merchantBaseHREF."/".pto_common_hyphenate($row->merchant);
$html .= " <a href='".$href."'>";
if (file_exists($pto_config_externalPath."logos/".$row->merchant))
{
$html .= "<img border='0' src='".$pto_config_externalBaseHREF."logos/".$row->merchant."' />";
}
else
{
$html .= $row->merchant;
}
}
$html .= "</marquee>";
break;
case "atoz":
Then in your page / post, use the shortcode:
[pto marquee="TRUE"]
Cheers,
David.
--
PriceTapestry.com