vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - [CM] Guest IP-2-Country Flag (Addon) (https://vborg.vbsupport.ru/showthread.php?t=287314)

ChiNa 09-01-2012 10:46 AM

Quote:

Originally Posted by Ghost[B
Hunter2010[/b];2361534]thx for sharing but dont u think is better if ppl can download the images it self so ur server may be down sometime there is noserver who never goes down lol

Quote:

Originally Posted by [B
GhostHunter2010[/b];2361534]thx for sharing but dont u think is better if ppl can download the images it self so ur server may be down sometime there is noserver who never goes down lol


UPDATED AGAIN
1ST SEPTEMBER 2012

I did what you guys requested... Now all the files can be uploadet to your own servers! PLEASE UPDATE AND UPLOAD THE new FILES!


GhostHunter2010 09-01-2012 11:42 AM

thankyou mate :)

ChiNa 09-01-2012 11:51 AM

Quote:

Originally Posted by GhostHunter2010 (Post 2361705)
thankyou mate :)

You are very welcome, i would say THANK YOU, for your notice! I just wanted 1 person to tell me! And sure you guys did!

So thanks and enjoy!

CoZmicShReddeR 09-01-2012 01:24 PM

Quote:

Originally Posted by ChiNa-Man (Post 2361662)
So far 4 Installs in 1 Day, and for me I would prefer to let the files stay where they are...

But are you guys willing to upload more than 500 files to your servers? Arround 200 php files, and 300 Images for the flags.... Then sure I can do that ofcs, Just need a few a minutes to pull them out, and i let you all know

I am waiting to hear from those who have installed it.... Those who havnt Installed, Try to install it first, then let me know If you are ready to have the files on your server... then sure we do that..

It seems if I use images or RSS feeds from other website my pages load slow sometimes... If that hosting goes down it really screws up my load times on my website... So with that I usually will mess around with something then if I like it I will ask the author to make it so I can host it or I usually look for an alternative but in the end I do not like anything remotely hosted...

You don't have to do anything for me as I am sure it's not that big of a deal to need your script I was just saying I prefer to host it myself if possible but if it requires Geo php on my end I cannot use it with Go-daddy...

ChiNa 09-01-2012 01:41 PM

TO: CoZmicShReddeR

Quote:

Originally Posted by CoZmicShReddeR (Post 2361728)
It seems if I use images or RSS feeds from other website my pages load slow sometimes... If that hosting goes down it really screws up my load times on my website... So with that I usually will mess around with something then if I like it I will ask the author to make it so I can host it or I usually look for an alternative but in the end I do not like anything remotely hosted...


UPDATED AGAIN
1ST SEPTEMBER 2012

I did what you guys requested... Now all the files can be uploadet to your own servers! PLEASE UPDATE AND UPLOAD THE new FILES!


The ADDON is now updated, and I messaged everyone who had it Installed 4 hours ago.. And I also messaged on top! I think you missed my message about the new update! You can now upload it in your own server!.. Make sure to upload the new files + the new XML Products! And follow my intructions..

And btw, i visited your website and true, ITS LOADING very very slow. I have also godaddy and a usual SHARING webhostnig account! Right now I have more than 3 GB of files in my server. Still LOADS fast! You really need to speak to them about this,

::::::::::::::::::::::::::
And one more thing:
I can see that your forum is not letting the FULL text to show up:
https://vborg.vbsupport.ru/external/2012/09/67.png

Here is what you can do, as you can see there are 4 PHP files, beside the 2 folders, I can see you are using the RED color, so the file you need to EDIT is called "ip2country.php" for the RED colored text! You can edit 3 LINES inside the PHP files, and I will show you how, This is how your PHP file looks like below:
Code:


// This is for displaying Text
$ip = getenv("REMOTE_ADDR") ;
echo "<font color=\"green\">Dear Guest, Welcome! You are visiting from IP: </font>" . $ip;
$IPaddress=$_SERVER['REMOTE_ADDR'];
echo "<font color=\"green\"> and your country flag is </font>";  $two_letter_country_code=iptocountry($IPaddress);
 
include("ip_files/countries.php");
// This is for displaying the flag
$file_to_check="flags/$two_letter_country_code.gif";
if (file_exists($file_to_check)){
                print " <img src=$file_to_check width=21 height=15>";
                }else{
                print " <img src=flags/noflag.gif width=21 height=15>";
                }

function iptocountry($ip) {
    $numbers = preg_split( "/\./", $ip);
    include("ip_files/".$numbers[0].".php");
    $code=($numbers[0] * 16777216) + ($numbers[1] * 65536) + ($numbers[2] * 256) + ($numbers[3]);
    foreach($ranges as $key => $value){
        if($key<=$code){
            if($ranges[$key][0]>=$code){$two_letter_country_code=$ranges[$key][1];break;}
            }
    }
    if ($two_letter_country_code==""){$two_letter_country_code="unkown";}
    return $two_letter_country_code;
}
echo "<font color=\"green\"> Click & register, Its Free!</font>";
?>

I have marked all the 3 LINES with RED COLOR! You can now type your own TEXT a bit shorter to make it fit on your forum! After you are finish, save it and upload it to your forum root.. Thats it.. And make sure upload the new updated files!

GOOD LUCK MATE; and ask if anything!

Below you will which file contains what color, and there are 4 PHP files:

ip2country.php --> RED TEXT
ip2countryb.php ---> BLACK TEXT
ip2countryg.php ---> GREEN TEXT
ip2countrybrown.php --> BROWN TEXT

tele955848 09-01-2012 02:28 PM

ah ok thanks, logically
Also thanks for the support here makes hardly a
nominated;)

Ary Braga 12-11-2012 08:02 PM

Why Show only NO FLAG? I come from brazil.

My ip range is 177.x.x.x

The 2 folders are uploaded correctly

My forumroot is : .com.br/vb/

If noflag.gif appears in directory instaled, the other flags should appear to.

i find into phpfiles and I found no error.

Any Solution?

I unistall this Mod untill this issue be solved.

Many users in USA show "noflag.gif" to


All times are GMT. The time now is 06:58 PM.

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.01100 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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