Advertisement:

Author Topic: Bender Theme > User Can Not Publish Ad Without Selecting a City Name  (Read 982 times)

mrtsoftware

  • Sr. Member
  • ****
  • Posts: 343
Bender Theme > User Can Not Publish Ad Without Selecting a City;
Users should be also able to publish ad under " region " , selecting city name no must be mandatory. On my bender themes I noticed that user can not publish ad without selecting a city.
How to correct it and let to users can also select only region name and publish ads.

Please see secreenshoot

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Bender Theme > User Can Not Publish Ad Without Selecting a City Name
« Reply #1 on: October 08, 2017, 01:28:19 pm »
Info.
1. osc_list_city_items() and osc_list_region_items() will return unconsistent results if an item has not a city.
2. The Item title for seo is made of item-title + city
3. The permalinks have an option for city in the url (not used by default )
And these are only some of the implications.

mrtsoftware

  • Sr. Member
  • ****
  • Posts: 343
Re: Bender Theme > User Can Not Publish Ad Without Selecting a City Name
« Reply #2 on: October 08, 2017, 02:43:37 pm »
Hi marius-ciclistu,
I have no knowledge about php coding and osclass,
Can you please shwo me into which file which codes I need to change
This is a clean and new bender version with nevest osclass installation, I did not modify something,

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Bender Theme > User Can Not Publish Ad Without Selecting a City Name
« Reply #3 on: October 08, 2017, 02:47:23 pm »
I don't know if this mod is one that would not affect the functionality of the osclass installation, so wait to see what other more experienced than me users say about this.

EDIT: The search for an item in a certain city from a region that that item has, will not return that item as a result as it has not that city into it's database fields.
« Last Edit: October 08, 2017, 02:49:40 pm by marius-ciclistu »

mrtsoftware

  • Sr. Member
  • ****
  • Posts: 343
Re: Bender Theme > User Can Not Publish Ad Without Selecting a City Name
« Reply #4 on: October 08, 2017, 03:06:29 pm »
Please Osclass developers, experts can you help!

Zero , non modified BENDER THEME, it is not giving permission to publish without selecting " city ".
But in Turkey everybody is not living in "cities", also living in "provinces ( named as " region" in Osclass ),
That's way, user must select " region " and publish listing,

Every BENDER THEME user should face this problem, if everyone check this , they can see this problem!
Now I see, why peoples are registering and not publishing ads during 1 year.
This was reason.

See Secreenshoot pls

mrtsoftware

  • Sr. Member
  • ****
  • Posts: 343
Re: Bender Theme > User Can Not Publish Ad Without Selecting a City Name
« Reply #5 on: October 09, 2017, 09:11:01 am »
Can someone help me about this, it needs to be solved urgently, because visitors can not place ads.
Visitors can also place ads under " region " name...Selecting " city " name not a must.
How to do it in BENDER THEME?

calinbehtuk

  • Sr. Member
  • ****
  • Posts: 450
Re: Bender Theme > User Can Not Publish Ad Without Selecting a City Name
« Reply #6 on: October 09, 2017, 02:29:00 pm »
You have a jquery validation in file
oc-includes/osclass/frm/Item.form.class.php
Find this
Code: [Select]
static public function location_javascript($path = "front")
And here you will find this code, approximative 1040 comment those 2 lines, it not recommended to change the core but in this case this is what you can do.
Make sure that you make a backup before.


mrtsoftware

  • Sr. Member
  • ****
  • Posts: 343
Re: Bender Theme > User Can Not Publish Ad Without Selecting a City Name
« Reply #7 on: October 09, 2017, 02:33:25 pm »
Thank you
Should I change " true " as "false" or what?
Excuse me I am not good for coding,

calinbehtuk

  • Sr. Member
  • ****
  • Posts: 450
Re: Bender Theme > User Can Not Publish Ad Without Selecting a City Name
« Reply #8 on: October 09, 2017, 02:55:51 pm »
Just make like in image.