Module: CalendarView

hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Mon, 2010-03-01 21:08

The following is current html: january and february (for space issues I left out the rest)

Quote:
<table><tr><td>
<table class="calendar">
<td class="title" colspan="7" align="center"><a href="/index.php/calendarview/month/2010/-1/1">January&nbsp;2010</a></td></tr>
<tr><th abbr="Monday">Mo</th><th abbr="Tuesday">Tu</th><th abbr="Wednesday">We</th><th abbr="Thursday">Th</th><th abbr="Friday">Fr</th><th abbr="Saturday">Sa</th><th abbr="Sunday">Su</th></tr>
<tr><td colspan="4">&nbsp;</td><td class="day">1</td><td class="day">2</td><td class="day">3</td></tr>
<tr><td class="day">4</td><td class="day">5</td><td class="day">6</td><td class="day">7</td><td class="day">8</td><td class="day">9</td><td class="day">10</td></tr>
<tr><td class="day">11</td><td class="day">12</td><td class="day">13</td><td class="day">14</td><td class="day">15</td><td class="day">16</td><td class="day">17</td></tr>
<tr><td class="day">18</td><td class="day">19</td><td class="day">20</td><td class="day">21</td><td class="day">22</td><td class="day">23</td><td class="day">24</td></tr>
<tr><td class="day">25</td><td class="day">26</td><td class="day">27</td><td class="day">28</td><td class="day">29</td><td class="day">30</td><td class="day">31</td></tr>
</table>
</td>
<td>

<table class="calendar">
<td class="title" colspan="7" align="center"><a href="/index.php/calendarview/month/2010/-1/2">February&nbsp;2010</a></td></tr>
<tr><th abbr="Monday">Mo</th><th abbr="Tuesday">Tu</th><th abbr="Wednesday">We</th><th abbr="Thursday">Th</th><th abbr="Friday">Fr</th><th abbr="Saturday">Sa</th><th abbr="Sunday">Su</th></tr>
<tr><td class="day">1</td><td class="day">2</td><td class="day">3</td><td class="day">4</td><td class="day">5</td><td class="day">6</td><td class="day">7</td></tr>
<tr><td class="day">8</td><td class="day">9</td><td class="day">10</td><td class="day">11</td><td class="day">12</td><td class="day">13</td><td class="day">14</td></tr>
<tr><td><a href="/index.php/calendarview/day/2010/-1/2/15">15</a></td><td class="day">16</td><td class="day">17</td><td class="day">18</td><td class="day">19</td><td class="day">20</td><td class="day">21</td></tr>
<tr><td class="day">22</td><td class="day">23</td><td class="day">24</td><td class="day">25</td><td class="day">26</td><td class="day">27</td><td class="day">28</td></tr>
</table>
</td>

Alternative html as stand-alone tables (global table removed entirely (bold text above))(note new id bolded below):

Quote:
<table class="calendar" id="calendar-grid">
<td class="title" colspan="7" align="center"><a href="/index.php/calendarview/month/2010/-1/1">January&nbsp;2010</a></td></tr>
<tr><th abbr="Monday">Mo</th><th abbr="Tuesday">Tu</th><th abbr="Wednesday">We</th><th abbr="Thursday">Th</th><th abbr="Friday">Fr</th><th abbr="Saturday">Sa</th><th abbr="Sunday">Su</th></tr>
<tr><td colspan="4">&nbsp;</td><td class="day">1</td><td class="day">2</td><td class="day">3</td></tr>
<tr><td class="day">4</td><td class="day">5</td><td class="day">6</td><td class="day">7</td><td class="day">8</td><td class="day">9</td><td class="day">10</td></tr>
<tr><td class="day">11</td><td class="day">12</td><td class="day">13</td><td class="day">14</td><td class="day">15</td><td class="day">16</td><td class="day">17</td></tr>
<tr><td class="day">18</td><td class="day">19</td><td class="day">20</td><td class="day">21</td><td class="day">22</td><td class="day">23</td><td class="day">24</td></tr>
<tr><td class="day">25</td><td class="day">26</td><td class="day">27</td><td class="day">28</td><td class="day">29</td><td class="day">30</td><td class="day">31</td></tr>
</table>

<table class="calendar" id="calendar-grid">
<td class="title" colspan="7" align="center"><a href="/index.php/calendarview/month/2010/-1/2">February&nbsp;2010</a></td></tr>
<tr><th abbr="Monday">Mo</th><th abbr="Tuesday">Tu</th><th abbr="Wednesday">We</th><th abbr="Thursday">Th</th><th abbr="Friday">Fr</th><th abbr="Saturday">Sa</th><th abbr="Sunday">Su</th></tr>
<tr><td class="day">1</td><td class="day">2</td><td class="day">3</td><td class="day">4</td><td class="day">5</td><td class="day">6</td><td class="day">7</td></tr>
<tr><td class="day">8</td><td class="day">9</td><td class="day">10</td><td class="day">11</td><td class="day">12</td><td class="day">13</td><td class="day">14</td></tr>
<tr><td><a href="/index.php/calendarview/day/2010/-1/2/15">15</a></td><td class="day">16</td><td class="day">17</td><td class="day">18</td><td class="day">19</td><td class="day">20</td><td class="day">21</td></tr>
<tr><td class="day">22</td><td class="day">23</td><td class="day">24</td><td class="day">25</td><td class="day">26</td><td class="day">27</td><td class="day">28</td></tr>
</table>

march

April

May
etc

CSS:

Quote:
#calendar-grid {
position: relative;
align: center;
float: left;
margin: 10px 20px 10px 20px
/*
width: 120px;

*/
}

Note:
1) i am not 100% sure that the div is legit for table??? I can test the code for you when available. May need to be <div id="calender-grid"><table></table></div>
2) CSS needs adjusting once displayed in the relevant theme, I can fix it to work with wind... when code is there. Thats probably easier than assuming too much
3) Maybe easier if the module grabs color etc from theme - I can fix that when code is ready

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Mon, 2010-03-01 21:20

calendar grid might even fit within the same grid as albums and photos. If so that div can be added in the theme css where the album grid is controlled. Changes to the album grid view will be applied to calendar grid. The more changed in one place, the less code

btw. This module is brilliant

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Mon, 2010-03-01 22:33

Also horizontal lines should be removed from table for floats to work.

Concerning top box. I recommend it's removed for Css control instead.

The search form:
add an id to those as well, so they can be moved and themed and displayed inline etc. They should probably have seperate ids...
- one for user field
- one for year field
- one for "go" field

This way you give full layout control to themers as supposed.

Don't mean to be a hazzle, but this is a lot of work to everyone if not implemented this way...

Another thing, it seems the collapsable links below logo does not display in your modules. Why is that?

all the best
HB - http://www.image.agentura.dk

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2010-03-04 21:25

@mamouneyya -- I've re-written the code responsible for determining month and day names. Does this translate any better?

@hebhansen -- This should cover your CSS requests for the calendar and the top search box. If there's anything else I can do to make this better, please let me know.

hebhansen wrote:
Another thing, it seems the collapsable links below logo does not display in your modules. Why is that?

You mean the Home / Add / Options / etc menus? You should see the Home and (if you're logged in as an administrator) the admin menus. The other's don't display because their not relevant (you can't upload new photos because you're not in an album, you can edit photo details because a calendar is not a photo, etc).

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Wed, 2010-03-03 07:57

Rwatcher: is this a challenge for you? Post in the thread if you work on it. Otherwise someone else might
http://gallery.menalto.com/node/94647#comment-337303

Will try out the latest fix above :-)

The menu I refer to is the navigation menu
Gallery > Architecture > Empire State

Is not displayed
Gallery > Calender > 2009

And neither is the title for the view. Just wondered if thats intentional

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Wed, 2010-03-03 10:10

Very nice css control - spot on....

I have a couple of issues after cleaning the css a bit:
- July does not seem to float left correctly, all other months do, july floats right

I removed width definitions to control spacing by margin

link:
http://www.skunk.agentura.dk/index.php/index.php/calendarview/calendar/2009/-1

css at this point...

Quote:
table.calendar {
text-align: center;
}
table.calendar caption {
font-size: 1.5em;
padding: 0.2em;
}
table.calendar th {
border: 1;
}
table.calendar th, table.calendar td {
padding: 0.2em;
background: #111111;
}
table.calendar td:hover {
background: #222222;
}
table.calendar td.prev-next {
background: #ccc;
color: #999;
}
table.calendar td.today {
color: #800;
}
#cal_user {
position: relative;
top: 0px;
left: 60px;
float: none;
display: inline;
}
#cal_year {
position: relative;
top: 0px;
left: 240px;
float: none;
display: inline;
}
#cal_go {
position: relative;
top: 0px;
left: 328px;
float: none;
display: inline;
}
#g-calendar-grid {
position: relative;
margin: 0px 5px 0px 5px;
align: center;
float: left;
}

Finally - td.prev-next and td.today where are they used. I don't see any change when I edit those?

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Wed, 2010-03-03 10:48

adding to #g-calendar-grid:

Quote:
height: 200px;

sorts out the float issue, which I totally don't get. May be due to varying height of each month due to different number of days. Fixing height to 200 or similar gives equal height to all months in float definition and no month above will prevent the left float...

So be aware of this when theming this module

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Wed, 2010-03-03 10:54

Thanks big time Rwatcher for your great support and great modules

I think the calender is a very interesting approach to browsing photos.

One more idea for this module:
You have the latest updates and in this album updates, where the latter only appears when required

The same could go for Calender. When viewing a photo a link to capture date is displayed that links to other images from that date. for albums maybe even displaying all capture dates within an album and links to other pics from same day(s)

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Wed, 2010-03-03 12:17

Css working well and a bit explanatory

Quote:
/* Grid view ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

#g-calendar-grid {
position: relative;
margin: 0px 0px 0px 8px;
height: 200px;
align: center;
float: left;
}

/* Search form ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

#cal_user {
position: relative;
top: 0px;
left: 60px;
display: inline;
}
#cal_year {
position: relative;
top: 0px;
left: 240px;
display: inline;
}
#cal_go {
position: relative;
top: 0px;
left: 328px;
display: inline;
}

/* Content ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

table.calendar {
text-align: center;
}
table.calendar caption {
font-size: 1.5em;
padding: 0.2em;
}
table.calendar th, table.calendar td {
padding: 0.2em;
background: #222222;
}
table.calendar td:hover {
background: #111111;
}
table.calendar td.prev-next {
background: #ccc;
color: #999;
}
table.calendar td.today {
color: #800;
}

all the best
HB - http://www.image.agentura.dk

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Wed, 2010-03-03 16:06
rWatcher wrote:
@mamouneyya -- I've re-written the code responsible for determining month and day names. Does this translate any better?

That solved the problem! thanks.
By the way, the calendars were appearing from left to right under Arabic language with the new <div> approach. I could fix that simply by adding:

.rtl #g-calendar-grid {
  float: right;
}

to the CSS file. It will be nice to add it to the original file, for RTL languages.

Thanks again rWatcher :)

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2010-03-04 01:26
hebhansen wrote:
Rwatcher: is this a challenge for you? Post in the thread if you work on it. Otherwise someone else might
http://gallery.menalto.com/node/94647#comment-337303

Um, I suppose I could help to a degree with that. I could probably write up some code to use images of flags instead of a drop-down box, and include a couple of flags by default. But you or someone else would then need to come up with a more extensive correspondence list to match the flag images up with the Gallery language codes.

I could probably write this as either a stand-alone module or code to be included with a custom theme. A module might be best, then you could turn it off/on depending of if you wanted the drop-down box or the flags.

Would that help you?

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2010-03-04 21:25
hebhansen wrote:
The menu I refer to is the navigation menu
Gallery > Architecture > Empire State

Is not displayed
Gallery > Calender > 2009

Those links aren't (normally) displayed on modules because their designed to only show up on album and photo pages, not dynamic pages like search results, calendars, etc. As I've already taken the necessary steps to make the links show up on the calendarview search results pages, it's pretty simple to add into the calendar year view though.

hebhansen wrote:
And neither is the title for the view. Just wondered if thats intentional

Good catch, I've set the title to "Calendar: YEAR" and removed the year that was centered at the top of the page.

hebhansen wrote:
Finally - td.prev-next and td.today where are they used. I don't see any change when I edit those?

I believe those were left-over from the original calendar-generation library. I've removed them from the current CSS.

hebhansen wrote:
One more idea for this module:
You have the latest updates and in this album updates, where the latter only appears when required

The same could go for Calender. When viewing a photo a link to capture date is displayed that links to other images from that date. for albums maybe even displaying all capture dates within an album and links to other pics from same day(s)

Cool idea :) I think displaying links on the album page for every date in it could result in a potentially large list of links though. Instead I've set the module to display calendarview links for the day the photo was taken or that the album was created on, and an additional link for the entire month. I think that should work well enough.

mamouneyya wrote:
That solved the problem! thanks.
By the way, the calendars were appearing from left to right under Arabic language with the new <div> approach. I could fix that simply by adding:

.rtl #g-calendar-grid {
  float: right;
}

to the CSS file. It will be nice to add it to the original file, for RTL languages.

Thanks again rWatcher :)

CSS added, thanks for the feedback :)

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Thu, 2010-03-04 10:04

I see myself as photo user twice. One as user and the other as admin. Thats fine since I registered both accounts. When selecting any of my user accounts, nothing is displayed. Empty search. When selecting all it displays right.

Did you add the link to capture date on photo pages. I don't see a link (display in sidebar or elsewhere?)

Sounds great about the flags, I will follow it in that other thread. I moved your comment above to that thread, so make sure to subscribe:
http://gallery.menalto.com/node/94647#comment-337399

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Thu, 2010-03-04 16:22

Rwatcher - flags are available to you in that other post - thanks for lending this one :-)

all the best
HB - http://www.image.agentura.dk

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Tue, 2010-03-16 05:48
hebhansen wrote:
I see myself as photo user twice. One as user and the other as admin. Thats fine since I registered both accounts. When selecting any of my user accounts, nothing is displayed. Empty search. When selecting all it displays right.

Seeing both the admin and the regular user on the list is normal if both accounts have been used to upload photos. Accounts that don't have photos associated with them should be automatically removed from the list.

The empty search screen was definitely a bug. It should be fixed now.

hebhansen wrote:
Did you add the link to capture date on photo pages. I don't see a link (display in sidebar or elsewhere?)

It's on the sidebar. You may need to go to the Appearance -> Manage sidebar screen to activate it. It's labeled as "More photos from this date".

hebhansen wrote:
Sounds great about the flags, I will follow it in that other thread. I moved your comment above to that thread, so make sure to subscribe:
http://gallery.menalto.com/node/94647#comment-337399

all the best
HB - http://www.image.agentura.dk

hebhansen wrote:
Rwatcher - flags are available to you in that other post - thanks for lending this one :-)

all the best
HB - http://www.image.agentura.dk

Ok, thanks :) I sent you a private message regarding flags, which should be in your inbox.

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Thu, 2010-03-04 22:32

Not sure if you subscribe to the other thread....

You got mail. and in addition, option to only display flag switcher in front would be great. radio button from admin
1) all pages
2) only front

Found the *more foto from date*. Very cool...
In my front it propose other pics from 4 november. Images there are a mix, so why this date???

all the best
HB - http://www.image.agentura.dk

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2010-03-04 23:15
hebhansen wrote:
Not sure if you subscribe to the other thread....

You got mail. and in addition, option to only display flag switcher in front would be great. radio button from admin
1) all pages
2) only front

By front, you mean the root Gallery album? The only problem I could see with this would be if someone finds your site using google, or is given a link to an album or photo, which could mean they'd start out on a page other then the first album. In this case they wouldn't be given a language selection choice...

hebhansen wrote:
Found the *more foto from date*. Very cool...
In my front it propose other pics from 4 november. Images there are a mix, so why this date???

If you're in an album, then it uses the album's creation date. There's a module for editing this date:
http://codex.gallery2.org/Gallery3:Modules:editcreation

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Thu, 2010-03-04 23:27

Yes you are right. Is it doable to display in root and on first page people arrive at no matter which one it is...?

I get it the albums creation date. That makes sence...

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Thu, 2010-03-04 23:29

I think we should move flag discuss to the other post. This may be valid info for others as well...

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Mon, 2010-03-08 14:32

Rwatcher - Dang something .....

I am not sure which module generates the tags in sidebar menu, but it might be this one. When I press any tag the site crash. When I click tags from cloud it works fine?

Quote:
Kohana_404_Exception [ Page Not Found ]:
The page you requested, tags/Dyrehaven, could not be found.
SYSPATH/libraries/Kohana_404_Exception.php[ 42 ]

37 * @throws Kohana_404_Exception
38 * @return void
39 */
40 public static function trigger($page = NULL)
41 {
42 throw new Kohana_404_Exception($page);
43 }
44
45 /**
46 * Sends 404 headers, to emulate server behavior.
47 *

Try it out at www.skunk.agentura.dk and go to a pic where the tags display at top, sidebar moved (I am cleaning image view, so don't barther the mess)

all the best
HB - http://www.image.agentura.dk

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2010-03-08 15:03
Quote:
I am not sure which module generates the tags in sidebar menu,

Certainly not the Calendar module. Perhaps the tags module?
I would start a new thread.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Mon, 2010-03-08 19:07

All I know is that Rwatcher created the block, it's the one that pops up only on image pages. Sure he will get notified from here...

Rwatcher - is this for you? A bit heavy but maybe doable
http://gallery.menalto.com/node/94828#comment-337862

all the best
HB - http://www.image.agentura.dk

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Wed, 2010-03-10 06:42
hebhansen wrote:
Rwatcher - Dang something .....

I am not sure which module generates the tags in sidebar menu, but it might be this one. When I press any tag the site crash. When I click tags from cloud it works fine?

I believe that's the DisplayTags module. Make sure you're using the latest version, I thought that issue was fixed already:
http://gallery.menalto.com/node/89093#comment-332178

hebhansen wrote:
Rwatcher - is this for you? A bit heavy but maybe doable
http://gallery.menalto.com/node/94828#comment-337862

I'm not aware of any way to dynamically switch the theme, so it's not something I could do. Your best option would probably be to design a custom theme with built-in detection code so it could dynamically adjust itself based on the client browser.

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Wed, 2010-03-10 08:35

Dang - Thanks

Mobile - php modules for Drupal are in the thread. They do this beautifully. They need transfer to G3. That's where you come in? If so I will start theming

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Thu, 2010-03-11 17:39

Rwatcher:

This module floats all the way to the right and does not conform to the G3 width (margins both sides) Don't hardcode, someone might want the flexibility, but how can it conform so that doc3 4 etc are respected?

http://www.skunk.agentura.dk/index.php/calendarview/calendar

all the best
HB - http://www.image.agentura.dk

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Fri, 2010-03-12 20:05

Hmm.. when I enabled mod_rewrite in .htaccess to avoid '/index.php', CalendarView became unable to redirect users to the right calendar page. It redirects to:

Quote:
http://site.com/gallery/gallery/calendarview/calendar/*** etc

and a Dang page appears.

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Sat, 2010-03-13 08:06

Works fine for me, are you sure you set up your .htaccess properly?
http://eric2001.brinkster.net/gallery3/calendarview/calendar/

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Sat, 2010-03-13 10:46

The initial calendar appears correctly, but if you choose any user with a year then click 'Go' you will see that. The same problem happens with your site too. I tried to show Eric's photo of 2010 and I saw a Dang page under:

while when I manually remove the repeated '/gallery3' it works good.

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Tue, 2010-03-16 05:48

Ah, okay. Digging...

Okay, if I'm interpreting this correctly: My module is telling gallery to display the URL "/gallery3/calendarview/calendar/2010/3" (which is generated via Gallery's url::site function). The url::redirect function is then seeing that it's been given a relative url and appending a base URL of http://www.example.com/gallery3 onto it before redirecting, which results in the /gallery3/gallery3/ thing happening.

I've modified the module to use an absolute url instead of a relative url, which seems to solve the problem.

 
mamouneyya

Joined: 2009-11-02
Posts: 337
Posted: Sat, 2010-03-13 19:24

It does. Thanks!

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Sat, 2010-03-13 21:57

Current code overrides themes layout with Wind one, breaking custom themes...

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2010-03-13 23:26

So true Theme css is overwritten in this module and noone can keep track of hacked code in a G3

Rwacher, let evrything you can be controlled from theme. What has to be local should be styled from:

- Priority 1 custom.css (not in the pack)
- priority 2 default.css in the pack

in custom css. This means

all the best
HB - http://www.image.agentura.dk

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Sun, 2010-03-14 06:54
Serge D wrote:
Current code overrides themes layout with Wind one, breaking custom themes...

Yea, I know. It was the only way I could think of to make the module work the way I wanted it to though. If you'd like I can write up some custom CSS and view files to make it work with custom themes, just let me know which theme(s).

I've opened up a ticket requesting an "official" method for modules to use to create breadcrumb navigation links. That would probably make theming this module easier.
https://sourceforge.net/apps/trac/gallery/ticket/1082

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sun, 2010-03-14 07:21

In general I think theme infecting css should be left out.

No background, no border around #content etc.

In this module the padding of month is relevant. Would be nice to control this from admin
Also margin controlling the grid so to say

Note: height per month must be defined. Or it obstructs floats because they have different height.

A form ex:

Color month background: aa55ff
margin
- top:
- right:
- bottom:
- left:

all the best
HB - http://www.image.agentura.dk

 
linkfan

Joined: 2010-03-15
Posts: 3
Posted: Mon, 2010-03-15 09:08

I have problem with this calendar... It doesn't work... :)

[img]http://i39.tinypic.com/oarm9h.png[/img]

No logs, nothing...

Any ideas?

What should I post here about config?

PHP? APACHE?

php - 5.2.13
apache - 2.2.3

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Mon, 2010-03-15 17:20
linkfan wrote:
I have problem with this calendar... It doesn't work... :)

What Gallery version do you have installed (should be listed all the way at the bottom of the page)?
Is the EXIF module enabled (it's required in order to figure out when pictures were taken)?

 
linkfan

Joined: 2010-03-15
Posts: 3
Posted: Mon, 2010-03-15 20:02

I have:

Gallery 3.0 RC1 (Santa Fe)

Exif enabled.

Regards
Linkfan

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Fri, 2011-03-04 04:23

@linkfan: It should work fine with that Gallery version. The only thing I can think of is maybe a file didn't transfer to your web server properly. Try removing the modules/calendarview directory and re-uploading it, and see if that fixes it (I've attached the latest version to this post).

@Everyone else: Updated version of CalendarView is attached to this post -- I've removed the background color code from the CSS, so it should look a little better on themes that don't specifically support it. I've also tweaked the sidebar code to only display Day/Month links when those days/months have photos taken on them.

 
linkfan

Joined: 2010-03-15
Posts: 3
Posted: Tue, 2010-03-16 10:40
rWatcher wrote:
@linkfan: It should work fine with that Gallery version. The only thing I can think of is maybe a file didn't transfer to your web server properly. Try removing the modules/calendarview directory and re-uploading it, and see if that fixes it (I've attached the latest version to this post).

It's not working I was uploding it for sevral times... Same with the newest version of calendar... On my other server it works smothly... Don't know what is wrong. Any idea? Apache configuration?

Regards
Linkfan

Edit:

It doesn't work with KeepOriginal module... When I disable it everything works again.

Edit2:

All works with keeporiginal.git :) Sorry...

Regard Linkfan

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Tue, 2010-03-16 11:03

Rwatcher:

is this a challenge for you?
http://gallery.menalto.com/node/95003

all the best
HB - http://www.image.agentura.dk

 
bluetickle
bluetickle's picture

Joined: 2007-01-06
Posts: 41
Posted: Fri, 2010-12-10 02:37

Great Module!!

Funny how it seems to use the default wind theme.

I use the theme, widewind_click4next modified to have random album images, myself.

I wonder if I deleted the the default wind theme completely what would happen with canendarview?

http://nerveroot.net

Well I tried making the default wind theme inaccessible and the calendar view still looks like the default wind theme.

What do I edit in the calandarview module to make the calendarview look wide like the widewind_click4next theme?

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2011-04-21 20:46

I've updated the CalendarView module.

I've done a major re-write of the "year view" code to use significantly fewer database queries when determining which days photos were taken on. This will (hopefully) speed up page loads. I've also fixed a bug with Gallery 3.0.1 where the CSS doesn't load properly.

The current code can be downloaded from here, or from my github account.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2011-04-20 19:54

ping: rWatcher. Serge D has a request for a change/fix here:
http://gallery.menalto.com/node/101807
____________________________________________
Like Gallery? Like the support? Donate now!

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Wed, 2012-06-13 22:58
nivekiam wrote:
ping: rWatcher. Serge D has a request for a change/fix here:
http://gallery.menalto.com/node/101807
____________________________________________
Like Gallery? Like the support? Donate now!

This is the lastest version of CalendarView, which includes the bug fix reported by Serge D.

 
abelinho

Joined: 2011-08-01
Posts: 1
Posted: Mon, 2011-08-01 22:14

I need help to display all calendar years, I can only see the year 1970, I can not choose the other calendar years to make a search, please help!!!

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Wed, 2011-08-03 23:11

The years displayed in the drop-down box are automatically generated based on the years that photos were taken on, as specified by the "captured" field in the items table in the Gallery database. Normally, this information is extracted from a photos exif data when the picture is uploaded by the exif module. If you're only seeing one year then that's the only year the calendarview module was able to find in the database.

Usually this would happen if the EXIF module isn't installed, or if the photos don't have EXIF data to use to determine their date. If you look at the info block on the sidebar, does a valid date (outside of 1970) show up there?

 
BurgerZ

Joined: 2011-11-14
Posts: 4
Posted: Mon, 2011-11-14 09:26

Hi, rWatcher!
First of all - your module calendarview is great. But I can't use it because of its incompliance with cleancanvas theme. Could you do something with it?
The screen looks like I use wind theme, all photos are broken placed, in one column.
Thanx.

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Mon, 2011-11-14 21:50
BurgerZ wrote:
Hi, rWatcher!
First of all - your module calendarview is great. But I can't use it because of its incompliance with cleancanvas theme. Could you do something with it?
The screen looks like I use wind theme, all photos are broken placed, in one column.
Thanx.

Stick this file in your "themes/cleancanvas/views" folder and it should work fine:
https://raw.github.com/rWatcher/gallery3-contrib/master/3.0/modules/tag_albums/--%20Theme%20Files/clean_canvas%201.0.7/views/calpage.html.php

 
BurgerZ

Joined: 2011-11-14
Posts: 4
Posted: Tue, 2011-11-15 06:21
rWatcher wrote:
Stick this file in your "themes/cleancanvas/views" folder and it should work fine:
https://raw.github.com/rWatcher/gallery3-contrib/master/3.0/modules/tag_albums/--%20Theme%20Files/clean_canvas%201.0.7/views/calpage.html.php

Thank you very very much!! It works!! U R da MAN!

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2012-06-14 00:53

Updated CalendarView module --
I've added code to display a few months on the user profile pages. If a user hasn't uploaded anything, it will display the last three months, otherwise it will start with the exif date taken month for the users newest photo and work backwards:
[img]http://gallery.menalto.com/files/calendarview_profile.png[/img]

I also pushed out a few updates onto git a month or two ago that I don't appear to have mentioned here -- replaced the annoying calpage.html.php file with Gallery 3.0.3's breadcrumb support and made the month and day view links work like virtual albums.

Latest version can be downloaded from the first post.