|
|
#1 |
|
Senior Member
|
Question:
Is there a way to have a listing of the states and then show # of ads posted to that state? Maybe show this list on the side nav bar...? Example: Alabama (23) Arkansas (12) Mississippi(39) And further if I clicked on the state it would take me to the ads posted in the respective state listed? Is that "hard work" for a mod? gsmith |
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,436
Rep Power: 101 ![]() |
I haven't fully tested this but I think it will work.
![]() First create a new file named function.statesearch.php and include this: PHP Code:
Finally open your template file search.tpl.php and locate this: {section name=i loop=$states} <option value="{$states[i].state}">{$states[i].state}</option> {/section} Replace it with: {stateseach}
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
|
|
|
#3 | |
|
Senior Member
|
Quote:
do i replace all the red with the blue? gsmith |
|
|
|
|
|
#4 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,436
Rep Power: 101 ![]() |
Yes that is correct.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
|
|
|
#5 | |
|
Senior Member
|
I don't think it recognized the tag?
I clicked search and got this: Quote:
|
|
|
|
|
|
#6 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,436
Rep Power: 101 ![]() |
Sorry I spelled it wrong.
![]() It should be: {statesearch}
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
|
|
|
#7 |
|
Senior Member
|
almost there...
now the pull down in the state area comes up and only one state is there...and announces like this: Mississippi 0 . Go to www.zfreeads.com and do a "search ads" at the top nav bar...then click state. I have about 8-10 states with data in the system. Only one shows in the pull down menu at search. gsmith |
|
|
|
|
#8 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,436
Rep Power: 101 ![]() |
Will you change it back for now and I will do some testing and give you some new code to use. I think it has to do with the way I am looping through the results.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
|
|
|
#9 |
|
Senior Member
|
Yes Sir!
Done. gsmith |
|
|
|
|
#10 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,436
Rep Power: 101 ![]() |
Ok Gary,
Try this. ![]() Change all the code in that function.statesearch file with the following then upload and change the template back. PHP Code:
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Don't want State, Country to display | dawnrae | v3.1 Questions & Support | 2 | 01-19-2007 12:44 PM |
| Selecting a default State | manilaboy | v3.1 Questions & Support | 2 | 10-17-2006 01:40 PM |
| State (Non AU) | Chaslie | v3.1 Questions & Support | 2 | 05-26-2006 09:49 AM |
| Changing State to County | sporthorsebreeder | v3.1 Questions & Support | 2 | 05-23-2006 05:05 AM |
| State field | quickbiz | v3.0 Questions & Support | 6 | 04-25-2006 01:03 PM |