 |
 |
 |
 |
#199108 - 03/03/04 01:00 AM
Re: [6.6 - 6.7] [finished] Calendar
|
Content Queen
Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
|
 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.
_________________________
Sue adwoff.com
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#199109 - 03/03/04 02:33 AM
Re: [6.6 - 6.7] [finished] Calendar
|
Content Queen
Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
|
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.
_________________________
Sue adwoff.com
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#199114 - 03/03/04 11:43 PM
Re: [6.6 - 6.7] [finished] Calendar
|
Content Queen
Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
|
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.
_________________________
Sue adwoff.com
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|