Page 9 of 25

Posted: Fri Sep 30, 2005 8:46 am
by chatasos
James78, please download the following file, rename it report.php and use it (overwrite) instead of your own.
report.txt
Then grab another screenshot and post it here.

Posted: Fri Sep 30, 2005 10:22 am
by arkange_17
hi,

A little problem with this mod.

I have CH. RC6 ; and i applied CH fix.
No problems with installation. But when i click on report button in wviewtopic page, i have this error :

Code: Select all

Fatal error: Call to undefined function: get_template_name() in /home/www/arkange/www/forum/includes/functions_report.php on line 48

I check two times my modifications. All files are on my ftp.


Thanks for you help ! And sorry for my bad bad bad ... english :mrgreen:

Posted: Fri Sep 30, 2005 10:38 am
by chatasos
arkange_17 wrote: hi,

A little problem with this mod.

I have CH. RC6 ; and i applied CH fix.
No problems with installation. But when i click on report button in wviewtopic page, i have this error :

Code: Select all

Fatal error: Call to undefined function: get_template_name() in /home/www/arkange/www/forum/includes/functions_report.php on line 48

I check two times my modifications. All files are on my ftp.


Thanks for you help ! And sorry for my bad bad bad ... english :mrgreen:

Hi arkange_17,
It seems your user doesn't have a correct template configured or CH's templating is different.

Please try the following in file functions_report.php

[FIND]

Code: Select all

$template_name = get_template_name($board_config['default_style']);
[REPLACE WITH]

Code: Select all

$template_name = rp_get_template_name($board_config['default_style']);
If, after the above change, the panels do not work (js error in IE), maybe there is a new incompatibility with CH. So please check it and inform me if necessary.

Also i need to know if you have subSilver installed in your forum.

To ALL: Tommorow, i'll upload a new version with some new features, so everyone who isn't in a hurry, can wait until then.

Posted: Fri Sep 30, 2005 10:47 am
by arkange_17
Greats ! yeahh it works ! :lol:


Thank you verrrrrry much 8)


ps : i've just Ch RC6 + extented template goodies + some others mods.
And yes i've subsilver installed on my board.

EDIT : apparently , no js error with IE.

Posted: Fri Sep 30, 2005 11:46 am
by arkange_17
Another problems :mrgreen:

first, i submitted a report message.

- Next, i click on "There is 1 open Report " link in index footer page
- I click on "close this report" link
- I wite some comments and select a Report actions

so ,
  • if i select one or more case in "inform reporter" or "Inform poster" ; i have this error :

    Code: Select all

    Could not insert/update private message sent info.
    
    DEBUG MODE
    
    INSERT INTO phpbb_privmsgs (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES (1, 'Reply to Report about post in "[Tutorial] Jouer un mp3 à l'arrivée sur le serveur"', 2, 2, 1128080675, '53c1c240', 0, 1, 1, 0)
    
    Line : 778
    File : functions_report.php
  • if i don't select any case, it works well without errors.

    Code: Select all

    Selected reports were Opened/Closed successfully.
    
    Click here to return to the Report Posts control panel.

Thank you for your help ! :)

Posted: Fri Sep 30, 2005 12:10 pm
by chatasos
Please try the following in file functions_report.php:

[FIND]

Code: Select all

	$sql_info = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig)
		VALUES (" . PRIVMSGS_NEW_MAIL . ", '" . str_replace("\'", "''", $privmsg_subject) . "', " . $from_user_id . ", " . $to_userdata['user_id'] . ", $msg_time, '$user_ip', $html_on, $bbcode_on, $smilies_on, $attach_sig)";
[REPLACE WITH]

Code: Select all

	$sql_info = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig)
		VALUES (" . PRIVMSGS_NEW_MAIL . ", '" . str_replace("'", "''", $privmsg_subject) . "', " . $from_user_id . ", " . $to_userdata['user_id'] . ", $msg_time, '$user_ip', $html_on, $bbcode_on, $smilies_on, $attach_sig)";

Posted: Fri Sep 30, 2005 12:18 pm
by arkange_17
Hum it doesn''t work !

Code: Select all

Could not insert/update private message sent text.

DEBUG MODE

INSERT INTO phpbb_privmsgs (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES (1, 'Reply to Report about post in "[Tutorial] Jouer un mp3 à l''arrivée sur le serveur"', 2, 2, 1128082646, '53c1c240', 0, 1, 1, 0)

Line : 788
File : functions_report.php

Posted: Fri Sep 30, 2005 12:40 pm
by chatasos
Ok, another try:

find the part you just replaced and

BEFORE, ADD

Code: Select all

$privmsg_subject = str_replace('"', '\"', $privmsg_subject);

Posted: Fri Sep 30, 2005 12:55 pm
by arkange_17
nop :)

Code: Select all

Could not insert/update private message sent text.

DEBUG MODE

INSERT INTO phpbb_privmsgs (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES (1, 'Reply to Report about post in \"moi en train de jouer a cs\"', 2, 2, 1128084849, '53c1c240', 0, 1, 1, 0)

Line : 790
File : functions_report.php

Posted: Fri Sep 30, 2005 1:26 pm
by chatasos
Can you run the following query in phpmyadmin and paste-here the results

Code: Select all

SELECT *
FROM `phpbb_privmsgs`
LIMIT 1 
Also, what version of php are you running?
phpBB is the latest one?

Posted: Fri Sep 30, 2005 1:44 pm
by James78
chatasos wrote: James78, please download the following file, rename it report.php and use it (overwrite) instead of your own.
report.txt
Then grab another screenshot and post it here.

Image

Posted: Fri Sep 30, 2005 1:46 pm
by arkange_17
so,


Image

And sure, i use le lastest version of phpBB.


oh , i see subject as " Reply to Report about post in "[Tutorial] Jouer un mp3 à l'arrivée sur le serveur" in my private message page ;

but when i click in this subject, nothing appears. Just the a page refresh. That's all.

:?

Système d'exploitation : Linux 2.4.20-28.9
Version d'Apache : 2.0.44 (Unix)
Version de MySQL : 4.1.14
Version de PHP : 4.4.0



Thanks.

Posted: Fri Sep 30, 2005 1:56 pm
by chatasos
arkange_17, try this one too in functions_report.php:


[FIND]

Code: Select all

	$sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text)
		VALUES ($privmsg_sent_id, '" . $bbcode_uid . "', '" . str_replace("\'", "''", $privmsg_message) . "')";

	if ( !$db->sql_query($sql, END_TRANSACTION) )
	{
		message_die(GENERAL_ERROR, "Could not insert/update private message sent text.", "", __LINE__, __FILE__, $sql_info);
	}
[REPLACE WITH]

Code: Select all

	$sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text)
		VALUES ($privmsg_sent_id, '" . $bbcode_uid . "', '" . str_replace("'", "''", $privmsg_message) . "')";

	if ( !$db->sql_query($sql, END_TRANSACTION) )
	{
		message_die(GENERAL_ERROR, "Could not insert/update private message sent text.", "", __LINE__, __FILE__, $sql);
	}

also, remove the following i wrote before:

Code: Select all

$privmsg_subject = str_replace('"', '\"', $privmsg_subject); 
The error information provided was wrong because of a "bug" in phpBB's privmsg code :twisted:

PS: Can you please change your previous post and provide a link to the screenshot (instead of the screenshot itself), because it's too large?

Posted: Fri Sep 30, 2005 2:03 pm
by arkange_17
Yeahhh ! cool 8)

It works !


Good Job ! :mrgreen:


ImageImage

Posted: Fri Sep 30, 2005 2:21 pm
by chatasos
James78, one more time.... :?

Please download the following file, rename it report.php and use it (overwrite) instead of your own.
report.txt
Then grab another screenshot and post it here.