News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

[Theme] defaultXT for SMF 1.0.4

Started by A.M.A, January 06, 2005, 06:04:09 PM

Previous topic - Next topic

A.M.A

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 '
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

loudog

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?

A.M.A

Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

ryanbsoftware

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?

A.M.A

Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

anunlike

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.

A.M.A

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">
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

anunlike

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?

A.M.A


   // "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.
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

raedzaro

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/

ryanbsoftware

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. ;)

MicroTechXP

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?

spidernik84

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

A.M.A

Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

Advertisement: