Calendar - how can I remove the 2 small months on left side

Started by TheDragon, October 21, 2009, 12:12:50 PM

Previous topic - Next topic

Matthew K.

My domains are down right now, so I can't really look at the files to help you out.

I'll download SMF onto my computer and get back to you.

TheDragon

ty
also -for all the other users
would it not make more sense to have the months
BEFORE and AFTER the current month?


Matthew K.

Quote from: TheDragon on October 21, 2009, 05:59:27 PM
ty
also -for all the other users
would it not make more sense to have the months
BEFORE and AFTER the current month?

What do you by your question? (January, February - Current, March for example. Is that what you mean?)

TheDragon

right now, it shows October in the BIG display
and October/November in the small displays
duh?
should be September and November in the small displays??

Matthew K.

Quote from: TheDragon on October 21, 2009, 10:18:52 PM
right now, it shows October in the BIG display
and October/November in the small displays
duh?
should be September and November in the small displays??

I think it's nice to see past and future mini calendars, one thing you could do is put them next to each other with arrows that switch calendars,

January < February > March

You could incorporate a type of image gallery, and instead of putting an img's code in, you could put the HTML/PHP of the Calendar in, for the nice affect!

Matthew K.

Clarifying on my post,

The month you were on, would take up the majority of the width lets just say 60 percent, and each of the others would take up 20%.

Quote from: Labradoodle-360 on October 21, 2009, 10:31:03 PM
Quote from: TheDragon on October 21, 2009, 10:18:52 PM
right now, it shows October in the BIG display
and October/November in the small displays
duh?
should be September and November in the small displays??

I think it's nice to see past and future mini calendars, one thing you could do is put them next to each other with arrows that switch calendars,

January < February > March

You could incorporate a type of image gallery, and instead of putting an img's code in, you could put the HTML/PHP of the Calendar in, for the nice affect!

TheDragon

think you all got confused - I am not asking for a new idea
I am saying the existing code is wrong - I have an unmodded theme (default)
here is a SS



I will try to fix the SMF code and report back
(if I am able  - surely there are others here smarter than me  :P )

thanks for all feedback !

Matthew K.

I think the point of that may be, if you switch viewing months, that you can still see your current month.

But it does seem rather pointless.
Quote from: TheDragon on October 22, 2009, 08:40:44 AM
think you all got confused - I am not asking for a new idea
I am saying the existing code is wrong - I have an unmodded theme (default)
here is a SS



I will try to fix the SMF code and report back
(if I am able  - surely there are others here smarter than me  :P )

thanks for all feedback !

TheDragon

QuoteI think the point of that may be, if you switch viewing months, that you can still see your current month.

nope - no matter what month you have on the big side, the top left one is still a repeat
after further review
I am sure this is a bug

Yahmez

Odd. In mine it shows 3 small calenders to the left with the same month present in the main view also in the center of the small three. Working just as you suggested that it should.

TheDragon

hmmm... let's both check for options set somewhere
I have the default theme

Yahmez

Me too. Version 2.0 RC1.2 The only calendar mod I use is the colored calendar frame, and I just checked the edits it performs.... nothing that would effect the layout as noted above. Calendar settings attached.

TheDragon

hmmm . . . how odd we have different views
while yours is 'better'
I like the one from v1.10 even better
(NO small calendars on the left at all)
might be easier to edit them out then to fix the correct month
will play with it in my spare time




JimM

Is this issue solved or do you still require assistance?  Were you able to get this the way you want it?
Jim "JimM" Moore
Former Support Specialist

TheDragon


Aaarrghh

I too would like to dispense with the small calendars on the left side, so I can put the calendar in an i-frame in a web page. Right now, the calendar with the small ones on the left is just too wide and won't shrink enough.

TheDragon

hmmm . . .  this is odd
one of my posts from last fall is missing
as is a reply from SMF STAFF wherein they admitted it was a bug
(not big deal)
they even sent me a patch to fix it
(which I was too lazy to use - as the issue does not appear now in 2010)
as here is the problem
whenever the user is (was) in the same year as the 1st year in the calendar range
the left side showed 3 small months
but instead of  last, now, next months
it showed last, last, next

I too prefer no side (small months)


*that caused my left side to have only 2 calenders vs

Aaarrghh

Quote from: Aaarrghh on March 16, 2010, 09:12:08 AM
I too would like to dispense with the small calendars on the left side, so I can put the calendar in an i-frame in a web page. Right now, the calendar with the small ones on the left is just too wide and won't shrink enough.

Nevermind, I figured it out. Deleted a couple things in calendar.php, and in Calendar.template.php I changed the left margin from 220px to zero. Works OK in IE8 And Firefox 3.6.

         <div id="main_grid" style="', $context['browser']['is_ie'] && !$context['browser']['is_ie8'] ? 'float: ' . ($context['right_to_left'] ? 'right; padding-right' : 'left; padding-left') . ': 20px;' : 'margin-' . ($context['right_to_left'] ? 'right' : 'left') . ': 0px; ', '">



Thanks.

Aaarrghh

(I'm still in RC2)

Actually there was no need to mess with Calendar.php.

In Styles/Default/Calendar.template

find these lines:

   echo '
      <div id="calendar">
         <div id="month_grid">
            ', template_show_month_grid('prev'), '
            ', template_show_month_grid('current'), '
            ', template_show_month_grid('next'), '
         </div>
         <div id="main_grid" style="', $context['browser']['is_ie'] && !$context['browser']['is_ie8'] ? 'float: ' . ($context['right_to_left'] ? 'right; padding-right' : 'left; padding-left') . ': 20px;' : 'margin-' . ($context['right_to_left'] ? 'right' : 'left') . ': 220px; ', '">
            ', $context['view_week'] ? template_show_week_grid('main') : template_show_month_grid('main');

Replace them with these:

   echo '
      <div id="calendar">

         <div id="main_grid" style="', $context['browser']['is_ie'] && !$context['browser']['is_ie8'] ? 'float: ' . ($context['right_to_left'] ? 'right; padding-right' : 'left; padding-left') . ': 20px;' : 'margin-' . ($context['right_to_left'] ? 'right' : 'left') . ': 0px; ', '">
            ', $context['view_week'] ? template_show_week_grid('main') : template_show_month_grid('main');

Advertisement: