Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Add State to Profile in Posts
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Ryan
Average Member

USA
858 Posts

Posted - 18 June 2003 :  18:04:14  Show Profile  Visit Ryan's Homepage
I decided to make this easy (very easy) MOD because I wanted the state name that your users are from to appear in the "short profile" next to all of your users posts. The instructions to do this follow:
Title: Add State to Profile in Posts

Author: Ryan

Description/background: I wanted to make the USA on the short profile next to a members posts more specific.
So I made this easy to do MOD. Enjoy!



Follow the step below to modify your USA option in country_list.asp

Find:
			"                           <option value=""USA"">USA</option>" & vbNewLine & _
Change this to:
			"                           <option value=""AL, USA"">AL, USA</option>" & vbNewLine & _
			"                           <option value=""AK, USA"">AK, USA</option>" & vbNewLine & _
			"                           <option value=""AZ, USA"">AZ, USA</option>" & vbNewLine & _
			"                           <option value=""AR, USA"">AR, USA</option>" & vbNewLine & _
			"                           <option value=""CA, USA"">CA, USA</option>" & vbNewLine & _
			"                           <option value=""CO, USA"">CO, USA</option>" & vbNewLine & _
			"                           <option value=""CT, USA"">CT, USA</option>" & vbNewLine & _
			"                           <option value=""DE, USA"">DE, USA</option>" & vbNewLine & _
			"                           <option value=""FL, USA"">FL, USA</option>" & vbNewLine & _
			"                           <option value=""GA, USA"">GA, USA</option>" & vbNewLine & _
			"                           <option value=""HI, USA"">HI, USA</option>" & vbNewLine & _
			"                           <option value=""ID, USA"">ID, USA</option>" & vbNewLine & _
			"                           <option value=""IL, USA"">IL, USA</option>" & vbNewLine & _
			"                           <option value=""IN, USA"">IN, USA</option>" & vbNewLine & _
			"                           <option value=""IA, USA"">IA, USA</option>" & vbNewLine & _
			"                           <option value=""KS, USA"">KS, USA</option>" & vbNewLine & _
			"                           <option value=""KY, USA"">KY, USA</option>" & vbNewLine & _
			"                           <option value=""LA, USA"">LA, USA</option>" & vbNewLine & _
			"                           <option value=""ME, USA"">ME, USA</option>" & vbNewLine & _
			"                           <option value=""MD, USA"">MD, USA</option>" & vbNewLine & _
			"                           <option value=""MA, USA"">MA, USA</option>" & vbNewLine & _
			"                           <option value=""MI, USA"">MI, USA</option>" & vbNewLine & _
			"                           <option value=""MN, USA"">MN, USA</option>" & vbNewLine & _
			"                           <option value=""MS, USA"">MS, USA</option>" & vbNewLine & _
			"                           <option value=""MO, USA"">MO, USA</option>" & vbNewLine & _
			"                           <option value=""MT, USA"">MT, USA</option>" & vbNewLine & _
			"                           <option value=""NE, USA"">NE, USA</option>" & vbNewLine & _
			"                           <option value=""NV, USA"">NV, USA</option>" & vbNewLine & _
			"                           <option value=""NH, USA"">NH, USA</option>" & vbNewLine & _
			"                           <option value=""NJ, USA"">NJ, USA</option>" & vbNewLine & _
			"                           <option value=""NM, USA"">NM, USA</option>" & vbNewLine & _
			"                           <option value=""NY, USA"">NY, USA</option>" & vbNewLine & _
			"                           <option value=""NC, USA"">NC, USA</option>" & vbNewLine & _
			"                           <option value=""ND, USA"">ND, USA</option>" & vbNewLine & _
			"                           <option value=""OH, USA"">OH, USA</option>" & vbNewLine & _
			"                           <option value=""OK, USA"">OK, USA</option>" & vbNewLine & _
			"                           <option value=""OR, USA"">OR, USA</option>" & vbNewLine & _
			"                           <option value=""PA, USA"">PA, USA</option>" & vbNewLine & _
			"                           <option value=""RI, USA"">RI, USA</option>" & vbNewLine & _
			"                           <option value=""SC, USA"">SC, USA</option>" & vbNewLine & _
			"                           <option value=""SD, USA"">SD, USA</option>" & vbNewLine & _
			"                           <option value=""TN, USA"">TN, USA</option>" & vbNewLine & _
			"                           <option value=""TX, USA"">TX, USA</option>" & vbNewLine & _
			"                           <option value=""UT, USA"">UT, USA</option>" & vbNewLine & _
			"                           <option value=""VT, USA"">VT, USA</option>" & vbNewLine & _
			"                           <option value=""VA, USA"">VA, USA</option>" & vbNewLine & _
			"                           <option value=""WA, USA"">WA, USA</option>" & vbNewLine & _
			"                           <option value=""WV, USA"">WV, USA</option>" & vbNewLine & _
			"                           <option value=""WI, USA"">WI, USA</option>" & vbNewLine & _
			"                           <option value=""WY, USA"">WY, USA</option>" & vbNewLine & _

Upload inc_countrylist.asp to your forum file
Go to your profile and select the state that you are from in the country list.
Enjoy!
For support go here: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=45354

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help

Edited by - Ryan on 10 January 2004 22:19:23

Locnar
New Member

89 Posts

Posted - 18 June 2003 :  18:59:19  Show Profile  Visit Locnar's Homepage
Works great! Two thumbs up for ease of install .

I removed the State option because now that comes up under Country now. I notice a lot of users on my board do not use country because we are all in the US. Is there any way to just grab the State and throw that in the mini-profile?

Locnar
Just your basic forums ---> www.duncanet.com/forums
Star Wars Galaxies ---> www.duncanet.com/forum/sitenews.asp
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 18 June 2003 :  19:41:52  Show Profile  Visit Ryan's Homepage
if you are all from the US you can do that. Click here
Upload the file to replace inc_countrylist.asp. Make sure that you have the drop down box to select your state removed (so it doesnt have it twice)
DO NOT RENAME inc_countrylist.asp!!!
You could then if you like go to the other files that call the list in the profile "countries" and update it to be "states"
Let me know if this works!

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 18 June 2003 :  20:15:22  Show Profile  Visit Etymon's Homepage

Hey,

If anyone comes across some miniature (preferably animated) state flags to go along with this MOD, please let me know.

Thank you!


Cheers,

Etymon
Go to Top of Page

Locnar
New Member

89 Posts

Posted - 18 June 2003 :  21:10:42  Show Profile  Visit Locnar's Homepage
reducks87: Yeah, it works fine, thanks. Only problem I am having is finding the asp file(s) that show "Country" on the profile and member info pages. Do you know where I can change these values?

Thanks

Locnar
Just your basic forums ---> www.duncanet.com/forums
Star Wars Galaxies ---> www.duncanet.com/forum/sitenews.asp

Edited by - Locnar on 18 June 2003 21:23:14
Go to Top of Page

Locnar
New Member

89 Posts

Posted - 18 June 2003 :  21:19:19  Show Profile  Visit Locnar's Homepage
Oh yeah Etymon, there is a site that has all of the animated state flags here:

http://www.animationfactory.com/free/flags_us_states/flags_us_states_page_aa.html

And they are free too . One for light and dark background, and one with a clear background also. Great site for animated clipart.

EDIT: Fat fingers

Locnar
Just your basic forums ---> www.duncanet.com/forums
Star Wars Galaxies ---> www.duncanet.com/forum/sitenews.asp

Edited by - Locnar on 18 June 2003 21:22:22
Go to Top of Page

OpenIntro
Junior Member

USA
126 Posts

Posted - 03 August 2003 :  05:37:40  Show Profile  Send OpenIntro an AOL message
quote:
Originally posted by Etymon


Hey,

If anyone comes across some miniature (preferably animated) state flags to go along with this MOD, please let me know.

Thank you!


Cheers,

Etymon




Has anyone integrated the flags into this MOD or another FLAG MOD to correspond with the country on the short profile? I would like the small flags (which I downloaded from SnitzBitz) to show up underneath the members country name. I have HEARD of this being done, but can't find any code for it anywhere????

Let's All Do Kamikaze Shots!
http://www.kamikazeshots.com
http://www.kamikazeshots.com/forum
*DO YOUR CLICKS!*
http://dailyclicks.kamikazeshots.com
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 03 August 2003 :  07:02:06  Show Profile
You can download the flag mod at crashes site click here. I think it's for an earlier ver. of snitz but it shouldn't be to difficult to add to 3.4 .

    _-/Cripto9t\-_
Go to Top of Page

OpenIntro
Junior Member

USA
126 Posts

Posted - 03 August 2003 :  13:38:24  Show Profile  Send OpenIntro an AOL message
Anyone know how to update this for 3.4.03?

<------clueless

Let's All Do Kamikaze Shots!
http://www.kamikazeshots.com
http://www.kamikazeshots.com/forum
*DO YOUR CLICKS!*
http://dailyclicks.kamikazeshots.com
Go to Top of Page

golfmann
Junior Member

United States
450 Posts

Posted - 06 August 2003 :  21:17:49  Show Profile  Visit golfmann's Homepage
It works fine in 3.4.03

Maybe the world's easiest mod!
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 07 August 2003 :  15:22:13  Show Profile  Visit Ryan's Homepage
I think OpenIntro is talking about the flag MOD.

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page

OpenIntro
Junior Member

USA
126 Posts

Posted - 07 August 2003 :  16:10:37  Show Profile  Send OpenIntro an AOL message
Yes I was....what was he talking about? lol....

But I downloaded Crash's Flag Mod and attempted to put in on 3.4.03 but, the code is not optimized for it. Anyone have the flag mod on their 3.4.03 forums? I really want to get this MOD on there! :P

Let's All Do Kamikaze Shots!
http://www.kamikazeshots.com
http://www.kamikazeshots.com/forum
*DO YOUR CLICKS!*
http://dailyclicks.kamikazeshots.com
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 07 August 2003 :  17:27:00  Show Profile  Visit Ryan's Homepage
He was saying that the little MOD I made works on 3.4.03

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page

Gargoyle
Junior Member

USA
280 Posts

Posted - 12 August 2003 :  20:41:35  Show Profile  Visit Gargoyle's Homepage
Thank-you..

Here is a link to my Snitz powered Drag Racing site.
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 14 August 2003 :  17:52:50  Show Profile  Visit Ryan's Homepage
Please visit my site, Reducks87's Forum, for other MODs I created, others have created, and MOD ideas!

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 16 August 2003 :  02:41:42  Show Profile  Visit Webbo's Homepage
There's also this MOD for introducing a drop-down list of States into a member's profile:

http://www.snitzbitz.com/mods/details.asp?Version=All&mid=111

Install the above and to then show the State in the mini profile above country -

In topic.asp:

Line 98:

Change
quote:
", M.M_TITLE, M.M_HOMEPAGE, M.MEMBER_ID, M.M_LEVEL, M.M_POSTS, M.M_COUNTRY" & _


to this:

quote:
", M.M_TITLE, M.M_HOMEPAGE, M.MEMBER_ID, M.M_LEVEL, M.M_POSTS, M.M_COUNTRY, M.M_STATE" & _


Add this in after line 132:

quote:
Member_State = rsTopic("M_STATE")


so that it reads:

quote:
Member_Country = rsTopic("M_COUNTRY")
Member_State = rsTopic("M_STATE")
Topic_Date = rsTopic("T_DATE")


Line 310:

Change:

quote:
strSql = strSql & ", M.M_TITLE, M.MEMBER_ID, M.M_HOMEPAGE, M.M_LEVEL, M.M_POSTS, M.M_COUNTRY"


to this:

quote:
strSql = strSql & ", M.M_TITLE, M.MEMBER_ID, M.M_HOMEPAGE, M.M_LEVEL, M.M_POSTS, M.M_COUNTRY, M.M_STATE"


Line 522:

Add this in:

quote:
rM_STATE = 13


but remember to change the orders afterwards so that lines 513-538 read:

quote:
rM_NAME = 0
rM_RECEIVE_EMAIL = 1
rM_AIM = 2
rM_ICQ = 3
rM_MSN = 4
rM_YAHOO = 5
rM_PM = 6
rM_TITLE = 7
rMEMBER_ID = 8
rM_HOMEPAGE = 9
rM_LEVEL = 10
rM_POSTS = 11
rM_COUNTRY = 12
rM_STATE = 13
rREPLY_ID = 14
rFORUM_ID = 15
rR_AUTHOR = 16
rTOPIC_ID = 17
rR_MESSAGE = 18
rR_LAST_EDIT = 19
rR_LAST_EDITBY = 20
rR_SIG = 21
rR_STATUS = 22
rR_DATE = 23
if CanShowSignature = 1 then
rM_SIG = 24


After line 550 add:

quote:
Reply_MemberState = arrReplyData(rm_STATE, iForum)


so that it reads:

quote:
Reply_MemberCountry = arrReplyData(rM_COUNTRY, iForum)
Reply_MemberState = arrReplyData(rm_STATE, iForum)
Reply_ReplyID = arrReplyData(rREPLY_ID, iForum)


Find this around line 579:

quote:
if strShowRank = 2 or strShowRank = 3 then
Response.Write " " & getStar_Level(Reply_MemberLevel, Reply_MemberPosts) & "<br />" & vbNewLine
end if
Response.Write " </p>" & vbNewLine & _
" <p>" & vbNewLine


and add this immediately afterwards:

quote:
if mlev > 0 then
if strState = "1" and trim(Reply_MemberState) <> "" then
Response.Write " <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Reply_MemberState & "</small></font><br />" & vbNewLine
end if
end if


Find this around line 784:

quote:
if strShowRank = 2 or strShowRank = 3 then
Response.Write " " & getStar_Level(Member_Level, Member_Posts) & "<br />" & vbNewLine
end if
Response.Write " </p>" & vbNewLine & _
" <p>" & vbNewLine


and add this immediately afterwards:

quote:
if mlev > 0 then
if strState = "1" and trim(Member_State) <> "" then
Response.Write " <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_State & "</small></font><br />" & vbNewLine
end if
end if



And that will then add the member's State into the mini profile. It will only show to logged in members. Please remember to back up your file first though and all line counts relate to an unmodified file

Sorry to hijack your thread reducks87


Edited by - Webbo on 16 August 2003 02:42:38
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07