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)

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. :)


All times are GMT. The time now is 11:29 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.01143 seconds
  • Memory Usage 1,742KB
  • 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
  • (4)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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