Previous Thread
Next Thread
Print Thread
Rating: 14
Page 4 of 4 1 2 3 4
Re: Found a little bug [Re: Maze_Brendan] #213833 03/14/2002 1:40 AM
Joined: Nov 2001
Posts: 54
dRiver Offline
Junior Member
Offline
Junior Member
Joined: Nov 2001
Posts: 54
phew!! I thought I had buggered it!!

ouch, I would love to know where to start.......lol

config inc is set from contol panel==>writes to ubbt inc? which is by editdisplay????????

my brain hurts.........am I on the right track to anything?


cheers,

dRiver

Sponsored Links
Re: Found a little bug [Re: Maze_Brendan] #213834 03/15/2002 5:37 AM
Joined: Nov 2001
Posts: 54
dRiver Offline
Junior Member
Offline
Junior Member
Joined: Nov 2001
Posts: 54
found this piece of code and was wondering if it will fis the time offset and the best way/place to insert it into the hack

$hourdiff = "16";
// hours difference between server time
// and local time in this case, we're *ahead*
// of our server by 16 hours
$timeadjust = ($hourdiff * 60 * 60);
$melbdate = date("l, d F Y h:i a",time() + $timeadjust);
print ("$melbdate");


dRiver

Calendar [Re: lanet] #213835 03/30/2002 8:11 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
AllenAyres Offline
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I added links to the current files in the first post, you can also find them on the 7th page and here:

For those experienced that can handle diff comparisons, I have the differences between stock 5.5.1 threads files and the calendar modification (v2.2).

diff.zip
(stock 5.5.1 on the left and modifications on the right)

For us mere mortals, here is a more understandable instruction set:
calendar_2_2.zip


- Allen wavey
- What Drives You?
Re: Calendar [Re: SurfMinister] #213836 03/30/2002 10:39 AM
Joined: Mar 2002
Posts: 15
TestPappy Offline
Newbie
Offline
Newbie
Joined: Mar 2002
Posts: 15
I love you Guys ****Cries*****
this is awesome really thank you so much Allen and Max and everyone who made this Possible!!!!!!:)

bugfix #2 [Re: Maze_Brendan] #213837 03/30/2002 10:40 AM
Joined: May 1999
Posts: 149
Max Fisch Offline OP
Enthusiast
OP Offline
Enthusiast
Joined: May 1999
Posts: 149
A second little bugfix...

In addpost.php, find the following:

************************************************************

// -------------------------------------------------------
// Make sure there's a location or it's a reply
if($Calendar == 'Y') {
if ( !$Location && !$replyto ) {
$html -> not_right($ubbt_lang['ALL_FIELDS'],$Cat);
}
}

************************************************************

And replace with:

************************************************************

// -------------------------------------------------------
// If this is a reply, don't treat this as a calendar
if ( $replyto ) { $Calendar = 'N' ; }

// -------------------------------------------------------
// Make sure there's a location or it's a reply
if($Calendar == 'Y' && !$Location) {
$html -> not_right($ubbt_lang['ALL_FIELDS'],$Cat);
}

************************************************************

As a result of the bug, addpost was making unneeded entries into the Events table for replies. If desired, you can delete entries in the w3t_Events table which don't have a location listed.

Also, an old/incorrect date was being shown in the preview of replies on the calendar board.

Regards,
Max

Sponsored Links
Re: bugfix #2 [Re: Maze_Brendan] #213838 03/30/2002 10:54 AM
Joined: Mar 2002
Posts: 15
TestPappy Offline
Newbie
Offline
Newbie
Joined: Mar 2002
Posts: 15
Hi Max I could not find this code in the Files that Allen posted above?

Re: bugfix #2 [Re: lsmyourlover] #213839 03/30/2002 3:13 PM
Joined: Jun 2001
Posts: 3,273
JustDave Offline
That 70's Guy
Offline
That 70's Guy
Joined: Jun 2001
Posts: 3,273
This link https://www.ubbdev.com/mods/5.5/calendar_2_2.zip seemed to be working for me. Maybe Allen didn't have the files uploaded at the time you tried to access them. []/forum/images/icons/smile.gif[/]

Re: bugfix #2 [Re: lsmyourlover] #213840 03/31/2002 9:33 AM
Joined: May 1999
Posts: 149
Max Fisch Offline OP
Enthusiast
OP Offline
Enthusiast
Joined: May 1999
Posts: 149
Hmmm... not sure... You need to apply the change to the end-result.

If you implemented the changes using Allan's "differential" approach, and care to send me the resulting addpost.php, I can take a look and post the necessary change.

But you should be able to find the following string
!$Location && !$replyto
in your addpost.php to locate the section in question.

Regards,
Max

Re: bugfix #2 [Re: Maze_Brendan] #213841 03/31/2002 11:30 AM
Joined: Mar 2002
Posts: 15
TestPappy Offline
Newbie
Offline
Newbie
Joined: Mar 2002
Posts: 15
thanks got it working []/forum/images/icons/smile.gif[/]
I tried to find the whole thing and I guess the spaces were off hehe

Re: Calendar v2 for 5.5 [Re: sjsaunders] #213842 04/02/2002 8:57 PM
Joined: Jan 2001
Posts: 62
kcweb Offline
Journeyman
Offline
Journeyman
Joined: Jan 2001
Posts: 62
I've just played with it and I must say its quite nice as v1.0 add-on.

it would be nice to see thei ability to view quarterly and/or yearly view as well but this isn't as critical.

monthly is the most important initially.

KurtC

Sponsored Links
Re: Calendar v2 for 5.5 [Re: sjsaunders] #213843 04/02/2002 8:58 PM
Joined: Jan 2001
Posts: 62
kcweb Offline
Journeyman
Offline
Journeyman
Joined: Jan 2001
Posts: 62
I've just played with it and I must say its quite nice as v1.0 add-on.

it would be nice to see the ability to view quarterly and/or yearly view as well but this isn't as critical.

monthly is the most important initially.

KurtC

Re: Calendar v2 for 5.5 [Re: Maze_Brendan] #213844 04/15/2002 2:00 PM
Joined: Nov 2000
Posts: 210
Pappy Offline
Member
Offline
Member
Joined: Nov 2000
Posts: 210
Small bug or maybe an improvement needed?
when you have a board using dark colors such as what is created with nettomos Dark Style sheet you can not see the numbers for the dates. is ther a way to make the border change color and the dates depending on the stylesheet?

Re: Calendar v2 for 5.5 [Re: MercAqua] #213845 04/16/2002 1:47 PM
Joined: Aug 1999
Posts: 184
ExcelsiorDDZ Offline
Member
Offline
Member
Joined: Aug 1999
Posts: 184
Look at the caledars I have in http://forums.theddz.com

I use a dark CSS and I don't see that problem.


Silly ricer.. Wings are for airplanes!
Re: Calendar v2 for 5.5 [Re: Franky] #213846 04/16/2002 10:53 PM
Joined: Nov 2000
Posts: 210
Pappy Offline
Member
Offline
Member
Joined: Nov 2000
Posts: 210
ok.... is that the same hack?
the Netomo stylesheet has an image on a orange background. the image is black bricks. I wonder if it is only due to the back ground then? the other forums using that stylesheet come out normally sao maybe it is a problem with the stylesheet?

Re: Calendar v2 for 5.5 [Re: Maze_Brendan] #213847 04/29/2002 11:35 AM
Joined: Apr 2002
Posts: 30
paulf Offline
User
Offline
User
Joined: Apr 2002
Posts: 30
[]/forum/images/icons/smile.gif[/] Any idea if/when this hack will be modified to work with v6?


Paul Fries
Systems Administrator
CWIE LLC
Page 4 of 4 1 2 3 4

Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Basil Fawlty
Basil Fawlty
New Mexico
Posts: 139
Joined: October 2001
Forum Statistics
Forums63
Topics37,523
Posts293,714
Members13,831
Most Online5,166
Sep 15th, 2019
Top Posters(All Time)
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,788
Greg Hard 4,625
Top Posters(30 Days)
isaac 13
Gizmo 1
Today's Statistics
Currently Online 193
Topics Created 0
Posts Made 1
Users Online 2
Birthdays 6
Top Likes Received (All Time)
isaac 27
Brett 7
Morgan 2
DCPhil 1
Slaz 1
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191201.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.068s Queries: 46 (0.028s) Memory: 3.3883 MB (Peak: 3.6227 MB) Data Comp: Zlib Server Time: 2019-12-06 20:23:36 UTC
Valid HTML 5 and Valid CSS