BadgerDog
12-01-2010, 03:49 PM
Hello all ... :)
I'm not a coder, so if anyone could help me with this addition to a mod, I'd appreciate it ...
I have the following code in a template ..
<vb:if condition="is_member_of($bbuserinfo,5,6,7,9,10)">
<a class="abipinfo" href="http://www.infosniper.net/index.php?ip_address={vb:raw post.ip}&map_source=1&two_maps=1&overview_map=1&lang=1&map_type=1&zoom_level=7" target="_blank" /> </a>
</vb:if>
What it does is place a small i icon for IP lookup that appears at the bottom of posts for the user groups specified and it works great.
Now, what can I add that causes the small i icon for IP lookup NOT to appear at the bottom of a post for specific userID's that I list in an array. In other words, I don't want the icon to appear in the postbit for certain useID's, regardless of whether the user group can see them or not.
I hope I explained that ok .. :D
I would think that it's a simple piece of HTML code to add to this template, so that it excludes specific User ID's and doesn't execute, but rather just returns to the bottom of the code?
If the template above is the wrong place to put the UserID exclusion, then perhaps it belongs in the "Show Postbit Icon" PLUGIN for the mod.
$templater = vB_Template::create('australiabound_post_control_b it');
$templater->register('post', $post);
$template_hook['postbit_controls'] .= $templater->render();
I've tried several times to get an answer in the mod thread itself, but no luck, so I came here.
Thanks for any feedback .. :)
Regards,
Doug
I'm not a coder, so if anyone could help me with this addition to a mod, I'd appreciate it ...
I have the following code in a template ..
<vb:if condition="is_member_of($bbuserinfo,5,6,7,9,10)">
<a class="abipinfo" href="http://www.infosniper.net/index.php?ip_address={vb:raw post.ip}&map_source=1&two_maps=1&overview_map=1&lang=1&map_type=1&zoom_level=7" target="_blank" /> </a>
</vb:if>
What it does is place a small i icon for IP lookup that appears at the bottom of posts for the user groups specified and it works great.
Now, what can I add that causes the small i icon for IP lookup NOT to appear at the bottom of a post for specific userID's that I list in an array. In other words, I don't want the icon to appear in the postbit for certain useID's, regardless of whether the user group can see them or not.
I hope I explained that ok .. :D
I would think that it's a simple piece of HTML code to add to this template, so that it excludes specific User ID's and doesn't execute, but rather just returns to the bottom of the code?
If the template above is the wrong place to put the UserID exclusion, then perhaps it belongs in the "Show Postbit Icon" PLUGIN for the mod.
$templater = vB_Template::create('australiabound_post_control_b it');
$templater->register('post', $post);
$template_hook['postbit_controls'] .= $templater->render();
I've tried several times to get an answer in the mod thread itself, but no luck, so I came here.
Thanks for any feedback .. :)
Regards,
Doug