Back to vBulletin 3.5 Template Modifications

VBGooglemapME Postbit Conditional
Mod Version: 1.00, by glorify

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 6
Released: 04 Sep 2006 Last Update: Never Downloads: 2
Not Supported Template Edits  

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>
Replace with
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>
Done
Enjoy

Download

No files for download.

Screenshots

     


vblts.ru supports vBulletin®, 2022-2025