Advertisement:

Author Topic: [Theme] SMFone  (Read 410775 times)

Offline d3v

  • Jr. Member
  • **
  • Posts: 209
Re: [Theme] SMFone
« Reply #180 on: May 14, 2005, 10:45:57 PM »
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

Offline A.M.A

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,133
  • Gender: Male
  • ..
Re: [Theme] SMFone
« Reply #181 on: May 15, 2005, 02:50:33 AM »
Thanks
in style.css
Code: [Select]
#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 :)

Offline d3v

  • Jr. Member
  • **
  • Posts: 209
Re: [Theme] SMFone
« Reply #182 on: May 16, 2005, 05:48:52 AM »
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.
« Last Edit: May 16, 2005, 05:51:46 AM by d3v »

Offline A.M.A

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,133
  • Gender: Male
  • ..
Re: [Theme] SMFone
« Reply #183 on: May 16, 2005, 07:42:23 AM »
index.template.php .. find and remove:
Code: [Select]
<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 :)

Offline Aravot

  • Sophist Member
  • *****
  • Posts: 1,057
  • Gender: Male
Re: [Theme] SMFone
« Reply #184 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.

Offline Omar Bazavilvazo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,619
  • Gender: Male
  • Minna no nihongo...
    • HablaJapones
Re: [Theme] SMFone
« Reply #185 on: May 16, 2005, 06:40:49 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...

Offline A.M.A

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,133
  • Gender: Male
  • ..
Re: [Theme] SMFone
« Reply #186 on: May 16, 2005, 07:04:13 PM »
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 :)

Offline jsdoyle

  • Jr. Member
  • **
  • Posts: 120
  • Gender: Male
  • Go Cats!
    • AFTE
Re: [Theme] SMFone
« Reply #187 on: May 17, 2005, 10:27:33 AM »
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
« Last Edit: May 17, 2005, 11:46:43 AM by jsdoyle »

Offline A.M.A

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,133
  • Gender: Male
  • ..
Re: [Theme] SMFone
« Reply #188 on: May 17, 2005, 05:23:08 PM »
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 :)

Offline redone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,939
  • Gender: Male
Re: [Theme] SMFone
« Reply #189 on: May 18, 2005, 10:02:58 AM »
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.

 :)

Offline dtm.exe

  • SMF Hero
  • ******
  • Posts: 5,465
Re: [Theme] SMFone
« Reply #190 on: May 18, 2005, 04:37:46 PM »
If you deleted the whole thing divs will overlap. It is better to use a non-breaking space i.e. replace this:
Code: [Select]
<span style="font-family: Arial, sans-serif; font-size: 16pt; font-weight: bold;">', $context['forum_name'], '</span>with:
Code: [Select]
<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.

Code: [Select]
<?php
// Version: 1.0; Settings

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

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

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

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

?>

-Dan The Man

Offline A.M.A

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,133
  • Gender: Male
  • ..
Re: [Theme] SMFone
« Reply #191 on: May 18, 2005, 06:48:51 PM »
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:
Code: [Select]
// 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 :)

Offline dtm.exe

  • SMF Hero
  • ******
  • Posts: 5,465
Re: [Theme] SMFone
« Reply #192 on: May 18, 2005, 09:25:05 PM »
OIDanTheManIO
in index.template.php:
Code: [Select]
// 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

Offline spidernik84

  • Semi-Newbie
  • *
  • Posts: 21
Re: [Theme] SMFone
« Reply #193 on: May 19, 2005, 10:41:40 AM »
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

Offline A.M.A

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,133
  • Gender: Male
  • ..
Re: [Theme] SMFone
« Reply #194 on: May 19, 2005, 10:49:35 AM »
OIDanTheManIO
The code I posted above shows where:
Code: [Select]
<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 :)

Offline redone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,939
  • Gender: Male
Re: [Theme] SMFone
« Reply #195 on: May 19, 2005, 10:26:35 PM »
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.


Offline d3v

  • Jr. Member
  • **
  • Posts: 209
Re: [Theme] SMFone
« Reply #196 on: May 20, 2005, 10:39:16 PM »
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.


Offline A.M.A

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,133
  • Gender: Male
  • ..
Re: [Theme] SMFone
« Reply #197 on: May 21, 2005, 05:17:17 PM »
redone
attached .. the first one should used like this:
Code: [Select]
<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 :)

Offline redone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,939
  • Gender: Male
Re: [Theme] SMFone
« Reply #198 on: May 22, 2005, 03:00:29 PM »
thanks for the images and the notes about changing the theme to do what I need. Very much appreciated.


Offline d3v

  • Jr. Member
  • **
  • Posts: 209
Re: [Theme] SMFone
« Reply #199 on: May 22, 2005, 06:09:46 PM »
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) :