Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Classic Themes => Topic started by: A.M.A on January 06, 2005, 06:04:09 PM

Title: [Theme] defaultXT for SMF 1.0.4
Post by: A.M.A on January 06, 2005, 06:04:09 PM
defaultXT theme!

Samples

Download

Notes
1.This theme is like the original default one with the following enhancements:
- ability to display/hide the stats box.
- collapse Info Center items.
- ability to use a quick topic view from the message index, like print topic.
- ability to preview topic in the message index.
- hide/display author information in topic display.
- collapse boards in search.
2.The theme and its images are free as long as it is used for SMF.

*- If you have installed old version of this theme, please read the changes (http://www.simplemachines.org/community/index.php?topic=31935.0)!
Title: Re: [Theme]defaultXT for SMF 1.0
Post by: Kirby on January 06, 2005, 07:15:08 PM
Nice job A.M.A.! Especially love the background images. I wanted to make an super-modded default theme sometime too, with combos from things in Tips & Tricks and theme porting of some YaBB SE Mods :D
Title: Re: [Theme]defaultXT for SMF 1.0
Post by: bloc on January 06, 2005, 08:24:07 PM
Nice extensions to the default theme - especially the print preview/topic hover preview. Saves having to wait for the display window to download.  :)

But I am not too sure about the upshrinking of author section in display view. It kind of seem a bit cumbersome to upshrink one and one..and that it doesn't remember the state. To me it would be more logical to have a upshrink that shrunk all authors - and probably globally too..since storing upshrink values for every thread/post would be just crazy.. ;) But thats just me though.
Title: Re: [Theme]defaultXT for SMF 1.0
Post by: A.M.A on January 06, 2005, 09:22:52 PM
Thanks Kirby ..
cant wait for your super-modded theme.

Thanks Bloc ..
your idea sounds good and logical. I'll see what I can come up with.
Title: Re: [Theme]defaultXT for SMF 1.0
Post by: Nidoking on January 07, 2005, 12:38:14 AM
Wow! You make the best skins for SMF! This skin is awesome!
The only thing I would have liked to see is the mini-profile contents centered, but I can easily modify that myself.
Title: Re: [Theme]defaultXT for SMF 1.0
Post by: andrea on January 07, 2005, 01:32:28 AM
Hear hear. Indeed great work. As always.
Title: Re: [Theme]defaultXT for SMF 1.0
Post by: klumy on January 07, 2005, 04:10:20 AM
good improvements
Title: Re: [Theme]defaultXT for SMF 1.0
Post by: _complex on January 07, 2005, 04:11:40 AM
Nice Theme.. Yet again ;D
Title: Re: [Theme]defaultXT for SMF 1.0
Post by: Oldiesmann on January 07, 2005, 11:03:08 AM
Another nice one...
Title: Re: [Theme]defaultXT for SMF 1.0
Post by: A.M.A on January 09, 2005, 08:16:08 AM
Thanks all for your comments .. glad you like it.
Title: Re: [Theme]defaultXT for SMF 1.0
Post by: Elijah Bliss on January 12, 2005, 09:54:53 PM
Excellent! I dig the functionality features, great work!
Title: Re: [Theme]defaultXT for SMF 1.0.1
Post by: A.M.A on January 14, 2005, 02:09:21 PM
Updated to 1.0.1
If you need to apply the modifications manfully .. then edit

- BoardIndex.template.php
// Version: 1.0; BoardIndex
replace with:
// Version: 1.0.1; BoardIndex

<div style="float: left; width: 50%;">', $txt[490], ': <b>', $modSettings['totalTopics'], '</b></div>', $txt[94], ' ', $txt[95], ': <b>', $modSettings['totalMessages'], '</b><br />', !empty($context['latest_post']) ? '
replace with:
<div style="float: left; width: 50%;">', $txt[490], ': <b>', $modSettings['totalTopics'], '</b></div>', $txt[489], ': <b>', $modSettings['totalMessages'], '</b><br />', !empty($context['latest_post']) ? '

', $txt[94], ' ', $txt[19], ': <b><a href="', $scripturl, '?action=mlist">', $modSettings['memberCount'], '</a></b><br />
replace with:
', $txt[488], ': <b><a href="', $scripturl, '?action=mlist">', $modSettings['memberCount'], '</a></b><br />

- Profile.template.php
// Version: 1.0; Profile
replace with:
// Version: 1.0.1; Profile

if ($post['can_delete'] && ($post['can_mark_notify'] || $post['can_mark_notify']))
with:
if ($post['can_delete'] && ($post['can_mark_notify'] || $post['can_reply']))
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: spankee on January 19, 2005, 12:19:01 AM
Awesome theme!
however, I would appreciate any help to add an "Advanced Search" link underneath the quick search form.
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: Midgard on January 19, 2005, 05:07:45 AM
Wow! Nice buttons, great.

/me is so happy! :)
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: A.M.A on January 19, 2005, 05:36:12 PM
Elijah Bliss
thanks.

spankee
I removed it to make space and it is already available by clicking on the search button .. but I'll show you how if you still need it.

Midgard
thanks.
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: spankee on January 19, 2005, 05:57:39 PM
Yah, I was wondering  how it would affect the layout. But if you could show me how so I could check it out myself I would really apreciate it.
Thanks
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: A.M.A on January 19, 2005, 06:18:24 PM
in index.template.php look for:
<input type="submit" name="submit" value="', $txt[182], '" style="width: 8ex;" />
add after:
&nbsp;<a href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>

two times.
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: spankee on January 19, 2005, 08:56:21 PM
Thanks that worked great. 
Can you also show me how to make the text smaller and positioned to the right?
this worked for making the text smaller, is that ok?
&nbsp;<a class="smalltext" href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
Patrick
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: suren on January 20, 2005, 09:30:12 AM
Quote from: Bloc on January 06, 2005, 08:24:07 PM
But I am not too sure about the upshrinking of author section in display view. It kind of seem a bit cumbersome to upshrink one and one..and that it doesn't remember the state. To me it would be more logical to have a upshrink that shrunk all authors - and probably globally too..since storing upshrink values for every thread/post would be just crazy.. ;)

any idea's on how to implement it :)
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: bloc on January 20, 2005, 10:46:52 AM
Well, I dont know if AMA has some ideas...but for it work like I said , one would have to have all the authors in the same "container" somehow. If it should hide at once that is. But If one could take a roundtrip to server like the category upshrink is done, then it could perhaps work.
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: A.M.A on January 20, 2005, 04:30:21 PM
This will add an option in your profile, when checked all authors info in display will be hidden by default with the ability to show them.

1- in Settings.template.php look for:
array(
'id' => 'keystats_show',
'label' => 'Show the key stats box.',
),

add after:
array(
'id' => 'toggle_all_authors',
'label' => 'Hide all authors in display.',
),


2- in Profile.template.php look for:
<label for="keystats_show"><input type="checkbox" name="default_options[keystats_show]" id="keystats_show" value="1"', !empty($context['member']['options']['keystats_show']) ? ' checked="checked"' : '', ' class="check" /> Show the key stats box.</label>
</td>

add after:
</tr><tr>
<td colspan="2">
<input type="hidden" name="default_options[toggle_all_authors]" value="0" />
<label for="toggle_all_authors"><input type="checkbox" name="default_options[toggle_all_authors]" id="toggle_all_authors" value="1"', !empty($context['member']['options']['toggle_all_authors']) ? ' checked="checked"' : '', ' class="check" /> Hide all authors in display.</label>
</td>


3- in Display.template.php look for:
<td align="left" valign="middle">[<a id="', $message['href'], '_link" href="javascript: void(0);" onclick="toggle(this, \'', $message['href'], '\');" style="text-decoration: none;">-</a>]<a href="', $message['href'], '"><img src="', $settings['images_url'], '/post/' . $message['icon'] . '.gif" alt="" border="0" /></a></td>
replace with:
                             ';
// Hide authors.
if (!empty($options['toggle_all_authors']))
    echo '
<td align="left" valign="middle">[<a id="', $message['href'], '_link" href="javascript: void(0);" onclick="toggle(this, \'', $message['href'], '\');" style="text-decoration: none;">+</a>]<a href="', $message['href'], '"><img src="', $settings['images_url'], '/post/' . $message['icon'] . '.gif" alt="" border="0" /></a></td>
<script language="JavaScript1.2" type="text/javascript"><!--
toggle(\'', $message['href'], '\', \'', $message['href'], '\')
// --></script>';
  else
  {
    echo '
<td align="left" valign="middle">[<a id="', $message['href'], '_link" href="javascript: void(0);" onclick="toggle(this, \'', $message['href'], '\');" style="text-decoration: none;">-</a>]<a href="', $message['href'], '"><img src="', $settings['images_url'], '/post/' . $message['icon'] . '.gif" alt="" border="0" /></a></td>';
  }
echo '
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: loudog on February 04, 2005, 05:24:37 PM
Looks good, however for some reason when I try to download any of your themes I get a bad header prompt, and winzip won't open the archive?
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: A.M.A on February 04, 2005, 06:01:39 PM
try using: http://www.7-zip.org
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: ryanbsoftware on March 08, 2005, 02:15:19 AM
Quote from: A.M.A on February 04, 2005, 06:01:39 PM
try using: http://www.7-zip.org

you wouldn't happen to have a button generator to make more buttons for this theme would you?
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: A.M.A on March 08, 2005, 05:11:52 PM
Yes .. try using Webby's http://www.m2mdesign.nl/buttongenerator/
though not the same font effect.
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: anunlike on March 15, 2005, 12:13:57 AM
I really like this theme, that is the changes from the original theme now on this one.

I was wondering if I could get some help with, since it's now standard on this theme for the items in the Info Center to be collapsable, the coding to make any items added to the Info Center collapsable too.

I installed Users OnLine Today on this theme, but I can't figure out the coding in order to make it collapsab le. So, I've got all the items collapsable but this one. It would be great to be able to do the same to this mod.


Thanks.
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: A.M.A on March 15, 2005, 05:19:05 AM
in Boardindex.template.php look for:
var bars = ["recent", "calendar", "members", "sp1", "users", "pm", "login"];
replace with:
var bars = ["recent", "calendar", "members", "sp1", "users", "pm", "login", "userson"];

look for:
<td class="catbg" colspan="2">', $txt['158bis'], ' ( ', $context['num_users_today'], ' ', $context['num_users_today'] == 1 ? $txt['user'] : $txt['users'], ' )</td>
</tr><tr>

replace with:
<td class="catbg" colspan="2"><a href="javascript:boardIndexCollapse(\'userson\');"><img src="', $settings['images_url'], '/collapse1.gif" alt="" border="0" id="collapse_userson" /></a>', $txt['158bis'], ' ( ', $context['num_users_today'], ' ', $context['num_users_today'] == 1 ? $txt['user'] : $txt['users'], ' )</td>
</tr><tr id="row_userson">
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: anunlike on March 15, 2005, 11:56:07 AM
Thanks.

Hmm...
I put all of that in (var bars and all) and checked it all and it doesn't want to collapse. I can't figure it out.

   // "Users online Today"
   echo '
   <tr>
<td class="catbg" colspan="2"><a href="javascript:boardIndexCollapse(\'userson\');"><img src="', $settings['images_url'], '/collapse1.gif" alt="" border="0" id="collapse_userson" /></a>', $txt['158bis'], ' ( ', $context['num_users_today'], ' ', $context['num_users_today'] == 1 ? $txt['user'] : $txt['users'], ' )</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['158bis'], '" border="0" /></td>
      <td class="windowbg2" width="100%"><span class="smalltext">', $context['user_today'], '</span></td>
   </tr>';

Is there anything else that I should check that could prevent it from collapsing and expanding?
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: A.M.A on March 15, 2005, 10:42:15 PM

   // "Users online Today"
   echo '
   <tr>
<td class="catbg" colspan="2"><a href="javascript:boardIndexCollapse(\'userson\');"><img src="', $settings['images_url'], '/collapse1.gif" alt="" border="0" id="collapse_userson" /></a>', $txt['158bis'], ' ( ', $context['num_users_today'], ' ', $context['num_users_today'] == 1 ? $txt['user'] : $txt['users'], ' )</td>
   </tr><tr id="row_userson">
      <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['158bis'], '" border="0" /></td>
      <td class="windowbg2" width="100%"><span class="smalltext">', $context['user_today'], '</span></td>
   </tr>';

modfiy the <tr> as above and it should work.
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: raedzaro on March 21, 2005, 11:17:23 AM
Thank you for this theme, but sorry as its in English I used the buttons for my Arabic Forum....

You can see it at http://jordanforum.com/forum/
Title: Re: [Theme] defaultXT for SMF 1.0.1
Post by: ryanbsoftware on March 21, 2005, 12:05:06 PM
Quote from: A.M.A on March 08, 2005, 05:11:52 PM
Yes .. try using Webby's http://www.m2mdesign.nl/buttongenerator/
though not the same font effect.

i don't even see a simular button, i need a donate button, please if anyone can do this, thanks. ;)
Title: Re: [Theme] defaultXT for SMF 1.0.3
Post by: MicroTechXP on May 14, 2005, 03:56:15 PM
Nice theam... I have a question how can I access the Arcade and Shop from the Main Menu by the Calender and the Admain and all that?
Title: Re: [Theme] defaultXT for SMF 1.0.3
Post by: spidernik84 on June 08, 2005, 02:27:00 PM
Hi ama, i'm actually using this theme on my forum.
Could you please make the button templates available? I would like to translate them in italian ;)

thx
Title: Re: [Theme] defaultXT for SMF 1.0.3
Post by: A.M.A on June 08, 2005, 06:44:38 PM
I used one of the  nuvola Button Sets:
http://www.simplemachines.org/community/index.php?topic=18760.0