|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
upload a blank vars_calendar_events.cgi, then rebuild the Member data in the cp
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Thank you, Ian. ![[Linked Image]](http://adwoff.com/ubb/graemlins/bigthumbsup.gif) 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.
Sue adwoff.com
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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.
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
![[Linked Image]](http://adwoff.com/ubb/graemlins/faintthud.gif) 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
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
"So it displays on the main page"... You mean like at http://homepage.undergroundnews.com/ ? I'm using the SSI file to retrieve it...
|
|
|
|
Joined: Feb 2004
Posts: 6
Junior Member
|
Junior Member
Joined: Feb 2004
Posts: 6 |
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
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Sue adwoff.com
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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>
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Go edit their profile, take out "show birthday" and then rebuild member data.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
*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 
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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.
Sue adwoff.com
|
|
|
|
Joined: May 2001
Posts: 58
Member
|
Member
Joined: May 2001
Posts: 58 |
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...)
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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 adwoff.com
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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 
|
|
|
|
Joined: May 2001
Posts: 58
Member
|
Member
Joined: May 2001
Posts: 58 |
Give me the code aswell? 
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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.
Sue adwoff.com
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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 
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Sue adwoff.com
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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~;
}
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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! 
Sue adwoff.com
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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
|
|
|
|
Joined: May 2001
Posts: 58
Member
|
Member
Joined: May 2001
Posts: 58 |
Can I easily show the events from today and seven days ahead, instead of the current day?
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
 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.
Sue adwoff.com
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
New topic automatically clears cache, that's why it's updated.
I'm off to class now, but I'll try to help later
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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...
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Gotcha, LK!  Makes great sense.
Sue adwoff.com
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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?
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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!)
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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)
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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.
|
|
|
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
ok for some strange reason I don't get the calendar stuff on forum summary  I used Allen's multihack file
Do you believe in love at first sight, or should I walk by again?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Re-hack ubb_forum_summary.cgi from the text instructions, and public_forum_summary.pl... I'm checing the MHP file in a sec
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
oops file updated, thank you 
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Hehe, I like MultiHack's but it's better experiance if you do it by hand, you end up learning how things work...
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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??
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|