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)

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 11:28 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.01163 seconds
  • Memory Usage 1,737KB
  • 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_html_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
  • (7)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