Back to vBulletin 3.5 Template Modifications

Direct link to vbgooglemap location
Mod Version: 1.0.0, by stonyarc

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 VBGooglemap Member Edition

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 email

https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=admin%40stonyarc%2ecom&no_shipping=0&no_note=1&tax=0&currency_code=EUR&bn=PP%2dDonationsBF&charset=UTF%2d8


All code is (c)2006 StonyArc.

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024