226 (edited by mystic 2006-10-30 01:32)

Re: Calendar 2.0

thx a lot; i got it wink

thanks again...need ZZzzZZ now hehe smile

I love sky - i love flowers - and i love myself :D

227

Re: Calendar 2.0

not a bother, we are working on similar things today... in fact, I am working with Quaker right now in implementing into frontPage... it looks good  ;^)

I do not use IE 6, only 5.5, so probably explains why mine looks sh-tty.
that's a nice drop shadow effect.

TwoHawks
Love is the Function
No Form is the Tool

228

Re: Calendar 2.0

twohawks wrote:

that's a nice drop shadow effect.

thanks; i told u i like colourfull tongue

I love sky - i love flowers - and i love myself :D

229 (edited by mystic 2006-10-30 18:11)

Re: Calendar 2.0

hi;

im trying to put this one

echo "\t\t\t\t\t\t<td ".$class." style=\"border: 1px solid #E9F0E8;background-color:#FFFFFF;\" align=\"center\" valign=\"middle\">".$date_no."</td>\n";

instead of

   echo "\t\t\t\t\t\t<td ".$class.">".$date_no."</td>\n";

everything work fine just except it doesnt show the current day; i tried to put it back again and put

.calendar_day {border: 1px solid #E9F0E8;background-color:#E8E8E8; align="center" valign="middle"  text-align: center;}

into my CSS then it does show the current day but the layout not working. can anyone please teach me whats wrong with this?

PS: with others like birthday;event it works great...

I know this is out of topic, so just please ignore me if you want smile

thanks

I love sky - i love flowers - and i love myself :D

230

Re: Calendar 2.0

Hi Mystic,
Did you ever work that out? 
My thought was align="center" valign="middle" are not valid css tags.
I think the css equivalent is:
vertical-align: middle
...and don't forget the ; dividers
;^)
TwoHawks

TwoHawks
Love is the Function
No Form is the Tool

231

Re: Calendar 2.0

thanks for your reply;

i still cant work it out; if i put it back to your code and put the CSS into CSS file then it doesnt display the way i want...and i tried to use yours but still can not...

I love sky - i love flowers - and i love myself :D

232 (edited by twohawks 2006-11-02 07:53)

Re: Calendar 2.0

Did you check my email replys to you?

Not that I think this is best, but to test the inline styling I did the following and it appears to work in both IE and Firefox...

echo "\t\t\t\t\t\t<td".$class." style='text-align: right;'>".$date_no."</td>\n";

Of course, change 'right' to 'center' ...but I made it that way to be sure what I was observing was working or not.
If this doesn't work, you may have a conflict elsewhere, as discussed in my emails.

BTW, Quaker and I worked out another bug, and I have a revision to the 2.0.7b-beta now.  If ned be I can send it to you.  I am not yet posting as we are still working the last things out.

TwoHawks
Love is the Function
No Form is the Tool

233

Re: Calendar 2.0

sorry im at work so didnt notice have mail; im working on it i will tell u later..

thanks again

I love sky - i love flowers - and i love myself :D

234

Re: Calendar 2.0

Got a problem with my calender. If i go directly to forum.xxxxx.com/calender it works fine, but I dont have any link to the Calender in my meny. sad Help.

235 (edited by adjust 2006-12-08 18:50)

Re: Calendar 2.0

Problem solved. smile

From Punres.org:

there are 2 ways in wich to add a link to the navigation menu......you can either simply access your PunBB administration panel and go to "Options" and scroll down until you find the additional items menu box and simply add the link in there.

Example:

5 = <a href="calendar.php">Calendar</a>

or you may add it through include/functions.phpMy recommendation is to add it through additional menu items because im sure that you will sooner or later play around with the positioning of the link ect.

236 (edited by adjust 2006-12-09 18:01)

Re: Calendar 2.0

New problem. smile

Witch lines can i delete if i don´t want to have "birthday" in my calander?


Think i got it right, works fine for me. Please someone check so it´s ok. smile

#
#---------[ 1. OPEN ]
#

profile.php

#
#---------[ 2. Find ]
#

require PUN_ROOT.'include/common.php';

#
#---------[ 3. ADD AFTER ]
#

require PUN_ROOT.'lang/'.$pun_user['language'].'/calendar.php';


#
#---------[ 4. OPEN ("***" means effected files)]
#

styles/imports/***_cs.css


#
#---------[ 5. Add (change the colors to what you need)]
#

.calendar_no {background-color: #E6E3E4}
.calendar_day{background-color: #E1EFFF}
.calendar_event{background-color: #F6DCA1}
.calendar_bday {background-color: #F6DCA1}  // currently not visible in mini-calendars


#
#---------[ 6. SAVE AND UPLOAD]
#


#
#---------[ 7. UPLOAD TO / ]
#

calendar/
lang/           (note: if your language is not include you have to create it yourself )
plugins/
calendar.php

#
#---------[ 8. CHMOD TO 766]
#

calendar/config.php




#
#---------[ 9. RUN ] 
#


install_mod.php

237

Re: Calendar 2.0

Hmm, how do I fix so just members can read in the calender?

Re: Calendar 2.0

Put this code in whatever file the calendar uses:

if($pun_user['is_guest'])
     message($lang_common['No view']);

(if I remembered the code right, that is)

Looking for a certain modification for your forum? Please take a look here before posting.

239 (edited by adjust 2006-12-08 21:58)

Re: Calendar 2.0

That worked fine. Thanks. But if i want Calender in meny to disappear totally when you not a member like Messeges if the forum got PM?



Question about the colors. What should i do if i want .calendar_day to be over .calendar_event.

If one event is at this particularly day the color of the day will be .calendar_event but i want i to be .calendar_day. Any solution to that?

.calendar_no {background-color: #E6E3E4}
.calendar_day{background-color: #E1EFFF}
.calendar_event{background-color: #F6DCA1}

Hope you understand. smile

240 (edited by jlangrock 2006-12-09 00:34)

Re: Calendar 2.0

Hi,
I asked a couple days ago, how Events could be coloured in the calendar, I have been have way through that but unfortunately just the half way.
To explain I have made screen shoots to explain what I tried and I somebody could help me to get the other half to say that works.

Just to explain why it is important to have coloured Events at the calender, For each country I will choice a colour. 

So a Added

<font color=#669900><span style=font-size:2.1em>Wh

to colour and size the Title of a new Event.

The display results for the same Events typing are totally different:

On Portal Index Page The box for events contains the information and the Event will show up as follow ( not what I want)
http://www.galopp-sport.eu/forumgalopp/up_pics/cal01.jpg

at the calender overview
the result is as wished
http://www.galopp-sport.eu/forumgalopp/up_pics/cal02.jpg

when you double click to open The Event the result is:
http://www.galopp-sport.eu/forumgalopp/up_pics/cal03.jpg 
( not what I want)

but finally when you open to edit the Event the system shows you it like this:

http://www.galopp-sport.eu/forumgalopp/up_pics/cal04.jpg 

the result is as wished

So 4 displays of one Event and 2 correct and 2 incorrect

At the first image the Title is wrong displayed
At the second image the Title is correct displayed
At the third image the body is wrong displayed
last but not least at image no. 4 both Title and body are displayed correct.

Does anybody have a idea why the display do what the shall and twice they don't?

Would there a way to have totally control about the display regarding colour and size ?

body is

The poor horseman without horses
www.galopp-sport.eu

http://claimid.com/jlangrock
[img]http://claimid.com/images/hcard.gif[/img]

241

Re: Calendar 2.0

I have found a bug...or maybe im the only one. When you watch a event and you press on a nickname to somebody's profile you get a error (IF something) in this line (php tell this):

if ($lang_calendar['Date_format'] == 'US') {
PunnyBunny..

Re: Calendar 2.0

I get the same error as thesaint. What needs to be done to fix this?

243

Re: Calendar 2.0

Post the previous line.

244

Re: Calendar 2.0

#
#---------[ 10. FIND ]
#

    $posts_field = '';


#
#---------[ 11. ADD BEFORE ]
#

        list($year, $month, $day) = explode('-',$user['birthday']);
    if($month!=0 && $day!=0){
        $Nyear = (strlen($year)!=4)? NULL: $year;
                $datestamp = mktime(0,0,0,$month,$day,0)
                if ($lang_calendar['Date_format'] == 'US') {
                   $birthday = date("F jS ", $datestamp).$Nyear;
                } else {
                   $birthday = date("j ", $datestamp).$lang_calendar[(date("F", $datestamp))].$Nyear;
                }
    }else
        $birthday = $lang_profile['Unknown'];

i removed the modification instructions... works 4 me, temporary i hope 4 a solution because only admins can add events and birthday don't work.

PunnyBunny..

245

Re: Calendar 2.0

$datestamp = mktime(0,0,0,$month,$day,0)
should be
                $datestamp = mktime(0,0,0,$month,$day,0);

246

Re: Calendar 2.0

Works now...thanks...again smile

PunnyBunny..

247

Re: Calendar 2.0

I'm getting just 1 issue with this mod now:


1 - After adding, editing, or deleting an event, I get a blank page.   The event is inserted, updated or deleted, but no confirmation page or re-direct.


Any ideas...?



Thanks in advance.

248

Re: Calendar 2.0

Gizzmo I want to seek in calendar using forum search or another search

Re: Calendar 2.0

Does anybody has an answer to my questions about fonts and size?

The poor horseman without horses
www.galopp-sport.eu

http://claimid.com/jlangrock
[img]http://claimid.com/images/hcard.gif[/img]

250 (edited by getagrip 2007-01-11 19:18)

Re: Calendar 2.0

Can someone help me with this?

1. Do I need to change anything in Profile.php if I dont want to use the birthday thing!?? I havent done that now and it seems to work fine.

2. Where do I change the color at the top where the week day stands?!    Monday, Tuesday ...

3. How do I remove some years?!  I dont need 2002-2012         just 2007-2007

help pls!