bbcode.tpl edits for style Counter-Strike
 
 
Post new topic   Reply to topic   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> Select Expand BBCodes
View previous topic :: View next topic  
Author Message
SGD
Starter
Starter


Joined: 14 May 2006
Posts: 2
Location: Washington

PostPosted: Sun May 14, 2006 8:47 pm    Post subject: bbcode.tpl edits for style Counter-Strike Reply with quote

I use Counter-Strike style by CyberAlien. The style adds images around the quote and code boxes. How would I Integrate your mod to works with this style maintaining the original style? If this can't be done then I can live without the images but would prefer to keep them. I have included my bbcode.tple file. thx for the help.

bbcode.tpl

Code:
<!-- BEGIN ulist_open --><ul><!-- END ulist_open -->
<!-- BEGIN ulist_close --></ul><!-- END ulist_close -->

<!-- BEGIN olist_open --><ol type="{LIST_TYPE}"><!-- END olist_open -->
<!-- BEGIN olist_close --></ol><!-- END olist_close -->

<!-- BEGIN listitem --><li><!-- END listitem -->

<!-- BEGIN quote_username_open --><center><table width="90%" cellspacing="0" cellpadding="0" align="center" class="quote-table">
<tr>
   <td width="19" height="19" class="quote-corner"><img src="templates/cs/images/quote_header.gif" width="19" height="19" alt="" /></td>
   <td width="100%" align="left" class="quote-header">{USERNAME} {L_WROTE}:</td>
</tr>
<tr>
   <td class="quote-left"><img src="templates/cs/images/spacer.gif" width="19" height="45" alt="" /></td>
   <td class="quote-text"><!-- END quote_username_open -->
<!-- BEGIN quote_open --><center><table width="90%" cellspacing="0" cellpadding="0" align="center" class="quote-table">
<tr>
   <td width="19" height="19" class="quote-corner"><img src="templates/cs/images/quote_header.gif" width="19" height="19" alt="" /></td>
   <td width="100%" align="left" class="quote-header">{L_QUOTE}:</td>
</tr>
<tr>
   <td class="quote-left"><img src="templates/cs/images/spacer.gif" width="19" height="45" alt="" /></td>
   <td class="quote-text"><!-- END quote_open -->
<!-- BEGIN quote_close --></td>
   </tr>
</table></center>
<!-- END quote_close -->

<!-- BEGIN code_open --><center><table width="90%" cellspacing="0" cellpadding="0" align="center" class="code-table">
<tr>
   <td width="19" height="19" class="code-corner"><img src="templates/cs/images/code_header.gif" width="19" height="19" alt="" /></td>
   <td width="100%" align="left" class="code-header">{L_CODE}:</td>
</tr>
<tr>
   <td class="code-left"><img src="templates/cs/images/spacer.gif" width="19" height="40" alt="" /></td>
   <td class="code-text"><!-- END code_open -->
<!-- BEGIN code_close --></td>
   </tr>
</table></center>
<!-- END code_close -->

<!-- BEGIN php_open -->
</span>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
     <td><span class="genmed"><b>{L_PHP}:</b></span></td>
   </tr>
   <tr>
     <td class="code">
      <!-- END php_open -->
      <!-- BEGIN php_close -->
      </td>
   </tr>
</table>
<span class="postbody">
<!-- END php_close -->


<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->

<!-- BEGIN s_open --><span><s><!-- END s_open -->
<!-- BEGIN s_close --></s></span><!-- END s_close -->

<!-- BEGIN u_open --><span style="text-decoration: underline"><!-- END u_open -->
<!-- BEGIN u_close --></span><!-- END u_close -->

<!-- BEGIN i_open --><span style="font-style: italic"><!-- END i_open -->
<!-- BEGIN i_close --></span><!-- END i_close -->

<!-- BEGIN color_open --><span style="color: {COLOR}"><!-- END color_open -->
<!-- BEGIN color_close --></span><!-- END color_close -->

<!-- BEGIN size_open --><span style="font-size: {SIZE}px; line-height: normal"><!-- END size_open -->
<!-- BEGIN size_close --></span><!-- END size_close -->

<!-- BEGIN align_open --><div align="{ALIGN}"><!-- END align_open -->
<!-- BEGIN align_close --></div><!-- END align_close -->

<!-- BEGIN img --><img src="{URL}" /><!-- END img -->

<!-- BEGIN fullalbumimg --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_picm.php?pic_id={IMG_NUM}" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" border="0" /></a><!-- END fullalbumimg -->
<!-- BEGIN albumimg --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_thumbnail.php?pic_id={IMG_NUM}" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" border="0" /></a><!-- END albumimg -->
<!-- BEGIN albumimgl --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_thumbnail.php?pic_id={IMG_NUM}" border="0" align="left" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" /></a><!-- END albumimgl -->
<!-- BEGIN albumimgr --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_thumbnail.php?pic_id={IMG_NUM}" border="0" align="right" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" /></a><!-- END albumimgr -->
<!-- BEGIN albumimgc --><center><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_thumbnail.php?pic_id={IMG_NUM}" border="0" align="center" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" /></a></center><!-- END albumimgc -->

<!-- BEGIN url --><a href="{URL}" target="_blank">{DESCRIPTION}</a><!-- END url -->

<!-- BEGIN email --><a href="mailto:{EMAIL}?subject={SUJET}&cc={CC}">{DESCRIPTION}</a><!-- END email -->

 
 
_________________
Make It Happen!
 
Back to top
View user's profile Send private message Visit poster's website
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sun May 14, 2006 11:27 pm    Post subject: Reply with quote

Hi!

The HTML is not so different.

Try with this. It may or may not work, but I hope it can give you an idea of where to look: Wink
Code:
<!-- BEGIN ulist_open --><ul><!-- END ulist_open -->
<!-- BEGIN ulist_close --></ul><!-- END ulist_close -->

<!-- BEGIN olist_open --><ol type="{LIST_TYPE}"><!-- END olist_open -->
<!-- BEGIN olist_close --></ol><!-- END olist_close -->

<!-- BEGIN listitem --><li><!-- END listitem -->

<!-- BEGIN quote_username_open --><center><table width="90%" cellspacing="0" cellpadding="0" align="center" class="quote-table" style="table-layout:fixed;margin-top:8px;">
<tr>
   <td width="19" height="19" class="quote-corner"><img src="templates/cs/images/quote_header.gif" width="19" height="19" alt="" /></td>
   <td width="100%" align="left" class="quote-header">{USERNAME} {L_WROTE}:
<script type="text/javascript" src="{U_SXBB_JSLIB}"></script>
<script type="text/javascript"><!--
   var id = 'SXBB' + (1000 + Math.floor(Math.random() * 5000));
   SXBB[id] = new _SXBB(id);
   SXBB[id].T['select'] = '{L_SELECT}';
   SXBB[id].T['expand'] = '{L_EXPAND}';
   SXBB[id].T['contract'] = '{L_CONTRACT}';
   SXBB[id].writeCmd();
//--></script>
   </td>
</tr>
<tr>
   <td class="quote-left"><img src="templates/cs/images/spacer.gif" width="19" height="45" alt="" /></td>
   <td class="quote-text">
<script type="text/javascript"><!--
   SXBB[id].writeDiv();
//--></script><!-- END quote_username_open -->
<!-- BEGIN quote_open --><center><table width="90%" cellspacing="0" cellpadding="0" align="center" class="quote-table" style="table-layout:fixed;margin-top:8px;">
<tr>
   <td width="19" height="19" class="quote-corner"><img src="templates/cs/images/quote_header.gif" width="19" height="19" alt="" /></td>
   <td width="100%" align="left" class="quote-header">{L_QUOTE}:
<script type="text/javascript" src="{U_SXBB_JSLIB}"></script>
<script type="text/javascript"><!--
   var id = 'SXBB' + (1000 + Math.floor(Math.random() * 5000));
   SXBB[id] = new _SXBB(id);
   SXBB[id].T['select'] = '{L_SELECT}';
   SXBB[id].T['expand'] = '{L_EXPAND}';
   SXBB[id].T['contract'] = '{L_CONTRACT}';
   SXBB[id].writeCmd();
//--></script>
   </td>
</tr>
<tr>
   <td class="quote-left"><img src="templates/cs/images/spacer.gif" width="19" height="45" alt="" /></td>
   <td class="quote-text">
<script type="text/javascript"><!--
   SXBB[id].writeDiv();
//--></script><!-- END quote_open -->
<!-- BEGIN quote_close -->
<script type="text/javascript"><!--
   document.write('</div>');
//--></script>
     </td>
   </tr>
</table></center>
<!-- END quote_close -->

<!-- BEGIN code_open --><center><table width="90%" cellspacing="0" cellpadding="0" align="center" class="code-table" style="table-layout:fixed;margin-top:8px;">
<tr>
   <td width="19" height="19" class="code-corner"><img src="templates/cs/images/code_header.gif" width="19" height="19" alt="" /></td>
   <td width="100%" align="left" class="code-header">{L_CODE}:
<script type="text/javascript" src="{U_SXBB_JSLIB}"></script>
<script type="text/javascript"><!--
   var id = 'SXBB' + (1000 + Math.floor(Math.random() * 5000));
   SXBB[id] = new _SXBB(id);
   SXBB[id].T['select'] = '{L_SELECT}';
   SXBB[id].T['expand'] = '{L_EXPAND}';
   SXBB[id].T['contract'] = '{L_CONTRACT}';
   SXBB[id].writeCmd();
//--></script>
   </td>
</tr>
<tr>
   <td class="code-left"><img src="templates/cs/images/spacer.gif" width="19" height="40" alt="" /></td>
   <td class="code-text">
<script type="text/javascript"><!--
   SXBB[id].writeDiv();
//--></script><!-- END code_open -->
<!-- BEGIN code_close -->
<script type="text/javascript"><!--
   document.write('</div>');
//--></script>
    </td>
   </tr>
</table></center>
<!-- END code_close -->

<!-- BEGIN php_open -->
</span>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
     <td><span class="genmed"><b>{L_PHP}:</b></span></td>
   </tr>
   <tr>
     <td class="code">
      <!-- END php_open -->
      <!-- BEGIN php_close -->
      </td>
   </tr>
</table>
<span class="postbody">
<!-- END php_close -->


<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->

<!-- BEGIN s_open --><span><s><!-- END s_open -->
<!-- BEGIN s_close --></s></span><!-- END s_close -->

<!-- BEGIN u_open --><span style="text-decoration: underline"><!-- END u_open -->
<!-- BEGIN u_close --></span><!-- END u_close -->

<!-- BEGIN i_open --><span style="font-style: italic"><!-- END i_open -->
<!-- BEGIN i_close --></span><!-- END i_close -->

<!-- BEGIN color_open --><span style="color: {COLOR}"><!-- END color_open -->
<!-- BEGIN color_close --></span><!-- END color_close -->

<!-- BEGIN size_open --><span style="font-size: {SIZE}px; line-height: normal"><!-- END size_open -->
<!-- BEGIN size_close --></span><!-- END size_close -->

<!-- BEGIN align_open --><div align="{ALIGN}"><!-- END align_open -->
<!-- BEGIN align_close --></div><!-- END align_close -->

<!-- BEGIN img --><img src="{URL}" /><!-- END img -->

<!-- BEGIN fullalbumimg --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_picm.php?pic_id={IMG_NUM}" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" border="0" /></a><!-- END fullalbumimg -->
<!-- BEGIN albumimg --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_thumbnail.php?pic_id={IMG_NUM}" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" border="0" /></a><!-- END albumimg -->
<!-- BEGIN albumimgl --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_thumbnail.php?pic_id={IMG_NUM}" border="0" align="left" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" /></a><!-- END albumimgl -->
<!-- BEGIN albumimgr --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_thumbnail.php?pic_id={IMG_NUM}" border="0" align="right" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" /></a><!-- END albumimgr -->
<!-- BEGIN albumimgc --><center><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_thumbnail.php?pic_id={IMG_NUM}" border="0" align="center" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" /></a></center><!-- END albumimgc -->

<!-- BEGIN url --><a href="{URL}" target="_blank">{DESCRIPTION}</a><!-- END url -->

<!-- BEGIN email --><a href="mailto:{EMAIL}?subject={SUJET}&cc={CC}">{DESCRIPTION}</a><!-- END email -->

Although the changes made by this MOD in the subSilver template use FIND/REPLACE actions that affect several lines, try to focus on what really changes. It simply adds the javascript code in a particular place.

Adapting this to other templates is just a matter to see what this MOD really adds and where. The rest is just HTML. The fun comes when you can see that, so you can even tweak it even more (say) to add a border to the boxes or whatever else to make your board look different. Wink

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
SGD
Starter
Starter


Joined: 14 May 2006
Posts: 2
Location: Washington

PostPosted: Mon May 15, 2006 12:38 am    Post subject: Reply with quote

Very nice..That worked..I learned something here...Thank you for taking the time to help. Very Happy
 
 
_________________
Make It Happen!
 
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> Select Expand BBCodes All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum