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)

stonyarc 05-15-2006 10:17 AM

Quote:

Originally Posted by xfaethorx
Did that and it doesn't work.


Please download the version now online. I updated the files this morning.

stonyarc 05-15-2006 10:19 AM

Quote:

Originally Posted by m_k
i apologise if this has been answered already, but can't bring myself to look at all 81 pages of the thread...

have upgraded from previous version, deleted old files, installed new - don't have the permissions box showing up in the usergroups interface

to be honest i did screw up a bit by installing new product file before uninstalling the previous version... once i discovered my mistake i uninstalled both and then reinstalled the new one

also installed the hotspot edition, and the permissions box is there (perhaps since it was a clean install of a new product)

any ideas?

m_k please download the version now online. Upload all files again

Uninstall ME reinstall and force a rebuild of the bitfields by adding

admincp/index.php?do=buildbitfields.

That should normally work.

Ig@r 05-15-2006 01:51 PM

Hello,

Upgraded to 2.5.0
I couldn't find any info about avatars... As far as I can see user avatars was replaced by images, is that correct?
Also, is "find me" link supposed to show up for everyone or only for users with googlemap entries?

Thanks for great work!

hilfe-forum 05-15-2006 02:24 PM

hello again...

i implemented your awsome hack into our forum but im still puzzled with the modification of the postbit_leagacy template.
i shall add "$post[findme]" to where i want a link to show up...but nothing shows up nomatter where i place it.

is there something i can do to narrow down this issue?

Carsten77 05-15-2006 02:49 PM

Hi,

i just want to install this great map, but first i did it in a demoboard.

everything works fine, but when i add an account to the map i still get this:

Quote:

Your marker title could not be added into the database because one or more fields blank were left blank. Please make sure you have enter all required information.
Return to previous page
whats the problem?

any ideas?

greets carsten

hilfe-forum 05-15-2006 03:26 PM

Quote:

Originally Posted by Carsten77
Hi,

i just want to install this great map, but first i did it in a demoboard.

everything works fine, but when i add an account to the map i still get this:



whats the problem?

any ideas?

greets carsten

look here:
http://www.hilfe-forum.eu/vbgooglema...?do=addelement


the filds with "(Pflichtfeld)" (in red) are "you must make an entry" fields

stonyarc 05-15-2006 03:57 PM

Quote:

Originally Posted by hilfe-forum
hello again...

i implemented your awsome hack into our forum but im still puzzled with the modification of the postbit_leagacy template.
i shall add "$post[findme]" to where i want a link to show up...but nothing shows up nomatter where i place it.

is there something i can do to narrow down this issue?

did you install today's version.

That one should hide it when a user doesn't have an entry and only show it on the posts where it's relevant.

If you want I can check myself.

You'll have to add stonyarc (member on your site) to the admins for a few minutes.

The plugin code should be

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'] = "";
  
  



benFF 05-15-2006 04:05 PM

The rebuild a user at a time isn't really an option, as I have loads to do.

Also, an idea, I have all my users set as "registered", but those who donate get added to an additional group "donated" (but there primary is still registered users)

However the colour I assign to "donated" is never used, is there a way to make is use the additional grouping colours if a user is a member of one?

benFF 05-15-2006 04:43 PM

There's a bug in postbit_display_complete hook... it should be:

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'] = "";
  
  


Note the $post['findme'] had been placed outside the parenthesis, so it was wiping out any user that had been found ;)

hilfe-forum 05-15-2006 05:04 PM

Quote:

Originally Posted by stonyarc
did you install today's version.

That one should hide it when a user doesn't have an entry and only show it on the posts where it's relevant.

If you want I can check myself.

You'll have to add stonyarc (member on your site) to the admins for a few minutes.

The plugin code should be

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'] = "";
  
  




THX for Help @stonyarc & benFF
i copy the PhP Cod that benFF post in postbit_display_complete hook

now it works 100% :D

i am so happy!

and my Users to (30 new entries today!)


All times are GMT. The time now is 01:35 PM.

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.02480 seconds
  • Memory Usage 1,780KB
  • 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_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (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