Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Direct link to vbgooglemap location Details »»
Direct link to vbgooglemap location
Mod Version: 1.0.0, by stonyarc (Coder/Designer) stonyarc is offline
Developer Last Online: Aug 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.4 Rating: (1 vote - 5.00 average) Installs: 23
Released: 15 Apr 2006 Last Update: Never Downloads: 14
Not Supported Template Edits  

Direct link to the vbgooglemap location

Function:

Display a direct link in the postbit to the vbgooglemap location.


Prerequisits:

The forum must be running vbgooglemap 2.0.2 or higher.
Click http://www.vbulletin.org/forum/showthread.php?t=99920

Don't forget to hit install here and on the vbgooglemap thread !!!!!!!





Steps:

Add a field to your user (editable in profile) =>

vBulletin features a wide array of input options for you to gather information from your members through the creation of custom profile fields. With these fields you can present a list of options for the user to choose from or you can ask the user to give their own input.

STEP 1

Go to the adminCP and add a custom field => User Profile fields => Add New User Profile Field

You need a "Single-Line Text Box"

Title => googlemap
Description => vbgooglemap direct link
Default Value => Leave empty
Max length of allowed user input => 150
Display Size => 30
Display Order => put something like 10 or 15
Field Required => No as default but you can change if you want
Field Editable by User => Yes
Private Field => No the field is public
Field Searchable on Members List => No
Show on Members List => Yes
Regular Expression => leave empty

Save the field

Go to the User Profile Field Manager and look for your custom field you just added and look for the name column there is an ID for the field.
Something like "fieldXX" where XX is a number. Make sure you remember this value.


STEP 2

Go to the template you are using (Styles & Templates/Style Manager) and select Edit templates.

Go to "postbit templates" and select the template you are using (probably postbit or postbit_legacy).
and add the following code:

fieldXX is the field value you got from step 1.

You can embed the code in a div or a special table construction but that is up to you.

Code:
<if condition="$post[fieldXX]">
<a href="$post[fieldXX]" target=”_self”>$post[username]’s location</a>
</if>

(TIP: You can add this also to the MENBERINFO)

Entry of the data:

Go to “your entry” on the googlemap (you have to logged in)
If you haven’t set your marker before the form will detect that. If you did enter the information you’ll see 3 text input boxes on top of the smaller map. The third on gives you the full URL to your location.

You can increase the zoom if you want, the link will adapt.

Make the user copy the string and go to the USER CP or edit profile

In USER CP paste the string in the googlemap field and you’re done. The postbit will now show a direct link to the map location for that user.

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



All code is (c)2006 StonyArc.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 15 Apr 2006, 01:05
stonyarc stonyarc is offline
 
Join Date: Aug 2005
Reserved
Reply With Quote
  #3  
Old 15 Apr 2006, 01:06
BANDiT600's Avatar
BANDiT600 BANDiT600 is offline
 
Join Date: Jul 2003
Real name: Nikolay
/me Installed
Reply With Quote
  #4  
Old 15 Apr 2006, 18:23
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Nice one!
Reply With Quote
  #5  
Old 15 Apr 2006, 21:32
stonyarc stonyarc is offline
 
Join Date: Aug 2005
Originally Posted by Lil Ripsta
Nice one!
Thanks

vbgooglemap rulez

If you are looking for support on the vbgooglemap visit that thread. This thread is only for the post/memberinfo integration.
Reply With Quote
  #6  
Old 15 Apr 2006, 22:49
stonyarc stonyarc is offline
 
Join Date: Aug 2005
Originally Posted by stonyarc
Thanks

vbgooglemap rulez

If you are looking for support on the vbgooglemap visit that thread. This thread is only for the post/memberinfo integration.

If you location link opens the member username memu you need to move the link outside of that DIV and TD.

Otherwise the link will not redirect correctly and NOT open the map.
Reply With Quote
  #7  
Old 15 Apr 2006, 23:22
caliman's Avatar
caliman caliman is offline
 
Join Date: Jan 2005
Nice!
One question - how do I make it so it does not display googlemap URL in the 'additional information' box - it's so long that it is blowing out the table in the profile page.

EDIT - I tried changing it to a private field but this didn't do it.
Reply With Quote
  #8  
Old 15 Apr 2006, 23:37
stonyarc stonyarc is offline
 
Join Date: Aug 2005
Originally Posted by caliman
Nice!
One question - how do I make it so it does not display googlemap URL in the 'additional information' box - it's so long that it is blowing out the table in the profile page.

EDIT - I tried changing it to a private field but this didn't do it.
At the bottom you can change the Display Page in the userprofile field manager for that field.
Reply With Quote
  #9  
Old 16 Apr 2006, 01:00
caliman's Avatar
caliman caliman is offline
 
Join Date: Jan 2005
That did it, thanks! I changed it to 'other.'
Reply With Quote
  #10  
Old 16 Apr 2006, 01:31
cuphongle cuphongle is offline
 
Join Date: Jul 2005
very nice
Reply With Quote
  #11  
Old 17 Apr 2006, 18:56
stonyarc stonyarc is offline
 
Join Date: Aug 2005
Originally Posted by cuphongle
very nice
Thanks Cuphongle,

I know it's a bit of work to install both the vbgooglemap 2.0.2 and this template modifications but I think it's worth it.

I find it very handy to be able to directly click on a postbit or memberinfo and get transfered to that users geo location on the map.

PS: I know I'm repeating myself but support for the map is in the other thread !!
Reply With Quote
  #12  
Old 17 Apr 2006, 19:28
caliman's Avatar
caliman caliman is offline
 
Join Date: Jan 2005
Would it be possible to have it only show the pins of the member you are looking at?
Reply With Quote
  #13  
Old 20 Apr 2006, 13:05
stonyarc stonyarc is offline
 
Join Date: Aug 2005
Originally Posted by mini2
Or, you could have two custom user fields, one the automatic one above, and another that users check themselves (radio button) called "link to location" or something, so they get a say in whether the icon shows up or not (of course, you just check for both in the postbit(_legacy).

I might do this myself if I get the time. I just feel your way involves too much effort on the part of the forum user.
I'll have a check if I can cook up something in the future version on vbgooglemap itself
Reply With Quote
  #14  
Old 28 Apr 2006, 12:18
JoeWho's Avatar
JoeWho JoeWho is offline
 
Join Date: Oct 2005
Originally Posted by mini2
Have you considered making this automatic?

You could disable the field (not editable) run a check via scheduled tasks for an entry in the database and update the profilefield with the correct URL if there is one. Much the same way as I worked my vbadvanced gallery link in postbits (IF they have any images uploaded). Save user input, which is usually a good thing in my view.
mini2,

I agree...
I think this is a must, "making this automatic" or at lest make it so the default domain-address is automatic and the user just adds the data (lat=13.84411462921368&lng=-17.89286017417908&zoom=6) that would help!

Note: a user could put any web-address in the box... I don't have time to check them... do you want a link to a XXX web-site on your forum?:surprised:

Don't get me wrong I really like the idea of the link being in postbit's, but currently I consider this a security risk, what kind of data can be entered into that field, and what damage could be cause?

I just tested it, if the user hasn't filled in the information and someone clicks on a link in postbit it will open a blank page. I did set new registration to the default map page (Default Value = http//www.yourwebsite.com/forums/vbgooglemap.php) but what about all the users that are registered prior to this install, there is no data in that field. Yes... I know I could go into the database and manually insert this information... Oh' more fun.

.

Last edited by JoeWho : 28 Apr 2006 at 12:57.
Reply With Quote
  #15  
Old 28 Apr 2006, 13:46
stonyarc stonyarc is offline
 
Join Date: Aug 2005
Just to let you know that this feature will be default in the next version of the member map and manageable from backend.

No more copy thingy.

Still working on the best way to do it but mini and you have some nice ideas going on.

/EDIT
I'll try to make it so that no additional datamanipulation is needed.

Brrrr is that a plugin that I feel there

Last edited by stonyarc : 28 Apr 2006 at 13:56.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 15:16.

Layout Options | Width: Wide Color: