vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   VBGooglemap Member Edition (https://vborg.vbsupport.ru/showthread.php?t=99920)

Za4a Tuner 05-15-2006 10:17 PM

I found a little bug in the "product.xml":

the link in the phrase => vbgooglemapme_link_help
have to be
Code:

To return to the map click <a href="vbgooglemapme.php" TARGET="_self">here</a>

stonyarc 05-15-2006 10:36 PM

Quote:

Originally Posted by Za4a Tuner
I found a little bug in the "product.xml":

the link in the phrase => vbgooglemapme_link_help
have to be
Code:

To return to the map click <a href="vbgooglemapme.php" TARGET="_self">here</a>

Thanks for finding that one.

I'll include it in the next update

MThornback 05-16-2006 04:46 AM

All my usernames and their comments are "Null" did I miss the fix on one of the pages prior?

Edit: Ignore me...update location...update map....i'm dense

stonyarc 05-16-2006 06:50 AM

Quote:

Originally Posted by MThornback
All my usernames and their comments are "Null" did I miss the fix on one of the pages prior?

Edit: Ignore me...update location...update map....i'm dense

You're the first users that asks me to ignore him. Nice :D

stonyarc 05-16-2006 06:53 AM

Don't forget to upgrade to the latest version.

This will save a lot on the number of queries on the main page.

Thanks

Moreover it's easier for me to support a single version. If needed I will tell you just that sorry

sickboy6ths 05-16-2006 09:41 AM

Hi StoneyARC, great job on the product m8!!

Just a question... is it possible for you to change the behaviour of the usergroup icons?

I have a hierarchy:

Primary groups
  • unverified members
  • verified members
  • insiders (with secondary groups:)
    • Game Admin
    • Moderator
    • User Admin
So my Game Admins and Moderators and User Admins, all show up as the color of Insider group (because thats the primary group)... I would love you to use the "Display Usergroup" option of the user to choose which icon to show :)
(Display Usergroup is a setting that is either on Default, or on one of the groups that the member is member of...), it changes the usertitle to that group's title, the color of the nickname etc. etc. So it would be nice if your product would also make use of that very same function :)

Hope you dig, and thanks already :D

moonclamp 05-16-2006 09:46 AM

There's support for marker colours in the admincp. Run the scheduled task afer you change it though.

I got rid of my usergroup legend and set my markers to all the same colour as it isn't needed on my forum. (I also edited the group legend out of the templates for "list users")

sickboy6ths 05-16-2006 09:54 AM

Please re-read my post.. (Just edited the LIST to be more explaining by itself :D)
Quote:

Originally Posted by moonclamp
There's support for marker colours in the admincp. Run the scheduled task afer you change it though.

I got rid of my usergroup legend and set my markers to all the same colour as it isn't needed on my forum. (I also edited the group legend out of the templates for "list users")


Dr.Viggy 05-16-2006 01:10 PM

I may be missing something or just dense, but...

i added the scheduled task and ran it (more than one) but none of my users are showing up and my map is blank. what do i do?

benFF 05-16-2006 01:39 PM

Quote:

Originally Posted by stonyarc
The update of the usergroupid works only if they do the update.

in which case there definately needs to be a way to rerun the process, I cannot mail everyone who changes group and get them to re-edit their marker ;)

Quote:

Overriding the colours? please elaborate?
As mentioned later on, if a user is also a member of a secondary group these marker settings should be used instead of the primary one. A good way to do this might be an option in the admincp that can set a markers priority (ie if the user is a member of more than one group, use the marker with the highest priority) :)

moonclamp 05-16-2006 02:03 PM

Quote:

Originally Posted by sickboy6ths
Please re-read my post.. (Just edited the LIST to be more explaining by itself :D)

Ah yes, I see what you mean now. I too would prefer it to show additional groups rather than primary groups.

stonyarc 05-16-2006 04:05 PM

Quote:

Originally Posted by Dr.Viggy
I may be missing something or just dense, but...

i added the scheduled task and ran it (more than one) but none of my users are showing up and my map is blank. what do i do?

If you click ME full view does it show them?

Seems like the scheduled task isn't running correctly.

If your click run now does it show a page with "done" on it?

If so just click your entry on the main map and click update. That should fix it.

If not get back to me

Dr.Viggy 05-16-2006 04:12 PM

Quote:

Originally Posted by stonyarc
If you click ME full view does it show them?

Seems like the scheduled task isn't running correctly.

If your click run now does it show a page with "done" on it?

If so just click your entry on the main map and click update. That should fix it.

If not get back to me

- If i click ME full view it was showing NO users, now it's showing one (another admin)

- When I click run now it DOES say done almost instantly

- as for my entry, i don't have an entry as of yet. i just tried starting from scratch so we'll see how it goes.

does every user have to do this manually or will it populate all my users when i run the task?

stonyarc 05-16-2006 04:21 PM

Quote:

Originally Posted by Dr.Viggy
- If i click ME full view it was showing NO users, now it's showing one (another admin)

- When I click run now it DOES say done almost instantly

- as for my entry, i don't have an entry as of yet. i just tried starting from scratch so we'll see how it goes.

does every user have to do this manually or will it populate all my users when i run the task?

For privacy reasons a user has to enter his entry on the map. I always give the advice to enter it on a nearby landmark.

As global geodcoding based on addresses is expensive and most of the users don't want to give the address that isn't released.

I however have written the code to do just that.

Dr.Viggy 05-16-2006 04:21 PM

ok i installed your other hack for the googlemaps in the user profile field and i added myself that way but i'd like to avoid having each user do it manually.

additionally... i can't get the link to show up in the post bit to click on a user and take you to their spot on the map, when i put it in, it only shows up for admin.

Dr.Viggy 05-16-2006 04:22 PM

here's an idea. would it be possible to have the user's ip give a location (just the city/state) and put that on the map automatically?

stonyarc 05-16-2006 04:28 PM

Quote:

Originally Posted by Dr.Viggy
here's an idea. would it be possible to have the user's ip give a location (just the city/state) and put that on the map automatically?

If you have a reference database of course mostly that's on a nearby city.


If you have the money to spend you could even do it on telephone number for all I care.

you need an IP to location reference database. That's custom code.

Respect the privacy of users is one of the rules for using this so you should leave it up to your users to be on it or not. The detail level is very high is some regions.

Dr.Viggy 05-16-2006 05:05 PM

ok fair enough. i'm relatively new to this so just kicking around ideas to get a feel for how it all works.

here's a question... in the postbit i can see the link to my own location but not to the 2nd user that's put in his location so far. why is that? the other user only sees the link under my name and nobody else's including himself.

bada_bing 05-16-2006 05:25 PM

Quote:

Originally Posted by stonyarc
Bada,


If you wait 10 more minutes the new version will be online

excellant upgraded and love the new version.. Did find one problem when it added the $post[findme] in the postbit it added the entry next to the online status and when clicking the My Location it interferred with the drop down menu for the user next to the online status so I manually moved the My Location link right below the member name and work great.. Thank You

stonyarc 05-16-2006 05:38 PM

Quote:

Originally Posted by Dr.Viggy
ok fair enough. i'm relatively new to this so just kicking around ideas to get a feel for how it all works.

here's a question... in the postbit i can see the link to my own location but not to the 2nd user that's put in his location so far. why is that? the other user only sees the link under my name and nobody else's including himself.


There is an approval system in place.

You either auto approve an entry or an admin needs to approve an entry by using the admincp

Check the settings.

It's all explained in the pdf file too.

Dr.Viggy 05-16-2006 05:42 PM

auto approve is set to on. and both users that have updated are in the green online status.

stonyarc 05-16-2006 05:48 PM

Quote:

Originally Posted by Dr.Viggy
auto approve is set to on. and both users that have updated are in the green online status.

Make sure to set all the usergroup permissions.

You can also hide certain groups from the legend.

Dr.Viggy 05-16-2006 05:51 PM

Quote:

Originally Posted by stonyarc
Make sure to set all the usergroup permissions.

i really hate to be a pain, but this is so close to being 100% the other user that's not showing up is actually a member of the same usergroup as i am. he's another admin. that's why i can't figure why one shows up and the other does not

stonyarc 05-16-2006 06:33 PM

Quote:

Originally Posted by Dr.Viggy
i really hate to be a pain, but this is so close to being 100% the other user that's not showing up is actually a member of the same usergroup as i am. he's another admin. that's why i can't figure why one shows up and the other does not

I see 2 users both admins jerseymutt and you in the markers.xml and on the map.

Dr.Viggy 05-16-2006 06:37 PM

right, but.... in a thread in the postbit, under my avatar there's a link to click on to send you to my spot on the map. there's not one under jerseymutt's

stonyarc 05-16-2006 06:48 PM

Quote:

Originally Posted by Dr.Viggy
right, but.... in a thread in the postbit, under my avatar there's a link to click on to send you to my spot on the map. there's not one under jerseymutt's

Please check the location where you have put it.

I'll check the code if there are any issues

Dr.Viggy 05-16-2006 06:52 PM

it's gotta be in the right place since it works for me right?

MagiKelly 05-16-2006 07:57 PM

Just uninstalled my old version of this hack and installed the latest version. All is well except I do not have the control panel for the hack in the usergroups menu. So I can make all the settings but I cannot set it so I or anyone else can see the map.

I realise I have probably missed something stupid but I cannot see what it is. I am going to upgrade the HSE version as well but want to get this right first.

www.songofthepaddle.co.uk/forum

Thanks in advance.

stonyarc 05-16-2006 08:06 PM

Quote:

Originally Posted by MagiKelly
Just uninstalled my old version of this hack and installed the latest version. All is well except I do not have the control panel for the hack in the usergroups menu. So I can make all the settings but I cannot set it so I or anyone else can see the map.

I realise I have probably missed something stupid but I cannot see what it is. I am going to upgrade the HSE version as well but want to get this right first.

www.songofthepaddle.co.uk/forum

Thanks in advance.

Please make sure you upload all files in the upload directory and overwrite any existing files.

Also do a full refresh of the FULL browser. admincp is a frames page.

MagiKelly 05-16-2006 08:48 PM

Quote:

Originally Posted by stonyarc
Please make sure you upload all files in the upload directory and overwrite any existing files.

Also do a full refresh of the FULL browser. admincp is a frames page.

I've done that again and the menu is now there in the usergroups manager but when I change the settings to show the map it says the update was succesfull but the followinf message also flashes up above that

Quote:

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 666
When I go back into the usergroup the settings are still all set to No.

stonyarc 05-16-2006 09:01 PM

Quote:

Originally Posted by MagiKelly
I've done that again and the menu is now there in the usergroups manager but when I change the settings to show the map it says the update was succesfull but the followinf message also flashes up above that



When I go back into the usergroup the settings are still all set to No.


When exactly do you get this error?
Can you please reinstall the product with a full overwrite?

EasyTarget 05-16-2006 09:10 PM

thanks for the update, looks great.

Is there a way to replace a users default vbulletin location in the postbit if they have a googlemap location set?

Also I seem to be having problems with the usergroups. I tried to get one usergroup to show up on the map with yellow balloons and it didn't work, but even when I disabled that usergroup there were 2 normal users who showed up with yellow balloons for some reason. (I only have blue, green and red enabled).

You can see the yellow ones in so. ca. and also in ontario, canada a little above new york. (its hidden behind 3 others)

stonyarc 05-16-2006 09:44 PM

Quote:

Originally Posted by EasyTarget
thanks for the update, looks great.

Is there a way to replace a users default vbulletin location in the postbit if they have a googlemap location set?

Also I seem to be having problems with the usergroups. I tried to get one usergroup to show up on the map with yellow balloons and it didn't work, but even when I disabled that usergroup there were 2 normal users who showed up with yellow balloons for some reason. (I only have blue, green and red enabled).

You can see the yellow ones in so. ca. and also in ontario, canada a little above new york. (its hidden behind 3 others)

As the markers.xml isn't recreated anymore on each load if you change the setting of the usergroup you'll have to force the cron to run to create the file by clicking run now

or by going to the map, clicking your entry and clicking update which also forces a reload.

that should fix it.

stonyarc 05-16-2006 09:48 PM

on a more pleasant note

Check out the new Xbox Live version I made

http://www.xboxusersgroup.com/forums...hp?do=showmain

Dr.Viggy 05-16-2006 09:50 PM

i'm still in the situation where the map is working perfectly but the link in the user informotaion in the postbit is only showing up for one person and not the other. we are both admins so it shouldn't be a usergroup issue. any ideas?

dai-kun 05-16-2006 09:52 PM

I can't get the markers to show up on the map for some reason. I tried running the cron job too but i get this:

Code:

Warning: Cannot modify header information - headers already sent by (output started at /home/domain/domain.com/forum/includes/adminfunctions.php:236) in /includes/cron/vbgooglemapme_cron.php on line 20

Warning: Cannot modify header information - headers already sent by (output started at /home/domain/domain.com/forum/includes/adminfunctions.php:236) in /includes/cron/vbgooglemapme_cron.php on line 64

Warning: Cannot modify header information - headers already sent by (output started at /home/domain/domain.com/forum/includes/adminfunctions.php:236) in /includes/cron/vbgooglemapme_cron.php on line 66

Warning: Cannot modify header information - headers already sent by (output started at /home/domain/domain.com/forum/includes/adminfunctions.php:236) in /includes/cron/vbgooglemapme_cron.php on line 68

Warning: Cannot modify header information - headers already sent by (output started at /home/domain/domain.com/forum/includes/adminfunctions.php:236) in /includes/cron/vbgooglemapme_cron.php on line 69

Warning: Cannot modify header information - headers already sent by (output started at /home/domain/domain.com/forum/includes/adminfunctions.php:236) in /includes/cron/vbgooglemapme_cron.php on line 71

-edit-

nevermind, i fixed it by reuploading the product file.

Thanks for the hack.

stonyarc 05-16-2006 10:26 PM

Quote:

Originally Posted by Dr.Viggy
i'm still in the situation where the map is working perfectly but the link in the user informotaion in the postbit is only showing up for one person and not the other. we are both admins so it shouldn't be a usergroup issue. any ideas?

I'm not able to simulate the issue.

Can you make sure that the $post[findme] is put outside any of the conditions (if's) just to make sure.

Also check the plugin code

It must look like this one


PHP Code:

global $vbulletin


if (
$post[userid]){ 
$getpos $vbulletin->db->query_first("SELECT userid,lat_map,username,lng_map FROM " TABLE_PREFIX "googlemapme WHERE userid = $post[userid]"); 
$bburl $vbulletin->options['bburl']; 
$lat $getpos['lat_map']; 
$lng $getpos['lng_map']; 


if (
$lat

$post['findme'] = "<a href=\"$bburl/vbgooglemapme.php?lat=$lat&lng=$lng&zoom=10\" target=\"_self\">$vbphrase[vbgooglemapme_findme]</a>"

else 

$post['findme'] = ""




else 

$post['findme'] = ""



Dr.Viggy 05-16-2006 10:40 PM

ok so here's the end result. i put the $post[findme] outside the if condition for the avatar and it showed up with "my location" the additional hack that you had for the profile was showing another link that said "dr.viggy's location" but it wasn't showing for anyone else. i removed the code for the profile hack and it left the "my location" link for the users that have added map entries. it's 100% now. thanks for all your help.

stonyarc 05-16-2006 10:50 PM

Quote:

Originally Posted by Dr.Viggy
ok so here's the end result. i put the $post[findme] outside the if condition for the avatar and it showed up with "my location" the additional hack that you had for the profile was showing another link that said "dr.viggy's location" but it wasn't showing for anyone else. i removed the code for the profile hack and it left the "my location" link for the users that have added map entries. it's 100% now. thanks for all your help.


No problem enjoy the app

bada_bing 05-17-2006 01:16 AM

I think there is a problem with the formating when using Firefox. Worked fine with the prior version but the new version seam to not align up correctly in FF but ok in IE
Here is the link to an example
http://seekingadultfriends.com/forums/vbgooglemapme.php


All times are GMT. The time now is 04:39 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.02461 seconds
  • Memory Usage 1,866KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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