php forum
php mysql forum
php mysql smarty
 
Page 4 of 14 < 1 2 3 4 5 6 ... 13 14 >
Topic Options
#199084 - 02/05/04 10:11 AM Re: [6.6 - 6.7] [finished] Calendar
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
and the upgrade.cgi file smile

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

I believe there were a couple places in the instructions that needed to be updated too, but I may be confusing that with the page views mod smile
_________________________
- Allen wavey
- What Drives You?

Top
#199085 - 02/05/04 11:28 AM Re: [6.6 - 6.7] [finished] Calendar
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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.
_________________________
Code monkey like Fritos

Top
#199086 - 02/10/04 07:48 AM Re: [6.6 - 6.7] [finished] Calendar
Nightcrawler Offline
User

Registered: 12/17/03
Posts: 47
Loc: San Diego
In the ultimatebb.cgi -

Instead of:

Code:
Find:
=====

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

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

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

Code:
Find:
=====

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

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

if ($ubb eq 'calendar') {
	&RequireCode("$vars_config{CGIPath}/ubb_lib_calendar.cgi");
	&calendar_main;
	exit(0);
}    #end calendar  
At least for 6.7?

Top
#199087 - 02/13/04 10:27 AM Re: [6.6 - 6.7] [finished] Calendar
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Quote:
Originally posted by AllenAyres:

and the upgrade.cgi file smile


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

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

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

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

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


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

Profiles work fine without this mod, not sure what's up. smash
_________________________
- Allen wavey
- What Drives You?

Top
#199088 - 02/13/04 11:52 AM Re: [6.6 - 6.7] [finished] Calendar
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
If you got Calendar a long time ago, make sure the ubb_profile portion is:
Code:
	# add birthday data to calendar 
	use vars qw(%vars_calendar $poster_name);
	&RequireVars("$vars_config{VariablesPath}/vars_calendar.cgi");
	if (($vars_calendar{use_name} eq 'login') &#0124;&#0124; ($public_name eq '')) {
		$poster_name = $user_profile[0];
	} else {
		$poster_name = $public_name;
	}
	&GetDateTime;
	my $julian_bday = &jday($in{bday_month},$in{bday_day},$in{bday_year});
	&RequireCode("$vars_config{CGIPath}/ubb_lib_calendar.cgi");
	if ($in{bday_public} eq 'yes') {
		&do_add_event_birthday($poster_name,$julian_bday,$in{u});
	}
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#199089 - 02/13/04 11:59 AM Re: [6.6 - 6.7] [finished] Calendar
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
that fixed it LK, thank you very much thumbsup

What's weird is that that code isn't what we use here (I was file comparing to see where I messed up tipsy ).
_________________________
- Allen wavey
- What Drives You?

Top
#199090 - 03/01/04 12:35 PM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Quote:
Originally posted by d-talk:

Hi,

i build it into 6.7 and get that error:

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

what can I do?


frown I'm beginning to think I'm completely jinxed doing this new upgrade.

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

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

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

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

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

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

I still get that error message.

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

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

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

Remember, too, that I know very little about the inner workings of these files, so the K.I.S.S. would be most appreciated! laugh
_________________________
Sue
adwoff.com

Top
#199091 - 03/01/04 01:41 PM Re: [6.6 - 6.7] [finished] Calendar
framer2 Offline
Junior Member

Registered: 02/27/04
Posts: 6
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

Top
#199092 - 03/01/04 02:10 PM Re: [6.6 - 6.7] [finished] Calendar
Eric Flyxe Offline
Member

Registered: 05/03/01
Posts: 57
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...

Top
#199093 - 03/01/04 06:19 PM Re: [6.6 - 6.7] [finished] Calendar
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
You know, I think this was orginally created just to show everyones birthday, for the sheer fact, there is no option to not show birthdays lol...

I use this mod at http://homepage.undergroundnews.com/ to feed me the dayview and the month view wink ...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199094 - 03/01/04 06:32 PM Re: [6.6 - 6.7] [finished] Calendar
Eric Flyxe Offline
Member

Registered: 05/03/01
Posts: 57
Well, great if we can find new ways of using this mod! wink

Top
#199095 - 03/01/04 06:41 PM Re: [6.6 - 6.7] [finished] Calendar
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
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...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199096 - 03/01/04 08:00 PM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Okay, I tried again to rehack this, and once again, I ran into the error message as I mentioned before (like d-talk).

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

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

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

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

I've installed this hack in all of my UBB's since 2001 (or whenever the calendar hack came into being), and I've never had the problems I'm having right now. Again, any feedback/guidance would be very much appreciated.
_________________________
Sue
adwoff.com

Top
#199097 - 03/01/04 09:00 PM Re: [6.6 - 6.7] [finished] Calendar
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
Odd, I got it installed perfectly on my 6.7 forums...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199098 - 03/01/04 09:07 PM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Quote:
Originally posted by Gizzy:

Odd, I got it installed perfectly on my 6.7 forums...


You calling me, Odd? Funny, I resemble that remark! tipsy wink laugh

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

  1. Wordlets
  2. Smilies
  3. Advanced Code
  4. Split categories/posts
  5. News fader (albeit that one's not working *properly*)
_________________________
Sue
adwoff.com

Top
#199099 - 03/01/04 11:12 PM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
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?
_________________________
Sue
adwoff.com

Top
#199100 - 03/01/04 11:15 PM Re: [6.6 - 6.7] [finished] Calendar
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
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.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199101 - 03/02/04 12:23 AM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
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.
_________________________
Sue
adwoff.com

Top
#199102 - 03/02/04 06:07 AM Re: [6.6 - 6.7] [finished] Calendar
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
It's supposed to be in the CGI folder and chmoded 755. Be sure your old events file is still in the directory.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199103 - 03/02/04 08:48 AM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Well, Gizzy, I've done all that ... and I'm still getting this kind of a message:

Quote:
quote:
syntax error at /home/adwoff/ubb-test/cgi/vars_calendar_events.cgi line 1, near "2452714y&#0124;&#0124;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:

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

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

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

and

---------

Code:
if ($ubb eq 'forum') {

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

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

This could be where I'm making my mistake.

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

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

if ($ubb eq 'calendar') {
	&RequireCode("$vars_config{CGIPath}/ubb_lib_calendar.cgi");
	&calendar_main;
	exit(0);
}    #end calendar
If this is the problem--I sure hope it's that easy smile --could someone please let me know?
_________________________
Sue
adwoff.com

Top
Page 4 of 14 < 1 2 3 4 5 6 ... 13 14 >


Moderator:  Charles, Gizmo 
Who's Online
2 registered (Micky, Ruben Rocha), 23 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by Ruben Rocha
12/02/08 02:58 PM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438