Previous Thread
Next Thread
Print Thread
Rating: 5
Page 2 of 4 1 2 3 4
jfrosch #229513 01/15/2003 11:52 AM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi Dave

I clicked on the corner of a date square on the calender that says add new event and got

Parse error: parse error in /home/www/hillcrestknitwear/ubbthreads/newevent.php on line 269

Edit : Which is the very end line of the file ?>

Any ideas

Last edited by Liahona; 01/15/2003 11:54 AM.

Thanks

Liahona
Sponsored Links
jfrosch #229514 01/15/2003 12:03 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
That suggests that you didn't install the changes correctly. Without seeing the actual file, I can't be more specific, and we're not allowed to post that stuff here.

jfrosch #229515 01/15/2003 12:07 PM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Liahona,

Make sure that you have followed the instructions as per the modification. When I was installing it, I used the files provided in the attachment, without realizing that I actually need to copy and paste content from existing files and then change some of it.

The modification that I posted you can leave it out for the time being so that you don't get confused. Later on you can apply the modification along with Josh's Birthday 1.4.

If you wish PM me and I can email you my files so that you can compare them and see where you went wrong.

Warm regards

Nikos


Nikos
joeuser #229516 01/15/2003 12:09 PM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi

Well, I'll check it again, but I think someone needs to redo the instructions as a few of the changes do not match and had to guess. lol


Thanks

Liahona
jfrosch #229517 01/15/2003 12:19 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
When I have time, I was going to make the changes I proposed several posts ago, which will include redoing the instructions. If the Location column is removed, that should simplify the instructions too.

Maybe my experiment at using BeyondCompare difference files didn't work very well.

If someone else wants to fix the instructions in the meantime, feel free.

Nikos: I'm not sure how to deal with your changes. Should I try to incorporate those into the main hack, or should I just ignore them? On my board, I don't want to populate the calendar with birthdays, but I guess the main hack's documentation could indicate your changes as an option. This is getting complicated.

Sponsored Links
joeuser #229518 01/15/2003 12:38 PM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
I agree that we need to put this as an option at the bottom of the instructions. If you want I can put a check in there that will query the fields of the Users table and if the ones for the calendar exist then the code will be executed.

Do you think that this check will increase the overhead on the script, since it will be another query in the database?

Warm regards

Nikos


Nikos
joeuser #229519 01/15/2003 12:38 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I had trouble with the instructions. But have installed this on a couple of board so far.

If nobody beats me to it, I'll update the instructions maybe later this week.

Hal_dup2 #229520 01/15/2003 12:45 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
[]Do you think that this check will increase the overhead on the script, since it will be another query in the database?[/]

If it's only one query for the entire month, I don't think it would be significant.

joeuser #229521 01/15/2003 1:09 PM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi Dave

Could you check if this is in the correct place
Inserted the red text as it says but the
The instructions says insert the red text ...

==============================================
// ---------------------
// Grab the tablewrapper
list($tbopen,$tbclose) = $html -> table_wrapper();




[:"red"]if($Calendar == 'Y') {
require ('postlist_event.php');
} [/]


include ("$thispath/templates/$tempstyle/postlist.tmpl");

===============================================
I can only find the below so I inserted it there is this correct. This [:"blue"] if (!$debug) [/] {is omitted from the instructions do I keep it in or take it out?

===============================================
// Grab the tablewrapper
list($tbopen,$tbclose) = $html -> table_wrapper();

[:"red"] if($Calendar == 'Y') {
require ('postlist_event.php');
} [/]

[:"blue"] if (!$debug) { [/]
include ("$thispath/templates/$tempstyle/postlist.tmpl");
}

// Send the footer
$html -> send_footer();

?>
=============================================


Thanks

Liahona
jfrosch #229522 01/15/2003 1:23 PM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi Dave

I found the prob with my error.....ell, this one so far.....
In the "newevent.htm" instruction file thee is a closing bracket missing as below in [:"blue"]blue (I inserted) [/]

$d = get_input('d', 'get');
$mon = get_input('mon', 'get');
$year = get_input('year', 'get');
include("$thispath/templates/$tempstyle/newevent.tmpl");
[:"blue"] } (This bracketis missing) [/]
$html -> send_footer();


Thanks

Liahona
Sponsored Links
jfrosch #229523 01/15/2003 1:26 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
That looks correct. The [:"blue"]if (!$debug) {[/] was incorrectly omitted from the instructions.

P.S. Thanks for pointing out these errors. I'll think I'll post a warning in the first post about them.

Last edited by Dave_L; 01/15/2003 1:28 PM.
jfrosch #229524 01/15/2003 1:27 PM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi me again

Filled in the calendar part where you put in the event, date etc ... then posted ....but received this.

Parse error: parse error in /home/www/hillcrestknitwear/ubbthreads/addevent.php on line 347

What next


Thanks

Liahona
jfrosch #229525 01/15/2003 1:44 PM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi

I give up

I took out the if (!$debug) {

and still got this error.

Parse error: parse error in /home/www/hillcrestknitwear/ubbthreads/addevent.php on line 347

I give in --- going to wait till there are better instructions my head all minced up.


Thanks

Liahona
jfrosch #229526 01/15/2003 1:51 PM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
[]Parse error: parse error in /home/www/hillcrestknitwear/ubbthreads/addevent.php on line 347[/]

Strange... The addevent.php has this
Code
<br />   if (isset($user['U_Signature'])) {<br />      $user['U_Signature'] = str_replace("&lt;br&gt;","<br />",$user['U_Signature']);<br />      $printsig = $user['U_Signature'];<br />   }<br />

in those lines....

May I suggest a hot cup of tea to get your mind off the computer for a bit and then try and have a go at it? I am sure that it is a small typo that doesn't allow you to proceed.

Warm regards

Nikos


Nikos
joeuser #229527 01/15/2003 1:52 PM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Dave,

It is one query per month and it is working as expected. I have updated my previous post above, so go ahead and take it as it is and use it with the instructions.

Warm regards

Nikos


Nikos
joeuser #229528 01/16/2003 2:22 PM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi Dave

I've been trying to get this going for 2 days now - downloaded 3 times - uploaded after checking well, lost count.

I can only get as far as the calendar page and get this error.....

Parse error: parse error in /home/www/hillcrestknitwear/ubbthreads/newevent.php on line 261

I have checked this page about a million times but still the same.

I think it is the last bit that's wonky.
Can someone check this bit for me..The red bit is supposed to be deleted.

In newevent.php
==================================================
// ---------------------
// Grab the tablewrapper
list($tbopen,$tbclose) = $html -> table_wrapper();


if (!$debug) {
[:"red"] include("$thispath/templates/$tempstyle/newpost.tmpl"); [/]
$d = get_input('d', 'get');
$mon = get_input('mon', 'get');
$year = get_input('year', 'get');
include("$thispath/templates/$tempstyle/newevent.tmpl");
$html -> send_footer();
==========================================

I've tried it already with the closing bracket on every line but no good, is there supposed to be a closing bracket here or not.

I know we have to wait until someone fixes the instructions, but (excuse the pun) it's bugging me.

Is there someone trying to fix it or is it a dead duck?

LOL

Thanks


Thanks

Liahona
jfrosch #229529 01/16/2003 2:26 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
There should probably be a closing } after the send footer. Did you try one on the line below that?

Daine #229530 01/16/2003 2:36 PM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi Josh

Just did that and still the same?

THX


Thanks

Liahona
jfrosch #229531 01/16/2003 2:40 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I hope to be able to look at and post updating instructions here maybe by this weekend. I've installed this for several clients and it's worked.. but I don't think the instructions were exactly right. (In other words some code may have changed from when this was written to the current version).

I've just been too busy to look at updating it, but it's on my list. Maybe that will help.

Daine #229532 01/16/2003 3:01 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
I've posted a status update here. You're welcome to post corrected documentation if you like. In any case, I'll try to post the updated hack, with correct documentation, within the next few days.

Hal_dup2 #229533 01/16/2003 3:08 PM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi Josh/Dave

Thanks, I really need this as I have a whole years things to put on before I go live and let lots (dreaming) of members loose.

I will wait with bated breath.

THX


Thanks

Liahona
joeuser #229534 01/16/2003 3:18 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Cool. Thanks Dave. Hadn't been paying attention to the main post.

Looks good.

Daine #229535 01/16/2003 6:39 PM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi all

I now have my calendar working..........

Thanks to Nikos for fixing all the wobbley bits out.

You guys are just great.

Thanks all


Thanks

Liahona
joeuser #229536 01/20/2003 4:42 PM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi Dave

Do you know how I can hide the time that shows on the
calendar as lots of my things don't have a time as yet,
or maybe left blank instead of having a time that is
wrong displaying?

Thanks


Thanks

Liahona
jfrosch #229537 01/20/2003 5:04 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Coincidentally, one of the changes I'm adding is a checkbox to hide the time when you post an event.

With the current hack, I think if you manually set the w3t_Events.E_Time field to 0 with a database query, that will hide the event time on the postlist (calendar display).

joeuser #229538 01/20/2003 5:45 PM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi Dave

UPDATE w3t_Events SET E_Time = "0"

Here is the output of your SQL command; Query executed OK, MySQL returned `0' with message `'.
rows returned by query, each with 0 fields.

Never worked, am I doing it wrong


Thanks

Liahona
jfrosch #229539 01/20/2003 6:15 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
I meant that you should manually set E_Time to 0 for the events whose time you don't want displayed, not all the events.

But setting E_Time to 0 should have the effect I decribed. I just tested it with the current published version of the hack, and it worked.

joeuser #229540 01/20/2003 6:29 PM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi

I don't understand "manually set E_Time to 0"

This is what's in my postlist_event.php
$arrData['E_ID'] = 0;
$arrData['E_Date'] = mktime(0, 0, 0, $month, $bBirthday, $year) - $user['U_TimeOffset'] * 3600; // first day of this month, time 00:00:00
$arrData['E_Time'] = 0;
$arrData['E_Location'] = "Birthday";
$arrData['B_Subject'] = "<a href="$config[phpurl]/showprofile.php?Cat=$Cat&User=$bNumber&what=">$bUsername$bExtra</a><br />";
$arrData['B_Number'] = 0;
$arrData['B_Replies'] = 0;


Last edited by Liahona; 01/20/2003 6:36 PM.

Thanks

Liahona
jfrosch #229541 01/20/2003 6:39 PM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Dave,

In the current mod, there is no way to set the time to 0, since it defaults to a time on its own from the form. What Liahona though did seems quite reasonable to me, since this is how I used to do it.

Liahona, your query should have done the trick, but that error still bugs me... Any more info?

Warm regards

Nikos


Nikos
Hal_dup2 #229542 01/20/2003 6:47 PM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi Nikos

I don't have any errors?

Just the time which I have to put at 1:00 am so people will hopefully know that it is a mistake as there are no 0:00 hrs in the list.

THX


Thanks

Liahona
jfrosch #229543 01/20/2003 6:56 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
The query you posted above is correct, but I expected to see a WHERE clause, so that it would only affect a specific event:

UPDATE w3t_Events SET E_Time = 0 WHERE E_ID = 'xxxxx'

jfrosch #229544 01/21/2003 3:54 AM
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi

Is it possible to add a " 0 " (blank) to the list of time,
if so how do it, do I just search for "11" in the
postlist.php and add lines the same as the others with
" 0 " instead of a number?

Cheers


Thanks

Liahona
joeuser #229545 01/28/2003 7:00 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Update:

Due to time constraints, I'm abandoning work on this hack. With the planned changes, it's gotten far too complicated, is incompatible with the current version, and maintaining it will be too much of a headache.

joeuser #229546 01/31/2003 5:32 PM
Joined: Jan 2003
Posts: 1
Lurker
Lurker
Offline
Joined: Jan 2003
Posts: 1
I'm gonna wade right in here with some newbie questions...I need a calendar to work with UBB.x 3.0.4. (Or some other calander I can use on our site if it is not possible to combine with UBB) How would I set this up? If it is a complicated procedure, is it allowable to ask if someone on this list can be hired to do it? I can provide more details if required. Thanks for any help.

DetR6oit #229547 01/31/2003 5:45 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
UBB version 3? Have you considered upgrading to UBB 6.3 or Threads 6.2. Either forum has hacks that provide a calendar like this one or the calendar mod over at ubbdev.com for UBB 6.3

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Actually... if I'm not mistaken.... UBB.x is an infopop hosted solution. (Basically a MySQL version of OpenTopic). Since it's hosted by Infopop, I don't think you can hack or modify any of the scripts, as you don't have access to them.
Sorry. You might wish to run UBB.Threads on your own server.. much more flexibility.

Daine #229549 01/31/2003 6:11 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I thought there were talking about a old version of UBB

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
We got too many "UBB"'s to keep straight these days.

Daine #229551 01/31/2003 6:25 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
LOL yeah they would have to wipe the dirt and dust off that version if they were talking the old version.

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Just to inform everyone: I have made a slight change on the my post earlier concerning the integration of Profile Birthdays and Calendar 6.2. It appeared that for users with a time offset other than 0 the modification was moving the user's birthdays as many months forward or backward as the time offset.

Please refer to the previous post concerning this modification. The changes are a new variable declaration ignoring the time offset and the use of that variable in the database query.

Nikos


Nikos
Page 2 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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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
WebGuy 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)