[ABD] Report2Topic

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

[ABD] Report2Topic

Post by Erik Frèrejean »

Modification Name: Report2Topic
Author: Erik Frèrejean

Modification Description:: When a user reports a post, create a topic in a specified forum with all the report details.
Modification Version:: 2.0.0-dev.

Modification Download: N/A
Last edited by Erik Frèrejean on Thu Sep 02, 2010 3:56 pm, edited 2 times in total.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Report2Topic

Post by stokerpiller »

GREAT Eric :mrgreen:

I have been waiting for this since I converted to phpBB3.
I will install it right away.
I am done with phpBB

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Report2Topic

Post by stokerpiller »

Installed, no errors but where do I set this up?
I am done with phpBB

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: [RC] Report2Topic

Post by Erik Frèrejean »

Damn forgot to add that as DYI in the MODx probably cause I'll be adding a installer in 1.0.0. You'll simply have to add the ACP module that comes with the package Named: Report2Topic.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Report2Topic

Post by stokerpiller »

Thanks, but that gives this error:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_report_to_topic.php on line 87: Undefined variable: poster_name
I am done with phpBB

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Report2Topic

Post by stokerpiller »

I turned Debug off which allowed me to specify a poster and a forum.
I reported a post and got this error:

Code: Select all

Generel fejl
Language file report_to_topic.php couldn't be opened.
I am done with phpBB

Mathijs_
Registered User
Posts: 41
Joined: Wed Jul 09, 2008 9:14 pm

Re: [RC] Report2Topic

Post by Mathijs_ »

Thanks a lot, Erik, for your work :) Really apreciate that.
stokerpiller wrote:I turned Debug off which allowed me to specify a poster and a forum.
I reported a post and got this error:

Code: Select all

Generel fejl
Language file report_to_topic.php couldn't be opened.
I get the same error as above.

zachpl
Registered User
Posts: 175
Joined: Wed Nov 15, 2006 2:40 am

Re: [RC] Report2Topic

Post by zachpl »

Looks good ill use but sense everyone has the same error ill wait

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Report2Topic

Post by stokerpiller »

stokerpiller wrote:I turned Debug off which allowed me to specify a poster and a forum.
I reported a post and got this error:

Code: Select all

Generel fejl
Language file report_to_topic.php couldn't be opened.
Solved.
There is an error in includes/mods/report2topic.php:

Code: Select all

$user->add_lang('mods/report_to_topic');
Should be:

Code: Select all

$user->add_lang('mods/info_acp_report_to_topic');
But there is still 2 errors:
1. This Debug:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/mods/report2topic.php on line 75: Undefined index: R2T_TITLE
[phpBB Debug] PHP Notice: in file /includes/mods/report2topic.php on line 76: Undefined index: R2T_POST
Some missing language?

2. Posted reports have no title and no content. Look at this: http://phpbb3bbcodes.com/test/viewforum.php?f=3
A complete vanilla board.

Hope You find the solution.
I would really like this mod :D
I am done with phpBB

User avatar
3Di
Former Team Member
Posts: 15468
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [RC] Report2Topic

Post by 3Di »

try this and see what happens:

in the language file FIND:

Code: Select all

	'R2T_UPDATED'	=> 'The Report2Topic settings are successfully updated!',
and REPLACE WITH:

Code: Select all

	'R2T_UPDATED'	=> 'The Report2Topic settings are successfully updated!',
	'R2T_TITLE'		=> 'R2T Title goes here: ',
	'R2T_POST'		=> 'R2T post goes here: ',
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
:studio_microphone: Premium extensions @ The Studio

Mathijs_
Registered User
Posts: 41
Joined: Wed Jul 09, 2008 9:14 pm

Re: [RC] Report2Topic

Post by Mathijs_ »

in info_acp_report_to_topic.php:

after:

Code: Select all

	'R2T_EXPLAIN'	=> 'The main settings for the Report2Topic mod.',
Add:

Code: Select all

	'R2T_TITLE'		=> 'Report to mod',
The post then is still empty. But than your topic already has a title. Maybe it's possible to give the topic the report ID as title?

Edit: you figured that out too :P when I filled in a post name I got a blank screen and couldn't log in into the ACP anymore.

Mathijs_
Registered User
Posts: 41
Joined: Wed Jul 09, 2008 9:14 pm

Re: [RC] Report2Topic

Post by Mathijs_ »

Maybe:

Code: Select all

	'R2T_POST'		=> $report_text,
?

Edit: no, I still recieve a white screen when adding the line with R2T_POST.
whether it's a name, or the code above my editmessage :)
Here it's 3 am, so I quit for today. The next days I'm out of home, so I'll try again sunday or monday!
Good luck with solving the problem.

If you're interested in a dutch translation, let me know ;)

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Report2Topic

Post by stokerpiller »

3Di wrote:try this and see what happens:

in the language file FIND:

Code: Select all

	'R2T_UPDATED'	=> 'The Report2Topic settings are successfully updated!',
and REPLACE WITH:

Code: Select all

	'R2T_UPDATED'	=> 'The Report2Topic settings are successfully updated!',
	'R2T_TITLE'		=> 'R2T Title goes here: ',
	'R2T_POST'		=> 'R2T post goes here: ',
Yes, that solved the Debug Errors.
Know we just need the report details to actually get posted.
I am done with phpBB

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: [RC] Report2Topic

Post by Erik Frèrejean »

Hi guys.

I forgot to add a language file to the instructions. I'll update the MOD after I had something to eat :).
This language file contains the text for the actual post, so pleas undo the changes to info_acp_report_to_topic.php, cause this language file is only for the ACP module.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: [RC] Report2Topic

Post by Erik Frèrejean »

* MOD updated *
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

Locked

Return to “[3.0.x] Abandoned MODs”