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 / Display Ads - layout description

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.

Display Ads - layout description

More
11 years 1 month ago #14926 by mr.tek
Display Ads - layout description was created by mr.tek
hi,
in display ads is possible create a new description or split description3 in 2 columns?
please, let me know,
regards,
christian
More
11 years 1 month ago #14948 by loic
Replied by loic on topic Display Ads - layout description
Hello,

You wish to display two column instead of one, is that right ?

To do this, you can make an override of the details view and custom the code.

Are you using the Adsclarity template ?

Best regards.
More
11 years 1 month ago #14953 by mr.tek
Replied by mr.tek on topic Display Ads - layout description
hi, yes, i use adsclarity, what i have to do? thank you
More
11 years 1 month ago - 11 years 1 month ago #14984 by loic
Replied by loic on topic Display Ads - layout description
Hello,

To display to position in one line, first, open the file 'templates/adsclarity/html/com_adsmanager/details/default_jssor.php', the simpliest position to custom is at the line 350, the code '$this->fDisplay[3]' means that it will display the fourth position (ADSMANAGER_POSITION_DESCRIPTION or the Description position)

The original code is this one:
<div class="row detailDesc rowDesc">
		<div class="col-md-12">
			 <?php if (!empty($this->fDisplay[3])) {
				$strtitle = @JText::_($this->positions[2]->title);
				if ($strtitle != "") echo "<h2 class='section-header'>".@$strtitle."</h2>"; 
				foreach($this->fDisplay[3] 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>";
					}
				}
			}?>
		</div>
	</div>

And replace it by something like that:
<div class="row detailDesc rowDesc">
		<div class="col-md-6">
			 <?php if (!empty($this->fDisplay[3])) {
				$strtitle = @JText::_($this->positions[2]->title);
				if ($strtitle != "") echo "<h2 class='section-header'>".@$strtitle."</h2>"; 
				foreach($this->fDisplay[3] 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>";
					}
				}
			}?>
		</div>
               <div class="col-md-6">
			 <?php if (!empty($this->fDisplay[6])) {
				$strtitle = @JText::_($this->positions[2]->title);
				if ($strtitle != "") echo "<h2 class='section-header'>".@$strtitle."</h2>"; 
				foreach($this->fDisplay[6] 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>";
					}
				}
			}?>
		</div>
	</div>

And if you are using the position 6 like in my example, don't forget to remove it from the following line.

Best regards.
Last edit: 11 years 1 month ago by loic.
Time to create page: 0.072 seconds
Powered by Kunena Forum