|
|
#1 |
|
Member
Join Date: Dec 2008
Posts: 56
Rep Power: 3 ![]() |
In the showlistings.tpl i'm wondering if this:
Code:
{if $sDisState == "Y"}
<td{if $entry.class<>""} class="{$entry.class}"{/if}>{$entry.state}</td>
{/if}
I know the data is already stored, just don't know the "name". Thanks.
__________________
v4.0.9 Designer |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2006
Posts: 4,092
Rep Power: 99 ![]() ![]() |
Not sure I understand wht you are asking.
Are you saying you want to display the whole state name and not the abbreviation? Since you have the designer edition you cant do anything at the code level so whats probably easiest would be for you to log into your sites admin, goto settings and "edit states", then edit each state and in the abbreviation field just put in the states full name.
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,318
Rep Power: 39 ![]() ![]() |
Yes, the database table has both the full name and the abbreviation. The abbreviation field is called "abbrev" which is in the {$PREFIX}_state table.
The bigger question would be is the abbrev field available to the template? It seems that the listings are from the users table which does not store the abbreviation only the full name. So to be able to do what you want you would have to modify several things in order have that available and display in that template. None of which can be done with the Designer version as Larry states. -Mike
__________________
Mike-N-Tosh v3.1.10 Developer IndianaPC.org - A community website Sandbox v4.0.9, 4.1 Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds. Web Hosting | Web Design & Development | 68 Classifieds Customizations I am not a 68C employee, just a user and try to help out Last edited by Mike-N-Tosh; 01-08-2009 at 11:30 AM. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Filter on state | wesse249 | v4 Questions & Support | 5 | 04-07-2008 10:19 AM |
| State: NONE | CB | v3.1 Questions & Support | 1 | 04-19-2007 12:34 PM |
| State (Non AU) | Chaslie | v3.1 Questions & Support | 2 | 05-26-2006 08:49 AM |
| Ads Listed By State | garysmith | v3.0 Questions & Support | 10 | 04-25-2006 05:50 PM |
| State field | quickbiz | v3.0 Questions & Support | 6 | 04-25-2006 12:03 PM |