Hello,
Sorry but I'm back, unfortunately
.
I've got this extension enabled. I created a custom page
onsale.php
with
onsale_body.html
, and tried to use this extension to make it so only a few groups can see certain area's. See HTML page below:
Code: Select all
<div class="panel bg1">
<div class="inner">
<div id='currently'>
<!-- BEGIN sale_block -->
<div class="panel <!-- IF sale_block.S_ROW_COUNT is odd -->bg2<!-- ELSE -->bg3<!-- ENDIF -->"><div class="inner">
<table>
<tbody>
<tr><td colspan="3"><h2><img src="/images/sale.png" width="38px" height="15px"/> {sale_block.ITEM_NAME}</h2></td></tr>
<tr>
<td rowspan="5"><img src="{sale_block.ITEM_IMAGE}" /></td>
<td style="text-align: right;"><span style="text-decoration: underline;"><strong>Sale Starts:</strong></span></td>
<td> {sale_block.SALE_START_DATE} <em>at</em> {sale_block.SALE_START_TIME} <em>(EST)</em></td>
</tr>
<tr>
<td style="text-align: right;"><span style="text-decoration: underline;"><strong>Sale Ends:</strong></span></td>
<td> {sale_block.SALE_ENDS_DATE} <em>at</em> {sale_block.SALE_ENDS_TIME} <em>(EST)</em></td>
</tr>
<tr>
<td style="text-align: right;"><strong><span style="text-decoration: underline;">Original Price</span>:</strong></td>
<td> <span style="color: #ff0000; text-decoration: line-through;">{sale_block.ORIGINAL_PRICE}</span> <img src="/images/dime.png" width="10px" height="10px" /></td>
</tr>
<tr>
<td style="text-align: right;"><span style="text-decoration: underline;"><strong>Sale Price:</strong></span></td>
<td><span style="color: #008000;"> {sale_block.SALE_PRICE} <img src="/images/dime.png" width="10px" height="10px" /></span></td>
</tr>
<tr>
<td style="text-align: right;"> <strong><span style="text-decoration: underline;">Crew Purchase:</span></strong></td>
<td> {sale_block.CREW_SALE}</td>
</tr>
</tbody>
</table>
</div></div>
<!-- END sale_block -->
</div>
<div id='latertoday'>
<!-- IF not S_GROUP_11 -->
<div class="rules">Unfortunately you're not allowed to view the up coming sales!</div>
<!-- ELSE -->
<!-- BEGIN sale_block_later -->
<div class="panel <!-- IF sale_block_later.S_ROW_COUNT is odd -->bg2<!-- ELSE -->bg3<!-- ENDIF -->"><div class="inner">
<table>
<tbody>
<tr><td colspan="3"><h2><img src="/images/sale.png" width="38px" height="15px"/> {sale_block_later.ITEM_NAME}</h2></td></tr>
<tr>
<td rowspan="5"><img src="{sale_block_later.ITEM_IMAGE}" /></td>
<td style="text-align: right;"><span style="text-decoration: underline;"><strong>Sale Starts:</strong></span></td>
<td> {sale_block_later.SALE_START_DATE} <em>at</em> {sale_block_later.SALE_START_TIME} <em>(EST)</em></td>
</tr>
<tr>
<td style="text-align: right;"><span style="text-decoration: underline;"><strong>Sale Ends:</strong></span></td>
<td> {sale_block_later.SALE_ENDS_DATE} <em>at</em> {sale_block_later.SALE_ENDS_TIME} <em>(EST)</em></td>
</tr>
<tr>
<td style="text-align: right;"><strong><span style="text-decoration: underline;">Original Price</span>:</strong></td>
<td> <span style="color: #ff0000; text-decoration: line-through;">{sale_block_later.ORIGINAL_PRICE}</span> <img src="/images/dime.png" width="10px" height="10px" /></td>
</tr>
<tr>
<td style="text-align: right;"><span style="text-decoration: underline;"><strong>Sale Price:</strong></span></td>
<td><span style="color: #008000;"> {sale_block_later.SALE_PRICE} <img src="/images/dime.png" width="10px" height="10px" /></span></td>
</tr>
<tr>
<td style="text-align: right;"> <strong><span style="text-decoration: underline;">Crew Purchase:</span></strong></td>
<td> {sale_block_later.CREW_SALE}</td>
</tr>
</tbody>
</table>
</div></div>
<!-- END sale_block_later -->
<!-- ENDIF -->
</div>
However, no matter how I try to code it, it does not work. If I add
<!-- IF S_GROUP_5 -->
nobody can see it, not even I myself, eventhough I am in the Administrators group. if I set it up differently and make it so
<!-- IF not S_GROUP_1 -->
, guests can still see it.
So the question is, is there any specific thing I need to load in the php-file or something, as this is clearly not working as it should.
Cheers,