The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
BETA VERSION: Map Locator Hack Details »» | |||||||||||||||||||||||||
Welcome to my first BETA Release of
Map Locator Hack or How-to-Find members in a nutshell This is my first try to get help from you guys. I tried to develop this on my own but i failed. I need help from all of you. Before i start to describe what this hack does please take a look at the live demo. It makes my life much easier. Live demo can be viewed here. Please move your mouse over the marks. You will see userinformations. So this hack provides a map for VBulletin to show where your members are living. But i do not have the data for the US. I just have the data for germany and due to this i can only provide the german map. I have added the US map and a map of india but without the data i will not be able to finish this hack for other countries. Please read my installation instructions completly BEFORE you start installing this hack. This hack is not easy to install and it will take you at least 30 min to get it running with the german map. I would like to add: This is not an official release. This is a BETA version which is currently in production. I would not post this in this BETA section when i would not need your help. So what i need from you ? Please read my install instructions and read the part about the US data. If someone can provide this kind of data, i will be able to publish this hack. If no one can provide this data, i will not continue with this hack because it works for me and due to the help of an indian VB member i will finalize this hack for him for india. So it is up to you. UPDATE BETA 1.01: After having done the base work, i focused now on the performance. If you have many members in your domain and many people open this map, your server will struggle. The heavy SQL part of this hack will bring down your server. Due to this i implemented a performance improvement. I created the following logic around the hack: - check if the number of ZIP code entries of the members has changed. - if yes, then redraw the map with all queries ( a lot of queries which are required ) - if no, then take the already drawn map and take the userinfo which has been saved into a file rather then redo all queries again Improvement: - Up to 800% because people do not change their ZIP code so often - if new ZIP codes are added only 1 person will issue the heavy SQL load to your server and this just ONCE - every other person will get the cached version of the map with a really nice performance ( 5 queries in total ) And on top of that i added the Locator template to the cached templates. So this hack should be performing very well now. You can check it on my live demo site. I have updated the ZIP file with the new locator.php file. For upgraders, just replace the locator.php file in your forum root folder. Then please do a "chmod 777 data" in your forum root folder. All set all done. Cheers, Show Your Support
|
Comments |
#42
|
|||
|
|||
Quote:
|
#43
|
||||
|
||||
Quote:
I am sorry but i have only root server and due to this i do not have restrictions like that. Otherwise i would have tested it. But if you want to go for it, then try it. Give it a shot. Then we know for other people if it works or not. I know from other people that they are using PEAR in their root folder and it works for them. So the only question that remains would be: "Will the Geo folder be recognized ?". Let's see what you will tell us. Good luck. Cheers, |
#44
|
||||
|
||||
Hi @LL,
i am very sorry but i just discovered a serious bug in the performance enhancements. Under certain circumstances it does not update the new files accordingly. So please add the following changes to your files: locator.php: Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Sorry for the inconvenience. Now your locator page should be cached until the number of ZIP codes will change. I will implement this into the next update of the ZIP file. P.S.: This is also not implemented in the UK version of th?s hack. So please add these changes to the UK version of this hack as well. Cheers, |
#45
|
||||
|
||||
UK ? Any feedback so far ?
Cheers, |
#46
|
|||
|
|||
Quote:
PHP Code:
This is the error I receive after adding the above to locator.php Warning: main(Geo/Geo.php): failed to open stream: No such file or directory in /home/clubnu00/public_html/forums/locator.php on line 32 Fatal error: main(): Failed opening required 'Geo/Geo.php' (include_path='home/clubnu00/public_html/pear/PEAR/PATH_SEPERATOR.:/usr/lib/php:/usr/local/lib/php') in /home/clubnu00/public_html/forums/locator.php on line 32 |
#47
|
||||
|
||||
Hello Dave,
there is an easier way to get this running. Let me guess: You can the error message "no stable version/release found" for XML_SVG ? This is correct because they have a problem with the installer. They are working on this issue. As a workaround you have to do the following: Instead of typing "pear install XML_SVG" you have to download the latest stable version as a tar.gz file from the PEAR website and the install it with "pear install XML_SVG_versionXXXX.tar.gz". And of course you can not install IMAGE_GIS because this depends on XML_SVG. So if the one of the 3 packages fail you will not be able to install IMAGE_GIS. Tell this to your provider and he should be able to install all 4 modules and copy the Geo directory into the PEAR directory as well. Cheers, |
#48
|
||||
|
||||
has anyone did the U.S map yet
|
#49
|
||||
|
||||
Quote:
NO. No one approached me yet to give me the US data. I am still waiting for input. As long as i do not have any input, i can not create anything. Sorry. Cheers, |
#50
|
||||
|
||||
Quote:
It's free Zip code database and it's in MySQL. Hope it has the data you need. |
#51
|
|||
|
|||
<a href="http://forums.devshed.com/t60834/s.html&highlight=zip+codes" target="_blank">http://forums.devshed.com/t60834/s.h...ight=zip+codes</a>
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|