Support Forums

Old 01-08-2009, 10:40 AM   #1
Member
 
Join Date: Dec 2008
Posts: 56
Rep Power: 3
island1 is on a distinguished road
Default state abbreviation

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}
can be altered to reflect the State Abbreviation insted of the full state name.

I know the data is already stored, just don't know the "name".

Thanks.
__________________
v4.0.9 Designer
island1 is offline   Reply With Quote
Old 01-08-2009, 11:26 AM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 4,092
Rep Power: 99
Lhotch is just really niceLhotch is just really nice
Default

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
Lhotch is offline   Reply With Quote
Old 01-08-2009, 11:27 AM   #3
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,318
Rep Power: 39
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

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.
Mike-N-Tosh is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 02:16 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0