vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - Report Post Icon Enhancement (https://vborg.vbsupport.ru/showthread.php?t=148684)

Princeton 05-31-2007 10:00 PM

Report Post Icon Enhancement
 
Report Post Icon Enhancement changes the default behavior of the Report Post link.

If a post has been reported:
- Report Post icon will be replaced.
- Report Post link will redirect to report.

BENEFITS
  • Great for history and informational purposes.
  • Links to post report if one exists.
  • Quick and easy access for staff.
NOTE:
  • Features will only display to staff.
  • You must have a Post Reporting Discussion Forum (vbulletin Options / User Infractions & Post Reporting Options)

713JunctionP 06-01-2007 05:57 PM

this is not working for me.

I tested it out by reporting a post on one of my members and the icon did not change to the yellow ! icon. I know I followed the directions EXACTLY. *shrug*

Princeton 06-01-2007 06:01 PM

you must have a Post Reporting Discussion Forum

713JunctionP 06-01-2007 06:03 PM

Quote:

Originally Posted by Princeton (Post 1259265)
you must have a Post Reporting Discussion Forum


and that also affects the red/white report post icon from changing to the yellow/black report post icon?

Princeton 06-01-2007 06:07 PM

that is correct .. if report exists the yellow icon will be visible to staff and directs them to report upon clicking

bashy 06-01-2007 06:42 PM

Excellent Princeton, well done m8, what a great addition!!! :)

Ps. (works brilliantly)

FleaBag 06-01-2007 08:47 PM

I like it a lot!

Nathan2006 06-02-2007 10:58 PM

*FULL MARKS* Princeton

This is great! :D

Just 1 thing.

Is there anyway to have this show yellow to members,
so they know the post has already been reported but only click-able for staff?

Really good mod been looking for this for a long time :)

Thank you

Install

rjmjr69 06-03-2007 08:01 AM

I love it but one thing. Is there a way to get the report icon to show in the userbit instead of next to the quote button in the thread?

Attachment 65151

Princeton 06-05-2007 12:24 PM

Quote:

Originally Posted by Nathan2006 (Post 1259995)
*FULL MARKS* Princeton

This is great! :D

Just 1 thing.

Is there anyway to have this show yellow to members,
so they know the post has already been reported but only click-able for staff?

Really good mod been looking for this for a long time :)

you will need to change the conditionals and perhaps create new ones

Quote:

Originally Posted by rjmjr69 (Post 1260203)
I love it but one thing. Is there a way to get the report icon to show in the userbit instead of next to the quote button in the thread?

you will need to move the report post code to wherever you like ... the code can be found in the postbit and postbit_legacy templates

COBRAws 08-10-2007 05:07 PM

Quote:

Originally Posted by Princeton (Post 1261716)
you will need to change the conditionals and perhaps create new ones

Could you guide me how? I would likely test it and post it so you can update this mod.

There was an old hack I remember a vb2.x board was using, so when you clicked on a report button and if it was already reported, a message showed up with "This message has already been reported, thank you". I cant recall which mod it was. Maybe 0tolerance report system or alike.

To complete this mod (in my opinion), would be adding some kind of noticee for members so they know it has been reported.


Another advanced idea would be the following:

If a post has more than 3 reports, its automatically "deleted" and a notice would show up for everyone. With some other ideas that I should think of some anti abuse measures, so we can avoid members from getting organized in groups, massively reporting the same post to take it down until moderation is done.


my 2 cents.
I really like your hacks princeton, dont know why so few installs in average.

Cya

Princeton 08-15-2007 01:35 PM

try this .. this will show reported to everyone except the original author (unless it's staff)

HTML Code:

<if condition="$show['modcplink'] AND $post['reportthreadid']">
HTML Code:

<if condition="($post['userid'] != $bbuserinfo['userid'] OR $show['modcplink']) AND $post['reportthreadid']">

Wheezy 08-24-2007 02:46 AM

Quote:

Originally Posted by Princeton (Post 1318126)
HTML Code:

<if condition="$show['modcplink'] AND $post['reportthreadid']">
HTML Code:

<if condition="($post['userid'] != $bbuserinfo['userid'] OR $show['modcplink']) AND $post['reportthreadid']">

I tried these edits, but it didnt work. I found the first box and replaced with the second box - is that not what we are supposed to do? Please advise :)

Nathan2006 08-24-2007 07:24 AM

Quote:

Originally Posted by Wheezy (Post 1324520)
I tried these edits, but it didnt work. I found the first box and replaced with the second box - is that not what we are supposed to do? Please advise :)


Yes you need to replace the top code with the bottom code in both Postbit and Postbit_Legacy

I'm sure it will work then ;)

It does for me

Thanks Princeton :)

Is there anyway to make this non clickable for normal members?



.

Wheezy 08-24-2007 09:15 PM

Thanks for answering, Nathan2006, but now its half-working. All the report buttons show up yellow as if they were reported when they really arent. And since they are all showing up as already reported, it wont let me report any. Ideas?

Nathan2006 08-28-2007 01:10 AM

Quote:

Originally Posted by Wheezy (Post 1325041)
Thanks for answering, Nathan2006, but now its half-working. All the report buttons show up yellow as if they were reported when they really arent. And since they are all showing up as already reported, it wont let me report any. Ideas?


Sorry I have been really busy this weekend.

Have you got another hack installed for reported threads?

Also make sure you replace them both in Postbit and Postbit_Legacy

Wheezy 08-28-2007 12:19 PM

No other hacks for reported threads, and I made sure to edit the code in both templates.

rainyleaves 09-30-2007 03:37 PM

Thanks for your Mod!!

I get this error when I click Yellow Icon(Reported Icon).

Code:

Database error in vBulletin 3.6.8:

Invalid SQL:

                SELECT *
                FROM ****_threadrate
                WHERE userid = 1
                        AND threadid =;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4
Error Number : 1064
Date        : Monday, October 1st 2007 @ 01:34:01 AM
Script      : http://***.***/forums/showthread.php?t=33886
Referrer    : http://***.***/forums/showthread.php?t=31838
IP Address  : ***.***.***

How can I fix?
Please help....
Thanks :)

Princeton 10-10-2007 01:00 PM

that error has nothing to do with this mod ..
perhaps, there is a conflict with another modification

rainyleaves 10-10-2007 01:16 PM

Thanks. :)

Saviour 10-16-2007 09:35 PM

Princeton...

Nice idea and nice job! I absolutely love this new mod. Actually, I'm surprised anyone thought of it...leave it to you, though.

This will actually cut down on the number of times a single post gets reported...saving time and space. The enhancement is, really, quite practical and efficient.

Two thumbs up for this mod...:up::up:

Also nominated as MOTM...

Xplorer4x4 01-13-2008 12:06 PM

I think it would be great to see this expanded a step further and use ajax to open a small dialog post to type a comment in, similar to the reputation system.

Princeton 01-14-2008 02:02 PM

I like it - you should post your request a vbulletin.com.

COBRAws 10-21-2008 01:24 AM

Sorry for the bump, I had an idea but couldnt make my way around the conditionals.

With the little line edit that Priceton posted here, the users can still click on the report icon and they will be redirected to the report thread at the reports forum. I thought about deleting that URL for users only and leave it for staff. The reason is that on my board, the report threads are for staff only, so I thought about this:


HTML Code:

                        <if condition="$show['reportlink']">

                                <if condition="($post['userid'] != $bbuserinfo['userid']) AND $post['reportthreadid']">

                                        <img class="inlineimg" src="$stylevar[imgdir_statusicon]/wol_error.gif" alt="Este mensaje ya ha sido reportado" border="0" />

                                <else />

                                        <a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a>

                                </if>
                                <if condition="$show['modcplink'] AND $post['reportthreadid']">
                                        <a href="showthread.php?$session[sessionurl]t=$post[reportthreadid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/wol_error.gif" alt="Ver Reporte" border="0" /></a>
                                </if> &nbsp;

                        </if>


It works OK for users, without the link to the report thread and the icon changed so the user knows that it has been reported, but for Staff, it has an small problem:
Reported posts show 2 icons, A) the one that users see when a post has been reported and B) one that shows that it has been reported and has a link to the report thread. Not reported posts show up allright.

Can someone help me here? Maybe it's an stupid fix but I am not having any luck with conditionals hehe

Thanks in advance.

Mansour 10-28-2008 12:54 PM

thanks, it is a great idea I like it and install in in vb 3.7.3 pl1 its works

COBRAws 11-20-2008 05:03 PM

Anyone for #24?

Big-K 07-05-2010 02:48 PM

CAn anyone update this logic to 4.0?


All times are GMT. The time now is 03:53 AM.

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.01710 seconds
  • Memory Usage 1,805KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete