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 / [RESOLVED] data record ads and view counter ....

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] data record ads and view counter ....

More
10 years 8 months ago #18880 by loic
Hello,

For the ads creation date, it is this code:
<?php echo sprintf(TText::_('ADSMANAGER_PUBLISH_ON_DATE'),$this->reorderDate($this->content->date_created));?>

You can replace the translation string by your translation, if the reorder date function doesn't exist, you need to add it in 'components/com_adsmanager/views/details/view.html.php', you will be able to find this function in this file 'components/com_adsmanager/views/list/view.html.php', you just need to copy-paste it.

Best regards.
The following user(s) said Thank You: adarr
More
10 years 8 months ago - 10 years 8 months ago #18881 by q8saler
it not working icopy this function from 'components/com_adsmanager/views/list/view.html.php', and past it in 'components/com_adsmanager/views/details/view.html.php',
function isNewContent($date,$nbdays) {
		$time = strtotime($date);
		if ($time >= (time()-($nbdays*24*3600)))
			return true;
		else
			return false;
	}
 
	function reorderDate( $date ){
		$format = JText::_('ADSMANAGER_DATE_FORMAT_LC');
 
		if ($date && (preg_match("/([0-9]{4})-([0-9]{2})-([0-9]{2})/",$date,$regs))) {
			$date = mktime( 0, 0, 0, $regs[2], $regs[3], $regs[1] );
			$date = $date > -1 ? strftime( $format, $date) : '-';
		}
		return $date;
	}
i replace the translation
ADSMANAGER_DATE="تاريخ"
ADSMANAGER_DATE_FORMAT_LC="%m-%d-%Y"

and i put the code on default_jssor.php
<?php echo sprintf(TText::_('ADSMANAGER_PUBLISH_ON_DATE'),$this->reorderDate($this->content->date_created));?>
but still not working any help??
Last edit: 10 years 8 months ago by q8saler.
The following user(s) said Thank You: adarr
More
10 years 8 months ago #18886 by loic
Hello,

What is displayed on the screen ?
(This kind of custom dev is not covered by the support so I can't do it for you, you need to give me the maximum of details, otherwise I will not be able to know what is the problem)

Best regards.
The following user(s) said Thank You: adarr
More
10 years 8 months ago #18888 by q8saler
he dispaly this " ADSMANAGER_PUBLISH_ON_DATE"

itry to change it with
ADSMANAGER_DATE="تاريخ"
ADSMANAGER_DATE_FORMAT_LC="%m-%d-%Y
and still not work?
--
"you need to give me the maximum of details", ask and i will give you what you need?
The following user(s) said Thank You: adarr
More
10 years 8 months ago #18891 by loic
Ok, I did not understand what was the problem.

You need to add the translation for this string ADSMANAGER_PUBLISH_ON_DATE in the translation file or in the language override of your website.

You need to write it like that :
ADSMANAGER_PUBLISH_ON_DATE="published on %s"

The character '%s' ill be replaced by the date.

Best regards.
The following user(s) said Thank You: adarr
More
10 years 8 months ago #18892 by q8saler
Replied by q8saler on topic [fix it]data record ads and view counter ....
thank you loic for help i make it
The following user(s) said Thank You: adarr
Time to create page: 0.070 seconds
Powered by Kunena Forum