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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Iptocountry Carefree
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Maxime
Average Member

France
521 Posts

Posted - 10 January 2014 :  04:21:09  Show Profile  Visit Maxime's Homepage  Reply with Quote
Hello Carefree,

The act of installing the mod iptocountry not going to remove the mod images of country flags?

Cordially,
Maxime

Taxation consists in so plucking the goose to get the most out of feathers with the least possible cries.(Jean-Baptiste Colbert)

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 11 January 2014 :  19:05:58  Show Profile
I will have to look at the flag mod to make sure there's no conflict. If there is, I will post a change for you.
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 15 January 2014 :  20:36:03  Show Profile
The IPtoCountry mod creates a new variable "strLocale" which holds the name of the country someone connects from.

This will not affect the flag mod you're using unless you choose to display the flag of the users' real location in "topic.asp" (instead of the one they reported when they registered). To do so, there is one change to "inc_locale.asp":

"inc_locale.asp"

Look for the following line (appx 40):

Set rsLocale = Nothing

Below that, insert these:

If MemberID>0 Then
	strSql="UPDATE " & strMemberTablePrefix & "MEMBERS SET M_COUNTRY='" &  strLocale & "' WHERE MEMBER_ID=" & MEMBERID
	my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords
End If

Edited by - Carefree on 16 January 2014 08:37:43
Go to Top of Page

Maxime
Average Member

France
521 Posts

Posted - 16 January 2014 :  02:54:36  Show Profile  Visit Maxime's Homepage
Hello Carefree,

Here's what I use as models for the display of flags

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

Cordially,
Maxime

Taxation consists in so plucking the goose to get the most out of feathers with the least possible cries.(Jean-Baptiste Colbert)

Go to Top of Page

Maxime
Average Member

France
521 Posts

Posted - 16 January 2014 :  11:58:28  Show Profile  Visit Maxime's Homepage
5 that there is in line inc_locale.asp

<%
strSql="SELECT IPSTART, IPEND, IPCOUNTRY FROM " & strTablePrefix & "IPTOCOUNTRY WHERE IPSTART <= '" & Request.ServerVariables("Remote_Addr") & "' AND IPEND >= '" & Request.ServerVariables("Remote_Addr") & "'"
Set rsLocale= my_Conn.Execute(strSql)
If NOT (rsLocale.BOF or rsLocale.EOF) Then
	strLocale=rsLocale("IPCOUNTRY")
	rsLocale.Close
End If
Set rsLocale = Nothing
%>

Cordially,
Maxime

Taxation consists in so plucking the goose to get the most out of feathers with the least possible cries.(Jean-Baptiste Colbert)


Edited by - Maxime on 16 January 2014 11:59:37
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 16 January 2014 :  18:41:48  Show Profile
Sorry about that, updated it some time ago and never uploaded it. Just edited the pages and re-uploaded it.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07