vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - GLA - Geographic Location Awareness for vBulletin (https://vborg.vbsupport.ru/showthread.php?t=151601)

Nick0r 07-17-2007 07:58 PM

This is a great idea - I've been looking for something like this so that I can geo-target my newsletter to people in specific countries. I don't suppose there is any planned plugin support for this in the future?

mfyvie 07-17-2007 08:12 PM

Quote:

Originally Posted by Nick0r (Post 1293945)
This is a great idea - I've been looking for something like this so that I can geo-target my newsletter to people in specific countries. I don't suppose there is any planned plugin support for this in the future?

Well this module will support any such application you'd like to build with it. It depends what you mean by "plugin support" - the support for a plugin is there, but someone still has to write it - this mod simply takes a lot of the hard work out of writing such a plugin.

Are you talking about the "Generate Mailing List" function in the admincp? If so, you should be aware that the file that makes these mailing lists has no hooks at all, so such a modification would have to involve file edits, not plugins.

Version 1.1 of GLA will make it even easier for developers to write code in the own plugins, for example - you could take the registration IP address and pass it through a function and have the country data returned. Only 2 lines of code needed to test any IP address.

Nick0r 07-17-2007 08:32 PM

Hey,

I was thinking more along the lines of integration w/ Commbull or VBGazette (newsletter products).

mfyvie 07-17-2007 08:43 PM

If those products could import data from another source, it would be fairly easy. All you'd need is a bit of code that spits out your usertable, or specifically the email address, registration ip, and username and adds the country name at the same time. You could then import the data into excel and do whatever you wanted with it.

Cyburbia 07-18-2007 03:25 AM

Free IP to country database (CSV) that claims daily updates.
http://software77.net/cgi-bin/ip-country/geo-ip.pl

mfyvie 07-18-2007 05:25 AM

Quote:

Originally Posted by Cyburbia (Post 1294271)
Free IP to country database (CSV) that claims daily updates.
http://software77.net/cgi-bin/ip-country/geo-ip.pl

That is awesome, thanks for that. The timing is excellent as I am getting version 1.1 ready. This database looks much better than the one I am using in 1.0, and they seem to certainly try to keep it up-to-date!

There are extra country codes used however, meaning that there could be some issues with flags not being available.

I'm also thinking about things like a cron job for auto downloads and updates each week, as well as a list of exceptions, for the case for example when some of your users post from a company where the proxy server is in one country, but assigned to the address space of the head office (e.g. USA).

The accuracy issue will become even more important when I release the flag in the postbit mod that I've just finished writing.

mfyvie 07-18-2007 07:40 AM

I've attached an updated database file, which I reformatted from software77.net (see above post for details). Future versions of GLA will support this file format without modifications, but for the moment I had to make a custom version so that 1.0 would import it.

I believe that this database should be better than the one which is currently bundled with GLA 1.0. I'd be interested to hear comments from people who reported some problems with the existing database - maybe this updated one improves the situation?

How to upgrade your database? Easy, just follow the upgrade instructions in the original install.txt file included with the GLA zip file. Updating should take less than a minute.

I'm also going to need a bit of help from you guys. There are new country codes added to this version of the database, namely these countries:
AP - non-specific Asia-Pacific location
CS - Serbia and Montenegro (Formally Czechoslovakia)
YU - Serbia and Montenegro (Formally Yugoslavia) (Being phased out)
EU - non-specific European Union location
FX - France, Metropolitan
PS - Palestinian Territory, Occupied
UK - United Kingdom (standard says GB)
* ZZ - IETF RESERVED address space.

I need some assistance from other people for the following tasks:
  • Check if the existing flag set contains all flags in the ISO-3166 list (in other words, are there other countries missing from the current flag set?)
  • Check that the current flagset actually represents the flags of the country codes (some flags may have changed)
  • Draw (or copy and adapt) any new flags missing from the current flag set, and possibly extend the flag sets linked here.
The idea would then be to put these extended flag sets up for download at software77.net to allow everyone using their free database (not just GLA users) the chance to get flags to match the most current database. If you enjoy GLA and think it is useful, I'd be grateful if you could help me out with any of the above tasks.

Cyburbia 07-18-2007 10:15 AM

There's a very tasteful flag set at http://www.famfamfam.com/lab/icons/flags/ . It incldes all the missing countries, although users will probably need to rename europeanunion.png to eu.png, and make a copy of uk.png as gb.png.

http://img263.imageshack.us/img263/4...ewlargexl5.png

mfyvie 07-18-2007 11:22 AM

Nice link! Flags look good, but for the default set (packaged with GLA) I really need something to match the size (height) of the current set. The reason is that the height of the flags matches the various IM icons displayed in the postbit, so it looks good. It also doesn't look too bad when stacked next to text in the default size.

bada_bing 07-18-2007 12:45 PM

This would be a nice addition if Stonyack updates the vbgoogle hacks


All times are GMT. The time now is 05:50 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00998 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete