|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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.)
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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!!
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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? 
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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 
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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: ![[Linked Image]](http://adwoff.com/calendar1b.jpg) 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.
Sue adwoff.com
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
you didn't update your vars_wordlets_cp2.cgi file As for the upgrade.cgi, I'm sure LK will post an updated version
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Originally posted by Ian Spence: you didn't update your vars_wordlets_cp2.cgi file I didn't? Okay. Will do! Thanks, Ian.
Sue adwoff.com
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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 );
|
|
|
|
Joined: Aug 2001
Posts: 103
Member
|
Member
Joined: Aug 2001
Posts: 103 |
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?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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.
|
|
|
|
Joined: Aug 2001
Posts: 103
Member
|
Member
Joined: Aug 2001
Posts: 103 |
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.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
You don't need Mod Wordlets 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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.
|
|
|
|
Joined: Aug 2001
Posts: 103
Member
|
Member
Joined: Aug 2001
Posts: 103 |
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. 
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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!
|
|
|
|
Joined: Oct 2001
Posts: 572
Member
|
Member
Joined: Oct 2001
Posts: 572 |
Good work lk. Like always.  I will be installing this shortly.
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
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.
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
"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.
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
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...
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Administrators are already special people, so they don't have the checkbox.
Only non-Administrators and Moderators get a checkbox.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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 
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
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. =/
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
On the left sidebar, on the very bottom it should say "Calendar".
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
If you can't find it there, redo cp2_lib.cgi and vars_wordlets_cp2.cgi.
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
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...
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Can you start over modding this file from a clean cp2_lib.cgi?
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
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..
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
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.
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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)
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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.
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 |
It's going to sound stupid, but do you have the wordlets mod installed; properly?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
add %vars_wordlets_mods to the use vars lines in upgrade.cgi
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
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...
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
the public_common.pl step won't work as the code changed in 6.7 and that step was not updated accordingly
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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 | | ...
Sue adwoff.com
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
if you have a separate parts for birthdays and events, that means it's already upgraded 
|
|
|
|
Joined: Feb 2003
Posts: 179
Member
|
Member
Joined: Feb 2003
Posts: 179 |
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 
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
Know what would be really really cool If I could add a picture for each month in hte calendar  .. how hard would that be ?
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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?
Sue adwoff.com
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
What code do you have in ubb_forum_summary.cgi? (related to calendar)
|
|
|
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
|
|
|
|