Home · Links · Contact Us
Home arrow Forums
Home
Features
FAQ
Screen Shots
Modules
Themes
Demos
Documentation
Forums
Contact Us
Download
Purchase
Quotes

" ... I want to tell you that your thyme product is functional and valuable beyond words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."

" ... Thanks for such a complete project, its making my job much easier. ..."

" ... I have now deployed 4 different calendars and our users love them ... "

" ... Easy to install and use and a great look/design. ..."

" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."


  FAQFAQ    SearchSearch  RegisterRegister   Log inLog in 
[SOLVED] Week view differs from day and month view - why?

 
Post new topic   Reply to topic     Forum Index -> Joomla / Mambo Integration
View previous topic :: View next topic  
Author Message
fridge



Joined: 19 Jul 2008
Posts: 31

PostPosted: Fri Aug 01, 2008 4:04 pm    Post subject: [SOLVED] Week view differs from day and month view - why? Reply with quote

table.heading in week view puts all elements (previous, next and title) in the same cell. Week and month view seems to use functions.php found in thyme/themes/slate/ (slate being the template that I use) but no matter how I change it I can't seem to affect the week view that looks completely different from the other two.

Is that controlled by another file or am I simply making some simple rookie mistake?

Would be very grateful for some hints on how to resolve this as it looks mighty disturbing to me... Sad


Last edited by fridge on Sat Aug 02, 2008 1:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Fri Aug 01, 2008 5:56 pm    Post subject: Reply with quote

Hi,

They all use the same function. Without seeing it, this is a guess, but check the Header tab of your month view in Joomla Studio and look at the Align option. Then check the Week view Header -> Align and make sure it is set to the same thing. Let me know if that does not resolve it.
Back to top
View user's profile Send private message Visit poster's website
fridge



Joined: 19 Jul 2008
Posts: 31

PostPosted: Fri Aug 01, 2008 6:25 pm    Post subject: Reply with quote

Hi,
Thank you for the quick reply!
Unfortunately it's not just a question of different alignment but the actual output of the php is completely different. This is the code from functions.php (I have made some changes to it and added classes in order to align the table cells differently):

Code:
 echo("<center><table border='0' cellspacing='0' cellpadding='0' width='100%' class='heading' style='border-collapse: collapse; border-spacing: 0px; margin: 0;'>
             <tr valign='middle'>
             <td  class='heading_prev' style='margin: 0; text-align:right;'><font class='heading'>");
   echo($l);
   echo("</font>\n</td>\n");

   echo("<td  class='heading_text' style='margin: 0; text-align:center;'><font class='heading'>");
   echo($m);
   echo("</font>\n</td>\n");

   echo("<td  class='heading_next' style='margin: 0; text-align:left;'><font class='heading'>");
   echo($r);
   echo("</font>\n</td>\n");

 echo("</tr>\n</table>\n</center>\n");


And in month and day view, it turns out like expected:

Code:
<table border='0' cellspacing='0' cellpadding='0' width='100%' class='heading' style='border-collapse: collapse; border-spacing: 0px; margin: 0;'>
             <tr valign='middle'>
             <td  class='heading_prev' style='margin: 0; text-align:right;'><font class='heading'><a class='heading' href='index.php?option=com_thyme&amp;calendar=3&amp;category=0&amp;m=7&amp;y=2008&amp;Itemid=58&amp;v=m'><img src='../images/arrow_prev_big.png' border=0 alt='Föregående'></a> </font>
</td>
<td  class='heading_text' style='margin: 0; text-align:center;'><font class='heading'>Augusti 2008</font>

</td>
<td  class='heading_next' style='margin: 0; text-align:left;'><font class='heading'> <a class='heading' href='index.php?option=com_thyme&amp;calendar=3&amp;category=0&amp;m=9&amp;y=2008&amp;Itemid=58&amp;v=m'><img src='../images/arrow_next_big.png' border=0 alt='Nästa'></a> </font>
</td>
</tr>
</table>


But... In week view, something completely different occurs:

Code:
<table border='0' cellspacing='0' cellpadding='0' width='100%' class='heading' style='border-collapse: collapse; border-spacing: 0px; margin: 0;'>
             <tr valign='middle'>
             <td  class='heading_prev' style='margin: 0; text-align:right;'><font class='heading'><a class='heading' href='index.php?option=com_thyme&amp;calendar=3&amp;category=0&amp;d=25&amp;m=7&amp;y=2008&amp;Itemid=58&amp;v=w'><img src='../images/arrow_prev_big.png' border=0 alt='Föregående'></a>   <a class='heading' href='index.php?option=com_thyme&amp;calendar=3&amp;category=0&amp;d=8&amp;m=8&amp;y=2008&amp;Itemid=58&amp;v=w'><img src='../images/arrow_next_big.png' border=0 alt='Nästa'></a>  28 Juli - 3 Augusti 2008</font>
</td>

<td  class='heading_text' style='margin: 0; text-align:center;'><font class='heading'></font>
</td>
<td  class='heading_next' style='margin: 0; text-align:left;'><font class='heading'></font>
</td>
</tr>
</table>


As you can see - in week view, all content i squeezed into the first cell and the two following are left empty. But it still uses the new classes I set for the table cells... I hope this makes some kind of sense to you, I really don't understand it.
Back to top
View user's profile Send private message
fridge



Joined: 19 Jul 2008
Posts: 31

PostPosted: Sat Aug 02, 2008 1:37 pm    Post subject: [SOLVED] Week view differs from day and month view - why? Reply with quote

Ian, very sorry - I'm a complete idiot, you were completely right!

When you said check the alignment I was very quick and sent you the code (as you can see from my first reply) that was generated but I didn't read properly and missed that i have to check the alignment inside Joomla Studio and sure enough... In the module for week I had the heading for week view set to align left and the others to center. When I changed the week view to center as well everything is working like it should.

Thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Joomla / Mambo Integration All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
© 2005 eXtrovert software unless otherwise noted. All rights reserved.
Portions © 2004 Ben Brown. All rights reserved.
Trademarks are property of their respective owners.