vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   BETA VERSION: Map Locator Hack (https://vborg.vbsupport.ru/showthread.php?t=65674)

DaveLogic 06-02-2004 04:10 PM

Quote:

Originally Posted by Pseudomizer
Any feedback so far about the UK map ? Does it work ?

Cheers,

I've had a bit of a nightmare....For some reason I cannot use my shell acount at the moment..I've contacted my host (who do provide it!) but I'm still awaiting a response...I have used it extensively before this.Although I know Pear is installed I cannot setup the other modules yet..Because I'm impatient and also exited about this working I tried installing Pear into the root (You can do this with ImageMagick and various other mods sometimes)...I used this installer http://www.phpkitchen.com/article.ph...21201062516970...Just out of interest and as you must know more about this than me. Do you think that this is possible or should I just hold on?? - There is a built in installer for all of the extra mods

Pseudomizer 06-02-2004 05:17 PM

Quote:

Originally Posted by DaveLogic
I've had a bit of a nightmare....For some reason I cannot use my shell acount at the moment..I've contacted my host (who do provide it!) but I'm still awaiting a response...I have used it extensively before this.Although I know Pear is installed I cannot setup the other modules yet..Because I'm impatient and also exited about this working I tried installing Pear into the root (You can do this with ImageMagick and various other mods sometimes)...I used this installer http://www.phpkitchen.com/article.ph...21201062516970...Just out of interest and as you must know more about this than me. Do you think that this is possible or should I just hold on?? - There is a built in installer for all of the extra mods

The problem will be PHP. You have to enter the PEAR path into your php.ini file. If you install it into your root folder i do not know if the php files will find the Geo folder. I never tried it before.

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,

Pseudomizer 06-03-2004 01:02 AM

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:

    $fp=fopen("./data/numbers.dat","a");
    
fwrite($fp,$result[0]);
    
fclose($fp); 

Just below add:
PHP Code:

    $datei file("$count_data"); 

Then find:
PHP Code:

if ( $data_has_changed == "1" )


Just below add:
PHP Code:

   unlink("./data/numbers.dat");
   
unlink("./data/users.dat"); 

Now delete the following files on your server: ./data/users.dat and ./data/numbers.dat. The first view of the page should run all queries but the reload of the page should have just 5 or 6 queries.

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,

Pseudomizer 06-04-2004 11:02 PM

UK ? Any feedback so far ?

Cheers,

DaveLogic 06-07-2004 09:49 AM

Quote:

Originally Posted by Pseudomizer
UK ? Any feedback so far ?

Cheers,

I'm still having a nightmare...My host agreed to install the 4 extra mods.The first 2 installed ok but the XML_SVG wouldn't...I have managed to install Pear into my Public_HTML root sucessfully and have installed the 4 mods but as you stated there is still a problem finding GEO...I did some research and evidently if the following is added to the top of every Pear dependant page it should work.

PHP Code:

<?php
ini_set
(
    
"include_path", (
        
"path/to/your/pear/folder" .
        
PATH_SEPERATOR .
        
ini_get("include_path")
        )
    )
);
?>

My question is "Is this correct and what files need this adding to?" The site I got this information from is here http://builder.com.com/5100-6371-5163311.html

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

Pseudomizer 06-07-2004 11:10 AM

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,

Johnny 06-17-2004 02:54 PM

has anyone did the U.S map yet

Pseudomizer 06-17-2004 03:07 PM

Quote:

Originally Posted by Johnny
has anyone did the U.S map yet

Hi Johnny,

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,

oly51 06-17-2004 06:02 PM

Quote:

Originally Posted by Pseudomizer
Hi Johnny,

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,

Pseudomizer - What about this link?: http://forums.devshed.com/showthread.php?t=157248

It's free Zip code database and it's in MySQL. Hope it has the data you need. :D

58sniper 06-17-2004 09:31 PM

<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>


All times are GMT. The time now is 01:44 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.01226 seconds
  • Memory Usage 1,760KB
  • 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
  • (5)bbcode_php_printable
  • (5)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