XMB Forum Software
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author:

Post Report as new thread in staff only forum.

nightvision
New Poster
**




Posts: 1
Registered: 6-28-2012
Member Is Offline


[*] posted on 7-1-2012 at 06:59 PM
Post Report as new thread in staff only forum.




Note: Has been posted at other forum as well.

XMB v1.9.11 Patch #13


Hi folks, I'm relatively good with PHP but this one has me stumped.


Objective:

Instead of having post reports sent to staff members U2U inbox's, I want the reports posted as a "new thread".Reason being, I want my staff to first review and discuss the post in question before taking action. Also, I don't want my staff members inbox's filled with reports.


How I have gone so far:

So far, I have changed template vtmist_report and added a similar template to post_newthread with the form link going to the specific forum titled "Complaints".

I have set the forum permissions in admincp as members can post new threads but not reply or view the forum.

However, when a member goes to hit submit, it shows "Error; Sorry, you are not permitted to view this forum"... and doesn't submit the new thread.


Is there a way to reroute this to allow members to post complaints as threads without viewing the dedicated forum?

nightvision. :xmb:




View user's profile View All Posts By User
Mouser
XMB Contributor
********


Avatar


Posts: 198
Registered: 4-14-2008
Member Is Offline

Mood: Christmasy. Yes, in September.

[*] posted on 7-1-2012 at 08:50 PM


I think your approach is ... Very good:)

What you can do;
Not reroute your users with a link to a forum.
Use the vtmisc_report template.
The values POST'd by this template, you can use to create a post..
Check the coding (and SQL queries) used in post.php


That way you loose the security checks to see if someone is allowed to post or not.
View user's profile View All Posts By User
Plastic
Member
***


Avatar


Posts: 19
Registered: 5-18-2012
Member Is Offline


[*] posted on 7-5-2012 at 11:01 PM


Plz let this happen guys, amazing idea.
View user's profile View All Posts By User

  Go To Top

Powered by XMB 1.9.11 (Debug Mode)
Forum Script Software by XMB © 2001-2019 The XMB Group
[Queries: 16] [PHP: 36.1% - SQL: 63.9%]
Funded with thanks to competitions website.