Help With... - NBS






 

 

Help With... - NBS

View Full Version : Help With...


_Keith_
10-Nov-2002, 03:04 AM
Need
help with a skinnying problem I am having. I have been noticing the hard
code to the forums is kind of wierd how its setup, so I have been editing
mine to make it a bit easier. In the process I cant seem to locate the
actual code in skin_topics for the actual post. Like this here. I cant
find the actually outside box this text sits in. If someone can give me a
stran of the code I would really appreciate it!

Thanks

halfcut
11-Nov-2002, 12:45 PM
if
you're editing skin_topic.php directly then look for this section
function RenderRow($data) {
global
$ibforums;
return <<<EOF

&nbsp;<!--Begin Msg Number
{$data[POST]['pid']}-->
&nbsp;
<tr>
&nbsp; <td valign='middle'
class='posthead'><a
name='entry{$data[POST]['pid']}'></a><span
class='{$data[POST]['name_css']}'>{$data[POSTER][' name']}</span></td>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<td class='posthead'
valign='top'>
&nbsp; <table width='100%'
border='0' cellspacing='0'
cellpadding='0'>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;<tr>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;<td
class='posthead'>{$data[POST]['post_icon']}<span
class='postdetails'><b>{$ibforums->lang['posted_on']}</b>
{$data[POST]['post_date']}</span></td>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<td
class='posthead'
align='right'>{$data[POST]['delete_button']}{$data [POST]['edit_button']}<a
href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}&act=Post&CODE=06&f={$ibforums->input[f]}&t={$ibforums->input[t]}&p={$data[POST]['pid']}'><{P_QUOTE}></a></td>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</tr>
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</table>
&nbsp;
</td>
&nbsp; &nbsp; &nbsp; &nbsp;</tr>

&nbsp;<tr>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<td
valign='top'
class='{$data['POST']['post_css']}'>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span
class='postdetails'>{$data[POSTER]['avatar']}<br>< br>

&nbsp;
&nbsp;{$data[POSTER]['title']}<br>

&nbsp;
&nbsp;{$data[POSTER]['member_rank_img']}<br><br>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
{$data[POSTER]['member_group']}<br>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
{$data[POSTER]['member_posts']}<br>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
{$data[POSTER]['member_number']}<br>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
{$data[POSTER]['member_joined']}<br>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
{$data[POSTER][WARN_GFX]}<br><br></span>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img
src='{$ibforums->vars['img_url']}/spacer.gif'
alt='' width='160' height='1'><br>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td>
&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;<td width='100%' valign='top'
class='{$data['POST']['post_css']}'><span
class='postcolor'>{$data[POST]['post']}
{$data[POST]['attachment']}
{$data[POST]['signature']}</td>

&nbsp; &nbsp; &nbsp; &nbsp;</tr>
&nbsp; &nbsp; &nbsp;
&nbsp;<tr>
&nbsp; &nbsp; <td class='postfoot'
align='left'>{$data[POST]['ip_address']}&nbsp;</td>

&nbsp; &nbsp; <td class='postfoot' nowrap
align='left'>
&nbsp; &nbsp; &nbsp;<table
width='100%' border='0' cellspacing='0'
cellpadding='0'>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;<tr>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;<td class='postfoot' align='left'
valign='middle'
nowrap>{$data[POSTER]['message_icon']}{$data[POSTE R]['email_icon']}{$data[POSTER]['website_icon']}{$ data[POSTER]['icq_icon']}{$data[POSTER]['aol_icon' ]}{$data[POSTER]['yahoo_icon']}{$data[POSTER]['msn _icon']}</td>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<td
class='postfoot' valign='middle'
align='right'>{$data[POST]['report_link']}&nbsp;</td>

&nbsp; &nbsp; &nbsp; <td class='postfoot'
valign='middle' align='right'
width='2%'><a
href='javascript:scroll(0,0);'><img
src='{$ibforums->vars['img_url']}/p_up.gif'
alt='Top' border='0'></a></td>

&nbsp; &nbsp; &nbsp; &nbsp;</tr>
&nbsp; &nbsp;
&nbsp;</table>
&nbsp; &nbsp; </td>
&nbsp; &nbsp;
&nbsp; &nbsp;</tr>
&nbsp; &nbsp; &nbsp; &nbsp;<tr>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<td class='postsep'
colspan='2'><img
src='{$ibforums->vars['img_url']}/spacer.gif'
alt='' width='1' height='1'></td>

&nbsp;</tr>
&nbsp;<!-- end Message
-->
EOF;
} where <td width='100%' valign='top'
class='{$data['POST']['post_css']}'><span
class='postcolor'>{$data[POST]['post']}
{$data[POST]['attachment']}
{$data[POST]['signature']}</td>
represents the main body of the
message.

If you are editing via the admin CP, you need to edit
RenderRow(2 of them as default) in the Topic View Section, similarly
&nbsp; &nbsp; &nbsp; &nbsp;<td
width='100%' valign='top'
class='{$data['POST']['post_css']}'><span
class='postcolor'>{$data[POST]['post']}
{$data[POST]['attachment']}
{$data[POST]['signature']}</td> deals with the actual post block