Ip2country

Started on the old forum in December 2007 · view the original in the archive · old links redirect here

49 replies · 5,805 views · started 18 years ago · 1 min read

TL;DR · summary of 49 replies
  • Guest asked how to install country flags for Lavalair profiles based on user IPs.
  • Ori provided code snippets and SQL queries, suggesting a solution using the Wapside script functions.
  • Guest had trouble getting the correct flag showing up consistently across all users' profiles.
  • Guest's final working code snippet used ip() function correctly fetching IP from database instead of $_SERVER variables.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

12 participants
bluebell Junior · 15 posts #47

all l get is this......

Idle For: Online! Browser: Opera network:

plz help thankz

SpiderWap Lead · 622 posts #48

index.php?action=viewuser

$subno = mysql_fetch_array(mysql_query("SELECT subno FROM ibwf_users WHERE id='".$who."'"));
echo "[b]Network:[/b] $subno[0]</br>";

login.php

$netwerk=network(ip(),1);
mysql_query("UPDATE ibwf_users SET subno='".$netwerk."' WHERE name='".$uid."'");

Add another clm to ibwf_users. name it subno varchar(255) not null default Unknown

mazalo Developer · 50 posts #49

ip2country.php Create?

ejatd29 Newbie · 3 posts #50

hm.. I think have one function missing from that sc.. Hm.. Where function ip2long($ip) ? Huhu.. Lala..

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close