Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / |CLOSED] href on image to target new window error

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

|CLOSED] href on image to target new window error

More
11 years 6 months ago - 11 years 6 months ago #1516 by shihabhamsa
Hi,
for the list view and latest ads module, I wish to open the classified in a new window. This is working perfect with target key on href for the ad heading. But when I add the same target on image href, php exception throws out. Any help on this?
Last edit: 11 years 6 months ago by tompap.
The following user(s) said Thank You: ecagestep
More
11 years 6 months ago #1521 by tompap
which php exception ?
The following user(s) said Thank You: ecagestep
More
11 years 6 months ago #1523 by shihabhamsa
Replied by shihabhamsa on topic href on image to target new window makes php error
My Mistake, Its not php exception, but parse error

What I added is like the following, in list/tmpl/default.php

if (isset($content->images[0])) {
echo "<a href='".$linkTarget."' target="_blank"><img class='adimage' name='adimage".$content->id."' src='".$this->baseurl."images/com_adsmanager/ads/".$content->images[0]->thumbnail."' alt='".htmlspecialchars($content->ad_headline)."' /></a>";
} else if ($this->conf->nb_images > 0) {

And I am getting parsing error on the same line. If I remove the target="_blank" from the statement, everything works fine
Attachments:
The following user(s) said Thank You: ecagestep
More
11 years 6 months ago #1526 by tompap
great I can close the ticket
The following user(s) said Thank You: ecagestep
More
11 years 6 months ago #1528 by shihabhamsa
Replied by shihabhamsa on topic href on image to target new window makes php error
I didn't get what you meant with that
The following user(s) said Thank You: ecagestep
More
11 years 6 months ago #1534 by tompap
The error is due to your code, not our code

echo "<a href='".$linkTarget."' target="_blank"


should be

echo "<a href='".$linkTarget."' target='_blank'

double quote conflict
The following user(s) said Thank You: ecagestep, shihabhamsa
Moderators: perry
Time to create page: 0.131 seconds
Powered by Kunena Forum