The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[CM] Guest IP-2-Country Flag (Addon) Details »» | |||||||||||||||||||||||||||||||||||
This was brought to you by ChiNa-Man First of all I am a free soul, So if one of you guys decided to post this on another forum or a website, I would be appreciated if you give some CREDITs to the Developer simply typing his name: Credits to: ChiNa-Man, and do not CHANGE or DELETE the ORIGINAL CONTENT! Thank you! ::::::::::::::::::::::::::::::::::::::::::::: Get this addon for vBulletin 3.8 by Clicking HERE Credits to: www.Coding-Talk.com & subzero for sharing a part of the script! New Update Message (Read This Befor) This is my 2nd tutorial, I had uploaded all the images and files in our own server to make it easier for you guys, but the members suggested that it was much better if they got the files to upload for them selfs and on their own servers! Now thats what we do. And all we have removed all the images & files from our servers, and if anyone still uses the old version, then its not strange if the flags doesnt show up. Now you all need to get this new update, which is much more easier! And all the files is ready to be uploaded in your own servers! UPDATED (03-SEP-2012)After MEMBERS REQUEST! Befor I start, I let you know that there are about 500 Files to Upload in your server or your forum ftp root. We first uploaded all the files to our own server, but if you look below in the comments many requested they wanted the files to be uploaded in their own servers. We have now uploaded all the files in the ATTACHMENTS as "Upload.zip" + 4 XML files beside. So please take your time and let all the files be uploaded, befor you install the XML file. Files to upload from "Upload.zip" file there are: 2 Folders Called: (flags) + (ip_flags) + 4 php files. An Estimate of 499 files for upload. Upload everything from the Upload.zip to your forum root, Simply use the DRAG and DROP it, if you use any FTP software ! And dont forget the 4 XML files which comes with 4 different TEXT COLORS, Do not upload them to your FTP! They should only be installed from ADMINCP and Product Manager, but only 1 of them! Dont forget, this was request by yourselfs ! Here we go: Show your forum Guests their IP Location, and Country Flag! This addon my latest one (IP 2 COUNTRY FLAG)! It showes your guests IP and COUNTRY FLAG. Its only working in the forum section, and the BOX will be placed above your forums! Me and a friend had this script for a long time and and we wanted to make this to an ADDON for our old forum MYBB, but we couldnt! After I moved to vBulletin we gave it a shot, and finally made it to work for vBulletin Version vB3.8 and 4.x! And finally we finished it... The php was not finished, so we added some extra felts to finish it! With 4 different text colors, Red, Green, Brown, Black! Below you see how the Addon looks on a Dark & a Light (Theme & Background) Red Text Color Green Text Color Brown Text Color Forum Frontpage Step 1: I start over again with the "Upload.zip" from the attachments, there are 2 folders and 4 files beside the folders! Upload everything that you see in the Upload.zip to your forum root! And wait untill its uploaded, and then go to step 2! Step 2: Now there are 4 XML products, with different text color, Choose only one and go to your ADMINCP, and in your Plugin & Products, click on Manage Products, and scroll down to ADD/IMPORT PRODUCT! Then click on BROWSE button and locate the XML product with the color you want to use in your forum, and then Click on IMPORT.. Thats it, Now remember, you have to log-out to see the Guest message! Because its only visible for Guests, Non-Registered Users and Non Logged-In.. Dont forget to click on INSTALLED, and enjoy ! And thanks for all of you who noticed me about the FILES where better to be uploaded in your own serves! GREAT IDEA , BUT A LOT OF FILES! Download Now
Show Your Support
|
Благодарность от: | ||
GhostHunter2010 |
Comments |
#12
|
|||
|
|||
Quote:
Quote:
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! |
#13
|
|||
|
|||
thankyou mate
|
#14
|
|||
|
|||
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! |
#15
|
||||
|
||||
Quote:
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... |
#16
|
|||
|
|||
TO: CoZmicShReddeR
Quote:
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: 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>"; ?> 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 |
#17
|
|||
|
|||
ah ok thanks, logically
Also thanks for the support here makes hardly a nominated |
#18
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|