Previous Thread
Next Thread
Print Thread
Rating: 5
Page 2 of 4 1 2 3 4
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
agreed.. since some events we have are weekend long events. Maybe have the starting day a full descript in the box, and in concurrent boxes it just says part of the event title and says "cont..." or something just to show it continues on.

Sponsored Links
Joined: Feb 2002
Posts: 67
Power User
Power User
Offline
Joined: Feb 2002
Posts: 67
Max,

i'm just playing with this really nice hack ... any chance to get the displayed time in postlist.php changed to 24h - format?

Should be anwhere at

$h = strtolower(strftime ("%I", $tm));

(I've removed the am/pm correction successfully before)

Last edited by Stefan; 07/18/2002 9:23 PM.
palmen #221084 07/19/2002 11:31 AM
Joined: Apr 2002
Posts: 30
User
User
Offline
Joined: Apr 2002
Posts: 30
Dave had written a PAL box for this in his first release of IIP for ubbt 5.5. It displays any upcoming events for the next week. I still use this pal box on my 6.0.2 board.

Since the table structure for the events table has not changed, the old pal code works just fine.

It dosent display a "mini calendar" but it does list all current upcoming events.


Paul Fries
Systems Administrator
CWIE LLC
Joined: Apr 2002
Posts: 30
User
User
Offline
Joined: Apr 2002
Posts: 30
Hiya Max.

Just FYI.
That code that JustDave wrote to delete the data from w3t_Events works fine with v6.

Also. I noticed in the w3t_Events table there are fields for recurring events, and Duration. Any plans to make use of these features in the future?

Thanks!


Paul Fries
Systems Administrator
CWIE LLC
Joined: May 1999
Posts: 149
Enthusiast
Enthusiast
Offline
Joined: May 1999
Posts: 149
Sorry Stefan, over my head, maybe someone else can help.
Max

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Nice one Testing here right now.. I redid the instructions to fix the xhtml in the code:

https://www.ubbdev.com/mods/6/52455-instructions.txt

It runs fine, if I find some more xhtml bugs, I'll update the file and post here


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
File updated with lots of little fixes The only thing not 100% xhtml is bordercolor and I am too sleepy to fix it right now I think I transferred all the changes from our files here to the instructions, if you see something different, please let me know and I'll update it


- Allen wavey
- What Drives You?
Joined: Apr 2002
Posts: 30
User
User
Offline
Joined: Apr 2002
Posts: 30
posted by AllenAyres:
File updated with lots of little fixes


Allan, all of your changes had to do with the xhtml compliency correct?


Paul Fries
Systems Administrator
CWIE LLC
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Yes, I didn't change anything else


- Allen wavey
- What Drives You?
Joined: Mar 2002
Posts: 147
Member
Member
Offline
Joined: Mar 2002
Posts: 147
Suggestion:

In UBB.classic's calendar it automatically adds an event for a registered users birthday.

It would be great if we could get this calendar to do the same.
You could add an optional field inside the w3t_users table.

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
That might be good to co-ordinate with anything Rick might be working on regarding coppa, and the ubb.classic import script, as birthdays are already required there.


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
OK, it should be a bit easier to install now. I believe it is 100% xhtml compliant as well.

https://www.ubbdev.com/mods/6/calendar.zip

I included the template files pre-done and updated the instructions so that you are requiring the templates into the posting pages instead of adding the contents to the .php files. We are using these same files here.

Next up will be pulling the text out to make a language file... I'll work on it this weekend or so unless someone else wants to jump in there

Max feel free to do with this how you want, thank you for your work in getting it to v6 status


- Allen wavey
- What Drives You?
Joined: Apr 2002
Posts: 2
Lurker
Lurker
Offline
Joined: Apr 2002
Posts: 2
MAX,

This is AWESOME

I have one problem...?
I attempted your step nine(after I made sure everything else was working ok) and I CANNOT get the date and location to show up in the Subject line?

Nothing is breaking, it's just not showing up?

Any ideas, I have double checked the edits.

Cheers, Bill

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Thanks Max,

Was a piece of cake to install some 15 calendars on my forums, for the various clubs that I have. Now they can all have their own calendar, and not all have to share one.

Thanks again.

Ian


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Apr 2002
Posts: 2
Lurker
Lurker
Offline
Joined: Apr 2002
Posts: 2
I would change the UPDATE to be using the "Keyword" instead of the "Title".

I ran into problems with this because of multiple forums in different categories which have the same title!

I know this is just in your instructions and I simply used the Keyword to avoid any problems...but just an FYI nonetheless.

REALLY enjoying your work

Cheers, Bill

Joined: May 1999
Posts: 241
Coder
Coder
Offline
Joined: May 1999
Posts: 241
Just got this IIP integration working with IIP4.3 and .threads 6.0.2... Wasn't hard at all, so if anyone needs the code, let me know and I can post it (with instructions) here.


--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
For European users, i tried this in postlist.php:

// get what weekday the first is on
$tempDate = getdate(mktime(0,0,0,$mon,1,$year));
$firstwday= $tempDate["wday"]-1; //HACK: Monday starts week instead of Sunday: '-1' added
if ($firstwday==-1) {$firstwday=6;} //HACK: Monday starts week instead of Sunday: first day should not be -1


And here: (update the header namings...)
<tr class="tdheader"><th>Montag</th><th>Dienstag</th><th>Mittwoch</th><th>Donnerstag</th><th>Freitag</th><th>Samstag</th><th>Sonntag</th></tr>

rodrigo1 #221099 08/02/2002 8:41 PM
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
If you want to translate the calendar,
some code needs to be added after this:

if ($action = "findDate") {
$theDate = getdate(mktime(0,0,0,$mon,1,$year));
$month = $theDate["month"];
}

Add this:

//Hack im hack translation


switch($month) {
case "January":
$month2 = "Januar";
break;
case "February":
$month2 = "Februar";
break;
case "March":
$month2 = "März";
break;
case "May":
$month2 = "Mai";
break;
case "June":
$month2 = "Juni";
break;
case "July":
$month2 = "Juli";
break;
case "October":
$month2 = "Oktober";
break;
case "December":
$month2 = "Dezember";
break;
default:
$month2 = $month;
}
$month = $month2;
//Hack im hack ende

This is an example for German, you can change that after your needs for your language. Note that only Month names are changed in this example that are different in English than German.


Last edited by caymuc; 08/02/2002 8:44 PM.
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
> $h = strtolower(strftime ("%I", $tm));

maybe:

$h = strtolower(strftime ("%H", $tm));

But I am still working to catch all those time-things myself, for example in addevent.php, this format change needs to be done, i think:

$date_string = date("j. n. Y, G:i",mktime ($hour_convert,$min,0,$mon,$day,$year)); //HACK AMPM


Last edited by caymuc; 08/02/2002 9:08 PM.
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
What does that >>> and »»» mean?
I did not find out when what symbols are displayed.

if ($i > 0) {
$events .= "<hr width=95% align=center><font color=red><b>&#8250;&#8250;&#8250;</b></font> $Evnt<br>";
}
else {
$events .= "<font color=red><b>»»»</b></font> $Evnt<br>";
}


By the way: those >>> needs to be changed to that &#8250;&#8250;&#8250; code, or the MAC displays messy gremlins.

Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
Since I converted the Calendar somehow into German (not finished yet), I really start liking the idea of having one.

Thanks Max for your great work.

One thought: Do you think it is useful of having all the calendar entries also listed underneath?
The more entries the calendar has the more double information the page will have. I think I would prefer not showing the entries underneath but to have only the calendar displayed. - Other oppinions?

Last edited by caymuc; 08/03/2002 4:01 AM.
rodrigo1 #221103 08/03/2002 7:50 AM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
posted by caymuc:
One thought: Do you think it is useful of having all the calendar entries also listed underneath?
The more entries the calendar has the more double information the page will have. I think I would prefer not showing the entries underneath but to have only the calendar displayed. - Other oppinions?



That is kind of my concern. After getting some use on my site I find people seeing a new post and they reply to it thinking today is the day of the event and such. I think it would be better t force users to just click the boxes and then be taken to the post info and replies.

rodrigo1 #221104 08/03/2002 3:01 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Hey Caymuc, if you can share your German files, it would make it easier for me to finish the language file for the calendar

Pretty please...


- Allen wavey
- What Drives You?
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
Hi, send me your email address to info @ chrom.de
I would mail you the code, as it is right now.

I prefer not to post my stuff online, it is translated but far from beeing finished. Also I changed this and that. So normal users would be rather confused than inspired by the hacks, but you will know what ro pick from it.

Greetings

Lupar_Drake #221106 08/05/2002 12:12 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
posted by paulf:
It dosent display a "mini calendar" but it does list all current upcoming events.


The next one does.

sjsaunders #221107 08/08/2002 10:43 PM
Joined: May 1999
Posts: 241
Coder
Coder
Offline
Joined: May 1999
Posts: 241
posted by JustDave:
posted by paulf:
It dosent display a "mini calendar" but it does list all current upcoming events.


The next one does.


tease! how close are you nowadays?


--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/
mazmanr #221108 08/08/2002 11:50 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
hehehe I should have my test site open to public preview before this month is over with. I'm working on putting in a few extra rabbits to pull out of the hat for everyone's amusement... lol

This next version will be easier to set up but there will be alot of setting up to do... lol

rodrigo1 #221109 08/18/2002 6:58 AM
Joined: May 1999
Posts: 149
Enthusiast
Enthusiast
Offline
Joined: May 1999
Posts: 149
Hi Caymuc,
It's relatively easy to hide the entries... that's how I had it at first, but my readers complained about not being able to easily identify new replies. This was the compromise I came up with, but other ideas are welcome.
Regards,
Max

Joined: Jan 2001
Posts: 62
Journeyman
Journeyman
Offline
Joined: Jan 2001
Posts: 62
I can't wait, JustDave.

the users on my board were very tickled with your world class IIP add-on that we're running with UBBT v5.5.1 at www.retailflorist.com.

I want to install the calendar add on etc but I'm thinking of waiting til the end of the month once you have it as a pal box.

would it be better to install it now and tiptoe up to your next release when it comes out or is it better to wait do it all in one big shot?

thanks,

Braxton #221111 08/21/2002 7:51 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I would venture to say that you will be glad you waited.

Joined: Jan 2001
Posts: 62
Journeyman
Journeyman
Offline
Joined: Jan 2001
Posts: 62
posted by JustDave:
I would venture to say that you will be glad you waited.


okay, so you're saying I should wait and do it all in one big shot then?

what will you be releasing?

I haven't been keeping that up to date on features.

thanks,

Braxton #221113 08/21/2002 9:09 PM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
He's been working on the new IIP 5 for quite some time, what has it been, 6 months? lol j/k

But yeah, he's made some tremendous changes (or so I've heard) and like he said, it will be worth the little while to wait to do that.

palmen #221114 08/21/2002 9:24 PM
Joined: Jan 2001
Posts: 62
Journeyman
Journeyman
Offline
Joined: Jan 2001
Posts: 62
great thanks,

but this suspense is killing me.

what are some of the new features it will have?

Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
Here are updated instructions for 6.1
Attachments
56605-calendar-3.1beta.txt (0 Bytes, 85 downloads)

neuron #221116 09/20/2002 4:00 PM
Joined: Aug 2001
Posts: 128
Member
Member
Joined: Aug 2001
Posts: 128
You forgot in the directions how to create a forum to be a calendar. How do I do this??

Macthorn #221117 09/20/2002 4:06 PM
Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
Hmm, it's not mentioned in the original directions. If memory serves, I think you just make a normal forum. I called mine 'calendar' in the keyword, and used that in the script where you put in your forum's keyword.

Macthorn #221118 09/21/2002 1:05 AM
Joined: Nov 2000
Posts: 210
Member
Member
Offline
Joined: Nov 2000
Posts: 210
In the table w3t_boards (or prefix_Boards) set Bo_Calendar to Y in the calendar forum (s). I think?

MercAqua #221119 09/21/2002 5:02 AM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Aglavalin and Pappy are both right

First you set a special forum up named Calendar. Now when you first did this hack you did an SQL command. This inserted Bo_Calendar under W3T_Boards. Simply make sure any forum you want a calendar in mark Y. In my case I have one forum named Calendar like above. I have ALL forums marked N and only one forum marked Y. This will create the desired effect of one special place for a calendar like here at Threadsdev etc.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Just checking..

The only difference between the calendar week from western > european is that Monday starts off the european week?


Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Yes...

Doesn't it in most countries?



Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Page 2 of 4 1 2 3 4

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)