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 / Support / PaidSystem Support / [RESOLVED] Action for top ad option

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.

[RESOLVED] Action for top ad option

More
10 years 3 weeks ago - 9 years 11 months ago #10599 by catalinads
[RESOLVED] Action for top ad option was created by catalinads
Please provide me some help for top ad action.
i would like to insert an image like this


* Uncomment this bloc to custom the top ads in the list */
.grid_top {

}*/

i have tried with a background image .. but after i set the position my background image will not stay over the add photo.. will be under.
i think that own background cannot appear above its content.
hope you understand

or to insert it in template grid like the new or hot gif

if (($this->conf->show_new == true)&&($this->isNewcontent($content->date_created,$this->conf->nbdays_new))) {
$iconText .= "<span class='iconflag'><img alt='new' src='".$this->baseurl."components/com_adsmanager/images/new.gif' /> ";
$iconflag = true;
}

but how?
Attachments:
Last edit: 9 years 11 months ago by loic.
More
10 years 3 weeks ago #10614 by tompap
Replied by tompap on topic Action for top ad option
This is custom code, how of classical support.

you can add some php code that will check if the ad has top option, and render a <div> or <img> in the ad div with "position:absolute"
don't forget to add position:relative to the ad div
More
10 years 3 weeks ago #10628 by catalinads
Replied by catalinads on topic Action for top ad option
that php is killing me .. a small hint :))

if (($this->conf->show_new == true)

to place something instead
like .. if ($conf->top_active==1 ?? no :(

Loic you're the man with the hints! :))
More
10 years 3 weeks ago #10651 by loic
Replied by loic on topic Action for top ad option
Hello,

I'm sorry but this will take some time.

Like Tompap said, you need to add a div with a position absolute to display an image above the ad image.

Sorry, I couldn't help you more :(

Best regards.
More
9 years 11 months ago #11349 by asunker
Replied by asunker on topic Action for top ad option
if (@$content->top == 1) {
...ribbon code...
}

this will do the job
The following user(s) said Thank You: catalinads
More
9 years 11 months ago #11351 by catalinads
Replied by catalinads on topic Action for top ad option
Thanks! i have found another solution but this is better!
Time to create page: 0.134 seconds
Powered by Kunena Forum