News:

Wondering if this will always be free?  See why free is better.

Main Menu

[Theme] SMFone

Started by A.M.A, April 15, 2005, 07:01:21 PM

Previous topic - Next topic

d3v

Hi. LOVE your smfONE_grey theme, will be using it on my forum. one question thou. what changes do I need to make in theme.css to change the grey background of the forum. Here's the Picture to explain what I mean, follow the arrows: http://d3v.clanhq.net/img/smfone.png Thanks for your time

A.M.A

Thanks
in style.css
#headerarea
{
background-color: #E2E2E2;
}

Note that not all images are transparent and they are anti aliased against the gray shade.
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

d3v

#182
Yea I noticed :X Playing with the .css file for 2nd hour now trying to make this theme to be completely on white background. Since I asked one question, why not ask another. I'm modifying the index.template.php and boardindex.template.php files to make the forum to be more light. I got the smfone logo removed succesfully,was able to change the font to smaller size, removed help/faq/register buttons (mambo integration, no reg. needed), removed part of info center on the bottom and replaced a lot of the icons with smaller ones.

The question that I have is regarding the  USER INFO box that appears on top. Each template has a slightly different code in index.template.php file for it's removal and I was wondering if someone could paste the proper code for SMFOne theme to remove it. So far all I get is template parsing error even after playing with brackets, echo' and trying to comment it out. Thanks for your reply, and once again thanks for the theme.

A.M.A

index.template.php .. find and remove:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td width="0%"><img src="', $settings['images_url'], '/re_b_top1.gif" alt="" /></td>
    <td width="100%" style="background-image: url(', $settings['images_url'], '/re_b_top2.gif);"><img src="', $settings['images_url'], '/', $context['user']['language'], '/userinfo.gif" alt="" /></td>
    <td width="0%"><img src="', $settings['images_url'], '/re_b_top3.gif" alt="" /></td>
  </tr>
  <tr>
    <td width="0%" style="background-image: url(', $settings['images_url'], '/re_b_mid1.gif);"></td>
    <td width="100%" style="background-color: #D5D5D5;">
<table width="100%" cellpadding="0" cellspacing="2" border="0"><tr>';

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

echo '<td width="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">';

// 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>&nbsp; || &nbsp;
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />
', $context['current_time'];
}
// Otherwise they're a guest - so politely ask them to register or login.
else
{
echo '
', $txt['welcome_guest'], '<br />
', $context['current_time'], '<br />

<form action="', $scripturl, '?action=login2" method="post" style="margin: 3px 1ex 1px 0; text-align:right;">
<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></tr></table>


</td>
    <td width="0%" style="background-image: url(', $settings['images_url'], '/re_b_mid2.gif);"></td>
  </tr>
  <tr>
    <td width="0%"><img src="', $settings['images_url'], '/re_b_bot1.gif" alt="" /></td>
    <td width="100%" style="background-image: url(', $settings['images_url'], '/re_b_bot2.gif);"></td>
    <td width="0%"><img src="', $settings['images_url'], '/re_b_bot3.gif" alt="" /></td>
  </tr>
</table>
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

Aravot

A.M.A, this question might have been asked, search couldn't find.

Does your theme work with SMF 1.1 beta x.

Omar Bazavilvazo

Quote from: Aravot on May 16, 2005, 06:09:18 PM
A.M.A, this question might have been asked, search couldn't find.

Does your theme work with SMF 1.1 beta x.

It does. Will have minor tweaks, but runs great
I have it running here: http://hablajapones.org

You just need to delete calendar.template.php, and if you need thumbnails preview, you need to fix by hand that on Display.template.php

...

Or wait until the "official" beta 2 release is out :)




Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

A.M.A

as Omar said am only aware of the calendar bug and it can be fixed by deleting the calendar .template.php .. am planning on porting all my themes to 1.1 when it is released.
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

jsdoyle

#187
Hello,

Very nice theme!  I've incorporated it into a small family site I've set up that also uses MKPortal 1.0.

Question,  I've set MkPortal to use the forum theme.  It picks up the colors just fine but the rounded graphics of the theme aren't displayed in the portal.  I was wondering if there was a way to have MKPortal blocks and such to pick up the nice graphics of your theme.  The site I've set this up at is www.looeyville.com if it would help.

Thanks,

Scott

A.M.A

You have to edit mk's theme to use those rounded corner. Sorry I have no experience on doing that.
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

redone

Button creator? I have said many times your themes are really awesome and they are! But I am as about as graphically challenged as they come and I wondered if you ever had plans to create a button creator like webby did? I probably like many others have mods like the arcade mod, member map mod etc and I have no idea about creating the buttons I would need to make these work.

Also, do you have plans to make them compatible with bloc's portal? Thanks.

:)

dtm.exe

Quote from: A.M.A on May 12, 2005, 12:06:13 PM
If you deleted the whole thing divs will overlap. It is better to use a non-breaking space i.e. replace this:
<span style="font-family: Arial, sans-serif; font-size: 16pt; font-weight: bold;">', $context['forum_name'], '</span>
with:
<span style="font-family: Arial, sans-serif; font-size: 16pt; font-weight: bold;">&nbsp;</span>

Psiloman
Thanks for your comments.

OIDanTheManIO
Thanks for the help.

I can't search for that because I've already taken all of it out and I don't know where to re-add it.  Where does it belong?  Here's my page.

<?php
// Version: 1.0; Settings

function template_options()
{
global $context$settings$options$scripturl$txt$days;

$context['theme_options'] = array(
array(
'id' => 'show_board_desc',
'label' => $txt[732],
),
array(
'id' => 'show_children',
'label' => $txt['show_children'],
),
array(
'id' => 'show_no_avatars',
'label' => $txt['show_no_avatars'],
),
array(
'id' => 'show_no_signatures',
'label' => $txt['show_no_signatures'],
),
array(
'id' => 'show_no_censored',
'label' => $txt['show_no_censored'],
),
array(
'id' => 'return_to_post',
'label' => $txt['return_to_post'],
),
array(
'id' => 'view_newest_first',
'label' => $txt['recent_posts_at_top'],
),
array(
'id' => 'view_newest_pm_first',
'label' => $txt['recent_pms_at_top'],
),
array(
'id' => 'popup_messages',
'label' => $txt['popup_messages'],
),
array(
'id' => 'copy_to_outbox',
'label' => $txt['copy_to_outbox'],
),
array(
'id' => 'auto_notify',
'label' => $txt['auto_notify'],
),
array(
'id' => 'calendar_start_day',
'label' => $txt['calendar_start_day'],
'options' => array(
=> $days[0],
=> $days[1],
),
),
array(
'id' => 'display_quick_reply',
'label' => $txt['display_quick_reply'],
'options' => array(
=> $txt['display_quick_reply1'],
=> $txt['display_quick_reply2'],
=> $txt['display_quick_reply3']
),
),
array(
'id' => 'display_quick_mod',
'label' => $txt['display_quick_mod'],
'options' => array(
=> $txt['display_quick_mod_none'],
=> $txt['display_quick_mod_check'],
=> $txt['display_quick_mod_image'],
),
),
);
}

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

$context['theme_settings'] = array(
array(
'id' => 'number_recent_posts',
'label' => $txt['number_recent_posts'],
'description' => $txt['number_recent_posts_desc'],
'type' => 'number',
),
array(
'id' => 'display_who_viewing',
'label' => $txt['who_display_viewing'],
'options' => array(
=> $txt['who_display_viewing_off'],
=> $txt['who_display_viewing_numbers'],
=> $txt['who_display_viewing_names'],
),
),
array(
'id' => 'smiley_sets_default',
'label' => $txt['smileys_default_set_for_theme'],
'options' => $context['smiley_sets'],
),
array(
'id' => 'show_modify',
'label' => $txt[383],
),
array(
'id' => 'show_member_bar',
'label' => $txt[510],
),
array(
'id' => 'linktree_link',
'label' => $txt[522],
),
array(
'id' => 'show_profile_buttons',
'label' => $txt[523],
),
array(
'id' => 'show_mark_read',
'label' => $txt[618],
),
array(
'id' => 'linktree_inline',
'label' => $txt['smf105'],
'description' => $txt['smf106'],
),
array(
'id' => 'show_sp1_info',
'label' => $txt['smf200'],
),
array(
'id' => 'allow_no_censored',
'label' => $txt['allow_no_censored'],
),
array(
'id' => 'show_bbc',
'label' => $txt[740],
),
array(
'id' => 'additional_options_collapsable',
'label' => $txt['additional_options_collapsable'],
),
array(
'id' => 'enable_news',
'label' => $txt[379],
),
array(
'id' => 'show_newsfader',
'label' => $txt[387],
),
array(
'id' => 'newsfader_time',
'label' => $txt[739],
'type' => 'number',
),
array(
'id' => 'show_user_images',
'label' => $txt[384],
),
array(
'id' => 'show_blurb',
'label' => $txt[385],
),
array(
'id' => 'show_latest_member',
'label' => $txt[382],
),
array(
'id' => 'use_image_buttons',
'label' => $txt[521],
),
array(
'id' => 'show_gender',
'label' => $txt[386],
),
array(
'id' => 'hide_post_group',
'label' => $txt['hide_post_group'],
'description' => $txt['hide_post_group_desc'],
),
array(
'id' => 'your_logo',
'label' => 'Use your own logo:',
'description' => 'Please use this format: <span style="color: #BA150D;">http://www.mycom.com/mylogo.gif</span>',
'type' => 'text',
),
);
}

?>


-Dan The Man

A.M.A

redone
I'll see if Webby is interested on them. For the meantime you can provide me with the buttons you need and I'll try to make them.
Will try after Bloc finishes TP.

OIDanTheManIO
in index.template.php:
// Because of the way width/padding are calculated, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!)
echo '
<div id="headerarea" style="padding: 12px 15px 4px 15px;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<div>';

// This part is the logo and forum name.  You should be able to change this to whatever you want...
    if (empty($settings['your_logo']))
{
echo '
    <div style="float: right;">
      <img src="', $settings['images_url'], '/smflogo.gif" width="250" alt="" />
    </div>';
}
    else
{
echo '
    <div style="float: right;">
      <img src="', $settings['your_logo'], '" style="float: right;" alt="" />
    </div>';
}

echo '
  <span style="font-family: Arial, sans-serif; font-size: 16pt; font-weight: bold;">', $context['forum_name'], '</span>
</div>
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

dtm.exe

Quote from: A.M.A on May 18, 2005, 06:48:51 PM
OIDanTheManIO
in index.template.php:
// Because of the way width/padding are calculated, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!)
echo '
<div id="headerarea" style="padding: 12px 15px 4px 15px;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<div>';

// This part is the logo and forum name.  You should be able to change this to whatever you want...
    if (empty($settings['your_logo']))
{
echo '
    <div style="float: right;">
      <img src="', $settings['images_url'], '/smflogo.gif" width="250" alt="" />
    </div>';
}
    else
{
echo '
    <div style="float: right;">
      <img src="', $settings['your_logo'], '" style="float: right;" alt="" />
    </div>';
}

echo '
  <span style="font-family: Arial, sans-serif; font-size: 16pt; font-weight: bold;">', $context['forum_name'], '</span>
</div>


Uh, what do I do with that code?

-Dan The Man

spidernik84

this is a slightly modified version of SMFOne.

http://www.five-c.com/smf/ [nofollow]

I've mainly edited the css part and added that pseudo-translucent bar. AMA as soon as i finish the buttons translation in italian i'll send them to you.
Cheers

A.M.A

OIDanTheManIO
The code I posted above shows where:
<span style="font-family: Arial, sans-serif; font-size: 16pt; font-weight: bold;">&nbsp;</span>
should be.

spidernik84
Looking nice with the board icons.
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

redone

I am running Bloc's TP on my live forum now so I guess I can wait. A games button with your theme would be awesome as many people are now using the arcade mod.

Thanks for the reply.


d3v

Just wanted to take this opportunity to ask couple more css settings for theme.css. The image is included and the layout is numbered.



1,5 - color setting
2,3,4 - color settings
6 - font style/size setting
7 - font style/size setting

I assume that that numbers which I have grouped are the same setting. If I'm wrong, please correct me. Thanks for your time and support.


A.M.A

redone
attached .. the first one should used like this:
<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/games.gif" alt="Games" /><a class="menub" href="', $scripturl, '">Games</a>
in index.template.php in the template_menu() , and it should go to the images/english folder.

d3v
1,2,3,4,5 are images .. look for re_top_x.gif in images folder.
6 in style.css /* Normal, standard links. */ and /* By default (td, body..) use Tahoma in black. */
7 in style.css /* By default (td, body..) use Tahoma in black. */
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

redone

thanks for the images and the notes about changing the theme to do what I need. Very much appreciated.


d3v

Thanks a lot for your support A.M.A. I'm almost done tweaking up my skin to the way that it would fit my site. However still one thing I can't get to go away even after going through all 6 re-top.gif files. Wondering if maybe you can point out which file exactly is used in the image attached: Thanks a lot once again. Your theme is really a new step for SMF forum (yes, i actually mean it) :

Advertisement: