VBGooglemapME Postbit Conditional
This modification is in the archives.
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. (http://www.glorifythepast.com/forums/san-diego-chargers-tickets-memorabilia/12285-my-ticket-any-good.html) 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 Download No files for download. Screenshots
|