*

igorman732

  • ***
  • 23 posts
Main page listing (need location displayed)
« on: November 29, 2016, 09:37:03 AM »
How to make the advert on the main page is displayed on the location?

*

mixradu

  • ****
  • 171 posts
Re: Main page listing (need location displayed)
« Reply #1 on: November 29, 2016, 12:18:47 PM »
How to make the advert on the main page is displayed on the location?

Can you give us more details please? :D


You want to make a banner that display only to some region user? If the awser is "yes", sorry i dont have the necesary skills to make that xD

*

igorman732

  • ***
  • 23 posts
Re: Main page listing (need location displayed)
« Reply #2 on: December 04, 2016, 05:47:23 AM »
need a the city on every ad
main page

*

Gile

  • ***
  • 42 posts
Re: Main page listing (need location displayed)
« Reply #3 on: December 05, 2016, 08:37:50 PM »
need a the city on every ad
main page
Try something like this :


Code: [Select]
<span class="locationg "><i class="fa fa-map-marker"></i> <?php if ( osc_item_region() && osc_item_city() != null ) { ?><?php echo osc_item_city(); ?>, <?php echo osc_item_region(); ?><?php ?></span>

...and some CSS rule e.g.
Code: [Select]

.locationg {
    background: #fff;
    color: #444;
    padding: 5px;
    font-weight: 500;
    float: left;
    width: 100%;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}




*

igorman732

  • ***
  • 23 posts
Re: Main page listing (need location displayed)
« Reply #4 on: December 06, 2016, 12:04:39 AM »
need a the city on every ad
main page
Try something like this :


Code: [Select]
<span class="locationg "><i class="fa fa-map-marker"></i> <?php if ( osc_item_region() && osc_item_city() != null ) { ?><?php echo osc_item_city(); ?>, <?php echo osc_item_region(); ?><?php ?></span>

...and some CSS rule e.g.
Code: [Select]

.locationg {
    background: #fff;
    color: #444;
    padding: 5px;
    font-weight: 500;
    float: left;
    width: 100%;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
not work

*

Gile

  • ***
  • 42 posts
Re: Main page listing (need location displayed)
« Reply #5 on: December 20, 2016, 07:46:52 PM »
Hey mate, sorry for late reply, did you solve in the meantime?
Can you send url to check ?