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 / Public Forum / Main Forum / How can i show the publish date in the ads?

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.

× OLD Forum post could be checked here : forum.joomprod.com

How can i show the publish date in the ads?

  • joomlamalaga
  • Topic Author
  • Offline
  • User
  • User
More
11 years 1 week ago #16491 by joomlamalaga
Replied by joomlamalaga on topic How can i show the publish date in the ads?
Hi,

2.9.11 version.

Thanks.

Marco
The following user(s) said Thank You: adarr
More
11 years 1 week ago #16496 by loic
Hello,

The expand display is in the default.php file for this version, between the lines 306 to 487.

You needto add the line displaying the date where you want between those lines.

Best regards.
The following user(s) said Thank You: adarr
  • joomlamalaga
  • Topic Author
  • Offline
  • User
  • User
More
11 years 1 week ago #16502 by joomlamalaga
Replied by joomlamalaga on topic How can i show the publish date in the ads?
Hi,

i have updated the version, now i have the 3.2.1.

You told me that i should put this code "<?php echo $this->reorderDate($content->date_created); ?>" into the default_expand.php file.

Can you tell me exactly where i have to put it (te line please).

An then to override i have to put the default_expand.php file (modified) in the templates/jp-magazine/html/com_adsmanager/list/tmpl , is it correct?

Many thanks.

Marco
The following user(s) said Thank You: adarr
More
11 years 1 week ago #16515 by loic
Hello,

you need to add this line where you want to display the date, it will work anywhere in the file.

for the override, the correct path is 'templates/jp-magazine/html/com_adsmanager/list', you don't need to add the tmpl folder.

Best regards.
The following user(s) said Thank You: adarr
  • joomlamalaga
  • Topic Author
  • Offline
  • User
  • User
More
11 years 1 week ago #16526 by joomlamalaga
Replied by joomlamalaga on topic How can i show the publish date in the ads?
Hi,

i have download the file default_expand.php from /public_html/components/com_adsmanager/views/list/tmpl

I have added the line:

<?php echo $this->reorderDate($content->date_created); ?>

in this place:


........
<div class="<?php echo $classcontent?> adsmanager_ads">
<div class="adsmanager_top_ads">
<h2>
<?php
if (isset($this->fDisplay[1]))
{
foreach($this->fDisplay[1] as $field)
{
$c = $this->field->showFieldValue($content,$field);
if (($c !== "")&&($c !== null)) {
$title = $this->field->showFieldTitle(@$content->catid,$field);
if($field->name != 'ad_headline')
echo "<span class='f".$field->name."'>";
if ($title != "")
echo "<b>".htmlspecialchars($title)."</b>: ";
echo "$c ";
if($field->name != 'ad_headline')
echo "</span>";
}
}
} ?>
</h2>
<div>
<?php echo $this->reorderDate($content->date_created); ?>
<?php
if ($content->userid != 0)
{
echo JText::_('ADSMANAGER_SHOW_OTHERS');
$target = TLink::getUserAdsLink($content->userid);

if ($this->conf->display_fullname == 1)
echo "<a href='$target'><b>".$content->fullname."</b></a>";
else
echo "<a href='$target'><b>".$content->user."</b></a>";
}
?>
</div>
......

and then i have upload this file in the folder:

templates/jp-magazine/html/com_adsmanager/list'

But it doesn't work.

Is it possible i am doing something wrong?


Many thanks
The following user(s) said Thank You: adarr
More
11 years 1 week ago #16529 by loic
Hello,

Do you have an error message ? Or a blank page ?

Best regards.
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.052 seconds
Powered by Kunena Forum