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 / AdsManager Support / locate source code

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.

locate source code

More
11 years 8 months ago #10096 by loic
Replied by loic on topic locate source code
Hello,

I found the problem !
If you copy-paste the block, a variable isn't correctly set and it display an error.
You also need to paste this code in the foreach($this->contents ad $content){ ...}.

The correct code is this one :
if ($this->conf->expiration == 1) { 
						if ($content->expiration_date != null) {
							$expiration_time = strtotime($content->expiration_date);
							$current_time = time();
							if ($expiration_time - $current_time <= ($this->conf->recall_time * 3600 *24)) {
                                if(function_exists('countRenewDurations') && countRenewDurations() > 1){
                                    $target = TRoute::_("index.php?option=com_adsmanager&view=expiration&id=$content->id");
                                } else {
                                    $target = TRoute::_("index.php?option=com_adsmanager&task=renew&id=$content->id");
                                }
                                echo "<br/><a href='".$target."'>".JText::_('ADSMANAGER_RENEW_CONTENT')."</a>";
							}
						}
					}

I tested it and it works :).

Best regards.
The following user(s) said Thank You: adarr
More
11 years 8 months ago #10127 by gfoxtrot
Replied by gfoxtrot on topic locate source code
Dear Loic,
thank you very much! i am trying to find the correct place for the code to make it work. I have to add <php?....?> as well? When i will make it work i will reply here.

Thx again,
George
The following user(s) said Thank You: adarr
More
11 years 8 months ago - 11 years 8 months ago #10128 by loic
Replied by loic on topic locate source code
Hello,

The php tag are required if you wish to paste this code in the HTML.

If the tag are already written, you don't need to add them.

Don't worry about that, if you forgot them, the code will be displayed and if you put them two times, the page will display an error, so you will quickly now if you've done something wrong :).

Best regards.
Last edit: 11 years 8 months ago by loic.
The following user(s) said Thank You: gfoxtrot, adarr
Time to create page: 0.068 seconds
Powered by Kunena Forum