vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Is this post reported? (https://vborg.vbsupport.ru/showthread.php?t=154834)

Nathan2006 08-13-2007 07:09 PM

Hi Michelle

just a question.

Is there anyway to remove the report button once a post has been reported
to stop others reporting it?

Lea Verou 08-14-2007 06:51 AM

Quote:

Originally Posted by Nathan2006 (Post 1316795)
Hi Michelle

just a question.

Is there anyway to remove the report button once a post has been reported
to stop others reporting it?

Sure, just wrap the report button inside the conditional:
HTML Code:

<if condition="$post['reportthreadid']">
</if>


Lea Verou 08-14-2007 06:53 AM

Quote:

Originally Posted by thedvs (Post 1316624)
3.6.4 & 3.6.5

not upgraded yet as ours is too heavily modded & we're a bit lazy :)

Find:
HTML Code:

<div>
      $vbphrase[posts]: $post[posts]
</div>

and add below:
HTML Code:

$template_hook[postbit_userinfo_right_after_posts]

thedvs 08-14-2007 11:27 AM

michelle that won't work, because when I try to import your product it says:

The following dependencies were not met:

1. This product is not compatible with version 3.6.4 of vBulletin. (Compatible starting with 3.6.8)

Lea Verou 08-14-2007 12:01 PM

And I was wondering yesterday in which hack I had put a dependency :p
Ok, I'll post later an xml without the dependency.

thedvs 08-14-2007 09:13 PM

thanks :)

JayJay 08-14-2007 10:26 PM

Removed the dependancy below:

Nathan2006 08-15-2007 01:35 AM

Quote:

Originally Posted by Michelle (Post 1317098)
Sure, just wrap the report button inside the conditional:
HTML Code:

<if condition="$post['reportthreadid']">
</if>



Hi Michelle,

Which part would I wrap it around?

Something here? lol

Quote:

<if condition="$show['reportlink']"><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>
Also is there anyway to move the "This post is reported!" text?

Thanks for any help :)

Install

Lea Verou 08-15-2007 09:41 AM

Oh, since its already in a conditional, then just change:
HTML Code:

<if condition="$show['reportlink']">
to
HTML Code:

<if condition="$show['reportlink'] AND $post['reportthreadid']">
As for the move, it depends on where you want to put it.

JayJay, thanks for that, you just saved me time for developing my new hack ;)

Nathan2006 08-17-2007 03:01 AM

Quote:

Originally Posted by Michelle (Post 1318003)
Oh, since its already in a conditional, then just change:
HTML Code:

<if condition="$show['reportlink']">
to
HTML Code:

<if condition="$show['reportlink'] AND $post['reportthreadid']">
As for the move, it depends on where you want to put it.

JayJay, thanks for that, you just saved me time for developing my new hack ;)

Hi Michelle,

I replaced that code but it still shows for members after a post has been reported :(


All times are GMT. The time now is 01:44 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.01678 seconds
  • Memory Usage 1,738KB
  • 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
  • (8)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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