vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   improved postreporting system the vb 3.5.x port (https://vborg.vbsupport.ru/showthread.php?t=104632)

Delphiprogrammi 01-05-2006 10:00 PM

improved postreporting system the vb 3.5.x port
 
hi,

first this is a port of this hack and i post this with the original authors permission

this thingy modifies the vbulletin "report post to moderator" feature.It has a global switch in the admincp when switched off post reporting is as normal (like build into vbulletin).The postrporter(s) cans ee a table off the posts) they reported and a modorated can provide feedback through the modcp

optionally is the scheduled task which allows you to remove reports based on the date cutoff (specied in the system settings)you can also se this setting to "0" and choose "run now" to remove all reports at once.

like all scripts that modify your database i'd like to say please remember to have a recent backup ...

i'm also working on porting this to the plugin system so the fileedits are no longer needed but that's not quite ready yet

instructions on howto install the system are in the zip

not working as it should ? errors ? give me a yell i'm allways around :cool:

vbulletin product
Here's a vbulletin product that does the same as the code modification.The only thing that isn't working yet is the "also email" option when somebody reports a post (i temporarly removed it)

installation is like any other vbulletin product.Plugin system => manage products => add product => import the xml

set the settings like you want (it has it's own settingsgroup) hit save and you're done

Optional is the cpnav_postreport.xml this adds the menu to the admincp to avoid admins must logins to the modcp.Upload this file to /includes/xml/

installation instructions for the product
  • if you installed the system using the included installer run it again and choose uninstall (requirerd or you will get MySQL errors)
  • download the product XML and import it to your productmanager in your admincp
  • edit the postreportsystem settings and hit save
using the product the file edit in report.php is no longer needed

New release version 1.0.1(instrunctions)
  • upload all files from the zip(no need to manually add the templates)
  • import product-postreports.xml (this file contains the templates)
  • goto vbulletin->options->postreport settings and adjust like you whish (click save when you're done)
with version 1.0.1 file edits are no longer needed it also calls build_language(); and build_language_datastore(); so no problems with phrases should occour

vBulletin 3.6.x contains similair functionalty by default sow it is not needed to install this on Bulletin 3.6.x

nexialys 01-06-2006 04:42 PM

good to see someone porting a tool with the real permission.. ;)

no files btw... will they come soon?

a BETA tag in your title would be correct i think!

nelto 01-06-2006 07:58 PM

3)Add the postreports system templates (postreports & postreportbits)

Sorry Im kinda newb here.. what this and how do I do it?

Delphiprogrammi 01-06-2006 08:25 PM

Quote:

Originally Posted by nelto
3)Add the postreports system templates (postreports & postreportbits)

Sorry Im kinda newb here.. what this and how do I do it?

1) in your admincp there is a thing called "style & templates" expand it choose the stylemanager.Now you see all the styles installed on your board choose a style where you want to add the templates and next to it there is a drop down menu (the first item is "all style options") choose "add a new template" there in this menu.Add the templates from the templates folder int he zip

make sure you use the correct names or you'll just get a white blank page because the system can't find the template

you must do this with all the styles you use

that should do it

kall 01-06-2006 11:21 PM

*edit* oops. Wrong hack. :o

vampireus 01-06-2006 11:21 PM

Do I have to enable Email Function in vB Options for this mod to work?

All moderators can view all reports, which are reported from all forums, in modcp?

Daniel 01-07-2006 01:58 AM

Once this is out of BETA, I will definitely be installing. Much thanks!

Snake 01-07-2006 07:47 AM

Nice! I've been waiting for this. Thanks!

Daniel 01-07-2006 04:13 PM

In your emaill update you said there are no more file edits, but I'm a bit confused. Can you update the instructions to how we should install it now? Much appreciated.

Delphiprogrammi 01-07-2006 04:29 PM

Quote:

Originally Posted by Daniel
In your emaill update you said there are no more file edits, but I'm a bit confused. Can you update the instructions to how we should install it now? Much appreciated.

i have updated the first post ... you need to uninstall if you want to use the product

bashy 01-07-2006 05:31 PM

Hi

thanks for this, i have installed!! :)

The last screen shot, where exactly is that viewed please?

Also the section in admincp, theres 2 bits the same...

Post Reports

Outstanding Reports
Outstanding Reports

Is this right?

Regards

Bashy

Delphiprogrammi 01-07-2006 05:42 PM

Quote:

Originally Posted by bashy
Hi

thanks for this, i have installed!! :)

The last screen shot, where exactly is that viewed please?

Also the section in admincp, theres 2 bits the same...

Post Reports

Outstanding Reports
Outstanding Reports

Is this right?

Regards

Bashy

the last screenshot is postreports.php file you need to upload to your forumroot

Quote:

Originally Posted by bashy
Outstanding Reports
Outstanding Reports

no that should be "outstanding reports" and "closed reports" you found a little bug here ...

bashy 01-07-2006 05:44 PM

oooo i found 1 lol :)

Ah, yes i have uploaded that, i take it i have to make a manual link to it then?

Bashy

Delphiprogrammi 01-07-2006 05:48 PM

Quote:

Originally Posted by bashy
oooo i found 1 lol :)

Ah, yes i have uploaded that, i take it i have to make a manual link to it then?

Bashy

isn't that file in the quick links menu (if there are active postreports) ? if not i'll include instructions on howto add one.And that XML file is updated to show "outstanding reports" and "closed reports"

bashy 01-07-2006 05:50 PM

Hi m8,

No there aint, but i just added it myself ;)
Can only the staff see the link or how does it actually work?

Is it that if a member reports it then they can view thier report?
Can they view anyone elses report?

EDIT: just found out ;) a members cant see someone elses report, this is really good, well done, thanks

Cheers

Bashy

PS. (just rated ya thread) ;)

Daniel 01-07-2006 06:16 PM

Quote:

Originally Posted by Delphiprogrammi
i have updated the first post ... you need to uninstall if you want to use the product

Quote:

Originally Posted by Instructions
i'm also working on porting this to the plugin system so the fileedits are no longer needed but that's not quite ready yet

I thought we didnt have to use file edits?

Delphiprogrammi 01-07-2006 09:03 PM

Quote:

Originally Posted by Daniel
I thought we didnt have to use file edits?

that depends ........ if you use the product(the XML file) then no file edits are needed

file edits are only needed when you do not use the plugin / hook system

Daniel 01-07-2006 09:30 PM

Okay, I understand now. Thank you.

Delphiprogrammi 01-08-2006 08:16 PM

Quote:

Originally Posted by vampireus
Do I have to enable Email Function in vB Options for this mod to work?

All moderators can view all reports, which are reported from all forums, in modcp?

i didn't tryed this yet but i guess a mod can only see reports where he got moderator rights so moderator from forum a cannot view stuff from forum b (i think need to test this to be sure)

Delphiprogrammi 01-09-2006 12:43 PM

hi people,

a little update on the status of porting this system to the plugin / hook system.It's done but i found a verry annoying bug.it keeps on emailing reports even when this option in the settings is set to no.This can be verry annoying on big forums (eg allot of posts per day) so i'm trying to find a way around before release

vampireus 01-10-2006 03:51 AM

I tried your hack and uninstalled it for now because my forums is pretty big. This mod is inefficient since:

1. A mod can see reports from forums which he don't have moderator rights. Moderators will be confused to pick out reports belonging to their responsibility. It's also time-consuming for each mod to do that if too much reports are made each day.

2. As you stated above. I need to enable Emai Option for this hack to work. This is verry annoying on my forums.

Delphiprogrammi 01-10-2006 04:02 PM

hi,

I understand it can be annoying all those emails specially on bigger boards.You only need to enbale the email functions in vbulletin if you want to allow postreports per email it isn't a requirement for this hack to work

as for the "forums" thingy i tryed that to on my development board and it seems you're right a moderator can simply see all reports (even reports where he / she hasn't got moderator rights)maybe that's an idea for a future release ...

vampireus 01-11-2006 11:45 PM

Hi, correct me if I'm wrong.

I installed the hack. Email Options in ACP is OFF. I click on the "report bad post" icon and get the message "Sorry, email function has been disabled by the board", so I can't get to the report function.

Email Options in ACP is ON. I click on the "report bad post" icon and everything works fine

Delphiprogrammi 01-12-2006 07:50 AM

Quote:

Originally Posted by vampireus
Hi, correct me if I'm wrong.

I installed the hack. Email Options in ACP is OFF. I click on the "report bad post" icon and get the message "Sorry, email function has been disabled by the board", so I can't get to the report function.

Email Options in ACP is ON. I click on the "report bad post" icon and everything works fine

you should set "integrated postreporting active" to yes then the custom system should work but you won't get any emails.You will get that error is the email functions are off becaus there is code for it in report.php

i just gotta test to see you don't get thi error when it should not occur

Spinball 01-14-2006 11:34 AM

Are you aware that there is an indential hack also just been released?
https://vborg.vbsupport.ru/showthread.php?t=105165
Just making you aware of it, like.
Anyhow, I think a useful (necessary) feature of this hack would be for a moderator to 'pick up' a reported post to deal with it to avoid more than one mod looking at the issue. With 34 moderators, I want to avoid duplication of work. Once a mod has assigned himself to the problem, they can either deal with it through to resolution or pass it on to another (more appropriate) mod.

Also I think an automated reply thanking the reporter for their assistance would be courteous gesture which would encourage them to continue helping to moderate the forums.
Thanks for your attention.

Delphiprogrammi 01-14-2006 11:58 AM

Quote:

Originally Posted by Spinball
Are you aware that there is an indential hack also just been released?
https://vborg.vbsupport.ru/showthread.php?t=105165
Just making you aware of it, like.
Anyhow, I think a useful (necessary) feature of this hack would be for a moderator to 'pick up' a reported post to deal with it to avoid more than one mod looking at the issue. With 34 moderators, I want to avoid duplication of work. Once a mod has assigned himself to the problem, they can either deal with it through to resolution or pass it on to another (more appropriate) mod.

Also I think an automated reply thanking the reporter for their assistance would be courteous gesture which would encourage them to continue helping to moderate the forums.
Thanks for your attention.

yeah that's the original author.If he wants to release his own version then that's his right i have no problem with it whatsoever.

that's a nice idea an automated "thank you" reply gotta think about that

Delphiprogrammi 01-16-2006 12:11 PM

hi people,

i'm currently testing a new option wheter to receive emails from reported posts with a high priority but note this isn't supported by all email clients

all that will change is that (when enbaled) you'll see a red exclamation sign before the email.The screenshot in the first post is updated

Delphiprogrammi 01-27-2006 11:37 AM

hi people,

new feature working fine BUT is it me or does somebody elses using this thing also has the problem the reason for reporting a post always stays empty ? damn that annoys me :devious:

Delphiprogrammi 01-29-2006 06:56 PM

hi,

I've implemented two new permissions.When a user is trying to view postreports without having rights to view them they will see a "access denied" message.Same happens when you try to manage postreports in the modcp (or admincp)this way you could add a new usergroup with all moderation rights disabled just the reporting system turned on ..... anybody wants this ?

Smiry Kin's 02-08-2006 08:16 AM

Hi, here

https://vborg.vbsupport.ru/attachmen...chmentid=40586

i think is where the user can see the posts they have reported.. i can't find it anywhere??

thanks

mholtum 02-08-2006 09:29 AM

Quote:

Originally Posted by Delphiprogrammi
you should set "integrated postreporting active" to yes then the custom system should work but you won't get any emails.You will get that error is the email functions are off becaus there is code for it in report.php

i just gotta test to see you don't get thi error when it should not occur

I am checking this out on my test server, I did what you said :
PHP Code:

 set "integrated postreporting active" to yes 

But I am still getting that email error

Delphiprogrammi 02-08-2006 06:55 PM

Quote:

Originally Posted by Smiry Kin's
Hi, here

https://vborg.vbsupport.ru/attachmen...chmentid=40586

i think is where the user can see the posts they have reported.. i can't find it anywhere??

thanks

yourforumroot/postreports.php that will show the list of reported posts

Smiry Kin's 02-08-2006 07:02 PM

Quote:

Originally Posted by Delphiprogrammi
yourforumroot/postreports.php that will show the list of reported posts

hmm, how do i add a link in quick links drop now menu in element skin??

Delphiprogrammi 02-08-2006 07:02 PM

Quote:

Originally Posted by mholtum
I am checking this out on my test server, I did what you said :
PHP Code:

 set "integrated postreporting active" to yes 

But I am still getting that email error

yes you're right you found a problem here some people do not like to enable the emailfunctions so i gotta make that work without the emailfunctions requiring to be enabled gonna check that

Smiry Kin's 02-08-2006 07:04 PM

also whats this error? doesnt seem to show the bbtile aswell.. just comes up with the code.. neways error kinda msg is in red and says..

Uncached templates: postreportbits (4)
Uncached templates: postreports (1)

Delphiprogrammi 02-08-2006 07:07 PM

Quote:

Originally Posted by Smiry Kin's
also whats this error? doesnt seem to show the bbtile aswell.. just comes up with the code.. neways error kinda msg is in red and says..

Uncached templates: postreportbits (4)
Uncached templates: postreports (1)

that's not an error actually it just shows the templates used aren't cached you use the stats plugin wright ?

Delphiprogrammi 02-08-2006 07:09 PM

Quote:

Originally Posted by Smiry Kin's
hmm, how do i add a link in quick links drop now menu in element skin??

element you mean that vbstyles skin ? open the template called navbar

find

HTML Code:

<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
add below

HTML Code:

<tr><td class="vbmenu_option"><a href="postreports.php">$vbphrase[postreports]</a></td></tr>
that should add link in the "quick links" section of your forums navbar

Smiry Kin's 02-08-2006 07:23 PM

Quote:

Originally Posted by Delphiprogrammi
that's not an error actually it just shows the templates used aren't cached you use the stats plugin wright ?

yeh i use stats plug in.. lol

and thanks dude, i find it v hard to edit the element skin cos the things r moved about :s

Quote:

Page generated in 0.04749 seconds with 9 queries (2 queries for uncached templates) [Server Loads: 0.02 0.12 : 0.14]
Uncached templates: postreportbits (4)
Uncached templates: postreports (1)
[page compression: 23.68 k/27.08 k (12.55%)]

Smiry Kin's 02-08-2006 09:33 PM

oh also the user comments, don't work for me?? im using 3.5.2...? but everything else seems perfect..

Smiry Kin's 02-09-2006 07:53 AM

hmm don't seem to be getting emails now? :S i did before.. test the report sysem, now users use it, and i don't recieve email/??


All times are GMT. The time now is 05:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02298 seconds
  • Memory Usage 1,850KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete