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 / how to show ID ad

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.

how to show ID ad

More
10 years 10 months ago #17673 by loic
Replied by loic on topic how to show ID ad
Hello,

The file is 'components/com_adsmanager/views/details/tmpl/default.php', an override must be created in 'templates/{your_template}/html/com_adsmanager/details/default.php'.

You need to paste the line above in one of this file.

Best regards.
The following user(s) said Thank You: adarr
More
10 years 9 months ago #17757 by BenVDF123
Replied by BenVDF123 on topic how to show ID ad
id not out :(
The following user(s) said Thank You: adarr
More
10 years 9 months ago #17770 by loic
Replied by loic on topic how to show ID ad
Hello,

Could you copy-paste the code you wrote here ?

Best regards.
The following user(s) said Thank You: adarr
More
10 years 9 months ago #17887 by BenVDF123
Replied by BenVDF123 on topic how to show ID ad
<?php
/**
* @package AdsManager
* @copyright Copyright (C) 2010-2014 Juloa.com. All rights reserved.
* @license GNU/GPL
*/
// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

$conf= $this->conf;

$document = JFactory::getDocument();
if ($conf->metadata_mode != 'nometadata') {
$document->setMetaData("description", strip_tags($this->content->metadata_description));
$document->setMetaData("keywords", strip_tags($this->content->metadata_keywords));
}
?>
<div class="juloawrapper">
<?php if ($conf->display_inner_pathway == 1) { ?>
<div class="breadcrumb row-fluid">
<?php
$pathway ="";
$nb = count($this->pathlist);
for ($i = $nb - 1 ; $i >0;$i--)
{
$pathway .= '<a href="'.$this->pathlist[$i]->link.'">'.$this->pathlist[$i]->text.'</a>';
$pathway .= ' <img src="'.getImagePath('arrow.png').'" alt="arrow" /> ';
}
$pathway .= '<a href="'.$this->pathlist[0]->link.'">'.$this->pathlist[0]->text.'</a>';
echo $pathway;

if (function_exists('getContentClass'))
$classcontent = getContentClass($this->content,"details");
else
$classcontent = "";
?>
The following user(s) said Thank You: adarr
More
10 years 9 months ago #17888 by BenVDF123
Replied by BenVDF123 on topic how to show ID ad
<?php echo TText::_('ADSMANAGER_AD')?> : <?php echo $this->content->id ?>
</div>
<?php } ?>
<?php echo $this->content->event->onContentBeforeDisplay; ?>
<?php if (@$conf->print==1) {?>
<div class="text-right">
<?php if (JRequest::getInt('print',0) == 1) {
echo TTools::print_screen();
} else {
$url = "index.php?option=com_adsmanager&view=details&catid=".$this->content->catid."&id=".$this->content->id;
echo TTools::print_popup($url);
}?>
</div>
<?php } ?>
<div class="<?php echo $classcontent;?> adsmanager-details row-fluid">
<div class="span12 page-header">
<div class="span8">
<h1 class="no-margin-top">
<?php
if (isset($this->fDisplay[1]))
{
foreach($this->fDisplay[1] as $field)
{
$c = $this->field->showFieldValue($this->content,$field);
if (($c !== "")&&($c !== null)) {
$title = $this->field->showFieldTitle(@$this->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>";
}
}
} ?>
The following user(s) said Thank You: adarr
More
10 years 9 months ago #17889 by BenVDF123
Replied by BenVDF123 on topic how to show ID ad
</h1>
<?php echo $this->content->event->onContentAfterTitle; ?>
<div>
<?php
if ($this->content->userid != 0)
{
echo JText::_('ADSMANAGER_SHOW_OTHERS');
$target = TLink::getUserAdsLink($this->content->userid);

if ($conf->display_fullname == 1)
echo "<a href='$target'><b>".$this->content->fullname."</b></a>";
else
echo "<a href='$target'><b>".$this->content->user."</b></a>";
}
?>
</div>
</div>
<div class="span4">
<?php
echo '<div class="text-right">';
if ($this->content->userid != 0 && $this->userid == $this->content->userid) {
?>
<div>
<?php
$target = TRoute::_("index.php?option=com_adsmanager&task=write&catid=".$this->content->category."&id=".$this->content->id);
echo "<a href='".$target."'>".JText::_('ADSMANAGER_CONTENT_EDIT')."</a>";
echo "&nbsp;";
$target = TRoute::_("index.php?option=com_adsmanager&task=delete&catid=".$this->content->category."&id=".$this->content->id);
echo "<a onclick='return confirm(\"".htmlspecialchars(JText::_('ADSMANAGER_CONFIRM_DELETE'),ENT_QUOTES)."\")' href='".$target."'>".JText::_('ADSMANAGER_CONTENT_DELETE')."</a>";
?>
</div>
<?php
}
if(isset($this->conf->favorite_enabled) && $this->conf->favorite_enabled == 1 && ($this->conf->favorite_display == 'all' || $this->conf->favorite_display == 'details')){
echo '<div class="row-fluid adsmanager-favorite">
<div class="span12">';
$favoriteClass = '';
$favoriteLabel = JText::_('ADSMANAGER_CONTENT_FAVORITE');
if(array_search($this->content->id, $this->favorites) !== false){
$favoriteClass = ' like_active';
$favoriteLabel = JText::_('ADSMANAGER_CONTENT_FAVORITE_DELETEMSG');
}
echo '<button id="like_'.$this->content->id.'" class="btn favorite_ads like_ad'.$favoriteClass.'">'.$favoriteLabel.'</button>';
echo '</div></div>';
}
if (!empty($this->fDisplay[4])) {
echo '<div class="row-fluid">
<div class="span12">';
$strtitle = @JText::_($this->positions[3]->title);
if ($strtitle != "") echo "<h2 class='section-header'>".@$strtitle."</h2>";
foreach($this->fDisplay[4] as $field)
{
$c = $this->field->showFieldValue($this->content,$field);
if (($c !== "")&&($c !== null)) {
$title = $this->field->showFieldTitle(@$this->content->catid,$field);
echo "<span class='f".$field->name."'>";
if ($title != "")
echo "<b>".htmlspecialchars($title)."</b>: ";
echo "$c<br/>";
echo "</span>";
}
}
echo '</div></div>';
}
echo '</div>';
?>
The following user(s) said Thank You: adarr
Time to create page: 0.053 seconds
Powered by Kunena Forum