Previous Thread
Next Thread
Print Thread
Rating: 14
Page 4 of 4 1 2 3 4
Joined: Nov 2001
Posts: 54
Junior Member
Junior Member
Offline
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
Joined: Nov 2001
Posts: 54
Junior Member
Junior Member
Offline
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

lanet #213835 03/30/2002 9:11 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
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?
SurfMinister #213836 03/30/2002 11:39 AM
Joined: Mar 2002
Posts: 15
Newbie
Newbie
Offline
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!!!!!!:)

Maze_Brendan #213837 03/30/2002 11:40 AM
Joined: May 1999
Posts: 149
Enthusiast
Enthusiast
Offline
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
Maze_Brendan #213838 03/30/2002 11:54 AM
Joined: Mar 2002
Posts: 15
Newbie
Newbie
Offline
Joined: Mar 2002
Posts: 15
Hi Max I could not find this code in the Files that Allen posted above?

lsmyourlover #213839 03/30/2002 4:13 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
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[/]

lsmyourlover #213840 03/31/2002 10:33 AM
Joined: May 1999
Posts: 149
Enthusiast
Enthusiast
Offline
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

Maze_Brendan #213841 03/31/2002 12:30 PM
Joined: Mar 2002
Posts: 15
Newbie
Newbie
Offline
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

Joined: Jan 2001
Posts: 62
Journeyman
Journeyman
Offline
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
Joined: Jan 2001
Posts: 62
Journeyman
Journeyman
Offline
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

Joined: Nov 2000
Posts: 210
Member
Member
Offline
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?

Joined: Aug 1999
Posts: 184
Member
Member
Offline
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!
Franky #213846 04/16/2002 11:53 PM
Joined: Nov 2000
Posts: 210
Member
Member
Offline
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?

Joined: Apr 2002
Posts: 30
User
User
Offline
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

Link Copied to Clipboard
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
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)