[ABD] Report Posts (2.1.5)

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.
Locked
chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

Post by chatasos » Fri Sep 30, 2005 8:46 am

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.

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

arkange_17
Registered User
Posts: 44
Joined: Sun Aug 15, 2004 5:02 pm
Location: La rochelle
Contact:

Post by arkange_17 » Fri Sep 30, 2005 10:22 am

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:
[ Liandli ] : forum Libre et Libéré

chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

Post by chatasos » Fri Sep 30, 2005 10:38 am

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.

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

arkange_17
Registered User
Posts: 44
Joined: Sun Aug 15, 2004 5:02 pm
Location: La rochelle
Contact:

Post by arkange_17 » Fri Sep 30, 2005 10:47 am

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.
[ Liandli ] : forum Libre et Libéré

arkange_17
Registered User
Posts: 44
Joined: Sun Aug 15, 2004 5:02 pm
Location: La rochelle
Contact:

Post by arkange_17 » Fri Sep 30, 2005 11:46 am

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 ! :)
[ Liandli ] : forum Libre et Libéré

chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

Post by chatasos » Fri Sep 30, 2005 12:10 pm

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)";

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

arkange_17
Registered User
Posts: 44
Joined: Sun Aug 15, 2004 5:02 pm
Location: La rochelle
Contact:

Post by arkange_17 » Fri Sep 30, 2005 12:18 pm

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
[ Liandli ] : forum Libre et Libéré

chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

Post by chatasos » Fri Sep 30, 2005 12:40 pm

Ok, another try:

find the part you just replaced and

BEFORE, ADD

Code: Select all

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

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

arkange_17
Registered User
Posts: 44
Joined: Sun Aug 15, 2004 5:02 pm
Location: La rochelle
Contact:

Post by arkange_17 » Fri Sep 30, 2005 12:55 pm

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
[ Liandli ] : forum Libre et Libéré

chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

Post by chatasos » Fri Sep 30, 2005 1:26 pm

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?

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

User avatar
James78
Registered User
Posts: 811
Joined: Sat Jul 30, 2005 4:54 pm
Location: Washington, USA
Contact:

Post by James78 » Fri Sep 30, 2005 1:44 pm

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

arkange_17
Registered User
Posts: 44
Joined: Sun Aug 15, 2004 5:02 pm
Location: La rochelle
Contact:

Post by arkange_17 » Fri Sep 30, 2005 1:46 pm

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.
Last edited by arkange_17 on Fri Sep 30, 2005 2:05 pm, edited 2 times in total.
[ Liandli ] : forum Libre et Libéré

chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

Post by chatasos » Fri Sep 30, 2005 1:56 pm

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?

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

arkange_17
Registered User
Posts: 44
Joined: Sun Aug 15, 2004 5:02 pm
Location: La rochelle
Contact:

Post by arkange_17 » Fri Sep 30, 2005 2:03 pm

Yeahhh ! cool 8)

It works !


Good Job ! :mrgreen:


ImageImage
[ Liandli ] : forum Libre et Libéré

chatasos
Registered User
Posts: 748
Joined: Wed May 15, 2002 1:16 pm
Location: Paralia

Post by chatasos » Fri Sep 30, 2005 2:21 pm

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.

Report Posts 1.2.3c (MODDB) - Report Posts 2.1.5 (ALPHA)
Rebuild Search 2.4.0 (MODDB)
MOD Version Checker 1.2.0 (MODDB)
Mega Mail System 0.9.8 (ALPHA)
Pagination Select List & Input Box (MODDB)

Locked

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