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 / Show price field on mobile

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

Show price field on mobile

  • maxximmikhaylov
  • Topic Author
  • Offline
  • User
  • User
More
9 years 10 months ago #23390 by maxximmikhaylov
Show price field on mobile was created by maxximmikhaylov
adsmanager 3.1.6
will be great see it in next release.
"mobile layout configurator" like "Layout - Search Page"

now i manually copy&past some code under <h4> tag in
components\com_adsmanager\views\list\tmpl\default_list.php
and
components\com_adsmanager\views\result\tmpl\default_list.php
<?php 
echo '<div class="span12 pull-right text-right visible-phone">';
	foreach($this->columns as $col) {						
		if (isset($this->fColumns[$col->id]))
		foreach($this->fColumns[$col->id] as $field) {
			$c = $this->field->showFieldValue($content,$field); 
			if (($c !== "")&&($c !== null) &&
				(($field->name == "ad_adtype")		||
				($field->name == "ad_typework")		||
				($field->name == "ad_typehelp")		||
				($field->name == "ad_typerealty")	||
				($field->name == "ad_price")		||
				($field->name == "ad_salary") 		)) {									
			echo "<span class='f".$field->name."'>";
			echo "$c<br/>";
			echo "</span>";
			}
		}						
	}
	echo "</div>";
?>

minus: one code run twice in page, for mobile and for not mobile

---
some errors, not fixed in 3.1.7:
components\com_adsmanager\views\result\tmpl\default_list.php
line 31
<th class="hidden-xs" width="15%"><?php echo JText::_('ADSMANAGER_DATE'); ?>
need "hidden-phone"

line 51
missing condition
<?php if(!isset($this->conf->display_category_list_label) || $this->conf->display_category_list_label == 1): ?>

line 80 - 82
missing
echo "<span class='f".$field->name."'>";
...
echo "</span>";


css fixes
media\juloalib\css\juloabootstrap2.css

.juloawrapper .table {
width: 100%;
margin-bottom: 20px;
table-layout: fixed; /*new*/
overflow-wrap: break-word;/*new*/
}

table-layout: fixed; /* when the font size is increased prevent table shows outside of site container */
overflow-wrap: break-word;/*when ads contains looooooong words */
More
9 years 10 months ago #23404 by loic
Replied by loic on topic Show price field on mobile
Hello,

Thanks for the report, we will look at that.

Best regards.
Moderators: perry
Time to create page: 0.153 seconds
Powered by Kunena Forum