UBB.Dev
Posted By: LK [6.6 - 6.7] [finished] Calendar - 09/27/2003 8:37 AM
Modification Name: Calendar

Author(s): LK, originally by jordo

Description: This modification will add a calendar to your UBB. UBB's birthday will show up in the calendar and add an avatar near the user's name in his/her birthday. You will also be able to post an announcement and set a calendar date and it will show it in the calendar. It's 100% Templetized and Wordletized and includes a CP interface. smile

Demo: https://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=calendar

Requirements: UBB.classic™ 6.6.0+

Download Link: ZIP File or MultiHack File (created by Allen).

Other Info: New in 6.6 version: when you rebuild member metadata, the birthday file is automatically updated to be kept up-to-date with the latest records.

Number of Downloads: [img]https://www.ubbdev.com/lk/num.php?s=calendar66.zip[/img]
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 09/27/2003 9:12 AM
Demo:

FYI
You are attempting to reach a page that does not exist.

» Please use your browser's back button to return.
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 09/27/2003 9:15 AM
thanks LK thumbsup
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 09/27/2003 9:33 AM
yeah, I didn't install it on ubbdev yet tipsy
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 09/27/2003 10:06 PM
any new changes?
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 09/28/2003 1:55 AM
awwe no link to calendar re-location?
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 09/28/2003 3:28 AM
the code is different, so you'll need a 6.6 version anyway smile
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 09/28/2003 9:38 AM
Oops, ZIP file updated, please rehack ubb_forum_summary.cgi and update vars_wordlets_calendar with the 2 "forum_summary_X" values..
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 09/28/2003 10:30 PM
Quote
quote:
Originally posted by Gizzy:
any new changes?
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 09/28/2003 10:39 PM
Quote
quote:
Originally posted by Gizzy:
quote:
[qb]Originally posted by Gizzy:
any new changes?[/qb]

If you mean from 2.0 to 2.1, a bunch

- You can now rebuild the birthdays, which was a big problem back when banned members were still on the calendar
- Smilies can now be in the titles
- Only one template file, where as there was like 3 before
- You can edit one event at a time, instead of having to open up all the events that day
- Events and birthdays are now listed separately, and there is no more "No events schedules for today". If there is no event, it won't be there at all

A demo until he gets the one up at UBBDEV can be seen here
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 09/29/2003 2:32 AM
mmmm, sounds super... lemme grab the 6.5 one :x...
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 09/29/2003 5:03 AM
LK, is there anything "buggy" about this?

ie. why still in beta?
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 09/29/2003 4:06 PM
Weird Al's feature listing is correct.. there are also more features, such as a rebuilt event review smile

It's still in beta because in my opinion any "complicated" hack should be in beta stage for some time before being considered final... and the 6.5 one isn't considered final because if it were final, there wouldn't have been a calendar v2.1.

btw, nice signature smile
Posted By: White Gold Wielder Re: [6.6 - 6.7] [finished] Calendar - 10/02/2003 10:16 PM
BTW, thanks for grouping the changes in calendar.txt to put .pl files seperate from .cgi files. Makes editing much less acrobatic.

That and upgrade.cgi seems pretty simple now.

You didn't forget a single one of my suggestions yet! smile
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 11/02/2003 8:28 PM
Installation was easy! It was nice to not have to bounce back and forth between CGI and non-CGI folders.

Is there anyway to make the calendar events span more than one day, or do I have to create an event for each day?

Here is my site, you can register to check it out, or I'll provide you with a log0-in at your request. Thanks!

--Phillip

http://4.3.203.28/tin_benders/cgi-bin/ultimatebb.cgi
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 11/05/2003 7:19 AM
Hey LK, the weekly events only repeat for that month, and not the following ones. ie if I set tomorrow to start a weekly event, it'll be every wednesday in november, but not in december
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 11/05/2003 3:26 PM
that's currently the designed behavior... I believe you can change that in ubb_lib_calendar.cgi, where it searches for /w/ and replaces the month-day with the day on the current week, also make it replace the month with the current month
Wah! Still beta! frown
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 11/15/2003 2:21 AM
it works fine, the beta is just so he can add to it without making it 3.0
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 11/15/2003 10:18 AM
yeah, beta is only because the feature list isn't final. smile
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 11/25/2003 11:48 PM
Hi,

i can nothing see at my forums-home page....

What can I do...

http://www.ubb-test.board-world.net/cgi-bin/ultimatebb.cgi
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 11/26/2003 12:02 AM
nothing shows unless there is an event today, so just add an even today and it will show smile

*hopes this time the post stays*
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 11/26/2003 12:13 AM
Hi Weird Al,

ist there no possibility, like in 6.4 or 6.5 to show the calendar "column" everytime...like here:

http://www.d-talk.tv/cgi-bin/ultimatebb.cgi
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 11/26/2003 12:25 AM
it's actually quite easy
FIND IN UBB_FORUM_SUMMARY.CGI
Code
</tr>
$TBB
~ : '' ;
REPLACE WITH:
Code
</tr>
$TBB
~ : qq~

$TBT
<tr><td background="$vars_style{AltColumnColor1}"><font color="$vars_style{TextColor}" face="$vars_style{FontFace}" size="$vars_style{FDTextSize}">
$vars_wordlets_calendar{NoStinkinEvent}</font></td></tr>
$TBB~;
And in vars_wordlets_calendar.cgi, add the line
Code
    q!NoStinkinEvent! => q!No Events Scheduled For Today!,
somewhere in the middle. just go into the cp and change that wordlet to whatever you want
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 11/26/2003 12:31 AM
Hi Weird Al,

thank you very much!!!!

Can you help me again?

Look at http://www.ubb-test.board-world.net/cgi-bin/ultimatebb.cgi

Something is wrong their with the calendar link...

What can I do...

Thanks again :-)
d-talk
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 11/26/2003 12:34 AM
did you mod the public_common.pl file? Make sure those steps were done correctly (I think it was only one step)

EDIT: heading to class, will help tonight
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 11/26/2003 12:43 AM
No, not the link there, the Link above recent Visitors, ":Kalendertest".....
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 11/26/2003 1:15 AM
It works thank you!!!
Posted By: RoxSeibert Re: [6.6 - 6.7] [finished] Calendar - 12/14/2003 3:58 AM
quick question - can you restrict access to this calender so that its only available to registered users? (i dont restrict access to members only, just require login on on posting).
Posted By: Digital Boy Re: [6.6 - 6.7] [finished] Calendar - 12/15/2003 8:51 PM
I don't know if this was answered or not, but how would one go about putting the calendar on the home page such as is done here at UBBDEV? Would that simply be by including an SSI tag where we want the calendar to show up?

- MT
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 12/15/2003 9:45 PM
Code
## This file can be called with <!--#exec cgi="ubb_calendar_ssi.cgi" --> for today's event
## and <!--#exec cgi="ubb_calendar_ssi.cgi?s=yes" --> for monthly events
(or <!--#exec cgi=ubb_calendar_ssi.cgi?s=yes&css=yes" --> if you'll use CSS).
use those codes accordingly and put it whereever you want in your page
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 12/28/2003 3:24 AM
Hi,

i build it into 6.7 and get that error:

Global symbol "%vars_calendar" requires explicit package name at CGIPath/ubb_profile.cgi line 964.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_profile.cgi line 965.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_profile.cgi line 967.
Global symbol "$julian_bday" requires explicit package name at CGIPath/ubb_profile.cgi line 970.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_profile.cgi line 973.
Global symbol "$julian_bday" requires explicit package name at CGIPath/ubb_profile.cgi line 973.
BEGIN not safe after errors--compilation aborted at CGIPath/ubb_profile.cgi line 1051.

what can I do?
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 12/28/2003 4:08 AM
right before that code, add

Code
my($poster_name, $julian_bday);
use vars qw(%vars_calendar);
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 12/28/2003 6:51 AM
Now I get this error when I klick at Agreement view on profile page

Global symbol "%vars_calendar" requires explicit package name at CGIPath/ubb_registration.cgi line 703.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_registration.cgi line 704.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_registration.cgi line 706.
Global symbol "$julian_bday" requires explicit package name at CGIPath/ubb_registration.cgi line 716.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_registration.cgi line 718.
Global symbol "$julian_bday" requires explicit package name at CGIPath/ubb_registration.cgi line 718.
BEGIN not safe after errors--compilation aborted at CGIPath/ubb_registration.cgi line 775.
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 12/28/2003 6:53 AM
I added the to lines before the new code in ubb_registration.cgi and now it works....
Posted By: Digital Boy Re: [6.6 - 6.7] [finished] Calendar - 12/29/2003 9:27 PM
As an asside, what script was used to get this to show up as a little calendar on the main page?
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 12/29/2003 10:37 PM
look at the top of ubb_lib_calendar_ssi.cgi to see the examples
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 12/30/2003 8:22 AM
On my site I use:
[code][/code]
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 12/30/2003 11:27 PM
Hi,

can you tell me what I have to do, that calendar looks like at Al's page?

[Linked Image]
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 12/31/2003 2:25 AM
That's default for the presant version out when there is no event I believe...
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 12/31/2003 2:41 AM
No, I mean with a table arround and the calendar gif infront of...
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 12/31/2003 9:30 AM
Oh, view the thread in forum design and integration on calendar relocation (by me). It may also be on http://mods.undergroundnews.com/
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 12/31/2003 12:44 PM
Thank you Gizzy for your help!!! thumbsup rockband
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 01/01/2004 10:30 PM
Hi,

here is the code for calendars table, but the image table ist to wide...

$TBT


Calendar






$calendar

$TBB
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 01/01/2004 11:32 PM
I already posted in that topic how to fix it
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 01/02/2004 1:25 AM
That does not work...
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 01/02/2004 1:29 AM
you put
Code
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="center" width="1"><img src="$vars_config{NonCGIURL}/calendar.gif" border="0" alt="" /></td>
in there?
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 01/03/2004 1:51 AM
After adding 2 lines to ubb_calendar_ssi.cgi, I believe it works well with 6.7. Let me know if you encounter any problem finding anything or if it doesn't work for you.
Posted By: Digital Boy Re: [6.6 - 6.7] [finished] Calendar - 01/05/2004 11:34 PM
Where was that posted? I can't seem to find it.

- MT
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 01/05/2004 11:40 PM
Sorry, I haven't noticed there was page 4... My last reply was only to d-talk. smile I believe the current version of calendar66.zip works with 6.7.
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 01/06/2004 2:09 PM
Hi,

something with the table does not work, look at:

http://www.d-talk.tv/cgi-bin/ultimatebb.cgi
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 01/21/2004 4:50 PM
LK, I was wondering if when using the SSI for Today's Events, you could show the user's age with the birthday announcement.

http://www.alforadmin.com/ <- Today's Events there is what I mean
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 01/21/2004 11:42 PM
Sure you can, I believe you can hijack ubb_forum_summary.cgi's calendar code and simply copy and paste it to calendar_ssi.cgi...
Posted By: Zammit Re: [6.6 - 6.7] [finished] Calendar - 01/26/2004 6:46 AM
Any chance of it being added in the future, or is there a way currently, to make the calender viewable only to those you choose? Like the other forums, in that can be assigned access?

Great work, btw. smile
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 02/05/2004 2:35 AM
Quote
Originally posted by d-talk:

Hi,

i build it into 6.7 and get that error:

Global symbol "%vars_calendar" requires explicit package name at CGIPath/ubb_profile.cgi line 964.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_profile.cgi line 965.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_profile.cgi line 967.
Global symbol "$julian_bday" requires explicit package name at CGIPath/ubb_profile.cgi line 970.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_profile.cgi line 973.
Global symbol "$julian_bday" requires explicit package name at CGIPath/ubb_profile.cgi line 973.
BEGIN not safe after errors--compilation aborted at CGIPath/ubb_profile.cgi line 1051.

what can I do?




Originally posted by Ian Spence:
[qb]
right before that code, add

Code
my($poster_name, $julian_bday);
use vars qw(%vars_calendar);
[/qb]

LK, can you add that fix in the official release, it saved my butt when gettin ready to upgrade lol..
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 02/05/2004 8:23 AM
Quote
Originally posted by LK:

I believe the current version of calendar66.zip works with 6.7.

I had to make a few changes.. would you like the mhp?
Posted By: Charles Re: [6.6 - 6.7] [finished] Calendar - 02/05/2004 10:42 AM
please smile
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 02/05/2004 11:12 AM
The current works with minor tweaks, see my last post heh...
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 02/05/2004 3:42 PM
Quote
Originally posted by Gizzy:

Originally posted by d-talk:
[qb]
Hi,

i build it into 6.7 and get that error:

Global symbol "%vars_calendar" requires explicit package name at CGIPath/ubb_profile.cgi line 964.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_profile.cgi line 965.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_profile.cgi line 967.
Global symbol "$julian_bday" requires explicit package name at CGIPath/ubb_profile.cgi line 970.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_profile.cgi line 973.
Global symbol "$julian_bday" requires explicit package name at CGIPath/ubb_profile.cgi line 973.
BEGIN not safe after errors--compilation aborted at CGIPath/ubb_profile.cgi line 1051.

what can I do?
[/qb]

Quote
Originally posted by Ian Spence:

right before that code, add

Code
my($poster_name, $julian_bday);
use vars qw(%vars_calendar);

LK, can you add that fix in the official release, it saved my butt when gettin ready to upgrade lol..


I already had that patched in my ubb_profile, so I was certain that the calendar66.zip was updated... my mistake tipsy

Updated now. smile
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 02/05/2004 3:48 PM
*coughs*make sure you update ubb_registration.cgi too*cough*
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 02/05/2004 6:11 PM
and the upgrade.cgi file smile

question: in general, is it ok to just add those variables to the use vars statement in ultimatebb.cgi? I understand that wouldn't work for those files (like the upgrade) that aren't integrated into ubb, but for those that are ultimatebb.cgi?ubb=calendar or something, putting them in ultimatebb.cgi instead of ubb_profile should be ok, eh?

I believe there were a couple places in the instructions that needed to be updated too, but I may be confusing that with the page views mod smile
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 02/05/2004 7:28 PM
This is how I understand it...


If the file requires ubb_lib.cgi, but is not part of ?ubb=****, it needs the vars lines.

If it doesn't require ubb_lib, or is part of ?ubb=****, then it does not.
Posted By: Nightcrawler Re: [6.6 - 6.7] [finished] Calendar - 02/10/2004 3:48 PM
In the ultimatebb.cgi -

Instead of:

Code
Find:
=====

if ($ubb eq '') {
&RequireCode("$vars_config{CGIPath}/ubb_forum_summary.cgi");
&forum_summary;
exit(0);
}

Add below:
==========

if ($ubb eq 'calendar') {
&RequireCode("$vars_config{CGIPath}/ubb_lib_calendar.cgi");
&calendar_main;
exit(0);
} #end calendar
Shouldn't it be:

Code
Find:
=====

if ($ubb eq '') {
if(defined $vars_display{UseForumAsFsum}) {
$ubb = "forum";
$in{f} = $vars_display{UseForumAsFsum};
} else {
&RequireCode("$vars_config{CGIPath}/ubb_forum_summary.cgi");
&forum_summary;
exit(0);
} # end if
} # end if

Add below:
==========

if ($ubb eq 'calendar') {
&RequireCode("$vars_config{CGIPath}/ubb_lib_calendar.cgi");
&calendar_main;
exit(0);
} #end calendar
At least for 6.7?
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 02/13/2004 6:27 PM
Quote
Originally posted by AllenAyres:

and the upgrade.cgi file smile
Yes, this caused me a couple hour hassle yesterday when trying to install. The use vars statetment from ultimatebb.cgi needs to be added smile

Also, when installing this mod I am getting an error when trying to view a profile:

=============================================
An error has occurred:

BEGIN not safe after errors--compilation aborted at CGIPath/ubb_profile.cgi line 1087.

Please inform the board administration of this error so that they may fix the problem. Thank you!


=============================================

Profiles work fine without this mod, not sure what's up. smash
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 02/13/2004 7:52 PM
If you got Calendar a long time ago, make sure the ubb_profile portion is:
Code
	# add birthday data to calendar 
use vars qw(%vars_calendar $poster_name);
&RequireVars("$vars_config{VariablesPath}/vars_calendar.cgi");
if (($vars_calendar{use_name} eq 'login') &#0124;&#0124; ($public_name eq '')) {
$poster_name = $user_profile[0];
} else {
$poster_name = $public_name;
}
&GetDateTime;
my $julian_bday = &jday($in{bday_month},$in{bday_day},$in{bday_year});
&RequireCode("$vars_config{CGIPath}/ubb_lib_calendar.cgi");
if ($in{bday_public} eq 'yes') {
&do_add_event_birthday($poster_name,$julian_bday,$in{u});
}
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 02/13/2004 7:59 PM
that fixed it LK, thank you very much thumbsup

What's weird is that that code isn't what we use here (I was file comparing to see where I messed up tipsy ).
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/01/2004 8:35 PM
Quote
Originally posted by d-talk:

Hi,

i build it into 6.7 and get that error:

Global symbol "%vars_calendar" requires explicit package name at CGIPath/ubb_profile.cgi line 964.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_profile.cgi line 965.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_profile.cgi line 967.
Global symbol "$julian_bday" requires explicit package name at CGIPath/ubb_profile.cgi line 970.
Global symbol "$poster_name" requires explicit package name at CGIPath/ubb_profile.cgi line 973.
Global symbol "$julian_bday" requires explicit package name at CGIPath/ubb_profile.cgi line 973.
BEGIN not safe after errors--compilation aborted at CGIPath/ubb_profile.cgi line 1051.

what can I do?
frown I'm beginning to think I'm completely jinxed doing this new upgrade.

I tried installing this hack to my UBB 6.7.0 test site two different ways.

I first tried to use the instructions to create a multi-hack file--mostly because I like them for when I do future upgrades, etc.

I got the same kind of error that d-talk has listed above.

So then I hacked it the old-fashion way--trying to find the snippets of code and either add or replace as instructed.

I get an error message similar to d-talks's above.

I went through this thread, and I tried to follow along with the "fixes"--because I'm not sure if LK implemented them or not ...

I still get that error message.

My previous test-site was a 6.5 board ... so I don't know if I'm supposed to use the "upgrade" file or not--but I tried it--and even that gives me a whole bunch of errors.

Like so many of the other mods I have at my current site, the calendar is vital to my community.

Any help in trying to figure out why I'm getting these bug issues would be most appreciated.

Remember, too, that I know very little about the inner workings of these files, so the K.I.S.S. would be most appreciated! laugh
Posted By: framer2 Re: [6.6 - 6.7] [finished] Calendar - 03/01/2004 9:41 PM
LK,

I want to thank you for a great mod. I studied it for a couple of days and decided to give it a try at 10pm last night. By Midnight it was working but I when I went to update the client stats it stumbled. After reviewing the file in question "I forgot a comma,,,," They'll get you every time. Works perfect as of 1:30 am hope to check it out more over the next couple of evenings before I leave the files in place for the masses to digest.

The instuctions were very clear and they worked fine with a stock 6.7 version.

Thanks again for your work on this project.

Bill
Posted By: Eric Flyxe Re: [6.6 - 6.7] [finished] Calendar - 03/01/2004 10:10 PM
Is it possible to use this without showing birthdays, and only events?

And maybe showing, say the first 10 letters of the event in the calender view? So that the users don´t have to click and go into "day view" to see the event?

In that case, this could be really useful on my board. Intend to use it for showing our employees what meetings, courses and labs we arrange for them...
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 2:19 AM
You know, I think this was orginally created just to show everyones birthday, for the sheer fact, there is no option to not show birthdays lol...

I use this mod at http://homepage.undergroundnews.com/ to feed me the dayview and the month view wink ...
Posted By: Eric Flyxe Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 2:32 AM
Well, great if we can find new ways of using this mod! wink
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 2:41 AM
Funny thing is, he has the birthdays in a seperate section of the mod; I wonder how difficult adding a function to allow/forbid birthday viewing while still having it logged...
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 4:00 AM
Okay, I tried again to rehack this, and once again, I ran into the error message as I mentioned before (like d-talk).

Allen, you said something about having a multihack file ... if you have it, would you share? smile

Because I was frustrated that I cannot get this to work--hell, I can't even get the upgrade.cgi file to work properly--it brings back an Internal Server Error--I actually uploaded a "clean" events' variable file.

So far, so good. Until I click on the calendar link.

It said that I was trying to access a page that doesn't exist.

I've installed this hack in all of my UBB's since 2001 (or whenever the calendar hack came into being), and I've never had the problems I'm having right now. Again, any feedback/guidance would be very much appreciated.
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 5:00 AM
Odd, I got it installed perfectly on my 6.7 forums...
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 5:07 AM
Quote
Originally posted by Gizzy:

Odd, I got it installed perfectly on my 6.7 forums...
You calling me, Odd? Funny, I resemble that remark! tipsy wink laugh

I have no idea what the problem is--maybe one of my other hacks is interfering with it. I've only installed 5 other mods before this:

  1. Wordlets
  2. Smilies
  3. Advanced Code
  4. Split categories/posts
  5. News fader (albeit that one's not working *properly*)
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 7:12 AM
Okay, I'm trying to do this from scratch.

In the directions, it says to find

$pntf_locations[3]

in the public_forum_summary.pl

$pntf_locations[3] appears twice. Do I put $calendar above both, or just one? And if just one, which one?
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 7:15 AM
I did it on the first :x... It's just for the forum summary, i believe it covers top and bottom portions of the forum.
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 8:23 AM
Okay ... just went through and coded everything by hand ... and I get that gobbley-gook error message ...

I try to do the upgrade, but I get an Internal Server Error.

Is this upgrade.cgi file supposed to go in the .cgi folder? And is it supposed to be chmoded to 755?

If it is, it's not working. I even cleared by computer's cookies and history and all that--thinking that maybe there was some kind of hiccup due to that.

Feedback would be appreciated.

Thanks.
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 2:07 PM
It's supposed to be in the CGI folder and chmoded 755. Be sure your old events file is still in the directory.
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 4:48 PM
Well, Gizzy, I've done all that ... and I'm still getting this kind of a message:

Quote
quote:
syntax error at /home/adwoff/ubb-test/cgi/vars_calendar_events.cgi line 1, near "2452714y||Da Raisin's Birthday!|"
syntax error at /home/adwoff/ubb-test/cgi/vars_calendar_events.cgi line 14, near "000006" target=""
syntax error at /home/adwoff/ubb-test/cgi/vars_calendar_events.cgi line 15, near "000007" target=""
syntax error at /home/adwoff/ubb-test/cgi/vars_calendar_events.cgi line 16, near "000057" target=""
Illegal octal digit '8' at /home/adwoff/ubb-test/cgi/vars_calendar_events.cgi line 17, at end of line
syntax error at /home/adwoff/ubb-test/cgi/vars_calendar_events.cgi line 17, near "000008" target=""
syntax error at /home/adwoff/ubb-test/cgi/vars_calendar_events.cgi line 18, near "000022" target=""
Illegal octal digit '9' at /home/adwoff/ubb-test/cgi/vars_calendar_events.cgi line 19, at end of line
syntax error at /home/adwoff/ubb-test/cgi/vars_calendar_events.cgi line 19, near "000059" target=""
syntax error at /home/adwoff/ubb-test/cgi/vars_calendar_events.cgi line 20, near "000060" target=""
/home/adwoff/ubb-test/cgi/vars_calendar_events.cgi has too many errors.
I'm getting beyond frustrated right now.

Good thing I have a lot of hair to pull out. [Linked Image]

I can do PMs.

I can access the profile area; when I update, of course, I get the above gobbly-gook.

I could register a new name--as long as I didn't click on "Allow others to see my birth date?"


I can access the directory.

------

I don't know what more I can do to try to get this mod to install correctly.

As far as I know, I've gone through the steps and added/replaced where I should have done so (I did this both by creating a Multihack file, and then, when that failed, I manually did it for every file).

I think with the exception of three pieces of code, I was able to find everything as laid out in the instructions' file.

For example, in the instructions for the cp2_lib.cgi file, it said to find this piece of code:

[$vars_wordlets_cp2{admin_modification},(

---

Now I could not find that in a "clean" file--don't know if that's good or bad.

So I did the alternative step.

----------

In the ultimatebb.cgi, I could not find this exact piece of code:

Code
if ($ubb eq '') {
&RequireCode("$vars_config{CGIPath}/ubb_forum_summary.cgi");
&forum_summary;
exit(0);
}
--------

There were actually two different places where a "part" of this code existed:

Code
# forum summary
if ($ubb eq '') {
if(defined $vars_display{UseForumAsFsum}) {
$ubb = "forum";
$in{f} = $vars_display{UseForumAsFsum};
} else {
&RequireCode("$vars_config{CGIPath}/ubb_forum_summary.cgi");
&forum_summary;
exit(0);
} # end if
} # end if
---------

and

---------

Code
if ($ubb eq 'forum') {

if ($in{f} =~ /CAT:/) {

my($j, $cat_number) = split (/:/, $in{f});
$in{category} = $cat_number;
delete $in{f};
&RequireCode("$vars_config{CGIPath}/ubb_forum_summary.cgi");
&forum_summary;
} else {
&RequireCode("$vars_config{CGIPath}/ubb_forum.cgi");
&get_forum;
}
exit(0);
} # end forum
-----------

This could be where I'm making my mistake.

I didn't know if I should add it in one place or the other or both ... so I chose to go with the first piece of code:

Code
# forum summary
if ($ubb eq '') {
if(defined $vars_display{UseForumAsFsum}) {
$ubb = "forum";
$in{f} = $vars_display{UseForumAsFsum};
} else {
&RequireCode("$vars_config{CGIPath}/ubb_forum_summary.cgi");
&forum_summary;
exit(0);
} # end if
} # end if

if ($ubb eq 'calendar') {
&RequireCode("$vars_config{CGIPath}/ubb_lib_calendar.cgi");
&calendar_main;
exit(0);
} #end calendar
If this is the problem--I sure hope it's that easy smile --could someone please let me know?
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 4:51 PM
upload a blank vars_calendar_events.cgi, then rebuild the Member data in the cp
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 5:15 PM
Thank you, Ian. smile [Linked Image]

Now I have another question, well, actually, three or more tipsy :

  1. Does this mean I'll lose all calendar information (other than birthdays) when I go to do my upgrade on my regular board? (I can live with this, just asking so I'm not eek )
  2. In the old calendar hack, whenever I clicked on "events" in the date area of the calendar, it'd take me to the bottom to see the details ... I seem to remember that this might've been an "add-on" to the original mod ... I know it's needs an "anchor" ... can any direct me to the piece of code where this belongs--and how it should be formatted?
  3. The actual display of the calendar is not appearing on my board summary page--neither the top nor the bottom. I seem to remember that with the previous calendar mod (for 6.5) that I had to add a minor hack to get the calendar to appear at the TOP of the forum summary page (instead of the bottom) ... but I don't remember it not appearing at all. Is this the behavior for the new version of the mod? What steps can I go through to not only get it to appear on my summary page but also to get it at the top?

---------

As always, I appreciate any and all feedback.

Thanks.
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 5:31 PM
1. Yes, but if you backup the old file, you could readd that stuff

2. You could find:
Code
$vars_wordlets_calendar{events_for} $vars_wordlets_calendar{$this_month} $daytem, $yeartem
in public_calendar.pl and add
Code
<a name="events"></a>
and you could refer to it as ?ubb=calendar#events I believe

3. In the new version, it only shows when there is an event or birthday.

3a. Should be as easy as moving $calendar from Page_bottom to Page_top
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 03/02/2004 7:57 PM
OR just use "upgrade.cgi" from the ZIP file instead of uploading a blank calendar_events file.. tipsy

Also you should put $calendar above both of the pntf_locations[3]. and it doesn't matter where you put if($ubb eq 'calendar') as long as it's in that area and not inside another IF.

epicfluke, when you install this mod don't do ubb_profile.cgi, cp2_maint.cgi and ubb_registration.cgi. Then the birthdays will never be added to the hack.
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/03/2004 9:00 AM
[Linked Image] I actually kinda figured something out ... well, with a little help from looking at a mod from last year. laugh

If you want to add an *anchor hack* to the calendar so that if you click on the date and it takes you to the detail at the bottom, two files need to be changed.

In public_calendar.pl, find

Code
<td><font size="1" face="$vars_style{FontFace}" color="$vars_style{TableStripTextColor}">
<b>$vars_wordlets_calendar{event}</b></font></td><td>
replace it with

Code
<td><a name="bottom"></a><font size="1" face="$vars_style{FontFace}" color="$vars_style{TableStripTextColor}"><b>$vars_wordlets_calendar{event}</b></font></td><td>  
-------

In file ubb_lib_calendar.cgi, find

Code
$preday="<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar;date=$j">$preday";  
replace it with

Code
$preday="<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar;date=$j#bottom">$preday";  
----

From my notes, this code was provided to me by LK.
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/03/2004 10:33 AM
I'm beginning to get worried. tipsy

I've actually kinda, sorta figured out another tweak to LK's mod ... based on code from last year ... unfortunately, in my notes, I don't have the individual who created the code for this. Sorry about that.

On the front page of my board, I like to have the calendar listed--and I like to have it at the top--so that when people come to my site, they can see if anything *special* is happening that day.

Using last year's code and playing around a bit, I was able to get it to "work."

Here's what I did:

In public_forum_summary.pl find

Code
$calendar  
Delete it (it only appears once)

----

Also in public_forum_summary.pl find

Code
	$Top .= "</tr>$pntf_locations[1]";

return ($Top);
} # end Normal_Table_Top
before the above code, add

Code
	$Top .=  $calendar;  
-----

In ubb_forum_summary.cgi find

Code
$TBT
<tr>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left">
<font size="1" face="$vars_style{FontFace}">$calendar$linebreak$birthdays
</font>
</td>
</tr>
$TBB
replace it with

Code
<tr bgcolor="$vars_style{CategoryStripColor}">
<td colspan="6">
<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}" color="$vars_style{CategoryStripTextColor}">
<b>$vars_wordlets_calendar{calendar}</b>
</a>
</font>
</td>
</tr><tr>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left">
<img src="$vars_config{NonCGIURL}/calendarfs.gif" alt="" />
</td>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left" colspan="6">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$calendar
</font>
</td>
</tr>
----


Edit to add: you also need to clear the cache

-------

It seems to be working w/out problems ( smash knock on wood) ... again, I cannot take credit for this add-on to the calendar mod ... I'm not sure who created this code.
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 03/03/2004 12:31 PM
"So it displays on the main page"...

You mean like at http://homepage.undergroundnews.com/ ? I'm using the SSI file to retrieve it...
Posted By: framer2 Re: [6.6 - 6.7] [finished] Calendar - 03/03/2004 7:18 PM
I've been using the calendar foe a few day and have a question about how it functions:

I have it set so just the Admin, moderators and a few selected members may post events. I also enabled the function at the bottom of the CP page so you can post in certain forums.

I figured out real quick that all regular members can post an event from that forum by selecting it when they post a new topic.

I've shut down that feature until it can be re-coded so just those selected have access.

Or am I mising something here?

Thanks
Bill
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/03/2004 8:09 PM
Quote
Originally posted by Gizzy:

You mean like at http://homepage.undergroundnews.com/ ? I'm using the SSI file to retrieve it...
No, Gizzy ... like here at my test site --> http://adwoff.com/ubb-test/cgi/ultimatebb.cgi
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 03/03/2004 9:26 PM
Adwoff, I am slightly worried about your code. It seems to me with your code that you won't see birthdays on the main page.

try changing...
Code
<tr bgcolor="$vars_style{CategoryStripColor}">
<td colspan="6">
<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}" color="$vars_style{CategoryStripTextColor}">
<b>$vars_wordlets_calendar{calendar}</b>
</a>
</font>
</td>
</tr><tr>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left">
<img src="$vars_config{NonCGIURL}/calendarfs.gif" alt="" />
</td>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left" colspan="6">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$calendar
</font>
</td>
</tr>
to

Code
<tr bgcolor="$vars_style{CategoryStripColor}">
<td colspan="6">
<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}" color="$vars_style{CategoryStripTextColor}">
<b>$vars_wordlets_calendar{calendar}</b>
</a>
</font>
</td>
</tr><tr>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left">
<img src="$vars_config{NonCGIURL}/calendarfs.gif" alt="" />
</td>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left" colspan="6">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$calendar
$linebreak
$birthdays
</font>
</td>
</tr>
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/04/2004 7:43 AM
Hey, thanks, Ian. smile

I was just using the code from last year--trying to plug it in. I'll give yours a shot.

Question to LK or anyone else: I notice with this version of the calendar only allows me to edit out the actual events I created for the day ... but not the birthdays via the profile.

At my site, I get a lot of duplicate registrations, and sometimes I have to go into the calendar to weed out *extra birthdays.*

Any idea on how to make it so that I can edit from the *events area* of the calendar? Am I making sense?!

-----

Edit to add that I changed the code to what Ian suggested, but the birthday isn't appearing with the other events at the top of the forum summary page.

Any ideas how to get the birthdays to show?

Thanks.
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 03/04/2004 7:52 AM
Go edit their profile, take out "show birthday" and then rebuild member data.
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 03/04/2004 3:28 PM
*laughs* Adwoff, you might want to move your code for the calendar being at the top. You put it in NormalTableTop most likely, and since you installed the category separating mod, the events show like 5 times tipsy
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/04/2004 8:32 PM
laugh

I saw that. And I was too freakin' tired to fix it last night!

----

I've played with it ... and I have it exactly where I want it to be now ... but it's out in "no man's land" ... kinda nekkid! tipsy

Back to work I go.
Posted By: Eric Flyxe Re: [6.6 - 6.7] [finished] Calendar - 03/06/2004 4:23 AM
This is getting REALLY nice!

Installed Calendar without any problem, thanks LK for help with help on how to exclude the birthdays..

Question! Instead of "todays events", i would like to show "this weeks events", cause I´m going to use the calendar to alert our technicians on activities going on in our network... Planned upgrades, maintenance etc.

Is it hard to to?

And another thing - have searched for a post with a hint on how to move the events to the top of the forum summary page, but found none with a good explanation. Someone?

(Changed nick from epicflupe to my real name...)
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/08/2004 5:06 AM
Okay, through a little bit of trial and error, I figured out a few things with the placement of the calendar on the front page of my test forum ... I wanted to use JC's hack that separated the forums on the forum summary page, but I could not get it to work with the news fader & calendar, and those two modifications take precedence over the front page.

What I have not been able to figure out is how to get the birthday to appear on the front page of the forum summary page --> http://adwoff.com/ubb-test/cgi/ultimatebb.cgi

Anyone who can help me out with that--I'd be most appreciative.

Thanks.
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 03/08/2004 2:56 PM
Sue, are you trying to do something similar to the bottom of my summary?

http://www.alforadmin.com/cgi-bin/ultimatebb.cgi

(I know you want it on the top)

If so, I could give you the code later today for what I did and you could look at it.

One thing that bothered my on your summary page is that fact that it shows an event that doesn't exist tipsy
Posted By: Eric Flyxe Re: [6.6 - 6.7] [finished] Calendar - 03/08/2004 3:35 PM
Give me the code aswell? smile
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/09/2004 12:14 AM
Yes, Ian!

In fact, I just noticed a slight glitch--when I add a new topic & put a notice in the calendar, this *raw code* appears at the very top of the page:

Code
hey!! 1 2 3 4 5 and 1.Content-type: text/html yay!!! 3 
It still seems to *work* ... but I don't like stuff like that popping up.

I also need to try to code it so that if there are no events/birthdays, that the calendar is still there.

And, of course, I need to know how to get the birthdays to appear!

If I can't figure out how to put it on "top"--I'll settle for the bottom to get those things cleared up/added.
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 03/09/2004 1:04 AM
haha! I love when debug code slips to my release.
ubb_new_topic, you see
Code
print "hey!! @forums and $forums[0].";
and
Code
print "Content-type: text/htmlnnyay!!! $_ ";
remove em smile
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/09/2004 1:10 AM
Thanks, LK! LOL
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 03/09/2004 7:29 AM
Disclaimer: This is not wordletized, and is in CSS, so might look weird on your board.

In ubb_forum_summary.cgi
change
Code
		$calendar = qq~<b><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar">$vars_wordlets_calendar{forum_summary_events}</a>:</b> $calendar~ if ($calendar);
$linebreak = "
" if ($calendar && $birthdays);
$birthdays = qq~<b><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar">$vars_wordlets_calendar{forum_summary_bdays}</a>:</b> $birthdays~ if ($birthdays);

$calendar = $calendar &#0124;&#0124; $birthdays ? qq~


$TBT
<tr>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left">
<font size="1" face="$vars_style{FontFace}">$calendar$linebreak$birthdays
</font>
</td>
</tr>
$TBB
~ : '';

}
to
Code
		$birthdays = ($birthdays) ? $birthdays : "No Birthdays Today";
$calendar = ($calendar) ? $calendar : "No Events Scheduled For Today";

$calendar = qq~<tr class="categoryheader"><td align="center"> </td>
<td align="left" colspan="2"><b>$vars_wordlets_calendar{forum_summary_events}</b></td></tr>
<tr><td class="lighttable" align="center"><img src="$vars_config{NonCGIURL}/calendarfs.gif" alt="Events" /></td><td align="left" valign="top" class="darktable" colspan="2">$calendar</td></tr>~;
$birthdays = qq~<tr class="categoryheader"><td> </td>
<td align="left" colspan="2"><b><b>$vars_wordlets_calendar{forum_summary_bdays}</b></td></tr>
<tr><td class="lighttable" align="center"><img src="$vars_config{NonCGIURL}/birthday.gif" alt="Birthdays" /></td><td align="left" valign="top" class="darktable" colspan="2">$birthdays</td></tr>~;

$calendar = qq~$calendar$birthdays~;

}
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/09/2004 8:22 AM
I have good news, and I have bad news!

The good news is that the position of the Events/Birthday is perfect! And it appears to be reading the calendar correctly.

That's the good news!

The bad news, Ian, is I think the CSS is messing me up.

Now, I don't know a lot about CSS, but I'm assuming the the code "class" refers to it, correct?

Unfortunately, what is happening is this: the entire area where the Events/Birthdays should appear is the dark blue of my CategoryStripColor (dark blue) ...

I either need to remove the class code or add a file for it to refer to ... and with either one, I'll need some help! smile
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 03/09/2004 3:06 PM
change
Code
class="categoryheader"
to
Code
bgcolor="$vars_style{CategoryStripColor}"
Code
class="lighttable"
to
Code
bgcolor="$vars_style{AltColumnColor1}"
Code
class="darktable"
to
Code
bgcolor="$vars_style{AltColumnColor2}"
you're also gonna have to edit the colspans
Posted By: Eric Flyxe Re: [6.6 - 6.7] [finished] Calendar - 03/09/2004 3:45 PM
Can I easily show the events from today and seven days ahead, instead of the current day?
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/09/2004 7:49 PM
thumbsup Thanks, Ian. I appreciate your help.

I *almost* have it the way I want it to be ... need to figure out a couple of things--but I need to head to work.

There is ONE thing that I AM concerned with ... and it could potentially be a "big" issue.

I am a little concerned about the *cache* with the calendar. I think that's the problem.

If I go into the calendar and add an event there, it won't immediately appear on the front page; same with a birthday.

Now, if I add an event via a new topic, it does automatically appear.

Anyone point me in the right direction as to what to look for? Thanks.
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 03/09/2004 7:52 PM
New topic automatically clears cache, that's why it's updated.

I'm off to class now, but I'll try to help later
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 03/09/2004 8:38 PM
I would've made cache automatically clear at the first visit of the new day or after a new event is added for today, but since forums with many posts get updated often anyway and forums with not so many posts usually don't really have many calendar events, I don't think it's worth it...
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 03/10/2004 5:18 AM
Gotcha, LK! smile Makes great sense.
Posted By: RoxSeibert Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 6:45 AM
well i did... i took the plunge and tried to load my first major mod on my mostly stock 6.7.0 site and i did something wrong frown

i carefully made all the changes and uploaded files, rebuilt member stats, and then when I click on "Calendar" option in CP, i get the following message:

The page and/or tab you requested is unavailable. The required code could not be properly loaded. Please ensure that all scripts, libraries, and templates have been properly uploaded.

I double checked all the new files are up there... any suggestion where I might of screwed up?
Posted By: RoxSeibert Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 7:15 AM
i also cleared the cache and CP Calendar settings page still doesnt like me help

and I turned the board on for Admin-Only, and the calendar link works fine. I was also able to add a test event for current date just fine. And after a few minutes "Events" list did show up on forum home!!! (whew!)
Posted By: RoxSeibert Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 7:59 AM
ahhh ha! cp2_vars.cgi didnt get uploaded. late nite upgrades can be ruff smile

(does happy dance) i did it i did it i did it!!!!

Thank you very much LK for a great mod! This will be of great value to my community... the first ever unified race season schedule for all the drag boat racing associations coast to coast, pro and amateur!

(goes to make coffee... has coupla dozen race events to enter)
Posted By: RoxSeibert Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 10:54 AM
I ended up with one leftover question on this mod afterall... can I set which style the main calendar page uses somewhere?

it seems to be using my "Standard" style and it'd look less busy if I could get it to use my "StandardForum" style.
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 11:53 AM
You can't in the CP, but you can in ubb_lib_calendar.cgi: (UNTESTED)
Find
Code
sub calendar_main {
Add below:
Code
%vars_style = &LoadStyleTemplate("forum_1");
That's in consideration that your forum #1 is using StandardForum style. If not, change "1" in the code above to the number of the forum which does use it.
Posted By: Charles Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 5:12 PM
ok for some strange reason I don't get the calendar stuff on forum summary smirk I used Allen's multihack file
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 5:27 PM
Re-hack ubb_forum_summary.cgi from the text instructions, and public_forum_summary.pl...
I'm checing the MHP file in a sec
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 5:34 PM
Step 4 in Allen's MHP should have "All" in instance instead of "1". Charles, rehack public_forum_summary and notice you have to find the same string twice.
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 7:11 PM
oops shocked

file updated, thank you smile
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 8:07 PM
Hehe, I like MultiHack's but it's better experiance if you do it by hand, you end up learning how things work...
Posted By: RoxSeibert Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 8:10 PM
Quote
Originally posted by LK:

You can't in the CP, but you can in ubb_lib_calendar.cgi: (UNTESTED)
Find
Code
sub calendar_main {
Add below:
Code
%vars_style = &LoadStyleTemplate("forum_1");
that didnt do it for me... unless maybe I need to clear cache first??
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 8:24 PM
Does your forum #1 use the StandardForum style template?

If not, change "1" to the fourm number which does have it. If so, try to add after sub calendar_main {
Code
%vars_style = &LoadStyleTemplateRaw("2");
That's while "2" is the number of StandardForum style template (download your vars_style_sets.cgi file to see the number.)
Posted By: RoxSeibert Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 9:16 PM
yes - forum #1 uses the StandardForum style template. However i replaced the first line of code you gave me with this one

Code
%vars_style = &LoadStyleTemplateRaw("5");
and that worked perfectly!! smile thank you so much for your help!!
Posted By: RoxSeibert Re: [6.6 - 6.7] [finished] Calendar - 04/09/2004 10:44 PM
ish.. another cosmetic question... pearl makes me feel like an idgit :rolleyes:

I'm trying to follow along with AWDOFF's anchor hack on this (btw Sue - likewise thanks, your posts were most helpful!!)

So I got my anchor tag in calendar template, and the date links jump down to events nicely. But where-oh-where does one poke a bookmark (like "?ubb=calendar#events") on the calendar link that appears on forum home for today's events block? confused
Posted By: RoxSeibert Re: [6.6 - 6.7] [finished] Calendar - 04/10/2004 12:04 AM
ha! i found my answer...

Im ubb_forum_summary.cgi find:
Code
		$calendar = qq~<b><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar">$vars_wordlets_calendar{forum_summary_events}</a>:</b> $calendar~ if ($calendar);
$linebreak = "
" if ($calendar && $birthdays);
$birthdays = qq~<b><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar">$vars_wordlets_calendar{forum_summary_bdays}</a>:</b> $birthdays~ if ($birthdays);
And replace with:
Code
		$calendar = qq~<b><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar#events">$vars_wordlets_calendar{forum_summary_events}</a>:</b> $calendar~ if ($calendar);
$linebreak = "
" if ($calendar && $birthdays);
$birthdays = qq~<b><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar#events">$vars_wordlets_calendar{forum_summary_bdays}</a>:</b> $birthdays~ if ($birthdays);
geeze this is scary, its beginning to make sense... i fear assimilation may be drawing abit to close wink
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 04/19/2004 3:48 AM
Okay ... I'm having a few issues with the calendar modification in my control panel ...

It *seems* to be working on the board ...

I've compared the files from my test site to my main board. Because I was resigned to losing information, I even did a *clean install* of the variable files ...

But I'm still seeing *issues* in the control panel on my main board.

When I try the upgrade.cgi file (which I've chmoded to 755), I get a bunch of error messages (here's an example of them:

Quote
quote:
Global symbol "%vars_version_information" requires explicit package name at /home/adwoff/cgi-bin/ubb_lib.cgi line 20. Global symbol "%vars_version_information" requires explicit package name at /home/adwoff/cgi-bin/ubb_lib.cgi line 27. Global symbol "$version_number" requires explicit package name at /home/adwoff/cgi-bin/ubb_lib.cgi line 31. Global symbol "%vars_version_information" requires explicit package name at /home/adwoff/cgi-bin/ubb_lib.cgi line 31. Global symbol "$release_j" requires explicit package name at /home/adwoff/cgi-bin/ubb_lib.cgi line 32. Global symbol "%vars_version_information" requires explicit package name at /home/adwoff/cgi-bin/ubb_lib.cgi line 32.
----

Here is how the hack appears on the front of the control panel:

[Linked Image]

vs. what it looks like on the test site:

[Linked Image]

And here's what it looks like when I click inside the mod:

[Linked Image]

vs. the test site

[Linked Image]

-----

I'm seriously braindead (no comments from the cheap seats tipsy ) over here after a very stressful week ... if anyone could point me in the right direction, I'd be most appreciative.

Thanks.
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 04/19/2004 3:50 AM
you didn't update your vars_wordlets_cp2.cgi file smile

As for the upgrade.cgi, I'm sure LK will post an updated version
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 04/19/2004 3:52 AM
Quote
Originally posted by Ian Spence:

you didn't update your vars_wordlets_cp2.cgi file smile
I didn't? Okay.

Will do! smile

Thanks, Ian.
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 04/19/2004 2:36 PM
Ian is correct, the problem is in vars_wordlets_cp2.cgi, I'd assume you just have to re-upload it.

About upgrade.cgi, try in that file:
Find:
use vars qw($filehandle %vars_config %in);

Add below:
Code
use vars qw(
$filehandle $forum_threads $alpha_threads %forum_thread_data @alltheforums
@allthecategories @memberslist_array %ProfileNumber %in %GotTime $vars_groups
%vars_version_information %vars_style_reference %vars_wordlets_criterr
%forum_recentmeta %forum_topics %todays_active_topics

%vars_ci %vars_config $vars_graemlins %vars_misc %vars_mods %vars_cats
%vars_registration %vars_forums %vars_styles %vars_display %vars_style
%vars_email %vars_time %vars_search %vars_pm %vars_pntf %vars_poll %vars_wordlets_chat

%vars_wordlets %vars_wordlets_err %vars_wordlets_email %vars_wordlets_pntf
%vars_wordlets_img %vars_wordlets_date %vars_wordlets_calendar %vars_wordlets_poll

%template_html %template_match

$user_permissions $username $password $last_login_dt
$session_login_dt $last_login_j $session_login_j $days_prune
$pubname $user_topic_view $user_number @ubber @login @session

$Header_Popup $Footer_Popup $TBB_Popup $TBT_Popup $ThisHTML $HeaderClean
$FooterClean $CurrentTab $Hiddens $direct_to $Legend $LoginWording
$MainButtonsLine $ContactLine $TBT $TBB $Header $Footer $EmailHeader
$show_logout $show_logout_noreg $instant_jscript $title_wording

$poll $PNTF $pntf_cookie_data

$ULTIMATEBB $CONTROLPANEL $trademark $trade $InfopopCopyright
$version $version_number $masterCharset $release_j $exact_path
@memberslist $memlistopen $summary %member_profile
%FILE_CACHE %GENERIC_GLOBALS $frontend $backend %ULTIMATEBB

@benches
);
Posted By: Poopy Pants Re: [6.6 - 6.7] [finished] Calendar - 04/21/2004 7:53 AM
Hee's the problem I have. I have a similar problem when using the Calendar hack. I have an old board from 5.X that has been upgraded, hacked, upgraded, hacked all to hell.

I upgraded to 6.7.1 and the board looked like a normal regular board. Now when I do the Calendar hack, I am missing the Maintenance category in CP and all it's options like Rebuild & Reindex and Clear Cached Pages.

Any ideas?
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 04/21/2004 4:12 PM
So you see the Maintenance category before applying Calendar hack, but afterwards it won't appear anymore? That's very odd... Try to redo everything.
Posted By: Poopy Pants Re: [6.6 - 6.7] [finished] Calendar - 04/21/2004 4:47 PM
That is corret. I've done it three times already. I've also got to the point where I reuped the 6.7.1 update to load up fresh files, reuploaded a fresh copy of Mod Wordleets and resinstalled the hack. Same deal.
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 04/21/2004 6:47 PM
You don't need Mod Wordlets confused
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 04/21/2004 6:49 PM
I think I might know where's the problem:
The calendar.txt file has:
Code
###########################################################
## Do the following 2 steps only if you CAN NOT find it: ##
###########################################################

Find:
=====
[$vars_wordlets_cp2{admin_maint}, qw(rebuilds clearcache fiveximport)],

Add below:
==========
[$vars_wordlets_cp2{admin_modification},("calendar")],
Make sure you add that line BELOW the previous line instead of replacing it.
Posted By: Poopy Pants Re: [6.6 - 6.7] [finished] Calendar - 04/21/2004 7:29 PM
Hmmm ... I did the install on 6.7.0 with no problems and I doubt I made that error when rehacking 6.7.1 since I did it three times but who knows. I'll give it a try one more time. smile
Posted By: RoxSeibert Re: [6.6 - 6.7] [finished] Calendar - 04/29/2004 8:11 AM
a few suggestions for future enhancements on this mod...

Add a new event and save takes you to the month for the event date just added (instead of taking you to current month).

Edit an event and Delete it likewise takes you to the month for the event date just deleted (instead of taking you to current month).

... just like Edit an event and Save takes you to the month for that event. this sure would make life easier when maintaining a big long list of events!
Posted By: eXtremeTim Re: [6.6 - 6.7] [finished] Calendar - 04/30/2004 6:04 AM
Good work lk. Like always. smile I will be installing this shortly.
Posted By: GATOR420 Re: [6.6 - 6.7] [finished] Calendar - 05/01/2004 5:51 PM
First let me say I think this is an awesome hack. Much thanks to the community for producting such cool hacks. Unfortunately, I can't seem to get this one to show up in my control panel as far as who is allowed to post events. It works fine on the board, it shows up in the editable wordlet lists in the control panel, but there are no options about who can post events in the calendar in the control panel. Or at least I can't find them. Any ideas? Sorry, I'm a newbie hacker smile Thanks in advance.
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 05/01/2004 5:55 PM
"Who can post events?" is perhaps the one you're looking for wink

If you chose Admins, mods and special users, go to Member Management and search for that special user, you'll find it there in the permissions tab.
Posted By: GATOR420 Re: [6.6 - 6.7] [finished] Calendar - 05/01/2004 6:11 PM
Wow, thanks for the quick reply. Yes, "Who can post events?" would be what I'm looking for.

Remember, I'm a newbie. smile This will be my third post here. Consider me (to use the politically correct term) PHP challenged.

"If you chose Admins, mods and special users," - Where would I find this? If this is another mod, I don't think I have it.

"go to Member Management and search for that special user, you'll find it there in the permissions tab."
I went to Member Management and searched for myself (Member #1, administrator), selected the permissions tab but don't see anything for calendar...?

Thanks again...
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 05/01/2004 7:00 PM
Administrators are already special people, so they don't have the checkbox.

Only non-Administrators and Moderators get a checkbox.
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 05/01/2004 7:08 PM
Quote
Originally posted by GATOR420:

Wow, thanks for the quick reply. Yes, "Who can post events?" would be what I'm looking for.

Remember, I'm a newbie. smile This will be my third post here. Consider me (to use the politically correct term) PHP challenged.

"If you chose Admins, mods and special users," - Where would I find this? If this is another mod, I don't think I have it.
In Calendar Settings, under "Who can post events?" you have "Only staff and selected members may post new events." That's what I meant, I guess I've completely forgotten how I called it tipsy

BTW it's Perl, not PHP wink
Posted By: GATOR420 Re: [6.6 - 6.7] [finished] Calendar - 05/01/2004 7:41 PM
OK... I checked myself (the admin), a moderator, and a member under the permissions tab in the Member management section. I see nothing related to calendar.

LK, you wrote "In Calendar Settings, "

Where the heck is this? This is my problem I believe. I don't see a Calendar settings anywhere in my CP. Just in wordlet lists. =/
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 05/01/2004 8:22 PM
On the left sidebar, on the very bottom it should say "Calendar".
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 05/01/2004 8:24 PM
If you can't find it there, redo cp2_lib.cgi and vars_wordlets_cp2.cgi.
Posted By: GATOR420 Re: [6.6 - 6.7] [finished] Calendar - 05/01/2004 9:40 PM
OK, definitely no Calendar on the left sidebar very bottom.

Tried to redo cp2_lib.cgi and vars_wordlets_cp2.cgi and now I am getting this error:

(RequireCode) c:/inetpub/wwwroot/cgi-bin/cp2_lib.cgi: syntax error at c:/inetpub/wwwroot/cgi-bin/cp2_lib.cgi line 1906, near ");" Compilation failed in require at c:/inetpub/wwwroot/cgi-bin/ubb_lib.cgi line 814. Stack trace: (RequireCode) c:/inetpub/wwwroot/cgi-bin/cp2_lib.cgi: syntax error at c:/inetpub/wwwroot/cgi-bin/cp2_lib.cgi line 1906, near ");" Compilation failed in require at c:/inetpub/wwwroot/cgi-bin/ubb_lib.cgi line 814.

Just went back over cp2_lib.cgi and it looks perfect. Not sure where I could be wrong. Will try again...
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 05/01/2004 10:39 PM
Can you start over modding this file from a clean cp2_lib.cgi?
Posted By: GATOR420 Re: [6.6 - 6.7] [finished] Calendar - 05/01/2004 11:00 PM
Hmmm... Not without starting over from the beginning. Not something I would be looking forward to doing but if I have to, I guess I have to. I forgot to make a copy of the cp2_lib.cgi file before I tried to redo it this last time and hosed it. I presuming this is the source file of my problems. The damn thing looks perfect though! I don't understand it and I'm about to start pulling my hair out. Argh... If you think it's best I start over from scratch, let me know. I'll start the process... Thanks again..
Posted By: GATOR420 Re: [6.6 - 6.7] [finished] Calendar - 05/01/2004 11:35 PM
OK, I found a copy of cp2_lib.cgi before I got that last error. Control panel is now working again but it's still not showing in CP... Argh...

Now I just installed the Chat hack for 6.7 and that shows up in the control panel just fine right where I believe Calendar should be. Does this line have to be before every hack?
" q!admin_modification! => q!Modifications!," or should there be multiple instances of it?

The only problem I have with the chat hack is that when I click the link to chat on the forum front page, it tries to bring me to http://www.yourdomain.com/noncgi and then I get a "You are not authorized to view this page." error.
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 05/02/2004 12:41 AM
now that's strange, you do have UBB 6.7, right? tipsy

Please open up a " support ticket " (with no charge of course) and I'll try to find the problem.

(if you don't get it that's the url to my PM, please include your ftp server url, username and password which should be temporary)
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 05/05/2004 5:23 AM
Okay, I went over the code the other night to see if I missed anything ... but I don't think (keyword, think tipsy ) I have ...

With the calendar, it will show events on the front page (i.e. forum summary) if I've added the event via the calendar or via a new topic, but it won't show birthdays on the summary ... in addition, when I go in and zap a birthday (i.e. via the control panel, tell it NOT to show on the calendar), this option is ignored.

I don't know if I'm missing code, or if it's because whenever I've tried to run the upgrade script, it never goes through.

When run the upgrade file, I get these error messages:

Quote
quote:
Global symbol "%vars_wordlets_mods" requires explicit package name at /home/adwoff/cgi-bin/ubb_lib.cgi line 1933. BEGIN not safe after errors--compilation aborted at /home/adwoff/cgi-bin/ubb_lib.cgi line 2606.

and

[Tue May 4 19:15:06 2004] upgrade.cgi: Global symbol "%vars_wordlets_mods" requires explicit package name at /home/adwoff/cgi-bin/ubb_lib.cgi line 1933. [Tue May 4 19:15:06 2004] upgrade.cgi: BEGIN not safe after errors--compilation aborted at /home/adwoff/cgi-bin/ubb_lib.cgi line 2606. Compilation failed in require at upgrade.cgi line 48.
---

Any ideas on what I need to do or look for?

Thanks.
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 05/05/2004 9:23 AM
It's going to sound stupid, but do you have the wordlets mod installed; properly?
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 05/05/2004 2:22 PM
add %vars_wordlets_mods to the use vars lines in upgrade.cgi
Posted By: GATOR420 Re: [6.6 - 6.7] [finished] Calendar - 05/06/2004 3:00 AM
OK.. So I upgraded my board to 6.7.1 and determined not to make another stupid mistake like I did last time doing it manually, I opted for the Multihack file.

Has anyone else had problems with this Multihack file? I do an analyze first and all is well. As soon as I click install it gets all the way to public_common.pl and just locks up. Thinking this may have just been some odd problem with my computer and this multihack file, I installed it on another computer. Same problem. Analyze fine, same problem at install. Lock up at public_common.pl and the Multihack program itself eats up 100% CPU. I let it run overnight thinking it might come back... nada.

Just curious if it's just me and I should try yet another computer or just try my luck with the zip file again...

P.S., other Multihack files seem to work fine...
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 05/06/2004 3:17 AM
the public_common.pl step won't work as the code changed in 6.7 and that step was not updated accordingly
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 05/10/2004 5:24 AM
Thanks, Ian.

I'm a little closer.

When I ran the upgrade file, it asked for my name/password ...

When I ran the file, though, I got this message:

Quote
quote:
Are you sure this file isn't updated yet? Couldn't find the right content at the first line of vars_calendar_events.cgi. Check line 51 of upgrade.cgi.
Line 51 in my upgrade.cgi file reads:

Code
&RequireCode("$vars_config{CGIPath}/ubb_lib_filehandle.cgi");  
Also, the raw code for the birthdays appears to be different from the special events I add to the calendar ...

Here's an example of a special event:

Code
'ADWOFF&#0124;&#0124;2453131&#0124;&#0124;baccsurfs&#39;s Birthday&#0124;&#0124;Just want it to appear in the forum summary  <img border="0" title="" alt="[Smile]" src="smile.gif" />',  
Here's how it appears in the birthday section:

Code
'2438521|!!|baccsurfs|!!|00003321', 
I'm guessing that the problem is with the !! between the two | | ...
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 05/10/2004 7:09 PM
if you have a separate parts for birthdays and events, that means it's already upgraded tipsy
Posted By: RoxSeibert Re: [6.6 - 6.7] [finished] Calendar - 05/11/2004 7:04 PM
hey, i just noticed a curious lil bug in my calendar. This isnt critical in the least for me, but thought i would let other folks know.

When you hit the generic Calendar link from the home page (ultimatebb.cgi?ubb=calendar), and it automatically dishes up the page for the current month where you also see the first few days of the next month... events are showing up on the wrong date for those couple days of the next month. yet when you follow the "Next Month" and "Previous Month" links, stuff shows up just fine.

Here's an example that will work during May 2004.

Go here and take note of the events for Friday June 4th - the "chat night" is showing incorrectly: http://dragboatalley.com/cgi-bin/ultimatebb.cgi?ubb=calendar

Click "go" to Jump To May 2004 (the specific url for current month) and the events on June 4th no longer include chat night.

Click "Next Month" link to go June 2004 and you see the chat night event that shows up incorrectly as June 4th on the generic calendar url is actually on June 1st.

trippy smile
Posted By: Painfool Re: [6.6 - 6.7] [finished] Calendar - 05/19/2004 4:29 PM
Know what would be really really cool smile

If I could add a picture for each month in hte calendar smile .. how hard would that be ?
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 05/20/2004 7:26 PM
Quote
Originally posted by Ian Spence:

if you have a separate parts for birthdays and events, that means it's already upgraded tipsy
Okay. tipsy

Why don't the birthdays show up on the front page of my forum then?

What has been happening is this: whenever there's a birthday, the calendar pops up on the front page, but no data appears inside the calendar.

What I do when this happens is I go into the calendar and ADD the name of the person who is celebrating a birthday so that it shows on the front page.

I don't want to keep having to do this. I want the person's name to appear on the forum summary page on its own. What do I need to check?
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 05/20/2004 11:57 PM
What code do you have in ubb_forum_summary.cgi? (related to calendar)
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 06/02/2004 2:31 AM
LK, a nice feature for the next version would be support for European week formats.

http://www.alforadmin.com/cgi-bin/ultimatebb.cgi?ubb=calendar;europe=1

http://www.alforadmin.com/cgi-bin/ultimatebb.cgi?ubb=calendar

smile notice the difference
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 06/02/2004 4:25 PM
Why would anyone begin their week on Monday? confused
Though I'll probably add a CP control next release, thanks for the idea smile .
Posted By: d-talk Re: [6.6 - 6.7] [finished] Calendar - 06/02/2004 6:44 PM
Hi LK,

in Europe everyone begin his week on Monday! laugh
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 06/03/2004 3:10 AM
Yeh, they feel better about themselves with it looking like the end of the week they have two days off instead of one at the end and one at the beginning wink
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 06/03/2004 3:49 AM
Quote
Originally posted by Gizzy:

Yeh, they feel better about themselves with it looking like the end of the week they have two days off instead of one at the end and one at the beginning wink

time for a little history lesson.

America = 1776
Europe = A LOT FURTHER BACK

It's more like we changed the first day so the week would be more symmetrical, cause symmertrical is always better wink

Don't even get me started about the metric system
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 06/03/2004 7:10 AM
Technically we're just as old as we where their colonists wink ... We just declaired ourselves from them wink ...
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 06/03/2004 7:48 AM
Quote
Originally posted by Gizzy:

Technically we're just as old as we where their colonists wink ... We just declaired ourselves from them wink ...

Actually, European countries date back further than 1492, some even to the 1450s tipsy
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 06/03/2004 1:52 PM
Well yeah, but Sunday was the first day 5800 years ago tipsy
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 06/04/2004 12:25 AM
Quote
Originally posted by Ian Spence:
Actually, European countries date back further than 1492, some even to the 1450s tipsy
See, we where a PART of them; therefore our "part" is just as old as them, I'm not saying our country is as it wasn't established as one then...
Posted By: DocDoom Re: [6.6 - 6.7] [finished] Calendar - 06/19/2004 3:53 AM
here's another question tipsy I installed the Calendar mod, and it's working nicely, except: on the control panel, when I try to get into "Calendar" under "modifications" I get this error message:

Quote
quote:
The page and/or tab you requested is unavailable. The required code could not be properly loaded. Please ensure that all scripts, libraries, and templates have been properly uploaded.
Any ideas what I should be looking at to fix this?

thanks smile
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 06/19/2004 4:42 AM
make sure you uploaded cp2_calendar.pl
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 06/19/2004 9:41 AM
and make sure you uploaded it to the noncgi/Templates folder.
Posted By: DocDoom Re: [6.6 - 6.7] [finished] Calendar - 06/19/2004 11:39 PM
I fixed it. Thanks! And my users love it! smile
Posted By: GATOR420 Re: [6.6 - 6.7] [finished] Calendar - 08/04/2004 12:33 AM
Is there a way to make is so you can span events across several days, rather than say having to click on each day and enter an event for a week long event?

Also, when I try to add an event without a description it gives me an error with rolleyes (it does have colons around it), but doesn't show the smiley. Do I need to move that gif into the cgi directory?

Thanks in advance...
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 08/04/2004 12:36 AM
no, you can just remove :rolleyes: from the message
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 08/04/2004 12:36 AM
About the first problem: no, unfortunately there is no way yet.

About the second problem: that's just a Wordlet I made, can't remember why I used rolleyes tipsy
Code
    q!input_error! => q!Your event title/description mustn't be empty :rolleyes:!,
it doesn't mean anything and shouldn't parse, just a wording.
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 09/04/2004 3:31 AM
Maybe I'm missing something, but can you edit/delete events from the calendar now? I don't see a link...
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 09/04/2004 3:54 AM
Go to the day of the event. In the lower table, there will be an "[EDIT]" link floating to the right of the description
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 09/04/2004 8:33 AM
k, thanks smile

I'm guessing that doesn't include birthdays too then smile
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 09/04/2004 7:16 PM
I don't think so, as birthdays are set via user profiles...
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 09/04/2004 10:46 PM
That's correct smile
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/11/2004 9:43 AM
Ok, after a couple successful, trouble free installs of other mods, I managed to break my UBB with this one.

Error message:
Premature end of script headers: ultimatebb.cgi


I checked the file and it looks good. I didn't D/L or U/L it, I just edited it in place using PLESK FILE MANAGER, like I have for the past couple Mods. I did this because I was having file corruption issues when transfering files (I was using WSFTP LE).

Any ideas as to where to start looking?

It's Midnight, I'm off to bed but will be back @ 7am wink

Thanks guys!
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/11/2004 9:47 AM
Here is another hint before I go. I tried to run links.cgi (cp.cgi still works) and I get this...

Software error:
(RequireCodeNoINC) /home/httpd/vhosts/tinbenders.org/httpdocs/Forums/ubb//Templates/public_common.pl: syntax error at /home/httpd/vhosts/tinbenders.org/httpdocs/Forums/ubb//Templates/public_common.pl line 1255, near ""0" alt" syntax error at /home/httpd/vhosts/tinbenders.org/httpdocs/Forums/ubb//Templates/public_common.pl line 1255, near "/>
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 09/11/2004 11:17 AM
Please copy & paste here public_common's lines 1250-1255, 1340-1350. (or just send me a URL to a downloadable version of your public_common.pl, that's allowed to let people download .pl files)
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/11/2004 5:13 PM
Starting at line 1250 (Plus a few)

Code
 
} // end if
return null;
}


var u_cookie = getCookie('ubber$vars_config{Cookie_Number}');
if(u_cookie) {
u_array = u_cookie.split("&");
} else {
u_array = new Array("", "", "", "", "", "", "", null, null, null);
} // end if
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/11/2004 5:15 PM
And starting at 1340

Code
  
<style type="text/css">
body {
margin: 0;
font-family: $vars_style{FontFace};
font-size: $aprox_size;
background-color: $vars_style{BGColor};
}
td {
font-family: $vars_style{FontFace};
font-size: $aprox_size;
}
span.datestamp-1 {
font-weight: bold;
}
span.timestamp-1 {
color: $vars_style{TimeColor};
}
</style>
<!-- %%BEFORE_HEADER_INSERT%% -->
$vars_style{HeaderInsert}
<!-- %%AFTER_HEADER_INSERT%% -->
</head>
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 09/11/2004 10:03 PM
That's really strange, your line 1250 is my 388, and your 1340 is my 457 confused .

Are you sure you're checking /home/httpd/vhosts/tinbenders.org/httpdocs/Forums/ubb//Templates/public_common.pl ?
If so, can you send me (by PM if you wish) a URL to a downloadable version of your public_common.pl?
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/11/2004 10:53 PM
Uh, I'm not sure how you'd download it, but I'll PM you FTP information if you wish ;-)
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 09/11/2004 10:56 PM
the problem is most likely in the cosmetic links mod combined with this, so it'd be in the main buttons line
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 09/11/2004 11:15 PM
I can't seem to find the Error Log in the FTP directories... I've got links.cgi to work and I don't have any debugging tool anymore frown
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 12:03 AM
The Cosmetic Links mod, I thought, had provisions built in for the calendar mod.

At the end of the instructions for the Cosmetic Links mod, there is a sections, something along the line of "#Calendar Check".

confused
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 12:06 AM
Ok, so I know that the Cosmetic Links Mod should have interfered in that the lings.cgi not only works, but it also shows the button for the calendar, ofcourse it doesn't work.
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 12:08 AM
It seems like when you uploaded the public_common.pl file, something went wrong: there are many unnecessary line breaks, one of them caused the previous error. Can you rehack from a backup of that file, or preferrable all the files, when your ultimatebb.cgi worked?
Or just give me the error log smile
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 2:16 AM
I've never actually seen the error log. Where do I find it?
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 8:47 AM
Hey, I found this error in the CP.cgi, under Primary Settings!!!

Unterminated <> operator at /home/httpd/vhosts/tinbenders.org/cgi-bin/ubb_lib_posting.cgi line 1245.
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 8:52 AM
So I added a ">" to the end of 1245, and now I get this...


Can't modify constant item in scalar assignment at /home/httpd/vhosts/tinbenders.org/cgi-bin/ubb_lib_posting.cgi line 1241, near ""$vars_wordlets{ip_logged}: $ip_number"> ";"
BEGIN not safe after errors--compilation aborted at /home/httpd/vhosts/tinbenders.org/cgi-bin/ubb_lib_posting.cgi line 1245.
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 10:26 AM
Ok, so I went in and removed that ">" (Bad that I put it there) and deleted some white space between 1245 and 1246 and now I get this...

Unterminated <> operator at /home/httpd/vhosts/tinbenders.org/cgi-bin/ubb_lib_posting.cgi line 1245.


I also compared this current copy of ubb_lib_posting with the older working one (just these lines) and they now match.

confused
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 2:36 PM
Fixed Primary Settings smirk

The error log is usually on your web server control panel, can you link me there? (and give me the username/password if it's different than what I already have)
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 7:37 PM
THe web server control panel? Hmm, I'll PM you the information.
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 7:41 PM
How did you fix the primary settings? Was is another whitespace issues? I tend to use gobs of it to help me keep track of what I've changed.
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 10:25 PM
Fixed laugh (although the error log wasn't updated)
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 10:36 PM
You are a genius! How did you do it?
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 10:40 PM
Ok... I noticed that on the Forum Summary, Chat Forum shows no posts, but if you click on it, all the posts are there.

I am going to rebuild everything I can in the CP but I don't know if that'll work.

Thanks!
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 09/12/2004 10:57 PM
I guess you fixed that tipsy
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/13/2004 1:15 AM
Yup ;-) Thanks!!
Posted By: PhillipBurum Re: [6.6 - 6.7] [finished] Calendar - 09/13/2004 6:21 AM
Oh... Bad news!

Ok, so Ubb Code Tags aren't working, and when you click on a members profile you get this:

Global symbol "%pm_topic" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "%pm_topic_data" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "%pm_date" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "%pm_time" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "%pm_post" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "%pm_icon" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "%pm_signature" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "%pm_to" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "%pm_from" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "$user_public_name" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "$key" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "$star" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "$read_marker_1" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "$read_marker_2" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
Global symbol "$pm_count" requires explicit package name at CGIPath/ubb_profile.cgi line 84.
syntax error at CGIPath/ubb_profile.cgi line 84, near "$pm_count)"
CGIPath/ubb_profile.cgi has too many errors.
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 09/13/2004 1:37 PM
Download the plain UBB zip from Infopop and rehack everything, using regular programs (such as Notepad) and regular FTP clients smile
Posted By: GATOR420 Re: [6.6 - 6.7] [finished] Calendar - 10/03/2004 10:38 AM
Hmm... I have calendar set to only staff and selected members can post to the calendar. When I go to an individual users account and select the option that they can post new events to the calendar, they still can't. Any ideas?

Thanks in advance...
Posted By: tintin Re: [6.6 - 6.7] [finished] Calendar - 12/25/2004 8:35 PM
Seasons Greetings,

I have just applied this mod to my board and I am well chuffed that i got it all right first time and so far all seems to be going great.

My question is this - is there a way to have a moderator notified when a new event is added?

Thanks in advance

Howard
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 12/26/2004 4:48 AM
Give this a shot, no guarantee it'll work.

In ubb_lib_calendar.cgi
FIND:
Code
&do_add_event_general($eventtitle, $julian_day, 1, $message, $username);
ADD AFTER:
Code
	my $calendar_message = qq~$username has added a new event.
It can be found <a href="~ . $ULTIMATEBB{"ubb=calendar;date=$julian_day"} .
qq~">here. ($eventtitle)</a>~;

my $forum = 4;
my $Moderator = &build_mod_emails($forum);
&RequireCode("$vars_config{CGIPath}/ubb_lib_mail.cgi");
&ubb_mail_tng({
'EmailTo' => $Moderator,
'EmailFrom' => $vars_display{BBEmail},
'EmailReplyTo' => $vars_display{BBEmail},
'BCCList' => undef,
'Subject' => qq~$username has added a calendar event (Title: $eventtitle)~,
'TextMessage' => $calendar_message . " ... " . $ULTIMATEBB{"ubb=calendar;date=$julian_day"},
'HTMLMessage' => $calendar_message,
'CCList' => undef,
});
Set $forum to whichever forum who's moderators you want to know about the new event
Posted By: tintin Re: [6.6 - 6.7] [finished] Calendar - 12/27/2004 1:44 PM
The email layout needs a tweek but yup that works well.

Thanks for your help with this woot

Howard
Posted By: tintin Re: [6.6 - 6.7] [finished] Calendar - 01/09/2005 4:33 AM
I seem to have a problem with pages being cached, this seems to be stopping the main forum page from updating to new events. The calendar moves forward but the event gets stuck until you clear tge forum summary cache.

Have i done something?

Thanks

Howard
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 01/09/2005 6:01 AM
That is how it's supposed to work, but the cache is normally cleared more than once a day. It is cleared any time someone makes a post, as well as when any settings are changed.


I don't know what you can do with cron jobs, but it'd be relatively easy to have the cache cleared at the end of every day
Posted By: tintin Re: [6.6 - 6.7] [finished] Calendar - 01/09/2005 2:14 PM
Hmmm just having a quiet patch on the forum so this would explain that then. 'cron jobs' ive heard the name before but i have no idea ????

Thanks
Posted By: 1QuickSI Re: [6.6 - 6.7] [finished] Calendar - 01/09/2005 6:17 PM
A CRON job is the ability to schedule tasks to be completed at different intervals through out the day, week or month.
Posted By: tintin Re: [6.6 - 6.7] [finished] Calendar - 01/10/2005 12:58 AM
Hmmmm do they work with the cursed windows?
Posted By: McJ Re: [6.6 - 6.7] [finished] Calendar - 01/13/2005 6:49 PM
Greetings.

Does anyone have a "working" multi-hack for Calendar on 6.7.2? Version downloaded from your Multi-hack page crashes MULTIHACK before even exporting modified files.

Thanks.

McJ.
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 01/16/2005 11:04 AM
hmm.. I just re-exported it and uploaded. The new file is 5 bytes smaller than the old one, maybe it was corrupted some how.

It should work now, let me know if it doesn't smile
Posted By: McJ Re: [6.6 - 6.7] [finished] Calendar - 01/17/2005 3:02 PM
Nope. Locks up after public_common.pl mod applied successfully. Seems to be an exporting prob. Used other mhp files and they work OK. Maybe it's just me?

If I send you my UBB files, would you try?
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 01/18/2005 7:55 AM
Did the file pass the 'analyze' mode?
Posted By: McJ Re: [6.6 - 6.7] [finished] Calendar - 01/18/2005 3:36 PM
Yup. Sure did. Then went on to be applied successfully. Locks when going to output. As mentioned previously, doesn't happen on other multihack files. This is the first one.
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 01/19/2005 8:11 AM
odd, it installs fine for me using the same files. I may be able to look at your files, but it'll probably be this weekend before I can. Are you sure you have the latest forum and multi-hack files?
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 02/24/2005 11:09 PM
LK, I was writing a modification of this for a client and I noticed that when you add an event with a topic, that the link back to the topic is incorrect. Might want to fix it, it's in ubb_new_topic.cgi
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 04/01/2005 9:17 PM
Do you mean that it doesn't use the %ULTIMATEBB hash? Or is it really wrong? Because it looks fine to me...
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 04/02/2005 6:45 AM
I can't find where I did it, but the link was showing up as

http://www.domain.com/cgi/ultimatebb.cgi?ubb=get_topic;f=;t=

or something like that

I ended up doing something like

$pleh = "ubb=get_topic;f=$f;t=$thread";
print $ULTIMATEBB{$pleh};
Posted By: twslex Re: [6.6 - 6.7] [finished] Calendar - 08/04/2005 11:03 PM
Bit wierd and funny:

I had to uncheck, clear cache and check Show today's events in forum summary and clear cache again to get it all working correctly?

Just for someone's knowledge.
Posted By: Poopy Pants Re: [6.6 - 6.7] [finished] Calendar - 08/06/2005 9:02 AM
Is there a way to modify settings to show upcoming events for the month on the main ubb page instead of how it currently shows events which is basically the events that will happen that day.
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 08/07/2005 1:28 AM
It's not possible as easily, though you can make a sidebar and use the ubb_calendar_ssi iframe to see the small calendar box.

I may be looking into making it like you want it to be when I'm back to my computer in about a week.
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 08/07/2005 1:46 AM
I must say that I do like the idea of showing "Events of the Month" vs "Events of the Day"...

Also showing perhaps links on day's with events when using the small calendar view which go to the calendar to display the happenings would be sweet...
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 08/11/2005 7:05 AM
Quote
quote:
Also showing perhaps links on day's with events when using the small calendar view which go to the calendar to display the happenings would be sweet...
I thought it was already doing that confused (note: it doesn't do that for birthdays, because there is a birthday almost every day in big boards).
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 10/03/2005 12:07 PM
help Long time no post.

I just have discovered a problem with the calendar--after having it installed for over a year and a half! tipsy

In the control panel at the calendar, I have calendar set to only staff and selected members can post to the calendar.

Last night, we had a newbie post a new topic and ADD that topic to the calendar. eek

I have several forums that allow that option (i.e. posting a new topic to the calendar), but I *thought* only admin/mods could do so.

It seems like, however, anyone can add a new topic to the calendar in those forums.

Is there any way that I can change that--without the admin/mods losing the ability to post new topics to the calendar?

Am I making sense?!

---

Also, the K.I.S.S. method works best for me--it's been a LONG time since I've taken a gander at code! tipsy

Thanks!
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 10/04/2005 8:35 PM
Nice catch, I guess you're the first person to enable staff-only event posting and new topic event posting all together. smile

ubb_new_topic.cgi: (untested)
Find: (twice)
Code
	my @forums = split(/ /, $vars_calendar{calendar_forum});
Add below:
Code
@forums = split(/ /, 'hey sue') if ($user_profile[8] ne 'Administrator' && $user_profile[8] ne 'MegaModerator' && $user_profile[8] ne 'Moderator');
---

laugh (what's K.I.S.S method? tipsy )
Posted By: ADWOFF Re: [6.6 - 6.7] [finished] Calendar - 10/04/2005 8:43 PM
Quote
Originally posted by LK:

(what's K.I.S.S method? )
laugh Keep It Simple, Stupid! (with me being da stupid party wink tipsy )

Thanks, LK.

I'll give it a shot.

---

ETA--looks like it works! ( smash on wood)

Thanks, LK! thumbsup
Posted By: McJ Re: [6.6 - 6.7] [finished] Calendar - 10/25/2005 2:41 AM
Awesome mod!!!

One question. If, at a later date, I upgrade or decide to restore my originally "modded" files and remove the calender mod, am I screwed?

i.e. does this mod change anything in my member data files, or anything else that would prevent me from uninstalling at a later time if I choose to?

Thanks again,

Justin.
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 10/25/2005 5:44 AM
Shouldn't change anything in the member data file - it used to add the birthdate, but now that's in the base code smile
Posted By: McJ Re: [6.6 - 6.7] [finished] Calendar - 10/27/2005 4:43 PM
Greetings fellow UBB'ers.

Another question. Some of you may remember my problem with an incredibly slow forum, even tho I'm on a dedicated server. My board is HERE

Anyways, I've noticed that since including the calendar mod, it's slowed down a little more, so I have this question.

Do the sub-routines in the calendar mod engage when the calendar isn't being viewed? i.e. for normal navigation around the forum WITHOUT accessing the calendar, is the mod at all used?

Please note tho, the mod is just awesome!!! I hope InfoPop/Groupee include this in their next update.

Greetings from Old Portsmouth, England. rockon
Posted By: Gizmo Re: [6.6 - 6.7] [finished] Calendar - 10/27/2005 9:57 PM
I don't believe the calendar is run unless you have it included to run with the birthday listing).

Also, you can speed up your forum by making some archive forums and dumping old posts into it; you don't really want more than 10k posts in a forum, you should keep it well under it; it should speed you up quite a bit
Posted By: McJ Re: [6.6 - 6.7] [finished] Calendar - 10/28/2005 12:42 AM
Quote
Originally posted by Gizzy:

I don't believe the calendar is run unless you have it included to run with the birthday listing).
Hi Gizzy.

What do you mean, "included to run with the birthday listing" ?
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 10/28/2005 12:47 AM
In the control panel, when you rebuild member stats, you also rebuild the calendar birthday list. I guess Gizzy means that unless you choose to rebuild member stats (it doesn't do it on its own, only when you either upgrade the board or specifically tell it to rebuild), it shouldn't make your board any slower.
Posted By: McJ Re: [6.6 - 6.7] [finished] Calendar - 10/28/2005 12:55 AM
Hi LK.

Yes, I see. Also, I have noticed that the option "Show avatar in birthdays?" was also selected. This would mean, as each post is made, the routine would run to see whether or not the member had a birthday, and if so display the member icon.

I have disabled this option, and performance has improved somewhat.

b/w LK. This is a great mod. Congratulations. And congratulations on this site also! Most excellent resource.

Gizzy. Yes, I have been in touch with InfoPop on the performance in general, and they also advised culling the posts/upgrading to Threads.

I think I'll end up upgrading, however, because it's awfully nice to see a forum section with half a million posts wink

Thanks to you both again.
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 10/28/2005 1:40 AM
Thanks smile

The birthday avatar shouldn't make the board any slower, since it only checks the member profile (which is open in any case) and the calendar variable file (you shouldn't notice that, since dozens of other files are also opened so one more doesn't make any difference).

Upgrading to Threads: a next generation UBB is planned to be released soon, so if I were you I would wait, unless the performance issue is really urgent. smile
Posted By: McJ Re: [6.6 - 6.7] [finished] Calendar - 10/28/2005 3:01 AM
Quote
Originally posted by LK:
Upgrading to Threads: a next generation UBB is planned to be released soon, so if I were you I would wait, unless the performance issue is really urgent. smile
Yeah, I can wait. I've thought about other software (i.e. not InfoPop/Groupee) but the thing is, I've been using UBB since around 2000. (well, June 2000 to be precise)

I've moved my forum onto a fair few servers during that time, and I know the software well. By that, I don't mean coding, but general operations, file systems... so I feel pretty secure if I need to install a backup or move to another server.

In other words, UBB feels like home to me, so yeah, it'll be worth waiting. The only reason I haven't already upgraded to UBB.Threads is coz it looks a bit basic. (i.e the interface)

UBB.Classic looks a lot better. smile
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 12/01/2005 6:54 AM
If the birthdays are off from what's stored in the profile, any way to autmagically update what's displayed in the calendar?

Looks like they registered under one birthday and edited it later to their actual birthday smash
Posted By: RoxSeibert Re: [6.6 - 6.7] [finished] Calendar - 12/03/2005 1:54 AM
insignificant buglet report... it seems that maybe if public display name has an apostrophe in it, the user's age is shown as 2 when their birthday rolls around laugh

http://dragboatalley.com/cgi-bin/ultimatebb.cgi?ubb=calendar;date=2453705#events
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 12/03/2005 2:54 AM
That's the bug I am seeing smash

tipsy
Posted By: warden Re: [6.6 - 6.7] [finished] Calendar - 12/08/2005 10:10 PM
this works for 6.7.2 right??
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 12/08/2005 10:56 PM
Yes, it should work for 6.7.2.

Allen/Rox, I missed your post. The code seems fine actually, I'll check it out soon.
The current code is (do_add_event_birthday):
Code
	my $descs = "$_[1]|!!|$_[0]|!!|$_[2]"; $descs =~ s/'/&#39;/isg;
It should replace all the apostrophes with "'".
Posted By: warden Re: [6.6 - 6.7] [finished] Calendar - 12/25/2005 11:27 PM
Quote
Originally posted by Weird Al:

it's actually quite easy
FIND IN UBB_FORUM_SUMMARY.CGI
Code
</tr>
$TBB
~ : '' ;
REPLACE WITH:
Code
</tr>
$TBB
~ : qq~

$TBT
<tr><td background="$vars_style{AltColumnColor1}"><font color="$vars_style{TextColor}" face="$vars_style{FontFace}" size="$vars_style{FDTextSize}">
$vars_wordlets_calendar{NoStinkinEvent}</font></td></tr>
$TBB~;
And in vars_wordlets_calendar.cgi, add the line
Code
    q!NoStinkinEvent! => q!No Events Scheduled For Today!,
somewhere in the middle. just go into the cp and change that wordlet to whatever you want

I just tried this, and now my board has a problem

http://www.writerzblock.net/cgi-bin/ultimatebb.cgi

please help
Posted By: warden Re: [6.6 - 6.7] [finished] Calendar - 12/26/2005 4:43 AM
PLEASE HELP?????
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 12/26/2005 6:53 AM
I think you just need to re-upload the file(s) (all files you modified), or re-mod them then re-upload.
Posted By: warden Re: [6.6 - 6.7] [finished] Calendar - 12/26/2005 7:25 AM
Quote
Originally posted by AllenAyres:

I think you just need to re-upload the file(s) (all files you modified), or re-mod them then re-upload.

The calander was fine
I just recently used that link above to add it to my main forum page
and now it says im missing something

============================================
An error has occurred:

(RequireCode) CGIPath/ubb_forum_summary.cgi: Missing right curly or square bracket at CGIPath/ubb_forum_summary.cgi line 582, at end of line
syntax error at CGIPath/ubb_forum_summary.cgi line 582, at EOF
Compilation failed in require at CGIPath/ubb_lib.cgi line 932.

Please inform the board administration of this error so that they may fix the problem. Thank you!

» Please use your browser's back button to return.

Now i cant access my forum
Posted By: warden Re: [6.6 - 6.7] [finished] Calendar - 12/26/2005 9:58 PM
Quote
Originally posted by ADWOFF:

I'm beginning to get worried. tipsy

I've actually kinda, sorta figured out another tweak to LK's mod ... based on code from last year ... unfortunately, in my notes, I don't have the individual who created the code for this. Sorry about that.

On the front page of my board, I like to have the calendar listed--and I like to have it at the top--so that when people come to my site, they can see if anything *special* is happening that day.

Using last year's code and playing around a bit, I was able to get it to "work."

Here's what I did:

In public_forum_summary.pl find

Code
$calendar  
Delete it (it only appears once)

----

Also in public_forum_summary.pl find

Code
	$Top .= "</tr>$pntf_locations[1]";

return ($Top);
} # end Normal_Table_Top
before the above code, add

Code
	$Top .=  $calendar;  
-----

In ubb_forum_summary.cgi find

Code
$TBT
<tr>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left">
<font size="1" face="$vars_style{FontFace}">$calendar$linebreak$birthdays
</font>
</td>
</tr>
$TBB
replace it with

Code
<tr bgcolor="$vars_style{CategoryStripColor}">
<td colspan="6">
<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}" color="$vars_style{CategoryStripTextColor}">
<b>$vars_wordlets_calendar{calendar}</b>
</a>
</font>
</td>
</tr><tr>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left">
<img src="$vars_config{NonCGIURL}/calendarfs.gif" alt="" />
</td>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left" colspan="6">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$calendar
</font>
</td>
</tr>
----


Edit to add: you also need to clear the cache

-------

It seems to be working w/out problems ( smash knock on wood) ... again, I cannot take credit for this add-on to the calendar mod ... I'm not sure who created this code.

I just tried this
and its not working for me
I just would like to add it to my main forum page
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 12/26/2005 10:04 PM
Add an event or something. the calendar only shows up when you have an event or birthday that day
Posted By: warden Re: [6.6 - 6.7] [finished] Calendar - 12/27/2005 3:51 AM
^^^^
I tried that
It didnt work
it wont show up on my page
for that matter
There isnt anything on my control panel as well for the calander

Am i missing something??
Posted By: warden Re: [6.6 - 6.7] [finished] Calendar - 12/28/2005 2:04 AM
help
Posted By: warden Re: [6.6 - 6.7] [finished] Calendar - 12/28/2005 3:14 AM
i got it working now
thanks
Posted By: PTK Re: [6.6 - 6.7] [finished] Calendar - 01/25/2006 12:46 AM
n00b here. laugh
I have a question.
I got to editing the ubb_new_topic.cgi
Where the instructions ask to find:
Code
	# show signature?
if (($vars_display{AllowSignature} eq 'YES') && (($username && ($username ne '')) &#0124;&#0124; ($vars_display{RequireLoginPosts} eq "NO"))) {
$show_sig = qq(
<input type="checkbox" name="Signature" id="Signature" value="yes" checked="checked" /> $vars_wordlets{show_signature});
}
All I can find in my ubb_new_topic.cgi is:
Code
# show signature?
if (($vars_display{AllowSignature} eq 'YES') && ($username ne '')) {
my $checked = $user_prefs->{check_nosig} ? "" : qq~checked="checked"~;
$show_sig = qq(
<input type="checkbox" name="Signature" id="Signature" value="yes" $checked /> $vars_wordlets{show_signature});
}
Any thoughts?
Can I just preform the "Add below:" instructions below what I have in my ubb_new_topic.cgi?

BTW I am running UBBClassic 6.7.2
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 01/25/2006 12:54 AM
yes, apparently the instructions weren't updated for 6.7, but yes, that should work fine
Posted By: PTK Re: [6.6 - 6.7] [finished] Calendar - 01/25/2006 1:25 AM
Thanks so much for the quick reply.
Posted By: PTK Re: [6.6 - 6.7] [finished] Calendar - 01/25/2006 4:12 AM
Calendar is working but I have no

Modifications/Calendar in the CP

What did I miss?
Posted By: Ian Spence Re: [6.6 - 6.7] [finished] Calendar - 01/25/2006 7:17 AM
that is all in cp2_lib.cgi and cp2_vars.cgi, so make sure that you did all of the modifications for those, and make sure you uploaded the modified files.
Posted By: PTK Re: [6.6 - 6.7] [finished] Calendar - 01/25/2006 7:35 AM
Awesome...
I missed something in cp2_lib.cgi
Up and running
Thanks so much for the mod and the help.
You guys rock rockon
Posted By: PTK Re: [6.6 - 6.7] [finished] Calendar - 01/29/2006 10:32 PM
Another question.
I set calendar to "Only Staff and selected members may post new events" and I have selected the "User may post new Calendar event?" check box for a member.
That member is unable to post an event on the calendar.

It appears that only I (the administrator) can post events.

What am I missing?

Thanks
Posted By: tgreene Re: [6.6 - 6.7] [finished] Calendar - 02/06/2006 10:39 PM
I have strange request in regards to this hack...

I have already installed everything and have it working perfectly, EXCEPT that I have intentionally skipped hacking 'public_common.pl' since I don't want the calendar to be available in any manner other than the Nav Bar on the left side of my page.

The way I design, my sites are extremely frames dependant, so I need to resolve 1 major issue, and 1 minor one.

1) (the minor issue) I am wanting to eliminate everything above the Month Date { profile-faq-home-etc}, but am unable to locate the line of code to do so. I figured it was simply a matter of removing the 2nd line in 'public_calendar.pl', but that did nothing.

2) (the MAJOR issue) When clicking on a date with info, then clicking on the link at the bottom of the Calendar that send you to the actual Forum Page, it brings it up to a 2nd page, that IS NOT within a frame structure... I'm needing this link to call a parent INDEX page that will in turn call the specific forum topic page under it.

A quick look through my site should give you guys a basic idea of what I'm looking for.

http://www.nea-reefkeeping.com/index-calendar.htm

Also, if somebody could explain how create the small calendar image in the sidebar via the SSI, that would be killer, because I could remove the text link.
Posted By: tgreene Re: [6.6 - 6.7] [finished] Calendar - 02/07/2006 3:12 AM
Okay, I was able to resolve Issue #2 by editing 'vars_calendar_events.cgi' and changing the URL to force it through the necessary paths.

Any suggestions for Issue #1 however, would be greatly appreciated. smile
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 02/07/2006 4:59 AM
removing that will pretty difficult since the code there is the same code throughout the forum files (it's all pulled from public_common.pl) - turning it off in one place turns it off all over smash

You could edit the header and footer of the calendar file to pull headers and footers the old way, but there's a little effort/trial and error involved smile
Posted By: tgreene Re: [6.6 - 6.7] [finished] Calendar - 02/07/2006 5:32 AM
Grrrrrrr, I'm at a loss... frown
Posted By: AllenAyres Re: [6.6 - 6.7] [finished] Calendar - 02/07/2006 10:59 PM
for the small calendar, check out the instructions at the top of the calendar template file.
Posted By: tgreene Re: [6.6 - 6.7] [finished] Calendar - 02/08/2006 12:14 AM
Thanks Allen. smile
Posted By: PTK Re: [6.6 - 6.7] [finished] Calendar - 04/19/2006 10:01 PM
I was looking to add some text to the Calendar page.
What I would like to do is add some text and a link which would display just above the nav bar but below the "$thismonth $yeartem"

Can this be added to the public_calendar.pl file?
If so where and how would I place this information?
Posted By: LK Re: [6.6 - 6.7] [finished] Calendar - 04/22/2006 7:08 AM
In public_calendar.pl file, find:
Code
		before_navbar => qq~<h2 align="center">$thismonth $yeartem</h2>~,
After the tag, add the text, for example:
Code
		before_navbar => qq~<h2 align="center">$thismonth $yeartem</h2>


I hate Mercedes and BMW.~,
© UBB.Developers