PDA

View Full Version : Calendar not loading and image border


mooremwm
02-16-2006, 03:04 AM
I've just set up my new PixelPost and I can't seem to get the calendar thing to show up. I've tried most of the suggestions posted in the past and upgraded from v1.4.x to v1.5b and it's still not showing up.

Can someone point me in the right direction here? Here's my URL if that helps: http://www.michaelmoore.ca/photoblog/index.php I'd like to have it look like the following site: http://www.kuperblog.com/

I'd also like to know how you remove the white border around the images. Is this in the CSS style? If so, which line do I modify to remove the border, or make it black?

Thanks for your help.

eon
02-16-2006, 07:19 AM
First question. I thought that was a bug and they repair it in the new 1.5 version.
Did you put the tag for the calendar in the template?
<div id="calendar"> <SITE_CALENDAR> </div>

Second question. Yes, you can change that in the css-file.
First look in the template with class you need to change and then thange the class in the css. For more info about css: http://www.w3schools.com/css/default.asp

mooremwm
02-16-2006, 02:24 PM
Yep, I tried that tag in a bunch of different locations in the image_template.html file and it still doesn't load. Is this the correct file to add it to, and if so, is there a specific place I should add it?

The weird thing is, when I look at the generated HTML source code, that tag shows up just as it's typed above, but in the source for the pages where the calendar shows up, it replaces SITE_CALENDAR with stuff like:

<table class='table-calendar' cellspacing='0'><tr><td class='td-calendar-days-imagefound'><a href='/index.php?curr_month=2&amp;curr_year=2006&amp;showimage=24 5&amp;PHPSESSID=69c7f8989aead27d68e3e1ffe77b4f9b'

Something's not working correctly, obviously.

eon
02-16-2006, 06:44 PM
Yes image_template.html is the correct file.

Let me get it right.
In image_template.html you see SITE_CALENDAR.
And in the source of the browser you see <table....bla...> ? But no calendar.

Aaah, I know the problem again. It is the same problem what I had a long time ago. You need to do a little hack. Look here: http://forum.pixelpost.org/showthread.php?t=2925

mooremwm
02-16-2006, 07:09 PM
Yeah, that worked! Thanks eon.

I found the CSS tag that removes the image border too. In the dark.css file it's under the *Content* section and changed #photo { padding to 0px (in case anyone else was wondering).

Now I just need to figure out how to centre the calendar properly in Firefox (I put <center> tags around the calendar which sorta works but the month is left-justified under the dates), figure out how to change the calendar CSS settings so that the dates that contain photos are highlighted, and fix the error that occurs when I click next and previous month links. I think I've seen fixes for these issues somewhere in the forum...

eon
02-16-2006, 07:50 PM
Change #calendar in the css. You have to say something like "aline: center". More info about that you can find on www.w3schools.com.

mooremwm
02-16-2006, 08:04 PM
I don't have #calendar in the CSS (maybe because I'm using the Simple template?). I did however find some settings that I plugged into my CSS style like: .td-calendar-days {padding:1px;text-align:center;border-top:1px solid black;border-bottom:1px solid black;background:#787878} and with a little trial and error I figured out how to get the colours and styles I wanted.

Groovy, I think I've got it all looking and working the way I want now. Just need to fill it with some more photos now!

eon
02-17-2006, 08:31 AM
:D Succes!

jmz
05-21-2006, 01:36 PM
I have done a little test (http://test.agit8.org) of the latest pixelpost (1.5 rc 1-2) and I can't seem to get the calendar to work. I have the SITE_CALENDAR as part of my template (see my current site (http://www.agit8.org/pixblog) using the exact same template on 1.4.2). I looked at what eon suggested (http://forum.pixelpost.org/showthread.php?t=2925), but that seems to have already been applied in this version of pixelpost (lines commented out in 1.5rc1-2). Any ideas people? Thanks in advance.

Connie
05-21-2006, 01:50 PM
I do not understand that at all why the calendar won't show off


I tried but I cannot open your website, http://www.agit8.org/pixblog
is not opening at all


1) did you activate the calendar in admin/options/template
2) did you enter <SITE_CALENDAR> into image_template.html somewhere?

I just did it: have a look:
http://www.bildgier.de/bilder/calendar.jpg

or open it in the browser: http://www.bildgier.de/pp/rc_final (http://www.bildgier.de/pp/rc_final/index.php?showimage=3)

I see the calendar
now it is up to you to edit the CSS etc.

jmz
05-24-2006, 02:56 PM
Thanks for the reply, Connie, but I still could not get the calendar to show. In my current site it works fine on pp 1.4.2, but somehow on 1.5rc1_2 it does not show, even though I am using the same template. When I look at the html code in my browser, the current site gives me the table of the calendar while in the new version it somehow still shows the <SITE_CALENDAR> tag, as if php somehow "forgot" to process it. All the other pp tags, strangely, get processed. It has really puzzled me.

Connie
05-24-2006, 09:37 PM
haha...

look into your addons folder

is the calendar addon there??????