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 #9985 by gfoxtrot
locate source code was created by gfoxtrot
Hello,
is it possible to help me locate the source code of the button (as well as its function) renew ad and edit ad, which is located in the details of an ad of a subscribed user??

Thx very much,
George
More
11 years 8 months ago #9987 by catalinads
Replied by catalinads on topic locate source code
Maybe you mean on : My ads ...
When the users see all ads .. and has the option to delete, change ..or if expiration is enable ..to renew.
in this case.. override: my ads ...default.php

for example you have the line:
echo "<a href='".$target."'>".JText::_('ADSMANAGER_CONTENT_EDIT')."</a>"; = this is the text from your language file for Update

I dont have a button... i have text ..link
More
11 years 8 months ago #10002 by gfoxtrot
Replied by gfoxtrot on topic locate source code
I do not care about any kind of override at this point ,i already know how to do an override. I need this source code for something else i m doing. Thx anyway.


Thx again,
George
More
11 years 8 months ago #10020 by loic
Replied by loic on topic locate source code
Hello,

The button is displayed by the page 'components/com_adsmanager/views/myads/tmpl/default.php', line 182 to 195:
if ($this->conf->expiration == 1) { 
						if ($content->expiration_date != null) {
							$expiration_time = strtotime($content->expiration_date);
							$current_time = time();
							if ($expiration_time - $current_time <= ($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>";
							}
						}
					}

And the function is in the file 'components/com_adsmanager/controller.php', line 1136, (the renew() function).

Did you need more precisions or htat is enough ?

Best regards.
The following user(s) said Thank You: gfoxtrot
More
11 years 8 months ago #10025 by gfoxtrot
Replied by gfoxtrot on topic locate source code
Dear Loic,
thank you very much as always. I do not need anything else for the time being. I will make my tests (as you might understood i want to place the link in another place as well), and i believe i will make it. If i need anything else i will send a question to this topic.


Thank you!!!
George
More
11 years 8 months ago #10037 by gfoxtrot
Replied by gfoxtrot on topic locate source code
Do i have to add the function as well somewhere except the source code? i am trying to add it to the list view so if as user is logged in ,he would be able to renew his add without going inside the ad.

Thx
Time to create page: 0.142 seconds
Powered by Kunena Forum