vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/forumdisplay.php?f=105)
-   -   Postbit Template (https://vborg.vbsupport.ru/showthread.php?t=75785)

SnowBot 02-05-2005 02:34 PM

Postbit Template
 
OK it says for the legacy do

NOTE:
=====
the step which adds the warn sign in the warned posts, is a bit different in the postbit_legacy template. So please do not apply the change shown above. In the postbit_legacy template, please find:
HTML Code:

<td class="alt1">
 <if condition="$show['messageicon'] OR $post['title']">
  <!-- icon and title -->
  <div class="smallfont">
        <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
        <if condition="$post['title']"><strong>$post[title]</strong></if>
  </div>
  <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
  </if>

Replace that with:
HTML Code:

<td class="alt1">
 <TABLE width=100%><TR>
  <TD width=90%>
  <if condition="$show['messageicon'] OR $post['title']">
  <!-- icon and title -->
  <div class="smallfont">
        <if condition="$show['messageicon']">
        <img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" />
        </if>
        <if condition="$post['title']">
        <strong>$post[title]</strong>
        </if>
  </div>
  </if>
  </td>
  <TD width=10% align="$stylevar[right]">
  <if condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0">
                <A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
  </if>
  </td>
  </tr></table>
  <hr size="1" style="color:$stylevar[tborder_bgcolor]" />

Well i have a custom skin and cant figure out where / what to do here.

This is the part i think its looking for.

HTML Code:

  <td class="alt2" style="border-left: 1px solid #FFFFFF; border-bottom: 1px solid #89959B;">
 
  <if condition="$show['messageicon'] OR $post['title']">
  <!-- icon and title -->
  <div class="smallfont">
        <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
        <if condition="$post['title']"><strong>$post[title]</strong></if>
  </div>
  <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
  <!-- / icon and title -->
  </if>
 
  <!-- message -->
  <div>$post[message]</div>
  <!-- / message -->


MindTrix 02-05-2005 03:28 PM

Yeah it seems like you only have a different td class at the beginning and thats it so try this.

find

PHP Code:

 <td class="alt2" style="border-left: 1px solid #FFFFFF; border-bottom: 1px solid #89959B;">
 
  <if 
condition="$show['messageicon'] OR $post['title']">
   <!-- 
icon and title -->
   <
div class="smallfont">
    <if 
condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]alt="$post[icontitle]border="0" /></if>
    <if 
condition="$post['title']"><strong>$post[title]</strong></if>
   </
div>
   <
hr size="1" style="color:$stylevar[tborder_bgcolor]/>
   <!-- / 
icon and title -->
  </if> 

And replace it with

PHP Code:

<td class="alt2" style="border-left: 1px solid #FFFFFF; border-bottom: 1px solid #89959B;">
  <
TABLE width=100%><TR>
  <
TD width=90%>
  <if 
condition="$show['messageicon'] OR $post['title']">
   <!-- 
icon and title -->
   <
div class="smallfont">
    <if 
condition="$show['messageicon']">
     <
img class="inlineimg" src="$post[iconpath]alt="$post[icontitle]border="0" />
    </if>
    <if 
condition="$post['title']">
    <
strong>$post[title]</strong>
    </if>
   </
div>
  </if>
  </
td>
  <
TD width=10align="$stylevar[right]">
  <if 
condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0">
        <
A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
  </if>
  </
td>
  </
tr></table>
   <
hr size="1" style="color:$stylevar[tborder_bgcolor]/> 

Make sure you make a backup of your template first though just incase it doesnt work. Then you can easily paste the old template in and be ok again.

Good luck

SnowBot 02-05-2005 04:11 PM

Thanks, i will give that a try. :)

[high]* SnowBot sux at html :([/high]

MindTrix 02-05-2005 04:53 PM

Same here :) Let me know if it works or not

sv1cec 02-06-2005 06:24 PM

Quote:

Originally Posted by MindTrix
Same here :) Let me know if it works or not

It should work fine in that place.

Rgds


All times are GMT. The time now is 08:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01190 seconds
  • Memory Usage 1,764KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete