Google Member Map

Started by TLM, December 18, 2005, 08:43:52 PM

Previous topic - Next topic

Goad

anyone have any ideas on what my issue is?  :-\

Mikeobwan

Yeah when I try to install this it also asks for FTP username and password.  I type in my admin info and it just comes back to the same screen.  I have tried changing the permissions in the options panel but it asks for the ftp info also.  Where do I setup that FTP info.

Can I just install this stuff manually..

I am running on a local server so I don't have an ftp setup or anthing..

thanks
Mike

Bigguy

Try manually putting the mod zip file in the packages folder and running it. Some packages won't install locally without ftp setup. Also are you installing the rc8 version from a few posts back. ??? This is the one that works.

Mikeobwan

yes i'm trying to use the rc8.  I was able to get the package into smf but it wont install when i click on apply mod..  I have even tried unzipping it in the packages folder..

Bigguy

check permissions on package folder and the temp folder inside it and see if they are set to 777 if not change them. Maybe that will help not sure though

Mikeobwan

how do I change them. I don't have an ftp.  If I check the properties in windows it says it's not write protected..

Mikeobwan

#826
Ok well it looks like I got it installed.  But I don't seem to see it anywhere, or any way in the admin panel to access the features.  in the onld one it was listed next to Karma in the features and options menu..

I have even tried your modsettings changes and that doens't work either. 

I am unable to unistall it also it seems..

Thanks
Mike

Goad

Can anyone tell me anything?

Goad

I am still trying to install this module....not sure why anymore... I am getting "Test Failed" messages now. This is a fresh clean install of SMF 1.1.1.

I have CHMOD'd the packages folder and all object within to 777, including the directory named "temp" I have created. Also, within the packages options section of SMF, I have set the setting to "All files are writable." As soon as I save this setting, it resorts back to "Only the standard files are writable." without any errors.


Installing this package will perform the following actions:  Type Action Description
1. Extract File ./Sources/GoogleMap.php 
2. Extract File ./Themes/default/Clusterer2.js 
3. Extract File ./Themes/default/GoogleMap.template.php 
4. Extract File ./Themes/default/images/google_earth_feed.gif 
5. Extract File ./Themes/default/images/english/googlemap.gif 
6. Extract File ./Themes/default/images/german/googlemap.gif 
7. Execute Code add_settings.php 
8. Execute Modification ./index.php Test successful
9. Execute Modification ./Sources/Load.php Test successful
10. Execute Modification ./Sources/ManagePermissions.php Test successful
11. Execute Modification ./Sources/ModSettings.php Test failed
12. Execute Modification ./Sources/Profile.php Test successful
13. Execute Modification ./Themes/default/style.css Test successful
14. Execute Modification ./Themes/default/index.template.php Test failed
15. Execute Modification ./Themes/default/Profile.template.php Test successful
16. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
17. Execute Modification ./Themes/default/languages/Modifications.german.php Skipping file
18. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
19. Execute Modification ./Themes/default/languages/ModSettings.german.php Skipping file
20. Execute Modification ./Themes/default/languages/Who.english.php Test successful
21. Execute Modification ./Themes/default/languages/Who.german.php Skipping file

WhatsUp

Goad
The only line that matters is that of the failure. If you check earlier posts, you will see that I reported the exact same problem repeatedly. Also that I eventually installed the latest version of the mod, followed by what then happened.

I never got into the mod's admin interface, however I was able to set the map focus and zoom level by modding add_settings.php:

// List settings here in the format: setting_key => default_value.  Escape any "s. (" => \")
$mod_settings = array(
   'googleMapsEnable' => '0',
   'googleMapsEnableLegend' => '1',
   'googleMapsKey' => '',
   'googleMapsPinGender' => '1',
   'googleMapsPinNumber' => '250',
    'googleMapsType' => 'G_HYBRID_TYPE',
    'googleMapsDefaultLat' => '0.00000000000',
    'googleMapsDefaultLong' => '0.00000000000',
    'googleMapsDefaultZoom' => '16'
,
    'googleMapsEnableClusterer' => '1',
    'googleMapsMinMarkerCluster' => '5',
    'googleMapsMaxVisMarker' => '150',
    'googleMapsMaxNumClusters' => '5',
    'googleMapsMaxLinesCluster' => '10',

Other than this work-round, it works fine.

Good luck.
History Hunters: http://historyhuntersinternational.org/
Enter: test/test
SMF and TinyPortal

Goad

I know that I am only concerned about the failing lines...which are important ones. I went ahead and installed it anyways even though there was failed lines on the test....it still doesnt work at all. no options in the admin interface, nothing the profile and ?action=googlemap doesnt do anything either.

...and yes, I am using the latest version (RC8)

Bigguy

@ Mikeobwan: If your on a windows box doing this make sure read only is off in the properties of the file or folder you are trying to set permissions for.

@ Goad: Open up the install.xml file and find those lines and add them to your files.

Goad

Quote from: Bigguy on January 15, 2007, 04:35:32 PM
@ Goad: Open up the install.xml file and find those lines and add them to your files.

would this be considered a manual install? I dont mind copying and pasting code, just want to know what goes where without breakin stuff.

I will go poke around with that file and see what I can come up with.

thanks.

Bigguy

Yes this would be a manual install but you should install the mod first and then apply ONLY the edits that failed.

Goad

Quote from: Bigguy on January 15, 2007, 10:04:32 PM
Yes this would be a manual install but you should install the mod first and then apply ONLY the edits that failed.

I installed it first then validated if the code was installed on successful files (ex: profile.template.php, load.php, etc) and there was no code there, and the map wasnt showing in the profile. I manually entered the code, and it is now showing in the profile as well as ?action=googlemap is now working. The only thing i dont see is the google map settings in the admin control panel. This is important because the map settings (focus point and zoom) are way off. I am going back to double check all files and code to make sure I didnt miss anything.

I am actually glad I am having to do this because it is really giving me a chance to learn php.  ;)

Bigguy

Check modifications.english.php and see if those edits got done.

Goad

well, i broke something....

I went through and removed everything I have modified....and its still broken....

Quote
Fatal error: Cannot redeclare template_menu() (previously declared in /homepages/xx/xxxxxx/htdocs/scjb-test/Sources/Load.php(1733) : eval()'d code:62) in /homepages/xx/xxxxxx/htdocs/scjb-test/Sources/Load.php(1733) : eval()'d code on line 542

Goad

it was something in my index.template.php ....i overwrote it with the original one from my theme.....now i gotta start over.

Goad

well, I am getting close....but theres some quirks....

There is no text in the pin legend. There is just a green pin, but no text.

There is no map in users profiles who previously did not set their pins, but if they previously set a pin, their map shows up correctly, but they are not able to edit their location.

Also, I had to remove this line from the "map" link in order for it to show up. The map is enabled and I do have permissions to view it.

if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))

Also, the text was not populating properly for the link.

so I changed this...
<a href="', $scripturl, '?action=googlemap">' , $txt['googleMap'] , '</a>

to this...
<a href="', $scripturl, '?action=googlemap">Member Map</a>

I know these are sloppy temp fixes.....but can anyone help me out to figure out whats broken?

Thanks!

Goad


Advertisement: