Support Forums - Classified Ads Script Osclass

Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: Biswajit Panda on January 27, 2018, 06:06:06 AM

Title: How Can Apply Location at Grid View
Post by: Biswajit Panda on January 27, 2018, 06:06:06 AM
How can i apply Location at Grid View , I have attached a snap shoot for example and batter understand   
Title: Re: How Can Apply Location at Grid View
Post by: Dawid on January 27, 2018, 12:31:29 PM

<?php echo veronika_location_format(osc_item_country(), osc_item_city()); ?>
Title: Re: How Can Apply Location at Grid View
Post by: Biswajit Panda on January 28, 2018, 05:23:00 AM
in which file and in in which below line , i have to past the cord.

please help .
Title: Re: How Can Apply Location at Grid View
Post by: Biswajit Panda on January 29, 2018, 07:59:14 AM
in which file and in in which below line , i have to past the cord.

please help .
Title: Re: How Can Apply Location at Grid View
Post by: MB Themes on January 29, 2018, 09:23:16 AM
@Biswajit
loop-single.php
Title: Re: How Can Apply Location at Grid View
Post by: Biswajit Panda on January 30, 2018, 07:38:13 AM
@Biswajit
loop-single.php


in loop-single.php file where i have to past the cord "<?php echo veronika_location_format(osc_item_country(), osc_item_city()); ?>"


please help me
Title: Re: How Can Apply Location at Grid View
Post by: MB Themes on January 30, 2018, 08:32:41 AM
@Biswajit
Trial & error is best method.
Title: Re: How Can Apply Location at Grid View
Post by: Biswajit Panda on January 30, 2018, 11:22:33 AM
@Biswajit
Trial & error is best method.

I found already the following cord have  "<?php echo veronika_location_format(osc_item_country(), osc_item_city()); ?> " in my loop-single.php , then why it's not working at my website Grid View .
Title: Re: How Can Apply Location at Grid View
Post by: MB Themes on January 30, 2018, 12:08:32 PM
@Biswajit
Because one block is gallery view, another is list view. It's even written in code:
Code: [Select]
<?php if( $view == 'gallery' ) { ?>
Title: Re: How Can Apply Location at Grid View
Post by: Biswajit Panda on January 31, 2018, 04:54:44 PM
@Biswajit
Because one block is gallery view, another is list view. It's even written in code:
Code: [Select]
<?php if( $view == 'gallery' ) { ?>

I am unable to resolved the issue , please help
Title: Re: How Can Apply Location at Grid View
Post by: MB Themes on January 31, 2018, 09:25:45 PM
@Biswajit
In loop-single.php try to put it after line 63.
Title: Re: How Can Apply Location at Grid View
Post by: abhkhan on March 03, 2018, 07:32:07 AM
What will be code if I want to show "City" only instead of "City (Country)" on listing in homepage?
Title: Re: How Can Apply Location at Grid View
Post by: MB Themes on March 03, 2018, 09:19:40 AM
<?php echo osc_item_city(); ?>
Title: Re: How Can Apply Location at Grid View
Post by: Javiersl70 on August 19, 2019, 11:32:08 PM
<?php echo osc_item_city(); ?>

Add in Line 64 of loop-single.php and works correctly, but in loop-single-premium.php it does not work correctly.

<?php if( $view == 'gallery' ) { ?>
<div class="locgrid"><?php echo veronika_location_format(osc_item_country, osc_item_region(), osc_item_city()); }?></div>

can someone help me with the code for loop-single-premium.php ???
Title: Re: How Can Apply Location at Grid View
Post by: MB Themes on August 20, 2019, 08:47:47 AM
@Javiersl70
https://doc.osclass.org/HPremium.php
Title: Re: How Can Apply Location at Grid View
Post by: Javiersl70 on August 20, 2019, 09:33:02 AM
@Javiersl70
https://doc.osclass.org/HPremium.php

thanks, solved :-)