dg123
11-07-03, 03:58 AM
hi
i have this code
my $featuredwatch;
if ($featured eq 'yes') {
$featuredwatch .= "Featured Auction Main Page<br>";
}
if ($catfeat eq 'yes') {
$featuredwatch .= "Featured Auction Category<p>";
}
if ($watchflag) {
$featuredwatch .= "This auction is on your watchlist";
and here is the varible
$content=~ s/<!-DISPLAY_FEATURED_AND_WATCHLIST_IF_TRUE-->/$featuredwatch/;
ok now i separate it because i want to put the links on different places on my template
here
my $featuredwatch;
my $catfeaturedwatch;
my $watchfeaturedwatch;
if ($featured eq 'yes') {
$featuredwatch = "Featured Auction Main Page<br>";
}
if ($catfeat eq 'yes') {
$catfeaturedwatch = "Featured Auction Category<p>";
}
if ($watchflag) {
$watchfeaturedwatch = "This auction is on your watchlist";
}
$content=~ s/<!-DISPLAY_FEATURED_IF_TRUE-->/$featuredwatch/;
$content=~ s/<!-DISPLAY_CATEGORY_FEATURED_IF_TRUE-->/$catfeaturedwatch/;
$content=~ s/<!-DISPLAY_WATCHLIST_IF_TRUE-->/$watchfeaturedwatch/;
But now with this
if ($watchflag) {
$watchfeaturedwatch = "This auction is on your watchlist";
}
i been trying to change it so i can have a link first for example
watch this item ..... and if you click on it will show this ~~~> This auction is on your watchlist
how can i do that?
thank you
i have this code
my $featuredwatch;
if ($featured eq 'yes') {
$featuredwatch .= "Featured Auction Main Page<br>";
}
if ($catfeat eq 'yes') {
$featuredwatch .= "Featured Auction Category<p>";
}
if ($watchflag) {
$featuredwatch .= "This auction is on your watchlist";
and here is the varible
$content=~ s/<!-DISPLAY_FEATURED_AND_WATCHLIST_IF_TRUE-->/$featuredwatch/;
ok now i separate it because i want to put the links on different places on my template
here
my $featuredwatch;
my $catfeaturedwatch;
my $watchfeaturedwatch;
if ($featured eq 'yes') {
$featuredwatch = "Featured Auction Main Page<br>";
}
if ($catfeat eq 'yes') {
$catfeaturedwatch = "Featured Auction Category<p>";
}
if ($watchflag) {
$watchfeaturedwatch = "This auction is on your watchlist";
}
$content=~ s/<!-DISPLAY_FEATURED_IF_TRUE-->/$featuredwatch/;
$content=~ s/<!-DISPLAY_CATEGORY_FEATURED_IF_TRUE-->/$catfeaturedwatch/;
$content=~ s/<!-DISPLAY_WATCHLIST_IF_TRUE-->/$watchfeaturedwatch/;
But now with this
if ($watchflag) {
$watchfeaturedwatch = "This auction is on your watchlist";
}
i been trying to change it so i can have a link first for example
watch this item ..... and if you click on it will show this ~~~> This auction is on your watchlist
how can i do that?
thank you