News:

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

Main Menu

[Theme] Saf Themes for 1.0.X

Started by forsakenlad, September 16, 2005, 02:31:17 PM

Previous topic - Next topic

hugocz

Hi again, i found a small bug in private message menu, when i recevie message i see double the quote/reply/remove etc see this pic below

any idea how to fix it ?

wizard13335

That is caused because the there is a bug in at least the RC2 version. The code says to look for the image in the /buttons directory, which doesn't exist. I fixed it by moving creating a /button directory and moving the buttons there, but now I have a piece of bold text next to the buttons. In your case, moving the images might cause problems with your other images, but I'm not sure.

Try asking forsakenlad. :)
Wizard-A world of spells and enchantments awaits you.
Have a cat? Share your pet with the world at Kitten Kare.

csc

Hi

I'm very sorry to raise this issue again, but for some reason I can't get the saf theme in SMF 1.1 RC2 running WITHOUT the whole header. I searched this thread but found no solution that worked for me.

Here's what I did: I removed the following code from index.template.php
                  <td class="header">';
       
        //The width definer
       
        if (!empty($settings['hide_name']))
                echo '&nbsp;';
        else
                echo $context['forum_name'];
       
        echo '

                   </td>
               </tr>
               <tr>
                   <td>
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
               <tr>';

        if (!empty($context['user']['avatar']))
      echo '<td class="headerdown">', $context['user']['avatar']['image'], '</td>';
   
        echo '
        <td class="headerdown" align="left" width="70%">';

   // 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 '.<br />';

      // Is the forum in maintenance mode?
      if ($context['in_maintenance'] && $context['user']['is_admin'])
         echo '
                     <b>', $txt[616], '</b><br />';

      // Are there any members waiting for approval?
      if (!empty($context['unapproved_members']))
         echo '
                     ', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';


      echo '
                     <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
                     <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 />';
   }

   echo '
              </td>';
       
        // The "key stats" box.
   echo '
                   <td class="headerdown" align="right" width="30%" style="padding-right: 8px;">
                     <b>', $context['common_stats']['total_posts'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $context['common_stats']['total_topics'], '</b> ', $txt[64], ' ', $txt[525], ' <span style="white-space: nowrap;"><b>', $context['common_stats']['total_members'], '</b> ', $txt[19], '</span><br />
                                                        ', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b>
              </td>
                   </tr>
                   </table>
                   </td>';
        echo '
               </tr>

               <tr>
                   <td class="bodytd">';

        // Show the menu here, according to the menu sub template.
        echo '
        <div align="center" style="padding-top: 4px;">
                ', template_menu(), '
        </div>';


However, I keep getting parse errors. Which code should I remove?

thanks and sorry again for raising this repeating question again!

MacGig

for what its worth, the odd behavior on this theme was found using apples safari browser... in firefox, it works fine.

great theme. Good job on it. Im using saf blue. ;)

forsakenlad

@csc:

Please remove this:

             <tr>
                   <td class="header">';
       
        //The width definer
       
        if (!empty($settings['hide_name']))
                echo '&nbsp;';
        else
                echo $context['forum_name'];
       
        echo '

                   </td>
               </tr>
               <tr>
                   <td>
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
               <tr>';

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

        echo '
        <td class="headerdown" align="left" width="70%">';

// 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 '.<br />';

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';


echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
<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 />';
}

echo '
           </td>';
       
        // The "key stats" box.
echo '
                   <td class="headerdown" align="right" width="30%" style="padding-right: 8px;">
<b>', $context['common_stats']['total_posts'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $context['common_stats']['total_topics'], '</b> ', $txt[64], ' ', $txt[525], ' <span style="white-space: nowrap;"><b>', $context['common_stats']['total_members'], '</b> ', $txt[19], '</span><br />
                                                        ', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b>
           </td>
                   </tr>
                   </table>
                   </td>


Quote from: macgeek on January 28, 2006, 01:14:37 AM
for what its worth, the odd behavior on this theme was found using apples safari browser... in firefox, it works fine.

great theme. Good job on it. Im using saf blue. ;)

I can't reproduce this problem as I don't have access to a mac anywhere near. The theme validates through XHTML and CSS specifications. Can you post a screenshot at least to give me an idea about the error? Thanks in advance ;)
Eren "forsakenlad" Yaşarkurt
SMF Friend & Former Team Member

vibez

@forsakenland

I'm trying to follow your guide here on integrating the forum into my own template.

http://www.simplemachines.org/community/index.php?topic=19638.0

I'm really struggling to edit the index.template.php correctly. Could you post a quick guide or an edited index.template.php file for the grey version. I would really appreciate this.

Cheers

forsakenlad

I can't as I don't know how your site is structured...
Eren "forsakenlad" Yaşarkurt
SMF Friend & Former Team Member

vibez

#407
Hi,

I'm not sure why you would need to know how my site is structured...

Is it not just a case of adding the code that links to the header/footer layers and deleting the existing header footer from your template?

Obviously there will need to be some tweaking to the index.template to make the site look pretty, but I can't even get past the 1st step of getting the layers addeded without getting xhtml errors

csc

@ forsakenlad

Thanks a lot! This did the trick. I got a new Problem now though, that COULD be related to the theme: users can only post once. If they try to post again they get the error "You already submitted this post! You might have accidently double clicked, or tried to refresh.". Have you heard of this issue in combination with this theme?

Thanks again for the quick help and congrats on this great theme!

forsakenlad

Quote from: vibez on January 30, 2006, 05:47:18 AM
Hi,

I'm not sure why you would need to know how my site is structured...

Is it not just a case of adding the code that links to the header/footer layers and deleting the existing header footer from your template?

Obviously there will need to be some tweaking to the index.template to make the site look pretty, but I can't even get past the 1st step of getting the layers addeded without getting xhtml errors

Can you please post the link to the site where you get the errors?

Quote from: csc on January 30, 2006, 10:25:47 AM
@ forsakenlad

Thanks a lot! This did the trick. I got a new Problem now though, that COULD be related to the theme: users can only post once. If they try to post again they get the error "You already submitted this post! You might have accidently double clicked, or tried to refresh.". Have you heard of this issue in combination with this theme?

Thanks again for the quick help and congrats on this great theme!

I am sure that this is not a theme related problem. Please search the forum for this, I recall it being discussed a several times before ;)
Eren "forsakenlad" Yaşarkurt
SMF Friend & Former Team Member

vibez

Can you please post the link to the site where you get the errors?

Quote from: csc on January 30, 2006, 10:25:47 AM

I contacted you on msm earlier but you seemed to disapear after a while ;)



Aqua

#411
I've been using the default theme for half a year now and just made your theme the default.  The server load has dropped by a few percent.  On a site that can get 90k+ page views in a day, that's a signifigant boost!

I'm running Mambo with SMF 1.0.5 wrapped.  Mambo theme is darkstar, SMF theme is now your orange theme.  I only needed to make two alterations.  I simply removed the orange header block and made the body background white.
Faster than a three legged squirrel

forsakenlad

#412
Quote from: vibez on January 30, 2006, 01:19:02 PM
Can you please post the link to the site where you get the errors?

Quote from: csc on January 30, 2006, 10:25:47 AM

I contacted you on msm earlier but you seemed to disapear after a while ;)


I have remembered it now though I will still need a link, please send a pm if you aren't comfortable with your URL being published here.

Quote from: Aqua on January 30, 2006, 04:06:38 PM
I've been using the default theme for half a year now and just made your theme the default.  The server load has dropped by a few percent.  On a site that can get 90k+ page views in a day, that's a signifigant boost!

I'm running Mambo with SMF 1.0.5 wrapped.  Mambo theme is darkstar, SMF theme is now your orange theme.  I only needed to make two alterations.  I simply removed the orange header block and made the body background white.

Glad to hear that, the decrease has probably happened because Saf is a lighter theme. It is even going to be lighter after I update it ;)
Eren "forsakenlad" Yaşarkurt
SMF Friend & Former Team Member

scip

Hello,

first of all - thanks a lot for this great template.

A couple of users of our new forum using the safblue theme are reporting errors with IE. The stylesheet and javascript files seems not to be loaded. The forum is completely unstyled, editor buttons are not woring and so on (Screenshot).

Unfortunately I cannot reproduce the behavior, it works for me, even with IE.

I tried to rename the styleseet file (to force IE to re-load it) but this didn't have any effect.

Does anyone here have an idea what I might do in order to fix the problem (and besides, what might be the problem)?

This is the forum in question: http://ferienforum.tokol.de/



Thanks in advance, scip

forsakenlad

This is probably happening because IE isn't loading the required files. I have never experienced this happen. But you should tell your users to refresh to page in order to solve the problem. There is nothing we can do on the theme-end :)
Eren "forsakenlad" Yaşarkurt
SMF Friend & Former Team Member

Stuart

Quote from: scip on February 01, 2006, 06:49:02 AM
Hello,

first of all - thanks a lot for this great template.

A couple of users of our new forum using the safblue theme are reporting errors with IE. The stylesheet and javascript files seems not to be loaded. The forum is completely unstyled, editor buttons are not woring and so on (Screenshot).

Unfortunately I cannot reproduce the behavior, it works for me, even with IE.

I tried to rename the styleseet file (to force IE to re-load it) but this didn't have any effect.

Does anyone here have an idea what I might do in order to fix the problem (and besides, what might be the problem)?

This is the forum in question: http://ferienforum.tokol.de/



Thanks in advance, scip

It's working fine overhere though  :D

Evansv

Have a small problem with the theme.  When you are in the messages section there are a few of the buttons that are missing.

Any ideas?

Stuart

Quote from: Evansv on February 01, 2006, 02:50:23 PM
Have a small problem with the theme.  When you are in the messages section there are a few of the buttons that are missing.

Any ideas?


Which buttons are missing ? Do you have a link to your website ?

MacGig


forsakenlad

You should try the 1.05 version. Also can you explain to me clarly the errors you are experiencing?
Eren "forsakenlad" Yaşarkurt
SMF Friend & Former Team Member

Advertisement: