I have hit a stumbing block in the development of this hack because I'm not firm on the proper use of the <if> condictionals. If you think you can help please continue to read.
1. First I decided to add the "Offical SFM Administrative Posting?" checkbox option to the quickreply. If I get this working right I'll add this to the new_reply. To add this I used the following code in the template "showthread_quickreply".
<!-- Aceman ADDON -->
<if condition="$show['admincplink']">
<label for="qr_isoffical">
<input type="checkbox" name="isoffical" value="1" id="qr_isoffical" tabindex="6" />
$vbphrase[isoffical]
</label>
</if>
<!-- Aceman ADDON END-->
The <if condition> make this ONLY visible to an admin on my forums, to everyone else it simply does not show. I used this method because I don't yet know how to make this visible to admin and moderators.. so I used this for now.. if you know how to set this up for groups.. please tell me the proper coding.
2. I then setup a PHRASE called "isoffical" with the text: "Offical SFM Administrative Posting?" you can see this in the attached image.
3. I'm at the step now where I need to use a perticular <table> command based on if isoffical = 1 or 0. If it = 1 then use this. **I think this is done in the postbit template.. not sure **
<table width="100%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="0" bgcolor="#990000" class="tborder">
if it = 0 then use this
<table width="100%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="0" class="tborder"> ((note: bgcolor="#990000" is missing in this version))
The conditional I have started doesn't work.. but I need two <if condition=?????><if> with the above <table> information in between I just don't know what's the best way to do this..
Can anyone help a lost sole who's making an effort?
Aceman
|