Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VBGooglemap Member Edition Details »»
VBGooglemap Member Edition
Version: 3.0.1., by stonyarc stonyarc is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Version: 3.5.8 Rating:
Released: 11-01-2005 Last Update: 08-20-2007 Installs: 827
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.


I'm proud to announce that the new version is currently available to you all !!!


You can now nominate hacks yourself for hacks of the month. There is a link on the right of hacks on top of the files.



Function
This will display the members of the Bulletin Board based on their lattitude and longitude coordinates on a googlemap.

Don't forget to hit install !!!!!!!
Please read the guide before asking for support !!!!!!!

Feel free to support this mod and make a paypal donation to admin@stonyarc.com

INSTALL

HOTSPOT EDITION AVAILABLE ON : https://vborg.vbsupport.ru/showthread.php?t=114149
Detailed installation instructions and screenshots in the included pdf file.

Current Features



NOTE:
VBGooglemap 3.0.0 contains the vulnerability fix. Please upgrade immediately. Version 3.0.0. also contains all features from 2.5.X

As always you use modifications at your own risk.

VBGooglemap Member Edition 2.5.1 brings you a lot of new features. It?s vital that you uninstall any previous version before upgrading/installing version 2.5.1.

Upgrading from version 2.5.0 is easier. Instruction are available in the guide.

As the uninstall function will not remove your googlemap data in the database but only the templates and files you can safely remove an older version. As a precaution you should always take a backup. This should be done on each major change you make to your bulletin board.

IF YOU ARE RUNNING VERSION 1.0.3, 2.0.X AND YOU CHANGED TEXT DIRECTLY IN THE TEMPLATES YOU NEED TO SAVE YOUR CHANGES AS VERSION 2.5.0 REQUIRES YOU TO UINSTALL PREVIOUS VERSIONS.

This has taken quite some work and still will take a lot more. Please give credit where credit is due. You cannot remove any notice without prior written permission.

Changes in this version

SEE FIRST POST FOR FULL ROADMAP AND HISTORY

Planned Features
- TBD

Volume warning

high volume of users may slow down the load. Currently a load counter is included.

Languages

Thanks to Wachtmeister there is a German translation available to you all. Feel free to use it.

The translation will be updated on each new version.

Special

- Read the attached PDF for more information. The pdf is also included in the zip file.
- You'll need a googlemap key for your domain. Get your own key for your domain view http://www.google.com/apis/maps/signup.html for more information.
A googlemap key is only valid for a specific domain. You'll need a specific google account to create one.
All is explained on the googlemap link indicated above.
- Set the file permissions on the marker.xml file to 777
- The googlemap script can handle non-registered users. They will only see the main map and won't be able to enter information. This is reserved for logged in users (detected automatically)
- usergroup permissions are available in the backend
- To change location just drag the map while holding the left mouse key or by using the zoom and key functions on the left
- First time loading of the map may take a few seconds longer because of Google API hosting


Special Xbox Live version
http://www.xboxlivenation.com/community/gamermap.php

Credits

This has taken quite some work and still will take a lot more. Please give credit where credit is due. You cannot remove any notice without prior written permission. Instructions are included in the pdf file (vbgooglemap2.5.0_guide.pdf)
Special credits to Google, Pyg for the javascript tips.



FAQ

The FAQ is included in the pdf file.

INSTALL



Feel free to support this mod and make a paypal donation to admin@stonyarc.com



(c) 2007 Stonyarc

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #742  
Old 04-11-2006, 09:15 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, installed and working like a charm!

I am currently changing the code so that online user's are highlighted instead of different colors for usergroups. I'll post the code if you want me to.
Reply With Quote
  #743  
Old 04-11-2006, 09:22 PM
stonyarc stonyarc is offline
 
Join Date: Aug 2005
Location: Leuven (Belgium)
Posts: 930
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrNase
Thank you, installed and working like a charm!

I am currently changing the code so that online user's are highlighted instead of different colors for usergroups. I'll post the code if you want me to.
That would be nice. I have that on the todo list but if you are writing the code (shouldn't be that hard) you can always post so I can add it as a standard feature (race you for it )

Is it better to add a special cricle on those that are online? So that both are combined.
Reply With Quote
  #744  
Old 04-11-2006, 09:41 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code itself is done.. I am using my method because I don't have any moderators and I don't want to have another color as an administrator.

Editing your code I've found out some possible errors:

Here's the part I am talking about:
PHP Code:
if (($get_xml_user["displayusergroupid"]==6)OR($get_xml_user["displayusergroupid"]==7)OR($get_xml_user["displayusergroupid"]==5))
    
    {

         if ((
$get_xml_user["displayusergroupid"]==6))
        {
           
$type $coloradmin ;
           }
        if ((
$get_xml_user["displayusergroupid"]==7))
        {
           
$type $colormod ;
           }
           if ((
$get_xml_user["displayusergroupid"]==5))
        {
           
$type $colorsupermod ;
           }

    }
    else
    {
    
$type $colorother;
    } 
I am not quite sure but I _think_ it must be this instead:
PHP Code:
    if (($get_xml_user["displayusergroupid"]==6)OR($get_xml_user["displayusergroupid"]==7)OR($get_xml_user["displayusergroupid"]==5))
    
    {

         if ((
$get_xml_user["displayusergroupid"]==6))
        {
           
$type $vbulletin->options['vbgooglemap_coloradmin'] ;
           }
        if ((
$get_xml_user["displayusergroupid"]==7))
        {
           
$type $vbulletin->options['vbgooglemap_colormod'] ;
           }
           if ((
$get_xml_user["displayusergroupid"]==5))
        {
           
$type $vbulletin->options['vbgooglemap_colorsupermod'] ; 
           }

    }
    else
    {
    
$type $vbulletin->options['vbgooglemap_colorother'] ;
    } 

And here is what I did to only show online users in another color:
The new query (line 94)
PHP Code:
$selection_xml TABLE_PREFIX "googlemap.lng_map as lng, "TABLE_PREFIX ."googlemap.lat_map as lat, 
"
.TABLE_PREFIX."googlemap.text_map as text, ".TABLE_PREFIX."googlemap.userid as userid, 
"
.TABLE_PREFIX."googlemap.username as login,".TABLE_PREFIX."googlemap.usergroupid as displayusergroupid,
"
TABLE_PREFIX ."online.userid as isonline";
$get_xml_users $db->query_read("SELECT ".$selection_xml.
                            FROM `"
.TABLE_PREFIX."googlemap`
                            LEFT JOIN " 
TABLE_PREFIX "session AS online ON(online.userid = googlemap.userid)
                            WHERE lng_map<>'' AND lat_map<>''"
); 
and some lines below it (106):

PHP Code:
    /*
    if (($get_xml_user["displayusergroupid"]==6)OR($get_xml_user["displayusergroupid"]==7)OR($get_xml_user["displayusergroupid"]==5))
    
    {

         if (($get_xml_user["displayusergroupid"]==6))
        {
           $type = $vbulletin->options['vbgooglemap_coloradmin'] ;
           }
        if (($get_xml_user["displayusergroupid"]==7))
        {
           $type = $vbulletin->options['vbgooglemap_colormod'];
           }
           if (($get_xml_user["displayusergroupid"]==5))
        {
           $type = $vbulletin->options['vbgooglemap_colorsupermod'];
           }

    }
    else
    {
    $type = $vbulletin->options['vbgooglemap_colorother'];
    }
*/
if ($get_xml_user["isonline"])
{
$type $vbulletin->options['vbgooglemap_coloradmin'] ;
}
else {
$type $vbulletin->options['vbgooglemap_colorother'];

I commented your code out so that I can easily change it back.
The last 7 lines basically tell to use the color specified for the admin when a user is online (red in my case) and gray when the user is offline.
So far I could only test it with 2 users, future will tell how this performs.
Reply With Quote
  #745  
Old 04-11-2006, 09:47 PM
stonyarc stonyarc is offline
 
Join Date: Aug 2005
Location: Leuven (Belgium)
Posts: 930
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work.

I hadn't even started

I'll run some tests to make sure it performs like it should.

What I want to do is put a little marker on the map where the user is online but that can be done starting from this code.

the vars like $colorsupermod are set on top of the file grouped with all other vars just to make some cleaner code

PHP Code:
$zoomlevel $vbulletin->input->clean_gpc('r''zoomlevel'TYPE_UINT);
$zoomlevel $vbulletin->options['vbgooglemap_zoom'];
$googlekey $vbulletin->options['vbgooglemap_key'];
$dlat $vbulletin->options['vbgooglemap_lat'];
$dlng $vbulletin->options['vbgooglemap_lng'];
$textchars $vbulletin->options['vbgooglemap_ltext'];
$gmtexttablewidth $vbulletin->options['vbgooglemap_tabletext'];
$gmavatartablewidth $vbulletin->options['vbgooglemap_avatar'];
$gmavatar $vbulletin->options['vbgooglemap_enable_avatar'];
$coloradmin  $vbulletin->options['vbgooglemap_coloradmin'];
$colorother  $vbulletin->options['vbgooglemap_colorother'];
$colorsupermod  $vbulletin->options['vbgooglemap_colorsupermod'];
$colormod $vbulletin->options['vbgooglemap_colormod']; 
I can include the online status in the marker file (little rewrite needed in the javascript parsing but that's ok). Thus avoiding messing with the usergroup codes. That way we can easily add something on the map or on the balloon.

I'll check what I can come up with.

It's 1 AM over here so I'm off to bed
Reply With Quote
  #746  
Old 04-11-2006, 09:55 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you know that your marker on the screenshot is placed in Germany? It seems to be only 100 kilometres away from my location! aaah it's also 1AM for me.. I'm off.

Do whatever you want but keep up this good work!
Reply With Quote
  #747  
Old 04-11-2006, 09:57 PM
Tyegurl's Avatar
Tyegurl Tyegurl is offline
 
Join Date: Mar 2006
Location: NY
Posts: 480
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stonyarc
I checked and it was running on your website.

I haven't been able to identify the problem on vba.

I need to install it on my test server. In the code I don't see anything that might be causing that problem except maybe the window.onload javascript.

Do you have any other image maps running on your vba site????

um no not that i am aware of....but if you would like to check....i can pm you my login info....

oh and yes i am up and running....haven't tried with vba since the upgrade....i will
Reply With Quote
  #748  
Old 04-11-2006, 10:40 PM
MrSquid MrSquid is offline
 
Join Date: Dec 2005
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stonyarc
so it should be your basic URL you should enter on google.com and don't add a trailing /

http://www.google.com/apis/maps/signup.html
Wierd... I finally got it to work but using http://IP/. :banana: I know I tried that same thing about a dozen times last night and never got it to work. Hmm... should I risk jumping to 2.0.1? :cheeky:
Reply With Quote
  #749  
Old 04-11-2006, 11:00 PM
bigtomisin bigtomisin is offline
 
Join Date: Apr 2004
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why does my googlt map say i dont have permission to view?
Reply With Quote
  #750  
Old 04-11-2006, 11:02 PM
Tyegurl's Avatar
Tyegurl Tyegurl is offline
 
Join Date: Mar 2006
Location: NY
Posts: 480
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you haven't edited usergroup permissions yet
Reply With Quote
  #751  
Old 04-11-2006, 11:11 PM
Cajun Cajun is offline
 
Join Date: Jan 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using vb 3.5.4 and vba 2.1.0 and the marker will not show on the map page and it also shows no users.

Now I can see my marker on the Your Entry page.

Anyone know what could cause this?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:51 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06609 seconds
  • Memory Usage 2,362KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete