Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 10 Jan 2008, 00:26
EuroPk EuroPk is offline
 
Join Date: Feb 2007
How Do You Make Postbit Plugin

Basically I'm trying to make it so this post bit plugin only shows up for certin user group IDs

<!-- PK Stats -->
<br>
<div class="smallfont" style="border: 1px solid #000000; margin-bottom: 0px;">
<div><b><font color="#FFFFFF">Total PKs</b>:<font color="#2BA8EC">$kills</font></div>
<div><b><font color="#FFFFFF">PK Points</b>:<font color="#2BA8EC">$points</font></div>
<div><font color="#FF0000"><b>Rank</b></font>:<font color="#2BA8EC">$rank</a></font></div>
**THIS IS IN PROGRESS**
</div>



If anyone could help let me know.

--------------- Added 10 Jan 2008 at 02:01 ---------------

<!-- PK Stats -->
<if condition="$post[totalpks]">
<br />
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" nowrap="nowrap">
<div class="smallfont" style="border: 1px solid #585F67; margin-bottom: 2px;">
<div><b>$vbphrase[totalpks]</b>: <font color="#000000"><if condition="$post[totalpks]">$post[totalpks]<else />N/A</if></font></div>
<div><b>$vbphrase[pkpoints]</b>: <font color="#000000"><if condition="$post[totalpks]">$post[pkpoints]<else />N/A</if></font></div>
<div><font color="#FF0000"><b>$vbphrase[pkrank]</b></font>: <if condition="$post[totalpks]"><font color="#000000">$post[pkrank]</a></font><else />N/A</if></div>
<if condition="$post[bmpk_away]"><div>*AWAY*</div></if>
<if condition="$post[bmpk_limited]"><div>*LIMITED ACTIVITY*</div></if>
</div>
</td>
</tr>
</table>
</if>

Last edited by EuroPk; 10 Jan 2008 at 02:01. Reason: Auto-Merged DoublePost
Reply With Quote
  #2  
Old 10 Jan 2008, 17:29
sarahk's Avatar
sarahk sarahk is offline
 
Join Date: Jun 2004
Do you want to make a plugin or a template change?

I'd start by looking to see what info is available in this array: $vbulletin->userinfo

Compare it to your target Groups and if true then set a variable with some html
If false make the variable empty

then in your template echo out the variable.

a key factor is picking the right plugin option so that it runs only when needed.

There may be a better way, however
__________________
Property Management Services
Simple SEO Blog

Last edited by sarahk; 10 Jan 2008 at 17:35.
Reply With Quote
  #3  
Old 10 Jan 2008, 17:37
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Real name: Anthony
<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))">

<!-- PK Stats -->
<br>
<div class="smallfont" style="border: 1px solid #000000; margin-bottom: 0px;">
<div><b><font color="#FFFFFF">Total PKs</b>:<font color="#2BA8EC">$kills</font></div>
<div><b><font color="#FFFFFF">PK Points</b>:<font color="#2BA8EC">$points</font></div>
<div><font color="#FF0000"><b>Rank</b></font>:<font color="#2BA8EC">$rank</a></font></div>
**THIS IS IN PROGRESS**
</div>

</if>
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forum Display Enhancements How to make make postbit in center and add a break the rep. Mrcorn Modification Graveyard 0 29 Apr 2008 19:20



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:16.

Layout Options | Width: Wide Color: