Forum

Need code on the si...
 
Notifications
Clear all

Need code on the sidebar to show links by country, region, city

5 Posts
3 Users
0 Likes
626 Views
(@resta)
Posts: 47
Eminent Member
Topic starter
 

Hello,

I am looking for code (I am using bender theme) to put on the sidebar that will show links to narrow down search listings by Counrty, Region, City so the user can narrow down search results just like browsing categories on the sidebar. Thanks!

 
Posted : 31/07/2021 1:32 pm
(@admin)
Posts: 43
Eminent Member Admin
 

The libert theme has that option i guess.. check it out is that what do you want?

https://osclasscommunity.com/osclass-themes/liberty-osclass-fremium-theme/

 
Posted : 01/08/2021 5:32 am
(@resta)
Posts: 47
Eminent Member
Topic starter
 

@admin Thanks for your reply but I get Fatal error: Uncaught Error: Call to undefined function getConnection() 

in the sidebar and locationfind.php - there are some other plugins also that give this error. Do you know how I can fix that?  Thanks!

 

 
Posted : 02/08/2021 10:19 am
Defected
(@dftd)
Posts: 614
Honorable Member Admin
 

getConnection() is an outdated function for database queries, no longer supported in 5.0

It can be replaced with something like

$dao = new DAO();
$dao->dao->query('SQL QUERY HERE');

Available for custom Osclass development. www.defected.dev

 
Posted : 02/08/2021 5:05 pm
(@resta)
Posts: 47
Eminent Member
Topic starter
 

@dftd Thanks, Patrick - long time no see - that fixed that fatal error but those dropdotwn menus actually do not work ie. none of them show any countries, regions or cities. If you know how to fix it or if @admin the template owner knows what the fix is then a reply would be welcome. Thanks for your time.

 
Posted : 03/08/2021 8:18 am
Share: