News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[Theme] Ig-Oh for 1.0.8 & 1.1 RC3

Started by weber, June 14, 2005, 07:32:26 AM

Previous topic - Next topic

weber

Because I allot my time that becomes empty to making the theme, what time it is possible to do cannot be said.

Use the theme of other famous authors when you hope for a timely update. It will surely satisfy you.

Miraenda

I'm wanting to remove both Topic/Posts, Replies and Views fields from displaying on the forum as I've bridged it with Mambo (I originally had the hi:ha theme and just switched to this one instead) and then wrapped it. Due to the wrapping with the fixed width Mambo template I have, the forum doesn't have a great deal of space, so removing some non-necessary fields will help out a lot.

I appreciate any help on how to get those removed. Thanks :)

Oh, the forum is at http://ratingbar.com/component/option,com_smf/Itemid,26/

weber

The edited file is "BoardIndex.template.php".

1) The following three codes are deleted.

<td class="catbg_n" style="width: 13ex;">', $txt[64], '/', $txt[26], '</td>

<td class="windowbg" valign="middle" align="center" style="width: 13ex;"><span class="smalltext">
', $board['topics'],'
</span></td>


    <tr>
<td class="windowbg" style="width: 13ex;" align="center" valign="middle"><span class="smalltext">
', $board['posts'], '
</span></td>
    </tr>




2)' rowspan="2" ' is deleted from the following three codes.

Quote
      <td rowspan="2" class="windowbg" width="6%" align="center" valign="top">

Quote<td rowspan="2" class="windowbg2" align="left">

Quote<td rowspan="2" class="smalltext" valign="middle" width="22%">

I hope this becomes your help. :)

Miraenda

That helped a lot, thanks a bunch koni :D

malbicho

I have a problem, recently I've installed ubuntu linux and with firefox the forum shows this:



Any idea how to fix it?

Thanks  ;)
Noticias de informática, software gratuito y foro:
LibreMente [nofollow]

weber

Edit "index.Language_that_you_use.php" of the language file that you of the default theme are using and add the following code. Note: Replace "Language_that_you_use" with the language that you are using.

// ADD
$txt['top_info'] = 'User Info &amp; Key Stats';
$txt['igoh_locked'] = 'Locked Topic';
$txt['igoh_sticky'] = 'Sticky:';


And, copy the file onto "languages" directory of Ig-Oh.

Miraenda

koni, I had another component I wanted to ask about how I would remove it for sure as I didn't want to mess up the theme. The "User Info & Key Stats" area at the top above the button icons on my forum is repeating the details that are contained to the left of the forum due to it being bridged and wrapped with mambo.  I do want the info to display to the left in mambo, but not at the top of the forum.  The only thing I would like up in that blue portion would be the News, which could then take up a bit more space and I did want to keep the rounded corners for the background of that area just with the News up there instead.  Also, the login doesn't need to be up there as there is both a login button and a login via mambo and the forum on the left as well.

A screen print of what I'd like to remove is the following (circled in red):


weber

The file that edits it is "index.template.php".

1) The following code is deleted.

<tr>';

if (!empty($context['user']['avatar']))
echo '<td valign="middle">', $context['user']['avatar']['image'], '</td>';

echo '<td width="70%" valign="top" class="headertext" align="left">';

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ', ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
echo '.';

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '<br />
<b>', $txt[616], '</b>';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '<br />
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=regcenter">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'];

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
<br />', $txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'];
}

echo '<br />
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - so politely ask them to register or login.
else
{
echo '
', $txt['welcome_guest'], '<br />
<form action="', $scripturl, '?action=login2" method="post" style="margin: 3px 1ex 1px 0; text-align:left;">
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="302400">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
', $txt['smf52'], '
</form>';
}

echo '
</td><td width="30%" class="headertext" valign="top" align="right">
', $context['current_time'], ' <br />
<b>', $modSettings['totalMessages'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $modSettings['totalTopics'], '</b> ', $txt[64], ' ', $txt[525], ' <b>', $modSettings['memberCount'], '</b> ', $txt[19], '<br />
', $txt[656], ': <b> <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '">', $modSettings['latestRealName'], '</a></b>
</td></tr>



2) The following code is replaced.

Find

if (!empty($settings['enable_news']))
echo '
<tr><td colspan="3" class="headernews"><div style="float: left;"> <b>', $txt[102], ':</b> ', $context['random_news_line'] , '</div></td></tr>';


Replacement

if (!empty($settings['enable_news']))
echo '
<tr><td class="headernews"><div style="float: left;">', $context['random_news_line'] , '</div></td></tr>';



  • Edit it as follows if you want to set height to the news field.

Quoteif (!empty($settings['enable_news']))      
      echo '
      <tr><td class="headernews" height="50px" valign="top"><div style="float: left;">', $context['random_news_line'] , '</div></td></tr>';


  • An arbitrary numerical value to 'height="50px"'
  • Do "Added/change" to 'valign="top"' by your favor.



3) The following code is replaced.

Find

// The logo and the three info boxes.
echo '
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" height="25px">
<tbody>
<tr><td align="left" width="20px" class="titlebg_l">&nbsp;<td/><td align="center" class="titlebg">', $txt['top_info'] ,'<span style="font-size: 1px;">&nbsp;</span>
</td><td align="right" width="20px" class="titlebg_r">&nbsp;</td>
</tr>  </tbody>
</table>


Replacement


// The logo and the three info boxes.
echo '
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" height="25px">
<tbody>
<tr><td align="left" width="20px" class="titlebg_l">&nbsp;<td/><td align="center" class="titlebg">', $txt[102] ,'<span style="font-size: 1px;">&nbsp;</span>
</td><td align="right" width="20px" class="titlebg_r">&nbsp;</td>
</tr>  </tbody>
</table>



The file that edits it is "style.css".

4) The edit of the following code is an option.  Change according to your favor.

  • Deletion when borderline is not needed (Red color) .
  • The font size is changed (Blue color) .

Quote.headernews
{
   border-width: 1px 0 0 0;
   border-style: solid;
   border-color: #dfdfdf;

   padding-top: 7px;
   color: #dfdfdf;
   font-size: x-small;
   font-family: Tahoma, arial, helvetica, serif;
}

Miraenda

Thanks a lot koni, I really really appreciate the help on this. Your theme is perfect for my site :D

malbicho

Quote from: koni on July 27, 2005, 06:52:59 AM
Edit "index.Language_that_you_use.php" of the language file that you of the default theme are using and add the following code. Note: Replace "Language_that_you_use" with the language that you are using.

// ADD
$txt['top_info'] = 'User Info &amp; Key Stats';
$txt['igoh_locked'] = 'Locked Topic';
$txt['igoh_sticky'] = 'Sticky:';


And, copy the file onto "languages" directory of Ig-Oh.
Thanks worked perfect.  :D
Noticias de informática, software gratuito y foro:
LibreMente [nofollow]

weber

I added it for "SMF 1.1 Beta 3 Public" of this theme. It can be downloaded from the first post. ;)

AdisB

awsome theme,,use uit on my forum ;D..

weber

I am glad for you to like this theme. :)

rostovtzeff

I change the language and the buttons structure, but some text stay in english!

weber

Which part is displayed in English?

rostovtzeff

Just the admin control panel and the buttons are in portuguese... :(

weber

Because the buttons of Portuguese for this theme is not prepared, you will have to use the English buttons. You should copy the "english" directory that exists in the "images" directory of this theme, and change the directory name to the name of the language that you use.

When the languages other than English is used, all files of the language of the default theme are used (When you are not adding the file to the "languages" directory of this Ig-Oh theme.). Therefore, if the parts other than the buttons are English, it must be equal also in the theme of default.

rostovtzeff

So i cant use portuguese language with this theme..right?

AdisB

#78
Hi.. I have added a banner and i want it to be in the middle on the top..
but it wont get to the middle it becommes like this..http://img197.imageshack.us/img197/907/namls4et.jpg
so i want to remove this http://img152.imageshack.us/img152/9611/namnls11ie.jpg
and this http://img190.imageshack.us/img190/6884/namnls22ws.jpg

how,what shulld i do to remove it? plzz help me..

weber

@rostovtzeff:

Quote from: rostovtzeff on August 11, 2005, 10:23:15 AM
So i cant use portuguese language with this theme..right?

It is possible to use it. However, everything depends on the file of the language of Portuguese of the default theme.

And, there is no buttons of Portuguese for this theme.

In a word, it is not perfect.



@AdisB:

Delete the following code.

<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" height="70px">
<tbody>
<tr><td align="left" width="37px" class="topbg_l">&nbsp;<td/><td align="left" class="topbg"><span style="font-family: Georgia, sans-serif;">', $context['forum_name'], '</span>
</td><td align="right" width="275px" class="topbg_r"><img  style="margin-top: 10px; margin-right: 25px;" src="' . $settings['images_url'] . '/toplogo_r.gif" height="31" alt="" border="0" alt="" /></td>
</tr>  </tbody>
</table>


And, replace it with the code of the banner for which you hope.

For instance...


<div align="center"><img  style="margin-top: 10px; margin-right: 25px;" src="' . $settings['images_url'] . '/toplogo_r.gif" height="31" alt="" border="0" alt="" /></div>





Advertisement: