Support Forums - Classified Ads Script Osclass
Osclass theme support => Sigma Osclass Theme => Topic started by: Aleš Tomažič on December 04, 2022, 04:20:08 PM
-
Hi Osclass team
Today i'm struggling to show region in item-edit.php page. In item-post.php "osc_user_region()" works perfectly but the region it's not showing up, when editing item. Do I need to insert some code to item-edit.php file?
Thanks for suggestions :-)
-
osc_item_region - it's one related to item.
-
osc_item_region - it's one related to item.
Hi, thanks for suggestion.
I tried "osc_item_region()" but it's not working.
I want to show users region, when user is editing ad.
When user is posting ad, his region is shown up with this code "<?php echo osc_user_region(); ?>", but the user region is not showing up, when the edit button is used.
-
Maybe it is not filled?
You can try:
$user = User::newInstance()->findByPrimaryKey(osc_logged_user_id());
echo @$user['s_region'];
-
Maybe it is not filled?
You can try:
$user = User::newInstance()->findByPrimaryKey(osc_logged_user_id());
echo @$user['s_region'];
Hi, it's working :P :P :P
Thank you again, much appreciated.