![]() |
VBGooglemapME Postbit Conditional
Obviously this is an add on for VBGooglemapME
Had a nice little hack that would have been buried in the 100 post release thread, so anyway, here's my contribution. (Works on 3.5.x and 3.6.x) I wanted to have a link in the postbit to each members map. I also wanted it only to show up if a user had a pin stuck. So I did. And it worked. Then I took it a step further. If a member has a pin stuck in the map, his location is linked to the map and the default vb location is replaced with the link. If a member does not have a pin stuck, the default vb Location is left untouched. If nothing is filled out--nothing shows. See screens. They all came from the same thread at the same time. (Demo) VERY simple template edit. In postbit, find Code:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if> Code:
<if condition="$post[findme]"><div class="smallfont">$post[findme]</div> Enjoy |
Please click Install and rate it if ya like and are using :)
|
I'll give this a shot..
Thanks Glorify! |
Thanks. Hope ya like it :)
|
Wrong forum but a nice tweak!
|
Thanks :)
|
field 2 is the default vb profile field #2 (Location)
$post[findme] was defined in the original ME version of the hack :) |
Works in 3.6.4 as well :)
|
Glorify, nice job!
We axed our location field display, it was just used for silliness, so I'm just using this: PHP Code:
Any thought on how to make the members 'pin' show and provide the link via that grapic, instead of the phrase? |
All times are GMT. The time now is 05:01 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|