Advertisement:

Author Topic: Forums Width, Problem!  (Read 5069 times)

Offline Vinoth

  • Full Member
  • ***
  • Posts: 569
  • Gender: Male
  • Hackers Are Not Crackers
Forums Width, Problem!
« on: July 08, 2004, 03:05:29 AM »
Hello


       I need to add a table along the right side of forum,  ( Small One )


I reduced my board's  width editing the following code

Code: [Select]
// Show the "Board name      Topics  Posts    Last Post" header.
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor"   >

Now Whenever i try to add a smalll table on right side, it goes to the top of the forum ( that is the small table first and below is the forum)

I need the forum and the table to be  (parrallel).
                     
   Now where should i add the table to get it parrallel/

My site  http://www.webhoststalk.com

Code: [Select]

<?php
// Version: 1.0 Beta 5 Public; BoardIndex

function template_main()
{
global $context$settings$options$txt$scripturl$modSettings;

// Show some statistics next to the link tree if SP1 info is off.
echo &#39;
<p align="left"><table width="100%" cellpadding="3" cellspacing="0"></p>
<tr>


<td valign="bottom">&#39;, theme_linktree(), &#39;</td>
<td align="right">&#39;;
if (!$settings[&#39;show_sp1_info&#39;])
echo &#39;
&#39;, $txt[19], &#39;: &#39;, $modSettings[&#39;memberCount&#39;], &#39; &nbsp;•&nbsp; &#39;, $txt[95], &#39;: &#39;, $modSettings[&#39;totalMessages&#39;], &#39;: &nbsp;•&nbsp; &#39;, $txt[64], &#39;: &#39;, $modSettings[&#39;totalTopics&#39;], &#39;
&#39;, ($settings[&#39;show_latest_member&#39;] ? &#39;<br />&#39; . $txt[201] . &#39; <b>&#39; . $context[&#39;latest_member&#39;][&#39;link&#39;] . &#39;</b>&#39; . $txt[581] : &#39;&#39;);
echo &#39;
</td>
</tr>
</
table>&#39;;

// Show the news fader?  (assuming there are things to show...)
if ($settings[&#39;show_newsfader&#39;] && !empty($context[&#39;fader_news_lines&#39;]))
{
echo &#39;
<div class="tborder" style="border-bottom: 0;">
<div class="titlebg" align="center" style="padding: 5px 5px 5px 5px;">&#39;, $txt[102], &#39;</div>
</div>
<
table border="0" width="100%" cellspacing="0" cellpadding="5" class="tborder" style="border-bottom: 0;">
<tr>
<td class="windowbg2" valign="middle" align="center" height="60">&#39;;

// Prepare all the javascript settings.
echo &#39;
<div id="smfFadeScroller" style="width: 90%; padding: 2px; color: #000000;"><b>&#39;, $context[&#39;news_lines&#39;][0], &#39;</b></div>
<script language="JavaScript1.2" type="text/javascript"><!--
// The fading delay (in ms.)
var smfFadeDelay = &#39;, empty($settings[&#39;newsfader_time&#39;]) ? 5000 : $settings[&#39;newsfader_time&#39;], &#39;;
// Fade from... what text color?  To which background color?
var smfFadeFrom = {"r"0"g"0"b"0}, smfFadeTo = {"r"248"g"248"b"248};
// Surround each item with... anything special?
var smfFadeBefore "<b>"smfFadeAfter "</b>";
// List all the lines of the news for display.
var smfFadeContent = new Array(
"&#39;, implode(&#39;",
"&#39;, $context[&#39;fader_news_lines&#39;]), &#39;"
);
// --></script>
<script language="JavaScript1.2" type="text/javascript" src="&#39;, $settings[&#39;default_theme_url&#39;], &#39;/fader.js"></script>
</td>
</tr>
</
table>&#39;;
}

// Show the "Board name      Topics  Posts    Last Post" header.
echo &#39;
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor"   >

<tr class="titlebg">
<td colspan="2">&#39;, $txt[20], &#39;</td>
<td width="6%" align="center">&#39;, $txt[330], &#39;</td>
<td width="6%" align="center">&#39;, $txt[21], &#39;</td>
<td width="22%" align="center">&#39;, $txt[22], &#39;</td>
</tr>&#39;;

/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
and boards. (see below.) */
foreach ($context[&#39;categories&#39;] as $category)
{
// Show the category&#39;s name, and let them collapse it... if they feel like it.
echo &#39;
<tr>
<td colspan="5" class="catbg" height="18">&#39;;

// If this category even can collapse, show a link to collapse it.
if ($category[&#39;can_collapse&#39;])
echo &#39;
<a href="&#39;, $category[&#39;collapse_href&#39;], &#39;">&#39;, $category[&#39;collapse_image&#39;], &#39;</a>&#39;;

echo &#39;
&#39;, $category[&#39;link&#39;], &#39;
</td>
</tr>&#39;;

// Only if it&#39;s NOT collapsed..
if (!$category[&#39;is_collapsed&#39;])
{
/* Each board in each category&#39;s boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category[&#39;boards&#39;] as $board)
{
echo &#39;
<tr>
<td class="windowbg" width="6%" align="center" valign="top"><img src="&#39;, $settings[&#39;images_url&#39;], $board[&#39;new&#39;] ? &#39;/on.gif" alt="&#39; . $txt[333] . &#39;" title="&#39; . $txt[333] : &#39;/off.gif" alt="&#39; . $txt[334] . &#39;" title="&#39; . $txt[334], &#39;" border="0" /></td>
<td class="windowbg2" align="left" width="60%">
<a name="b&#39;, $board[&#39;id&#39;], &#39;"></a>
<b>&#39;, $board[&#39;link&#39;], &#39;</b><br />
&#39;, $board[&#39;description&#39;];

// Show the "Moderators: ".  Each has name, href, link, and id. (but we&#39;re gonna use link_moderators.)
if (!empty($board[&#39;moderators&#39;]))
echo &#39;<i class="smalltext"><br />
&#39;, count($board[&#39;moderators&#39;]) == 1 ? $txt[298] : $txt[299], &#39;: &#39;, implode(&#39;, &#39;, $board[&#39;link_moderators&#39;]), &#39;</i>&#39;;

// Show the "Child Boards: ". (there&#39;s a link_children but we&#39;re going to bold the new ones...)
if (!empty($board[&#39;children&#39;]))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board&#39;s children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board[&#39;children&#39;] as $child)
$children[] = $child[&#39;new&#39;] ? &#39;<b>&#39; . $child[&#39;link&#39;] . &#39;</b>&#39; : $child[&#39;link&#39;];

echo &#39;
<class="smalltext"><br />
&#39;, $txt[&#39;parent_boards&#39;], &#39;: &#39;, implode(&#39;, &#39;, $children), &#39;</i>&#39;;
}

echo &#39;
</td>
<td class="windowbg" valign="middle" align="center" width="6%">&#39;, $board[&#39;topics&#39;], &#39;</td>
<td class="windowbg" valign="middle" align="center" width="6%">&#39;, $board[&#39;posts&#39;], &#39;</td>&#39;;

/* The board&#39;s and children&#39;s last_post&#39;s have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
echo &#39;
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">
&#39;, $board[&#39;last_post&#39;][&#39;time&#39;], &#39;<br />
&#39;, $txt[&#39;smf88&#39;], &#39; &#39;, $board[&#39;last_post&#39;][&#39;link&#39;], &#39;<br />
&#39;, $txt[525], &#39; &#39;, $board[&#39;last_post&#39;][&#39;member&#39;][&#39;link&#39;], &#39;
</span>
</td>
</tr>&#39;;
}
}
}

// Show the "New Posts" and "No New Posts" legend.
if ($context[&#39;user&#39;][&#39;is_logged&#39;])
{
echo &#39;
<tr class="titlebg">
<td colspan="2" align="left">
<img src="&#39; . $settings[&#39;images_url&#39;] . &#39;/&#39; . $context[&#39;user&#39;][&#39;language&#39;] . &#39;/new_some.gif" alt="&#39; . $txt[333] . &#39;" border="0" />&nbsp;&nbsp;<img src="&#39; . $settings[&#39;images_url&#39;] . &#39;/&#39; . $context[&#39;user&#39;][&#39;language&#39;] . &#39;/new_none.gif" alt="&#39; . $txt[334] . &#39;" border="0" />
</td>
<td colspan="3" align="right" class="smalltext">&#39;;
// Show the mark all as read button?
if ($settings[&#39;show_mark_read&#39;])
echo &#39;
<a href="&#39;, $scripturl, &#39;?action=markasread;sa=all">&#39;, ($settings[&#39;use_image_buttons&#39;] ? &#39;<img src="&#39; . $settings[&#39;images_url&#39;] . &#39;/&#39; . $context[&#39;user&#39;][&#39;language&#39;] . &#39;/markread.gif" alt="&#39; . $txt[452] . &#39;" border="0" />&#39; : $txt[452]), &#39;</a>&#39;;
echo &#39;
</td>
</tr>&#39;;
}

// Here&#39;s where the "Info Center" starts...
echo &#39;
</table>
<
br />
<
br />
<
table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="titlebg">
<td align="center" colspan="2">&#39;, $txt[685], &#39;</td>
</tr>&#39;;

// This is the "Recent Posts" bar.
if (!empty($settings[&#39;display_recent_bar&#39;]))
{
echo &#39;
<tr>
<td class="catbg" colspan="2">&#39;, $txt[214], &#39;</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="&#39;, $scripturl, &#39;?action=recent">
<img src="&#39;, $settings[&#39;images_url&#39;], &#39;/post/xx.gif" alt="&#39;, $txt[214], &#39;" border="0" /></a>
</td>
<td class="windowbg2">&#39;;

// Only show one post.
if ($settings[&#39;display_recent_bar&#39;] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (it&#39;s id.)
echo &#39;
<b><a href="&#39;, $scripturl, &#39;?action=recent">&#39;, $txt[214], &#39;</a></b><br />
<span class="smalltext">
&#39;, $txt[234], &#39; &quot;&#39;, $context[&#39;latest_post&#39;][&#39;link&#39;], &#39;&quot; &#39;, $txt[235], &#39; (&#39;, $context[&#39;latest_post&#39;][&#39;time&#39;], &#39;)<br />
</span>&#39;;
}
// Show lots of posts.
elseif (!empty($context[&#39;latest_posts&#39;]))
{
echo &#39;
<table width="100%" border="0">&#39;;
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic&#39;s id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context[&#39;latest_posts&#39;] as $post)
echo &#39;
<tr>
<td align="right" valign="top" nowrap="nowrap">[&#39;, $post[&#39;board&#39;][&#39;link&#39;], &#39;]</td>
<td valign="top">&#39;, $post[&#39;link&#39;], &#39; &#39;, $txt[525], &#39; &#39;, $post[&#39;poster&#39;][&#39;link&#39;], &#39;</td>
<td align="right" valign="top" nowrap="nowrap">&#39;, $post[&#39;time&#39;], &#39;</td>
</tr>&#39;;
echo &#39;
</table>&#39;;
}
echo &#39;
</td>
</tr>&#39;;
}

// Show information about events, birthdays, and holidays on the calendar.
if ($context[&#39;show_calendar&#39;])
{
echo &#39;
<tr>
<td class="catbg" colspan="2">&#39;, $context[&#39;calendar_only_today&#39;] ? $txt[&#39;calendar47b&#39;] : $txt[&#39;calendar47&#39;], &#39;</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="&#39;, $scripturl, &#39;?action=calendar">
<img src="&#39;, $settings[&#39;images_url&#39;], &#39;/calindex.gif" border="0" width="20" alt="&#39;, $txt[&#39;calendar24&#39;], &#39;" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">&#39;;

// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context[&#39;calendar_holidays&#39;]))
echo &#39;
<span style="color: #&#39;, $modSettings[&#39;cal_holidaycolor&#39;], &#39;;">&#39;, $txt[&#39;calendar5&#39;], &#39; &#39;, implode(&#39;, &#39;, $context[&#39;calendar_holidays&#39;]), &#39;</span><br />&#39;;

// People&#39;s birthdays.  Like mine.  And yours, I guess.  Kidding.
if (!empty($context[&#39;calendar_birthdays&#39;]))
{
echo &#39;
<span style="color: #&#39;, $modSettings[&#39;cal_bdaycolor&#39;], &#39;;">&#39;, $context[&#39;calendar_only_today&#39;] ? $txt[&#39;calendar3&#39;] : $txt[&#39;calendar3b&#39;], &#39;</span> &#39;;
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context[&#39;calendar_birthdays&#39;] as $member)
echo &#39;
<a href="&#39;, $scripturl, &#39;?action=profile;u=&#39;, $member[&#39;id&#39;], &#39;">&#39;, $member[&#39;is_today&#39;] ? &#39;<b>&#39; : &#39;&#39;, $member[&#39;name&#39;], $member[&#39;is_today&#39;] ? &#39;</b>&#39; : &#39;&#39;, isset($member[&#39;age&#39;]) ? &#39; (&#39; . $member[&#39;age&#39;] . &#39;)&#39; : &#39;&#39;, &#39;</a>&#39;, $member[&#39;is_last&#39;] ? &#39;<br />&#39; : &#39;, &#39;;
}
// Events like community get-togethers.
if (!empty($context[&#39;calendar_events&#39;]))
{
echo &#39;
<span style="color: #&#39;, $modSettings[&#39;cal_eventcolor&#39;], &#39;;">&#39;, $context[&#39;calendar_only_today&#39;] ? $txt[&#39;calendar4&#39;] : $txt[&#39;calendar4b&#39;], &#39;</span> &#39;;
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context[&#39;calendar_events&#39;] as $event)
echo &#39;
&#39;, $event[&#39;can_edit&#39;] ? &#39;<a href="&#39; . $event[&#39;modify_href&#39;] . &#39;" style="color: #FF0000;">*</a> &#39; : &#39;&#39;, &#39;<a href="&#39;, $event[&#39;href&#39;], &#39;">&#39;, $event[&#39;is_today&#39;] ? &#39;<b>&#39; . $event[&#39;title&#39;] . &#39;</b>&#39; : $event[&#39;title&#39;], &#39;</a>&#39;, $event[&#39;is_last&#39;] ? &#39;<br />&#39; : &#39;, &#39;;

// Show a little help text to help them along ;).
if ($context[&#39;calendar_can_edit&#39;])
echo &#39;
(<a href="&#39;, $scripturl, &#39;?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">&#39;, $txt[&#39;calendar_how_edit&#39;], &#39;</a>)&#39;;
}
echo &#39;
</span>
</td>
</tr>&#39;;
}

// Show a member bar.  Not heavily ornate, but functional at least.
if ($settings[&#39;show_member_bar&#39;])
{
echo &#39;
<tr>
<td class="catbg" colspan="2">&#39;, $txt[331], &#39;</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
&#39;, $context[&#39;show_member_list&#39;] ? &#39;<a href="&#39; . $scripturl . &#39;?action=mlist">&#39; : &#39;&#39;, &#39;<img src="&#39;, $settings[&#39;images_url&#39;], &#39;/members.gif" border="0" width="20" alt="&#39;, $txt[332], &#39;" />&#39;, $context[&#39;show_member_list&#39;] ? &#39;</a>&#39; : &#39;&#39;, &#39;
</td>
<td class="windowbg2" width="100%">
<b>&#39;, $context[&#39;show_member_list&#39;] ? &#39;<a href="&#39; . $scripturl . &#39;?action=mlist">&#39; . $txt[332] . &#39;</a>&#39; : $txt[332], &#39;</b><br />
<span class="smalltext">&#39;, $txt[200], &#39;</span>
</td>
</tr>&#39;;
}

// Show YaBB SP1 style information...
if ($settings[&#39;show_sp1_info&#39;])
{
echo &#39;
<tr>
<td class="catbg" colspan="2">&#39;, $txt[645], &#39;</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="&#39;, $scripturl, &#39;?action=stats">
<img src="&#39;, $settings[&#39;images_url&#39;], &#39;/info.gif" alt="&#39;, $txt[645], &#39;" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<table border="0" width="90%"><tr>
<td class="smalltext">
&#39;, $txt[94], &#39; &#39;, $txt[64], &#39;: <b>&#39;, $modSettings[&#39;totalTopics&#39;], &#39;</b> &nbsp;&nbsp;&nbsp;&nbsp; &#39;, $txt[94], &#39; &#39;, $txt[95], &#39;: <b>&#39;, $modSettings[&#39;totalMessages&#39;], &#39;</b><br />
&#39;, !empty($context[&#39;latest_post&#39;]) ? $txt[659] . &#39;:
&quot;&#39; . $context[&#39;latest_post&#39;][&#39;link&#39;] . &#39;&quot;  (&#39; . $context[&#39;latest_post&#39;][&#39;time&#39;] . &#39;)<br />&#39; : &#39;&#39;, &#39;
<a href="&#39;, $scripturl, &#39;?action=recent">&#39;, $txt[234], &#39;</a>&#39;, $context[&#39;show_stats&#39;] ? &#39;<br />
<a href="&#39; . $scripturl . &#39;?action=stats">&#39; . $txt[&#39;smf223&#39;] . &#39;</a>&#39; : &#39;&#39;, &#39;
</td>
<td class="smalltext">
&#39;, $txt[94], &#39; &#39;, $txt[19], &#39;: <b>&#39;, $context[&#39;show_member_list&#39;] ? &#39;<a href="&#39; . $scripturl . &#39;?action=mlist">&#39; . $modSettings[&#39;memberCount&#39;] . &#39;</a>&#39; : $modSettings[&#39;memberCount&#39;], &#39;</b><br />
&#39;, $txt[656], &#39;: <b>&#39;, $context[&#39;latest_member&#39;][&#39;link&#39;], &#39;</b><br />&#39;;
// If they are logged in, show their unread message count, etc..
if ($context[&#39;user&#39;][&#39;is_logged&#39;] && $context[&#39;allow_pm&#39;])
echo &#39;
&#39;, $txt[&#39;smf199&#39;], &#39;: <b><a href="&#39;, $scripturl, &#39;?action=pm">&#39;, $context[&#39;user&#39;][&#39;messages&#39;], &#39;</a></b> &#39;, $txt[&#39;newmessages3&#39;], &#39;: <b><a href="&#39;, $scripturl, &#39;?action=pm">&#39;, $context[&#39;user&#39;][&#39;unread_messages&#39;], &#39;</a></b>&#39;;
echo &#39;
</td>
</tr></table>
</td>
</tr>&#39;;
}

// "Users online" - in order of activity.
echo &#39;
<tr>
<td class="catbg" colspan="2">&#39;, $txt[158], &#39;</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
&#39;, $context[&#39;show_who&#39;] ? &#39;<a href="&#39; . $scripturl . &#39;?action=who">&#39; : &#39;&#39;, &#39;<img src="&#39;, $settings[&#39;images_url&#39;], &#39;/online.gif" alt="&#39;, $txt[158], &#39;" border="0" />&#39;, $context[&#39;show_who&#39;] ? &#39;</a>&#39; : &#39;&#39;, &#39;
</td>
<td class="windowbg2" width="100%">
&#39;, $context[&#39;show_who&#39;] ? &#39;<a href="&#39; . $scripturl . &#39;?action=who">&#39; : &#39;&#39;, $context[&#39;num_guests&#39;], &#39; &#39;, $context[&#39;num_guests&#39;] == 1 ? $txt[&#39;guest&#39;] : $txt[&#39;guests&#39;], &#39;, &#39;, $context[&#39;num_users_online&#39;], &#39; &#39;, $context[&#39;num_users_online&#39;] == 1 ? $txt[&#39;user&#39;] : $txt[&#39;users&#39;], $context[&#39;num_users_hidden&#39;] > 0 ? &#39; (&#39; . $context[&#39;num_users_hidden&#39;] . &#39; &#39; . $txt[&#39;hidden&#39;] . &#39;)&#39; : &#39;&#39;, $context[&#39;show_who&#39;] ? &#39;</a>&#39; : &#39;&#39;, &#39;<br />
<span class="smalltext">&#39;;

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context[&#39;users_online&#39;]))
echo &#39;
&#39;, $txt[140], &#39;:<br />&#39;, implode(&#39;, &#39;, $context[&#39;list_users_online&#39;]);

echo &#39;
<br />&#39;, $context[&#39;show_stats&#39;] && !$settings[&#39;show_sp1_info&#39;] ? &#39;
<a href="&#39; . $scripturl . &#39;?action=stats">&#39; . $txt[&#39;smf223&#39;] . &#39;</a>&#39; : &#39;&#39;, &#39;
</span>
</td>
</tr>&#39;;

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context[&#39;user&#39;][&#39;is_logged&#39;] && !$settings[&#39;show_sp1_info&#39;])
{
echo &#39;
<tr>
<td class="catbg" colspan="2">&#39;, $txt[159], &#39;</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
&#39;, $context[&#39;allow_pm&#39;] ? &#39;<a href="&#39; . $scripturl . &#39;?action=pm">&#39; : &#39;&#39;, &#39;<img src="&#39;, $settings[&#39;images_url&#39;], &#39;/message_sm.gif" alt="&#39;, $txt[159], &#39;" border="0" />&#39;, $context[&#39;allow_pm&#39;] ? &#39;</a>&#39; : &#39;&#39;, &#39;
</td>
<td class="windowbg2" valign="top">
<b><a href="&#39;, $scripturl, &#39;?action=pm">&#39;, $txt[159], &#39;</a></b><br />
<span class="smalltext">
&#39;, $txt[660], &#39; &#39;, $context[&#39;user&#39;][&#39;messages&#39;], &#39; &#39;, $context[&#39;user&#39;][&#39;messages&#39;] == 1 ? $txt[471] : $txt[153], &#39;.... &#39;, $txt[661], $context[&#39;allow_pm&#39;] ? &#39; <a href="&#39; . $scripturl . &#39;?action=pm">&#39; . $txt[662] . &#39;</a>&#39; : &#39;&#39;, &#39; &#39;, $txt[663], &#39;
</span>
</td>
</tr>&#39;;
}

// Show the login bar. (it&#39;s only true if they are logged out anyway.)
if ($context[&#39;show_login_bar&#39;])
{
echo &#39;

?>







This is the code of Board.template.php
« Last Edit: July 08, 2004, 03:07:10 AM by SpecHackers »
Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Offline Burpee

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,298
  • Gender: Male
    • Mafan.nl
Re: Forums Width, Problem!
« Reply #1 on: July 08, 2004, 07:43:28 AM »
I haven't even looked at the structure of the templates so I could be missing the point completely, but are you absolutely sure you need to be looking in Board.template.php?

I looked at index.template.php just now, maybe you should replace the lines after line 150 with:
Code: [Select]
<table cellspacing="0" cellpadding="10" border="0" align="center" width="95%" class="tborder">
<tr>
<td valign="top" bgcolor="#ffffff">CONTENT GOES HERE
</td>
<td valign="top" bgcolor="#ffffff">';

Offline Vinoth

  • Full Member
  • ***
  • Posts: 569
  • Gender: Male
  • Hackers Are Not Crackers
Re: Forums Width, Problem!
« Reply #2 on: July 08, 2004, 02:25:07 PM »
gave an parse errror while trying,


also i cannot get u, should i replace all the lines below with these lines/
Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Offline Burpee

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,298
  • Gender: Male
    • Mafan.nl
Re: Forums Width, Problem!
« Reply #3 on: July 08, 2004, 02:45:29 PM »
Sorry...
Add after:
Code: [Select]
<table cellspacing="0" cellpadding="10" border="0" align="center" width="95%" class="tborder">
<tr><td valign="top" bgcolor="#ffffff">

Code: [Select]
   </td>
<td valign="top" bgcolor="#ffffff">';

Don't forget the ';

Offline Vinoth

  • Full Member
  • ***
  • Posts: 569
  • Gender: Male
  • Hackers Are Not Crackers
Re: Forums Width, Problem!
« Reply #4 on: July 08, 2004, 03:02:56 PM »
gave me a parse error, and can u also say which line,

Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Offline Burpee

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,298
  • Gender: Male
    • Mafan.nl
Re: Forums Width, Problem!
« Reply #5 on: July 08, 2004, 03:29:38 PM »
I had already said line 150 in an earlier post. You could also search for that text yourself.
This modification was made to the original classic template.
You have probably modified it, so the line number is now different.

Offline Vinoth

  • Full Member
  • ***
  • Posts: 569
  • Gender: Male
  • Hackers Are Not Crackers
Re: Forums Width, Problem!
« Reply #6 on: July 08, 2004, 04:05:59 PM »
can u just do it for  me/

thanx
Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.