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)

soulface 05-14-2006 08:16 PM

one uncached template :p

Code:

Page generated in 0.22375 seconds with 14 queries (1 queries for uncached templates) [Server Loads: 0.21 0.22 : 0.18]
Uncached templates: vbgooglemapme_display_yourlocation (1)


stonyarc 05-14-2006 08:18 PM

Quote:

Originally Posted by soulface
one uncached template :p

Code:

Page generated in 0.22375 seconds with 14 queries (1 queries for uncached templates) [Server Loads: 0.21 0.22 : 0.18]
Uncached templates: vbgooglemapme_display_yourlocation (1)



Yep It's already corrected in the dev version. Thanks

soulface 05-14-2006 08:22 PM

Quote:

Originally Posted by stonyarc
Yep It's already corrected in the dev version. Thanks

one lil typo :p

in templates 'vbgooglemapme'

Code:

<title>$vboptions[bbtitle] - $vbphrase[vbgooglemap]</title>
it should be..

Code:

<title>$vboptions[bbtitle] - $vbphrase[vbgooglemapme]</title>

stonyarc 05-14-2006 08:22 PM

Quote:

Originally Posted by hilfe-forum
Ups Sorry!
now it?s for users and guests.

http://www.hilfe-forum.eu/vbgooglemapme.php


I dont now who is the prob..

the Server can not be to smal..

The DB use Quad-Xenon-Server mit 8 GB RAM.
Serverload in smaler 3
in moment we have only a litle bit Users online...

your Hack is realy great an I and my Users realy love him.


im realy lucky if you can help me...

Sorry for my broken english..


I think it's the flashlink thing.

As the googlemap also uses a window.onload script there must be a conflict.

stonyarc 05-14-2006 08:26 PM

Quote:

Originally Posted by soulface
one lil typo :p

in templates 'vbgooglemapme'

Code:

<title>$vboptions[bbtitle] - $vbphrase[vbgooglemap]</title>
it should be..

Code:

<title>$vboptions[bbtitle] - $vbphrase[vbgooglemapme]</title>

Damm you're good :cool:

Corrected for the next version

Wachtmeister 05-14-2006 08:33 PM

Great improvements !!

The post[findme] into the postbit should only show up, if the user has added something to vbgooglemapme.

stonyarc 05-14-2006 08:50 PM

Quote:

Originally Posted by Wachtmeister
Great improvements !!

The post[findme] into the postbit should only show up, if the user has added something to vbgooglemapme.

I'll include that in the next release (somewhere this week).

hilfe-forum 05-14-2006 08:55 PM

Quote:

Originally Posted by stonyarc
I think it's the flashlink thing.

As the googlemap also uses a window.onload script there must be a conflict.

THX for help

It works!!!!

I Love this Hack!!!!

stonyarc 05-14-2006 08:56 PM

I think I have a solution for the queries.

I'm going to use the scheduled tasks available in vbulletin.

That will reduce the queries to normally 7 in total.

If scheduled once an hour to update to the last info that should be enough.

I can also trigger it on insert or on update so that almost always the latest information is displayed.

However the online status will no longer be available. Vbulletin has enough places where that can be handled.

stonyarc 05-14-2006 08:57 PM

Quote:

Originally Posted by hilfe-forum
THX for help

I remove the Flash Banner the blinking Link and the counter (use javascript) Page is Clean but the Prob. is the same


Are there any other things that do javascript loads. It forces the map in an endless loop.


/edit


I still see this !!!!!

It's not only the call that needs to go but also the whole listener
Code:

<script language="JavaScript1.2" type="text/javascript">
/***********************************************
* Flashing Link Script- ? Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var flashlinks=new Array()
function changelinkcolor(){
for (i=0; i< flashlinks.length; i++){
.......
}
}
setInterval("changelinkcolor()", 1000)
}
if (window.addEventListener)
window.addEventListener("load", init, false)
else if (window.attachEvent)
window.attachEvent("onload", init)
else if (document.all)
window.onload=init

</script> <script type="text/javascript"> <!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
if (confirm('M?chtest du dich wirklich abmelden?'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//--> </script>


stonyarc 05-14-2006 09:11 PM

Quote:

Originally Posted by hilfe-forum
THX for help

It works!!!!

I Love this Hack!!!!

Don't forget to approve new entries in the admincp or to set auto approve to yes !!!!!


I entered mine :cool:

hilfe-forum 05-14-2006 09:49 PM

Quote:

Originally Posted by stonyarc
Don't forget to approve new entries in the admincp or to set auto approve to yes !!!!!


I entered mine :cool:

Top Support!
Top Hack!
thanks... i am in the Heaven!

Wachtmeister 05-14-2006 10:20 PM

My users cannot edit their entry. They can edit, but not save.

"You don't have the right to access this page..."

Can view the Googlemap ME . yes
Can add elements on the Googlemap ME . yes
Can edit elements on the Googlemap ME . no
Can delete elements on the Googlemap ME . no
Can edit own entry on the Googlemap ME . yes

It works, if i set "Can edit elements on the Googlemap ME" to yes.

stonyarc 05-14-2006 10:25 PM

Quote:

Originally Posted by Wachtmeister
My users cannot edit their entry. They can edit, but not save.

"You don't have the right to access this page..."

Can view the Googlemap ME . yes
Can add elements on the Googlemap ME . yes
Can edit elements on the Googlemap ME . no
Can delete elements on the Googlemap ME . no
Can edit own entry on the Googlemap ME . yes

It works, if i set "Can edit elements on the Googlemap ME" to yes.


Can you force a rebuild of the bitfields by running

admincp/index.php?do=buildbitfields

and update every relevant usergroup.

/edit

I just registerd and set my marker.

I cannot edit anyone elses marker as a normal user.

OK I see what you mean now.

Wachtmeister 05-14-2006 10:38 PM

Quote:

Originally Posted by stonyarc
Can you force a rebuild of the bitfields by running

admincp/index.php?do=buildbitfields

Done and updated, but i guess you know what i mean.

Very good support!

stonyarc 05-14-2006 10:45 PM

Quote:

Originally Posted by Wachtmeister
Done and updated, but i guess you know what i mean.

Very good support!


Wachtmeister,

I included a fix for this issue.


Just download the zip again and overwrite to vbgooglemapme.php and it should be ok.

I was a bit too strict with the permission checking.


All,

Please download the latest version to fix the too strict "your entry" permissions checking.

Overwriting the main php file should fix it.

This will also be included in v2.5.1

benFF 05-15-2006 03:43 AM

Cool - I'm getting the userid="" error too, but I see I need to add the findme to fix that.

One issue I have though, how do you rebuild the datafile so people have their correct icons? People who have changed usergroups are still showing in their old ones!

kadafi_alive 05-15-2006 04:24 AM

Quote:

Originally Posted by stonyarc
There is no query that uses those fields in version 2.5.0

are you sure you removed everything from the old version.

It seems to be a call to an old query

Hi

I have removed every from the old version. I am seem to be getting SQL errors when I access certain topics on my forum.

Dutchmang 05-15-2006 05:20 AM

Happy to give credit where credit is due, but sorry I don't want your brand on my site -- especially the big intrusive new one. This is a useful little hack, if there's an appropriately-priced branding-free option then you'll make a lot of people happy and get some cash too. If not I'll just remove it and link to Googlemaps as appropriate.

stonyarc 05-15-2006 06:18 AM

Quote:

Originally Posted by kadafi_alive
Hi

I have removed every from the old version. I am seem to be getting SQL errors when I access certain topics on my forum.

The version now online should have these issues anymore.

It's the findme plugin that was causing that.

stonyarc 05-15-2006 06:19 AM

Quote:

Originally Posted by benFF
Cool - I'm getting the userid="" error too, but I see I need to add the findme to fix that.

One issue I have though, how do you rebuild the datafile so people have their correct icons? People who have changed usergroups are still showing in their old ones!

If you just let the user connect to their entry and click update it should be corrected.

kadafi_alive 05-15-2006 06:21 AM

Quote:

Originally Posted by stonyarc
The version now online should have these issues anymore.

It's the findme plugin that was causing that.

Hi

I have re-imported the latest version and it's still causing it. Is step 8 optional or a must since I do not want to add the findme in the postbit.

stonyarc 05-15-2006 06:34 AM

Quote:

Originally Posted by Dutchmang
Happy to give credit where credit is due, but sorry I don't want your brand on my site -- especially the big intrusive new one. This is a useful little hack, if there's an appropriately-priced branding-free option then you'll make a lot of people happy and get some cash too. If not I'll just remove it and link to Googlemaps as appropriate.

Hello,

there is indeed a branding free option. There has been a lot of work in this project so the branding free option is currently set at a 30 EUR donation.

This allows you the remove the branding on the frontend. You cannot just replace it by your own copyright.

Hope this helps

stonyarc 05-15-2006 06:35 AM

Quote:

Originally Posted by kadafi_alive
Hi

I have re-imported the latest version and it's still causing it. Is step 8 optional or a must since I do not want to add the findme in the postbit.

You can set the plugin deactive

That should hold back on those issues.


It's maybe better if I release the plugin in a seperate thread.

Something to think about.

Hope this helps

kadafi_alive 05-15-2006 06:38 AM

Quote:

Originally Posted by stonyarc
You can set the plugin deactive

That should hold back on those issues.


It's maybe better if I release the plugin in a seperate thread.

Something to think about.

Hope this helps

Nevermind

Fixed!

Thanks

stonyarc 05-15-2006 06:57 AM

Glad it all works out

I'll release 2.5.1 later on today.

The xml creation has moved to a cron en the xml is in a seperate function file.

This reduces the number of queries on my testserver to 7 except on update of the file and on insert of a new marker.

This triggers a new file. 2.5.1 also includes all the quick fixes I released after 2.5.0 initial release.

This includes:

- hiding of the findme function if the user isn't on the map (currently already in 2.5.0 file too)
- performance
- SQL error on overwrite (currently already in 2.5.0 file too)
- too strict permission check on update of the own entry (currently already in 2.5.0 file too)

m_k 05-15-2006 07:14 AM

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?

xfaethorx 05-15-2006 07:22 AM

Quote:

Originally Posted by stonyarc
I 'm checking it now

To allow only the entry and edit of your own entry the usergroup should be set to

Registered Can view the Googlemap ME YES
Registered Can add elements on the Googlemap ME YES
Registered Can edit elements on the Googlemap ME NO
Registered Can delete elements on the Googlemap ME NO
Registered Can edit own entry on the Googlemap ME YES

Did that and it doesn't work.

GrendelKhan{TSU 05-15-2006 09:06 AM

sorry for n00binator question but...

how is this related to the GMap hotspot edition? are the completely separate? do they conflict? does hotspot run on top of ME? Can you run both on same forum? why would you run both?

again, sorry if this is obvious for everyone else... but its not quite clear to me. :( me stooopid

m_k 05-15-2006 10:05 AM

my understanding is that they can and do run side by side with no conflicts

why have both? one is just for users to show their location on the map... the other is to create a list of events/locations/people/whatever else - same basic idea but with different functionality

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 10:54 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.02972 seconds
  • Memory Usage 1,895KB
  • 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
  • (7)bbcode_code_printable
  • (3)bbcode_php_printable
  • (26)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