[MOD-DB] Topic Calendar 1.2.2 (regular edition)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Fri Jul 28, 2006 7:24 am

calendar_box.tpl

c64_iz_raw
Registered User
Posts: 17
Joined: Sat Jul 08, 2006 5:43 am

Post by c64_iz_raw » Fri Jul 28, 2006 6:39 pm

Thanks again for the help.

It seems as though IE displays the borders just fine but Firefox doesn't, which is a shame because I'm now ready to give up. Because this is more a browser issue and not a mod issuse I understand if support is dropped on this matter. As a last ditch effort can anyone explain this?

www.dispyz.com/forum

Thanks yet again.

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Fri Jul 28, 2006 8:06 pm

As the empty filling cells (prior the 01st and after the 31/30th) are displaying correctly, you should be able to handle this at the tpl itself, probably with displaying a   when nothing stands in a day cell.

imoore
Registered User
Posts: 26
Joined: Fri Feb 10, 2006 1:16 pm

Post by imoore » Sat Jul 29, 2006 5:06 am

Hi,
I'm trying to install the calendar mod on a copy of my board using easymod and ran into a problem.

The db is PostgreSQL 7.4.13
I don't have CH installed & I'm doing step 1 of the install. The php code mod went ok, I had to edit a could of lines in MOD-topic_calendar-part1.txt to sit my actual php code,but then all was well.
Then when the SQL commands were run, it came up with the following:
The failed line was:

UPDATE TABLE phpbb_auth_access SET auth_cal = 0 WHERE auth_cal IS NULL;;

SQL ERROR: -1
ERROR: syntax error at or near "TABLE" at character 8

If I try to execute that statement in phpPgAdmin, I get the same error.

Here's what the phpbb_auth_access table properties are:
Column auth_cal
Type smallint
Not Null
Default 0
Actions
Comment

When I look at the records in the table, auth_cal is NULL for all records (or least all the ones I looked at).

Cheers,
Ian

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Sat Jul 29, 2006 7:27 am

Why are you:
- attempting to install an old version where a new one is there,
- report to the topic of the new version ? :)

I suggest you to use TC 1.2.2.

imoore
Registered User
Posts: 26
Joined: Fri Feb 10, 2006 1:16 pm

Post by imoore » Sat Jul 29, 2006 1:03 pm

Sorry, I went to the general mod download page (http://www.phpbb.com/phpBB/catdb.php?db=1) which still shows the version I had as the the most recent, so that's what I tried to install.
It took me a while to find the new version but that has installed without any errors :D

Cheers,
Ian

imoore
Registered User
Posts: 26
Joined: Fri Feb 10, 2006 1:16 pm

Can't add users after installing the calendar mod

Post by imoore » Sun Jul 30, 2006 1:27 am

Hi, it looks like I didn't do enough testing before adding this mod to my live system :( I tried to add a new user to do some testing of the calendar functions and when it tries to add the new user record, it fails:
Could not insert data into users table

DEBUG MODE

INSERT INTO phpbb_users (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey) VALUES (62, 'test', 1154219314, '46269c9192cfff09553efd2f01cfc812', 'no-spam@swiftdsl.com.au', '', '', '', '', '', '', '', '', 0, 0, '', '', '', 1, 1, 0, 1, 1, 0, 1, 1, 9.5, 'D M d, Y g:i a', 'english', 1, 0, 1, 0, 'de18938a4d')

Line : 659
File : usercp_register.php

There are no calendar fields being passed by the registration form. Adding the user manually with the above statement, I get:
ERROR: null value in column "user_calendar_javascript" violates not-null constraint

This happens even if I explicitly set the calendar fields to non-default values when I register the new user.

I used the mod installer to install this and didn't get any errors but I guess it didn't add the part that passes the calendar values to the INSERT statement. My php is fairly limited, but I you could tell me where I should be looking, perhaps I can fix it manually.

Cheers,
Ian

imoore
Registered User
Posts: 26
Joined: Fri Feb 10, 2006 1:16 pm

Post by imoore » Sun Jul 30, 2006 1:29 am

Please delete this post if you like - it was a duplicate, the board wasn't responding when I posted it and I tried several times, now they've all appeared!
Last edited by imoore on Mon Jul 31, 2006 8:03 am, edited 2 times in total.

imoore
Registered User
Posts: 26
Joined: Fri Feb 10, 2006 1:16 pm

Can't add users after installing the calendar mod

Post by imoore » Sun Jul 30, 2006 1:39 am

ditto
Last edited by imoore on Mon Jul 31, 2006 8:02 am, edited 2 times in total.

imoore
Registered User
Posts: 26
Joined: Fri Feb 10, 2006 1:16 pm

Post by imoore » Sun Jul 30, 2006 1:41 am

ditto

terra-dea
Registered User
Posts: 7
Joined: Mon Jul 31, 2006 11:49 am
Location: Scotland, United Kingdom
Contact:

Post by terra-dea » Tue Aug 01, 2006 8:07 am

Hi

I downloaded & installed this Calendar Mod, to which works superb! Cheers!

One thing.....

How do you add Topics / Events to the calendar....?
Terra-Dea

User avatar
Toho_NL
Registered User
Posts: 206
Joined: Fri Jun 16, 2006 2:31 pm
Location: The Netherlands

Post by Toho_NL » Tue Aug 01, 2006 9:37 am

Create a new topic on your forum and set the time etc. in the event-part (beneath your message). When done correctly, the topic is shown in the calendar.

Best regards,

Toho_NL.

terra-dea
Registered User
Posts: 7
Joined: Mon Jul 31, 2006 11:49 am
Location: Scotland, United Kingdom
Contact:

Post by terra-dea » Tue Aug 01, 2006 10:00 am

Toho_NL wrote: Create a new topic on your forum and set the time etc. in the event-part (beneath your message). When done correctly, the topic is shown in the calendar.

Best regards,

Toho_NL.


brilliant mate. thanks
Terra-Dea

jcproduction
Registered User
Posts: 16
Joined: Thu Aug 04, 2005 2:14 pm

Topic Calendar Errors

Post by jcproduction » Tue Aug 01, 2006 8:24 pm

Hello php users, i just installed this great mod, but for some reason i can think of any ideas on how to get around this error, any help will be greatly appreciated. thanks
this is the error i get when i try to go to the calendar.php
Fatal error: Call to a member function on a non-object in /home/latineve/public_html/le/includes/functions_post.php on line 916

here is line 916 on functions_post.php
{
$template->assign_block_vars('smilies_row', array());
}

$template->assign_block_vars('smilies_row.smilies_col', array(
'SMILEY_CODE' => $data['code'],
'SMILEY_IMG' => $board_config['smilies_path'] . '/' . $smile_url,
'SMILEY_DESC' => $data['emoticon'])
);

$s_colspan = max($s_colspan, $col + 1);

if ($col == $smilies_split_row)
{
if ($mode == 'inline' && $row == $inline_rows - 1)
{
break;
}
$col = 0;
$row++;
}
else
{
$col++;
}
}

if ($mode == 'inline' && $num_smilies > $inline_rows * $inline_columns)
{
$template->assign_block_vars('switch_smilies_extra', array());

$template->assign_vars(array(
'L_MORE_SMILIES' => $lang['More_emoticons'],
'U_MORE_SMILIES' => append_sid("posting.$phpEx?mode=smilies"))
);
}

$template->assign_vars(array(
'L_EMOTICONS' => $lang['Emoticons'],
'L_CLOSE_WINDOW' => $lang['Close_window'],
'S_SMILIES_COLSPAN' => $s_colspan)
);
}
}

if ($mode == 'window')
{
$template->pparse('smiliesbody');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
}

?>

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Tue Aug 01, 2006 9:01 pm

Compare your modifications against the "installed" pack, using a tool like ie winmerge (free comparer).

Locked

Return to “[2.0.x] MODs in Development”