PDA

View Full Version : Miscellaneous Hacks - Report system enhancer


itsid
01-11-2007, 10:00 PM
Are you bothered by the look and functionality of your report system ?

Do you want to have radiobuttons instead of the the textfield ?

Well welcome to sids report enhancer

Now you can add the entries from your infractionsystem to be shown up at report.php,
you can add own custom report reasons,
you can even make the original textfield disappear.

Now it's all in your hands :D

To install: import xml via product manager nothing else!!

Hope you like it ;)
two languages available english and deutsch

[Update v 0.1.5]
- radiobuttons now above the textfield
- improved javascript
- setable delimiter between radiobutton-message and textfield-message
- removed beta-bugs

[Update v 0.2.0]
- you now can enforce users to type a message if he chose your last own custom report reason (thanks to replay's idea)

'sid

ps thanks terminatoronly for the idea.

soulface
01-12-2007, 02:18 PM
nice hack. lets see what it does ..

4yBak
01-12-2007, 02:18 PM
very poor screenshot - I can't see at it nothing :(

itsid
01-12-2007, 02:22 PM
Your right.. they were resized by vborg I'm sorry

[EDIT]
so.. bigger screenshots ( in german, sorry) [click thumbs to have fullsize-images]
First: that what your report.php looks like by default:
https://vborg.vbsupport.ru/ (http://xs.to/xs.php?h=xs511&d=07025&f=sid_report_enh_0.jpg)

Within th ACP you'll find the following settings:
https://vborg.vbsupport.ru/ (http://xs.to/xs.php?h=xs511&d=07025&f=sid_report_enh_1.jpg)
first option en or disable the hack
second option get entries from the buildin infraction system
what makes your report.php appear like this:
https://vborg.vbsupport.ru/ (http://xs.to/xs.php?h=xs511&d=07025&f=sid_report_enh_2.jpg)
third option use own custom option to be shown up
what then will look like this:
https://vborg.vbsupport.ru/ (http://xs.to/xs.php?h=xs511&d=07025&f=sid_report_enh_3.jpg)
and the last option is disable the original textfield
what makes the textfield disappear and your report.php will look like that:
https://vborg.vbsupport.ru/ (http://xs.to/xs.php?h=xs511&d=07025&f=sid_report_enh_4.jpg)


'sid

ps let's all hope vborg has an image resizer build in.. otherwise: Sorry :D
edit2: no resizer... so let's use thumbnails.. just click on it to see fullsize image

Brew
01-12-2007, 02:38 PM
Can someone paste some images of this in English?

Thanks!

Terminatoronly
01-12-2007, 03:41 PM
best hack ever i like it much installed :D

Barakat
01-12-2007, 03:42 PM
very nice idea Terminatoronly and thanks for itsid for this release

Terminatoronly
01-12-2007, 03:46 PM
well the best thanks to itsid for releasing it i like it much

Terminatoronly
01-12-2007, 03:51 PM
well everybody please nominate it to mod of the month because itsid worked on it hard dont think its simple i think he will make more updates for it soon :D

Mecho
01-12-2007, 04:01 PM
wow ,

Useful , easy installation and great idea ( Thanks Terminatoronly ) And Thank u for make it :)

Installed

abramelin
01-12-2007, 04:03 PM
does this work on 3.6.4?

Terminatoronly
01-12-2007, 04:06 PM
yep it works with 3.6.4 ;)

itsid
01-12-2007, 04:31 PM
yes sure it'll work on 364..
couldn't choose 3.6.X as vB version number, that's why I used smallest vB version it was tested on, that's 3.6.2

'sid

SCRIPT3R
01-12-2007, 04:35 PM
Can anyone post screenshots in English... I have no idea what i'm looking at.

itsid
01-12-2007, 05:02 PM
Sorry Gear, I myself don't have an english langfile for vBulletin installed, so I'm off.

Nevertheless I think the pictures are pretty much self-explanatory, the difference is the fieldset with radiobuttons coming from YOUR infractionsystem or YOUR acp settings... so they are different for each one of us I think

OR, what may be the easiest way: just install the hack to see what it does to your board, uninstall ist.. it's a simple plugin, not a single template edit or something you'll have to do but upload the xml :D

'sid

projectego
01-12-2007, 05:07 PM
Nice work! Thanks. :)

SCRIPT3R
01-12-2007, 06:02 PM
ahh, i understand now with the bigger images.

NeoToxic
01-12-2007, 06:32 PM
Where can i edit the radio edit choices?

AMG021
01-12-2007, 07:20 PM
Your right.. they were resized by vborg I'm sorry

[EDIT]
so.. bigger screenshots ( in german, sorry) [click thumbs to have fullsize-images]
First: that what your report.php looks like by default:
http://xs511.xs.to/xs511/07025/sid_report_enh_0.jpg.xs.jpg (http://xs.to/xs.php?h=xs511&d=07025&f=sid_report_enh_0.jpg)

Within th ACP you'll find the following settings:
http://xs511.xs.to/xs511/07025/sid_report_enh_1.jpg.xs.jpg (http://xs.to/xs.php?h=xs511&d=07025&f=sid_report_enh_1.jpg)
first option en or disable the hack
second option get entries from the buildin infraction system
what makes your report.php appear like this:
http://xs511.xs.to/xs511/07025/sid_report_enh_2.jpg.xs.jpg (http://xs.to/xs.php?h=xs511&d=07025&f=sid_report_enh_2.jpg)
third option use own custom option to be shown up
what then will look like this:
http://xs511.xs.to/xs511/07025/sid_report_enh_3.jpg.xs.jpg (http://xs.to/xs.php?h=xs511&d=07025&f=sid_report_enh_3.jpg)
and the last option is disable the original textfield
what makes the textfield disappear and your report.php will look like that:
http://xs511.xs.to/xs511/07025/sid_report_enh_4.jpg.xs.jpg (http://xs.to/xs.php?h=xs511&d=07025&f=sid_report_enh_4.jpg)


'sid

ps let's all hope vborg has an image resizer build in.. otherwise: Sorry :D
edit2: no resizer... so let's use thumbnails.. just click on it to see fullsize image
better screen shots :D. Very Useful hack

itsid
01-12-2007, 09:58 PM
NeoToxic,
the "upper half" of the radiobuttons come from the infractionsystem..
those change if you add or edit a new infraction to the system (acp -> infraction system)
the others (ACP ADD 1-3 in the pictures) are added directly to the system (acp-> vBulletin options ->User: Reportsystem - enhancement)

'sid

Hornstar
01-12-2007, 11:07 PM
This is a very cool idea, very nice work. will install this a little later on my site. thanks.

Snake
01-12-2007, 11:28 PM
Awesome! I have been waiting for this! :D

Snake
01-13-2007, 11:21 AM
I have just installed this but I need to do a few tweaks. For the report message in mail, I'd like to have it as this:

This is the reason that the user gave:
Reason: Mass PM Advertising

The user has been spamming on the board! Ban!

This message has been sent to all moderators of this forum, or all administrators if there are no moderators.

Please respond to this post as applicable.

Note that the report message has to be under the reason which is "Reason: Mass PM Advertising".

Oh also. I am trying to place to report message field INSIDER the report reasons area. Any idea how to do that?

itsid
01-13-2007, 03:52 PM
well maybe in the next upcoming version you'll find a solution ;)

If you try by yourself: delimiter is hardcoded to the javascript.
AND: forget about html; the original report.php will not allow html to be parsed

cheers

'sid

Nathan2006
01-13-2007, 09:25 PM
Thank you itsid

This is a great addon :)

Install

NeoToxic
01-14-2007, 10:57 AM
NeoToxic,
the "upper half" of the radiobuttons come from the infractionsystem..
those change if you add or edit a new infraction to the system (acp -> infraction system)
the others (ACP ADD 1-3 in the pictures) are added directly to the system (acp-> vBulletin options ->User: Reportsystem - enhancement)

'sid

Thanks alot mate :) Great Hack.

Snake
01-14-2007, 11:59 AM
well maybe in the next upcoming version you'll find a solution ;)

If you try by yourself: delimiter is hardcoded to the javascript.
AND: forget about html; the original report.php will not allow html to be parsed

cheers

'sid
So how about I supposed to do this then? Care to explain? And how much longer until the next version is released?

itsid
01-14-2007, 02:26 PM
Hi Snake,
just add that feature to my test.xml yesterday (just for you ;))

But, like I always try.. I'd like to have the xml tested before I ruin any of your forums ;)
even if I declare it as a beta version...

you'll have to wait just another day I think

then you'll find a way of editing the delimiter, and the radiobutton-box ABOVE the textfield (what makes more sense to me)
And I've done some minor codechanges too (javascript thingy newline blabla, you know)

Just stay tuned, as soon as I update the xml in first post, You'll be informed by email
(nice vborg feature that is, isn't it... another reason to click the installed link, you'll stay up to date [giving toxic a hint *gg*])

Just let me test everything more than once, on more than one vB-version and tonight/tomorrow morning you'll have an option for the delimiter (WITH NEWLINE POSSIBILITY) :D

cheers
'sid

Terminatoronly
01-14-2007, 03:45 PM
ok thanks alot itsid :D

Nathan2006
01-15-2007, 04:18 AM
Thanks Sid

This look fantastic :D

Updated

Terminatoronly
01-15-2007, 05:21 AM
Updated

Snake
01-15-2007, 04:22 PM
Thanks for the update!

Snake
01-15-2007, 08:30 PM
Hi Snake,
just add that feature to my test.xml yesterday (just for you ;))

But, like I always try.. I'd like to have the xml tested before I ruin any of your forums ;)
even if I declare it as a beta version...

you'll have to wait just another day I think

then you'll find a way of editing the delimiter, and the radiobutton-box ABOVE the textfield (what makes more sense to me)
And I've done some minor codechanges too (javascript thingy newline blabla, you know)

Just stay tuned, as soon as I update the xml in first post, You'll be informed by email
(nice vborg feature that is, isn't it... another reason to click the installed link, you'll stay up to date [giving toxic a hint *gg*])

Just let me test everything more than once, on more than one vB-version and tonight/tomorrow morning you'll have an option for the delimiter (WITH NEWLINE POSSIBILITY) :D

cheers
'sid
Okay thanks for that guess I'll have to wait but the report message shows underneath the report reason now. That's good but I wanted the reason to be inside the reason's field.

Take a look here.

http://www.finalfantasyforums.net/report-post10281.html

itsid
01-15-2007, 10:55 PM
well, you'd better take a screenshot ...
I do not intend to register ;)

Well.. to put the textfield inside the fieldset of radiobuttons,
you will have to edit your reportbadpost template (adding the fieldset there)
and deleting the fieldset from sid_report_form template

I will not do that, I'd like to have that hack without any manual edits of templates or files;
just as easy as possible :D

Okay, I could find a way... but to be honest... I don't want to ;)

'sid

Snake
01-16-2007, 05:02 PM
Okay here's a screeny.

http://img444.imageshack.us/img444/6905/pp11sw4.png

Snake
01-16-2007, 05:05 PM
I tried to do it and it didn't work. :( Maybe you can help?

Also there is something wrong with the "Logged in as" line.

itsid
02-20-2007, 12:09 AM
New version available... just a small update though

'sid

Snake
02-20-2007, 08:30 AM
Thanks for the update! :)

Mecho
02-20-2007, 04:05 PM
Thanks ..

is it possible that user get one small popup if they select last option and they didnt write any message ? i think it will be faster

itsid
02-20-2007, 05:05 PM
faster for the users for sure,
faster for vBulletin, well maybe,
faster for me to solve , nope :D

No in fact that'll require a change of the javascript, with lots of conditions to take care of.
I'll take a look at it as soon as I can,
but I wont promise anything there ;)

'sid

Mecho
02-21-2007, 03:16 PM
Ok Thanks :D

itsid
02-25-2007, 09:43 PM
Hi Mecho;
just to let you know:
Still no elegant way to solve your request :(

'sid

Mecho
02-27-2007, 04:51 PM
Thanks itsid for inform me :)

Nathan2006
03-06-2007, 05:05 PM
Thank you for the update itsid :)

Is there anyway to have a confirm message such as "Thank you for your report" or something?

Just so members know that its submitted :)

Thanks again :)

itsid
03-07-2007, 01:19 AM
So,
Mecho...
change template sid_report_form to

<script type="text/javascript">
function rep_combine(){
for(var x=0;x<$report_count;x++){
if(document.getElementsByName("rep_box")[x].checked == true){
if(x == $report_count-1){
alert("$vbphrase[sid_report_alert]");
}
var rep_out = document.getElementsByName("rep_box")[x].value;
break;
}
}
window.document.rep_form.reason.value = rep_out +' $vboptions[sid_report_delimiter] '+ window.document.rep_form.rep_text.value;
}
</script><fieldset class="fieldset">
<legend>$vbphrase[sid_report_reason]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="90%" align="center">
$sid_report_reasonbits
</table>
</fieldset>

and create a new GLOBAL Phrase named sid_report_alert with
Remember to note down a reason
or whatever you find suitable.

Nathan, well yes there is a way,
there are hacks that do just that by sending a PM to the "reporter" for example,
but in fact I consider that less useful, because of the feedback of vbulletin itself.
see report.php:
eval(print_standard_redirect('redirect_reportthank s'));
that'll showup the "redirect_reportthanks"-phrase already if report was send.

'sid

Snake
03-07-2007, 04:14 PM
Bah I have just un-installed this hack 'cause it's pretty messed up. Whatever.

itsid
03-07-2007, 08:42 PM
Well snake...

I'm unhappy to hear, but if you do a clean install and stop messing up the templates it'll surely do as normal ;)

'sid

Mecho
03-08-2007, 11:09 AM
appreciate sid for help but nothing changed .. still redirect to other page ..

Thanks anyway

itsid
03-08-2007, 11:18 AM
??? Okay, your question was:

is it possible that user get one small popup if they select last option and they didnt write any message ? i think it will be faster

You now have your popup,
what redirect are you talking about?

All redirects are from report.php itself btw.

'sid

Mecho
03-08-2007, 11:23 AM
i mean no popup shows up .. if users didnt select anything or select last option without comments it will redirect to another page ( /report.php?do=sendemail&hint=reportbadpost ) and c this

vBulletin Message : Please enter a reason for reporting this post.

itsid
03-08-2007, 02:48 PM
If you changed the template as in post #45
there will be a popup if LAST option is selected as a reminder
If your users STILL don't enter any reason
or if they don't select any option,
the redirect is the best way to check report-reason.
(because it is already implemented)
Any javascript userside-realtime checking will only inflate sourcecode,
and won't help if javascript is disabled (what's still possible ;))

But I don't think that you have that 'not-so-smart' users on your board... or at least I hope so ;)


maybe a sticker from sarah utter (buyolympia.com):
http://buyoly.com/i/readingissticker_lg.gif
will help users to know what to do :D :D

cheers
*grinning*
'sid

Mecho
03-08-2007, 03:55 PM
I sent to my sexy site link . u can check it urself :D

Mecho
03-12-2007, 03:03 PM
Sid i have problem now ...

each options for report that u select u get this : Please enter a reason for reporting this post. !!!

i Select " NO " to this option : Require textfield for last option
but still i get this : Please enter a reason for reporting this post.

i disable mod for now until u help me to resolve it .

p.s. i uninstall and reinstall it but still has a problem ....

Thanks in Advance

itsid
03-12-2007, 04:08 PM
You're the lucky one... :D
I was just checking my postbit to see if my "i'm on vacation" hint was there.

Now, let's see:
You have to delete the sid_report templates manually if you have edited them,
otherwise they will stay altered if you reinstall.
So, go to your acp -> template management and revert all red marked "sid_report *" templates and uninstall the hack afterwards.
Now they should be deleted... check out.

Now if you reinstall the hack all should work as before.

If you still get that error, disable the plugin called:
report enhancer - textfield required from plugin-management,

I'll return next week ..

'sid

Mecho
03-12-2007, 09:41 PM
Thanks sid :D

pollon
03-26-2007, 10:54 AM
I've installed and it works wonderfully but I have just a little issue. Sending a report I get this:

http://immagini.p2pforum.it/out.php/i122548_errorreposrtsystem.png

but I would like to have the "check box" below the text (message) box:

http://immagini.p2pforum.it/out.php/i122545_sidreportenh2.jpg

How can I do it?

Terminatoronly
03-26-2007, 11:19 AM
hi itsid,
its a really nice hack that u made :).
i wish that u make it look like this:
http://www.vbulletin.com/forum/attachment.php?attachmentid=22357&d=1174736763

I Mean Let The Check Box Appear Next To The Comment Box Or Message.

And I Would Like from you to check my suggestion for the report i posted it in vbulletin.com i think its a great suggestion since all of us need this feature in our boards check it here:
http://www.vbulletin.com/forum/showthread.php?t=224536

Maybe You decide To Upgrade Your Mod To Let It Look Same Thing As That One :D or maybe vbulletin team will make it in the next release :D

itsid
03-28-2007, 11:16 AM
Pollon, very easy to swap position..

edit the plugin called report enhancer - edit reportbadpost template (thanks to ZIKI)
change just the following lines from

$ara = '<!-- report field -->';
//$ara = '<!-- / report field -->';

to
//$ara = '<!-- report field -->';
$ara = '<!-- / report field -->';
and you're done

terminatoronly,
as I said you earlier, I'd like to keep things small and easy to install,
and withou any template edits if possible.
What you ask for requires template edits of existing templates, I refuse to do so!
And I also refuse to copy or transcript another hack (at least without authors permission)
So forget about it ;)

'sid

Terminatoronly
03-28-2007, 11:35 AM
yeah i know this but i just asked you not for making same mod atleast ideas from it ;)

pollon
03-28-2007, 11:56 AM
thank you sid :)

ymy
03-28-2007, 12:43 PM
Great idea

Installed and translet to arabic , working nice with VB 3.6.5

Ymy click install

.

princeedward
03-29-2007, 05:17 PM
work fine to my vB 3.6.5.
thanks for this wonderful mod....clicked install... ;)

Muellmann
03-29-2007, 08:01 PM
It works very well, thanks for this useful addition!

uhh_nonsense
04-18-2007, 06:29 PM
Is this mod compatible with the Advanced Report Post Management System (https://vborg.vbsupport.ru/showthread.php?t=137031&highlight=report)?

pollon
04-18-2007, 07:27 PM
Is this mod compatible with the Advanced Report Post Management System (https://vborg.vbsupport.ru/showthread.php?t=137031&highlight=report)?


yes it is :D
i'm on 3.6.5

itsid
04-18-2007, 09:04 PM
Thanks pollon,
I didn't tried ;)

'sid

Eagle Creek
05-13-2007, 01:36 AM
Can you post a screenshot of how the reported post will appear in the E-mail (//thread) when u filled in a reason?

itsid
05-13-2007, 07:14 AM
Sorry I can't, I don't receive any emails from vbulletin (deactivated)

maybe someone else...

threads appear as before.
given reason is simply quoted!
depending on delimiter between radiobutton and input text you'll have a new line, that's it.
Sorry, I can't provide a screenshot at this time...

'sid

Legende
05-19-2008, 08:06 PM
Is there an Update for 3.7.0?

Mecho
06-01-2008, 09:19 PM
yea , any chance to have this working on 3.7.X ?

ThE LeAdEr
06-10-2008, 07:20 PM
Not work in 3.7.1

ThE LeAdEr
06-10-2008, 08:52 PM
it is possible to modify this hack to allow configure permissions for each user group?

I need a group of users can use this hack, but not other user groups

==========================
Spanish version
es posible modificar este hack para que permita configurar los permisos por cada grupo de usuarios?

yo necesito que un grupo de usuario pueda usar este hack, pero los otros grupos de usuario no

Rogier21
07-07-2008, 07:17 PM
No chance of updating this one?

Mecho
07-25-2008, 04:40 PM
Still waiting for update :)

Alfa1
07-25-2008, 06:25 PM
Does this work in vb 3.7.2 ?

Mecho
08-03-2008, 11:53 AM
Does this work in vb 3.7.2 ?

Nope , just 3.6.*

Hope he will update it soon !

students_forum
09-02-2008, 10:49 PM
me too

Alfa1
09-03-2008, 11:48 PM
A 3.7.3 version would be a very welcome update.

kud0gfx
09-21-2008, 09:19 PM
A 3.7.3 version would be a very welcome update.

+1
This is an interesting mod!

Mecho
05-01-2009, 07:19 AM
Any Update or any Similar Plugin ?

outsistem
10-30-2009, 06:36 PM
update actual version?

Fluke667
03-18-2012, 09:31 PM
i want this for vb3.8