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.
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]
Demo:
FYI
You are attempting to reach a page that does not exist.
» Please use your browser's back button to return.
thanks LK
yeah, I didn't install it on ubbdev yet
awwe no link to calendar re-location?
the code is different, so you'll need a 6.6 version anyway
Oops, ZIP file updated, please rehack ubb_forum_summary.cgi and update vars_wordlets_calendar with the 2 "forum_summary_X" values..
quote:
Originally posted by Gizzy:
any new changes?
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
mmmm, sounds super... lemme grab the 6.5 one :x...
LK, is there anything "buggy" about this?
ie. why still in beta?
Weird Al's feature listing is correct.. there are also more features, such as a rebuilt event review
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
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!
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
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
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!
it works fine, the beta is just so he can add to it without making it 3.0
yeah, beta is only because the feature list isn't final.
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
nothing shows unless there is an event today, so just add an even today and it will show
*hopes this time the post stays*
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
it's actually quite easy
FIND IN UBB_FORUM_SUMMARY.CGI
REPLACE WITH:
</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
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
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
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
No, not the link there, the Link above recent Visitors, ":Kalendertest".....
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).
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
## 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
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?
right before that code, add
my($poster_name, $julian_bday);
use vars qw(%vars_calendar);
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.
I added the to lines before the new code in ubb_registration.cgi and now it works....
As an asside, what script was used to get this to show up as a little calendar on the main page?
look at the top of ubb_lib_calendar_ssi.cgi to see the examples
On my site I use:
[code][/code]
Hi,
can you tell me what I have to do, that calendar looks like at Al's page?
That's default for the presant version out when there is no event I believe...
No, I mean with a table arround and the calendar gif infront of...
Oh, view the thread in forum design and integration on calendar relocation (by me). It may also be on
http://mods.undergroundnews.com/
Thank you Gizzy for your help!!!
Hi,
here is the code for calendars table, but the image table ist to wide...
$TBT
Calendar |
|
$calendar
|
$TBB
I already posted in that topic how to fix it
you put
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="center" width="1"><img src="$vars_config{NonCGIURL}/calendar.gif" border="0" alt="" /></td>
in there?
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.
Where was that posted? I can't seem to find it.
- MT
Sorry, I haven't noticed there was page 4... My last reply was only to d-talk.
I believe the current version of calendar66.zip works with 6.7.
Hi,
something with the table does not work, look at:
http://www.d-talk.tv/cgi-bin/ultimatebb.cgi
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
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...
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.
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
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..
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?
please
The current works with minor tweaks, see my last post heh...
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]
Originally posted by Ian Spence:
right before that code, add
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
Updated now.
*coughs*make sure you update ubb_registration.cgi too*cough*
and the upgrade.cgi file
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
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.
In the ultimatebb.cgi -
Instead of:
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:
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?
Originally posted by AllenAyres:
and the upgrade.cgi file
Yes, this caused me a couple hour hassle yesterday when trying to install. The use vars statetment from ultimatebb.cgi needs to be added
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.
If you got Calendar a long time ago, make sure the ubb_profile portion is:
# 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') || ($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});
}
that fixed it LK, thank you very much
What's weird is that that code isn't what we use here (I was file comparing to see where I messed up
).
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?
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
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!
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
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...
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
...
Well, great if we can find new ways of using this mod!
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...
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?
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.
Odd, I got it installed perfectly on my 6.7 forums...
Originally posted by Gizzy:
Odd, I got it installed perfectly on my 6.7 forums...
You calling me, Odd? Funny, I resemble that remark!
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:
- Wordlets
- Smilies
- Advanced Code
- Split categories/posts
- News fader (albeit that one's not working *properly*)
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?
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.
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.
It's supposed to be in the CGI folder and chmoded 755. Be sure your old events file is still in the directory.
Well, Gizzy, I've done all that ... and I'm still getting this kind of a message:
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.
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:
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:
# 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
---------
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:
# 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
--could someone please let me know?
upload a blank vars_calendar_events.cgi, then rebuild the Member data in the cp
Thank you, Ian.
Now I have another question, well, actually, three or more
:
- 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 )
- 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?
- 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.
1. Yes, but if you backup the old file, you could readd that stuff
2. You could find:
$vars_wordlets_calendar{events_for} $vars_wordlets_calendar{$this_month} $daytem, $yeartem
in public_calendar.pl and add
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
OR just use "upgrade.cgi" from the ZIP file instead of uploading a blank calendar_events file..
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.
I actually kinda figured something out ... well, with a little help from looking at a mod from last year.
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
<td><font size="1" face="$vars_style{FontFace}" color="$vars_style{TableStripTextColor}">
<b>$vars_wordlets_calendar{event}</b></font></td><td>
replace it with
<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
$preday="<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar;date=$j">$preday";
replace it with
$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.
I'm beginning to get worried.
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
Delete it (it only appears once)
----
Also in
public_forum_summary.pl find
$Top .= "</tr>$pntf_locations[1]";
return ($Top);
} # end Normal_Table_Top
before the above code, add
-----
In
ubb_forum_summary.cgi find
$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 <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 (
knock on wood) ... again, I cannot take credit for this add-on to the calendar mod ... I'm not sure who created this code.
"So it displays on the main page"...
You mean like at
http://homepage.undergroundnews.com/ ? I'm using the SSI file to retrieve it...
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
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...
<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
<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>
Hey, thanks, Ian.
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.
Go edit their profile, take out "show birthday" and then rebuild member data.
*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
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!
Back to work I go.
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...)
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.
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
Give me the code aswell?
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:
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.
haha! I love when debug code slips to my release.
ubb_new_topic, you see
print "hey!! @forums and $forums[0].";
and
print "Content-type: text/htmlnnyay!!! $_ ";
remove em
Disclaimer: This is not wordletized, and is in CSS, so might look weird on your board.In ubb_forum_summary.cgi
change
$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 || $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
$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~;
}
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!
change
to
bgcolor="$vars_style{CategoryStripColor}"
to
bgcolor="$vars_style{AltColumnColor1}"
to
bgcolor="$vars_style{AltColumnColor2}"
you're also gonna have to edit the colspans
Can I easily show the events from today and seven days ahead, instead of the current day?
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.
New topic automatically clears cache, that's why it's updated.
I'm off to class now, but I'll try to help later
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...
Gotcha, LK!
Makes great sense.
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
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?
i also cleared the cache and CP Calendar settings page still doesnt like me
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!)
ahhh ha! cp2_vars.cgi didnt get uploaded. late nite upgrades can be ruff
(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)
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.
You can't in the CP, but you can in ubb_lib_calendar.cgi: (UNTESTED)
Find
Add below:
%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.
ok for some strange reason I don't get the calendar stuff on forum summary
I used Allen's multihack file
Re-hack ubb_forum_summary.cgi from the text instructions, and public_forum_summary.pl...
I'm checing the MHP file in a sec
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.
oops
file updated, thank you
Hehe, I like MultiHack's but it's better experiance if you do it by hand, you end up learning how things work...
Originally posted by LK:
You can't in the CP, but you can in ubb_lib_calendar.cgi: (UNTESTED)
Find
Add below:
%vars_style = &LoadStyleTemplate("forum_1");
that didnt do it for me... unless maybe I need to clear cache first??
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 {
%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.)
yes - forum #1 uses the StandardForum style template. However i replaced the first line of code you gave me with this one
%vars_style = &LoadStyleTemplateRaw("5");
and that worked perfectly!!
thank you so much for your help!!
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?
ha! i found my answer...
Im ubb_forum_summary.cgi find:
$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:
$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
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:
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:
vs. what it looks like on the test site:
And here's what it looks like when I click inside the mod:
vs. the test site
-----
I'm seriously braindead (no comments from the cheap seats
) over here after a very stressful week ... if anyone could point me in the right direction, I'd be most appreciative.
Thanks.
you didn't update your vars_wordlets_cp2.cgi file
As for the upgrade.cgi, I'm sure LK will post an updated version
Originally posted by Ian Spence:
you didn't update your vars_wordlets_cp2.cgi file
I didn't? Okay.
Will do!
Thanks, Ian.
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:
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
);
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?
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.
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.
You don't need Mod Wordlets
I think I might know where's the problem:
The calendar.txt file has:
###########################################################
## 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.
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.
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!
Good work lk. Like always.
I will be installing this shortly.
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
Thanks in advance.
"Who can post events?" is perhaps the one you're looking for
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.
Wow, thanks for the quick reply. Yes, "Who can post events?" would be what I'm looking for.
Remember, I'm a newbie.
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...
Administrators are already special people, so they don't have the checkbox.
Only non-Administrators and Moderators get a checkbox.
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.
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
BTW it's Perl, not PHP
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. =/
On the left sidebar, on the very bottom it should say "Calendar".
If you can't find it there, redo cp2_lib.cgi and vars_wordlets_cp2.cgi.
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...
Can you start over modding this file from a clean cp2_lib.cgi?
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..
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.
now that's strange, you do have UBB 6.7, right?
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)
Okay, I went over the code the other night to see if I missed anything ... but I don't think (keyword, think
) 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:
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.
It's going to sound stupid, but do you have the wordlets mod installed; properly?
add %vars_wordlets_mods to the use vars lines in upgrade.cgi
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...
the public_common.pl step won't work as the code changed in 6.7 and that step was not updated accordingly
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:
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:
&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:
'ADWOFF||2453131||baccsurfs's Birthday||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:
'2438521|!!|baccsurfs|!!|00003321',
I'm guessing that the problem is with the !! between the two | | ...
if you have a separate parts for birthdays and events, that means it's already upgraded
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
Know what would be really really cool
If I could add a picture for each month in hte calendar
.. how hard would that be ?
Originally posted by Ian Spence:
if you have a separate parts for birthdays and events, that means it's already upgraded
Okay.
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?
What code do you have in ubb_forum_summary.cgi? (related to calendar)
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 notice the difference
Why would anyone begin their week on Monday?
Though I'll probably add a CP control next release, thanks for the idea
.
Hi LK,
in Europe everyone begin his week on Monday!
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
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
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
Don't even get me started about the metric system
Technically we're just as old as we where their colonists
... We just declaired ourselves from them
...
Originally posted by Gizzy:
Technically we're just as old as we where their colonists
... We just declaired ourselves from them
...
Actually, European countries date back further than 1492, some even to the 1450s
Well yeah, but Sunday was the first day 5800 years ago
Originally posted by Ian Spence:
Actually, European countries date back further than 1492, some even to the 1450s
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...
here's another question
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:
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
make sure you uploaded cp2_calendar.pl
and make sure you uploaded it to the noncgi/Templates folder.
I fixed it. Thanks! And my users love it!
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...
no, you can just remove :rolleyes: from the message
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
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.
Maybe I'm missing something, but can you edit/delete events from the calendar now? I don't see a link...
Go to the day of the event. In the lower table, there will be an "[EDIT]" link floating to the right of the description
k, thanks
I'm guessing that doesn't include birthdays too then
I don't think so, as birthdays are set via user profiles...
That's correct
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
Thanks guys!
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 "/>
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)
Starting at line 1250 (Plus a few)
} // 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
And starting at 1340
<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>
That's really strange, your line 1250 is my 388, and your 1340 is my 457
.
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?
Uh, I'm not sure how you'd download it, but I'll PM you FTP information if you wish ;-)
the problem is most likely in the cosmetic links mod combined with this, so it'd be in the main buttons line
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
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".
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.
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
I've never actually seen the error log. Where do I find it?
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.
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.
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.
Fixed Primary Settings
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)
THe web server control panel? Hmm, I'll PM you the information.
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.
Fixed
(although the error log wasn't updated)
You are a genius! How did you do it?
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!
I guess you fixed that
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.
Download the plain UBB zip from Infopop and rehack everything, using regular programs (such as Notepad) and regular FTP clients
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...
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
Give this a shot, no guarantee it'll work.
In ubb_lib_calendar.cgi
FIND:
&do_add_event_general($eventtitle, $julian_day, 1, $message, $username);
ADD AFTER:
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
The email layout needs a tweek but yup that works well.
Thanks for your help with this
Howard
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
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
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
A CRON job is the ability to schedule tasks to be completed at different intervals through out the day, week or month.
Hmmmm do they work with the cursed windows?
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.
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
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?
Did the file pass the 'analyze' mode?
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.
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?
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
Do you mean that it doesn't use the %ULTIMATEBB hash? Or is it really wrong? Because it looks fine to me...
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};
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.
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.
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.
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...
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
(note: it doesn't do that for birthdays, because there is a birthday almost every day in big boards).
Long time no post.
I just have discovered a problem with the calendar--after having it installed for over a year and a half!
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.
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!
Thanks!
Nice catch, I guess you're the first person to enable staff-only event posting and new topic event posting all together.
ubb_new_topic.cgi: (untested)
Find: (twice)
my @forums = split(/ /, $vars_calendar{calendar_forum});
Add below:
@forums = split(/ /, 'hey sue') if ($user_profile[8] ne 'Administrator' && $user_profile[8] ne 'MegaModerator' && $user_profile[8] ne 'Moderator');
---
(what's K.I.S.S method?
)
Originally posted by LK:
(what's K.I.S.S method? )
Keep It Simple, Stupid! (with me being da stupid party
)
Thanks, LK.
I'll give it a shot.
---
ETA--looks like it works! (
on wood)
Thanks, LK!
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.
Shouldn't change anything in the member data file - it used to add the birthdate, but now that's in the base code
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.
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
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" ?
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.
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
Thanks to you both again.
Thanks
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.
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.
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.
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
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
http://dragboatalley.com/cgi-bin/ultimatebb.cgi?ubb=calendar;date=2453705#events
That's the bug I am seeing
this works for 6.7.2 right??
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):
my $descs = "$_[1]|!!|$_[0]|!!|$_[2]"; $descs =~ s/'/'/isg;
It should replace all the apostrophes with "'".
Originally posted by Weird Al:
it's actually quite easy
FIND IN UBB_FORUM_SUMMARY.CGI
REPLACE WITH:
</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
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
I think you just need to re-upload the file(s) (all files you modified), or re-mod them then re-upload.
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
Originally posted by ADWOFF:
I'm beginning to get worried.
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
Delete it (it only appears once)
----
Also in
public_forum_summary.pl find
$Top .= "</tr>$pntf_locations[1]";
return ($Top);
} # end Normal_Table_Top
before the above code, add
-----
In
ubb_forum_summary.cgi find
$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 <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 (
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
Add an event or something. the calendar only shows up when you have an event or birthday that day
^^^^
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??
i got it working now
thanks
n00b here.
I have a question.
I got to editing the ubb_new_topic.cgi
Where the instructions ask to find:
# show signature?
if (($vars_display{AllowSignature} eq 'YES') && (($username && ($username ne '')) || ($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:
# 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
yes, apparently the instructions weren't updated for 6.7, but yes, that should work fine
Thanks so much for the quick reply.
Calendar is working but I have no
Modifications/Calendar in the CP
What did I miss?
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.
Awesome...
I missed something in cp2_lib.cgi
Up and running
Thanks so much for the mod and the help.
You guys rock
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
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.
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.
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
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
Grrrrrrr, I'm at a loss...
for the small calendar, check out the instructions at the top of the calendar template file.
Thanks Allen.
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?
In public_calendar.pl file, find:
before_navbar => qq~<h2 align="center">$thismonth $yeartem</h2>~,
After the tag, add the text, for example:
before_navbar => qq~<h2 align="center">$thismonth $yeartem</h2>
I hate Mercedes and BMW.~,