The Arcive of vBulletin Modifications Site. |
|
VBGooglemapME Postbit Conditional Details »»
|
|||||||||||||||||||||||||
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> <else /> <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div> </if> </if> ![]() Enjoy Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Please click Install and rate it if ya like and are using
|
|
#3
|
||||
|
||||
|
I'll give this a shot..
Thanks Glorify! |
|
#4
|
||||
|
||||
|
Thanks. Hope ya like it
|
|
#5
|
||||
|
||||
|
Wrong forum but a nice tweak!
|
|
#6
|
||||
|
||||
|
Thanks
|
|
#7
|
||||
|
||||
|
field 2 is the default vb profile field #2 (Location)
$post[findme] was defined in the original ME version of the hack
|
|
#8
|
||||
|
||||
|
Works in 3.6.4 as well
|
|
#9
|
|||
|
|||
|
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? |
![]() |
|
|