Sitra Theme for 1.0.x and 1.1

Started by Mystica, April 08, 2005, 05:21:42 AM

Previous topic - Next topic

Jan.S.

Can we upgrade to 1.0.5 wiht this theme?

Mystica

The theme should work fine with 1.0.5
~ there's nothing wrong with me, this is how I'm supposed to be ~

rbdesign

hum.. me again.
I'm now trying to get the "integrated chat" mod to work. It's installed, but I can't see the "Chat" option in the menu.

thanks!
Martin

rbdesign

After many hours, I managed to get the Chat thing in there, but there's no separator.
This is the code I had to enter in index.template.php

// Integrated Chat Mod Icon
   if (!$context['user']['is_guest'])
      echo '
            <a href="', $scripturl, '?action=chat" target="_blank">', ($settings['use_image_buttons'] ? ' <img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['chatAlt'] . '" target="_blank" style="margin: 2px 0;" border="0" />' : $txt['chatAlt']), '</a>', $context['menu_separator'];
         
   
I'm thinking it might have to do with the "menu_seperator thing not being right, but clueless as I am with all this, I'm just extatic I actually managed to get "menu" to appear at all! :)

Martin

Mystica

Great that you got the button to show up :)
I'm using a different seperator in this theme, just use this and it'll work:


// Integrated Chat Mod Icon
if (!$context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=chat" target="_blank">', ($settings['use_image_buttons'] ? ' <img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['chatAlt'] . '" target="_blank" style="margin: 2px 0;" border="0" />' : $txt['chatAlt']), '</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />';
~ there's nothing wrong with me, this is how I'm supposed to be ~

rbdesign

Great!! thank you very much!

Vi31

WOuld you be able to help me make some mods work in this theme?  Specifically the shop, enhanced quick reply, zodiac signs and location.  Please let me know, I would greatly appreciate the help.

Menni

Quote from: Mystica on April 23, 2005, 07:23:28 AM
yes, it's not in the theme. if you want to add it back, in messageindex.template.php, add this in line 341:


// If they are logged in, and the mark read buttons are enabled..
if ($context['user']['is_logged'] && $settings['show_mark_read'])
$buttonArray[] = '<a href="' . $scripturl . '?action=markasread;sa=board;board=' . $context['current_board'] . '.0">' . ($txt[300]) . '</a><img src="' . $settings['images_url'] . '/mensep2.gif" border="0" />';

when I do this all messages come new.
I want to put "mark as read" in every category.How I do that? What Am I doing wrong?

Mystica

Quote from: Vi31 on September 09, 2005, 02:40:48 AM
WOuld you be able to help me make some mods work in this theme?  Specifically the shop, enhanced quick reply, zodiac signs and location.  Please let me know, I would greatly appreciate the help.

Could you email me the .mod or .xml files of these mods? I'll have a look at them and see what has to be changed to make them work with the theme.
~ there's nothing wrong with me, this is how I'm supposed to be ~

Mystica

Quote from: Menni on September 09, 2005, 10:44:24 AM
when I do this all messages come new.
I want to put "mark as read" in every category.How I do that? What Am I doing wrong?

It works fine for me. I've attached the messageindex file with these changes, try if it works with this.
~ there's nothing wrong with me, this is how I'm supposed to be ~

Menni

Now it is working great. I did something wrong earlier. :-\

Would you tell me what I should do if I want to remove [help]-button from main?

Mystica

The buttons are in the index.template.php, right down at the bottom of the file.
Just remove this line to remove the help button:

<a href="', $scripturl, '?action=help" target="_blank">',$txt[119],'</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />
~ there's nothing wrong with me, this is how I'm supposed to be ~

Menni

How about the Chat? What should I do to get chat on sitra?

Menni

#113
I installed the Pjirc integrated chat mod, but nothing seems to "happen".

Mystica

You will have to modify the theme files to include the mod. Try adding this to the navigation buttons at the end of index.template.php


echo '
<a href="', $scripturl, '?action=chat">Chat</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />';
~ there's nothing wrong with me, this is how I'm supposed to be ~

Menni

When i go to address http://www.mychatboard.net/forum/chat.php the chat is working, but I'm "guest" . I need "button" too for chat. How I do that?

Menni

This is the end on index.template. What should I do?
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile">',$txt[79],'</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />';

// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">',$txt['calendar24'],'</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />';

// The [Gallery]!
    echo '
            <a href="http://www.***********.net/galleria/index.php?cat=">Galleria</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />';

// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '
<a href="', $scripturl, '?action=login">',$txt[34],'</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />
<a href="', $scripturl, '?action=register">',$txt[97],'</a>';
}
// Otherwise, they might want to [logout]...
else
echo '
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', $txt[108], '</a>';
echo '
</div>';
}

?>

Mystica

I took a look at the chat mod, you'll have to do these changes:
Copy the chatIcon.gif into the images folder of the sitra theme.
Open boardindex.template.php, go to line 392 and add this:

// Chat Stats
echo '
<tr>
<td class="catbg" colspan="2">', $txt['chatStats'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=chat">
<img src="', $settings['images_url'], '/chatIcon.gif" alt="', $txt['chatAlt'], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<BR>There are currently <script src="http://www.everywherechat.com/users.asp?room=', $modSettings['chatRoomName'], '"></script> people talking in the chat room.<BR>
<script src="http://www.everywherechat.com/members.asp?room=', $modSettings['chatRoomName'], '"></script>
<span class="smalltext">';


Open index.template.php, go to line 428 and add this:


// Integrated Chat Mod Icon
if (!$context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=chat" target="_blank">', ($txt['chatAlt']), '</a><img src="' . $settings['images_url'] . '/mensep.gif" border="0" />';


These are the instructions from the chat mod, so it should work.
~ there's nothing wrong with me, this is how I'm supposed to be ~

Menni

Thanks Mystica. Your the best. :D

Vi31

Mystica,
I e-mailed you the mods I wanted to implement on my forum with your fabulous theme.  Did you receive it?  Just checking if you did, no rush on the help :)

Vi

Advertisement: