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 / Date in ad Details

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.

Date in ad Details

More
11 years 11 months ago #7970 by fabioweb
Date in ad Details was created by fabioweb
Hello!
How can i display publish date in list ads also in ad details?

Thank you
More
11 years 11 months ago #7985 by loic
Replied by loic on topic Date in ad Details
Hello,

You need to add this line:
echo $this->reorderDate($this->content->date_created);

Where you want to add the date.

Best regards.
More
11 years 11 months ago #8021 by fabioweb
Replied by fabioweb on topic Date in ad Details
Thank you.
I tried to insert your code in a casual point but i lost formattation... :(
More
11 years 11 months ago #8035 by loic
Replied by loic on topic Date in ad Details
Hello,

What do you mean by 'lost formatation' ?

The date is displayed correctly ?

Best regards.
More
11 years 11 months ago #8105 by fabioweb
Replied by fabioweb on topic Date in ad Details
Hello,
i mean that i display only logo and breadcrumb.. and i get white background

Thank you
More
11 years 11 months ago #8118 by loic
Replied by loic on topic Date in ad Details
Hello,

this is a php error.

If the file 'components/com_adsmanager/views/details/view.html.php' you need to add this function just after the line 218 before the last }:
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;
	}
Time to create page: 0.078 seconds
Powered by Kunena Forum