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)

Lea Verou 08-09-2007 09:00 PM

Is this post reported?
 
This mini mod checks if a post is reported and if so, it displays a link to the report thread to your mods/admins.

NO QUERIES
NO TEMPLATE EDITS
Just import the product and you're done!

Support: Supported for a few days after each release
Don't forget to mark as Installed! :)

Dismounted 08-10-2007 09:16 AM

Doesn't this already do what this hack does? (and in a neater way as well, in my opinion)

https://vborg.vbsupport.ru/showthread.php?t=148684

Lea Verou 08-10-2007 09:20 AM

Oops! Hadn't noticed that. :(

Zachery 08-10-2007 09:21 AM

Both modifications go about things in a differnt way however.

Hornstar 08-10-2007 10:46 AM

I actually like the image to be in the postbit area (different image of course) so I suppose both have their advantages (I would modify the text for an image tho. Thanks for sharing

Lea Verou 08-10-2007 11:01 AM

Personally I like that way more, its easier to spot and it still allows other reports to be made (if for any reason a mod wants to make one). :)

Also my hack doesn't need any template modifications ;)

FreshFroot 08-11-2007 03:06 AM

Great hack michelle, nice work :D

thedvs 08-13-2007 02:18 PM

can u do this for versions less than 3.6.8 please?

Lea Verou 08-13-2007 02:20 PM

Which version do you have?

thedvs 08-13-2007 02:45 PM

3.6.4 & 3.6.5

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

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 :(

Lea Verou 08-17-2007 08:30 AM

Oops, my mistake.
Its AND !$post['reportthreadid'], I forgot the exclamation mark in front.

Spermy 08-18-2007 04:11 PM

The text is not showing up. Is there something I can add to the postbit legacy?

VB version 3.6.8

Lea Verou 08-18-2007 04:21 PM

Quote:

Originally Posted by Spermy (Post 1320412)
The text is not showing up. Is there something I can add to the postbit legacy?

VB version 3.6.8

Ensure that you have $template_hook[userinfo_right_after_posts] in your postbit_legacy template.

Spermy 08-18-2007 05:33 PM

That didn't work. What i found was $template_hook[postbit_userinfo_right], I changed it to what you posted above and still not showing.

Lea Verou 08-18-2007 05:36 PM

Quote:

Originally Posted by Spermy (Post 1320470)
That didn't work. What i found was $template_hook[postbit_userinfo_right], I changed it to what you posted above and still not showing.

It may be showing in a different place than the one you expect, since you modified a hook in an other place.
Please change the hook as it was and follow the instructions in post #13.

Nathan2006 08-20-2007 02:19 AM

Quote:

Originally Posted by Michelle (Post 1320422)
Ensure that you have $template_hook[userinfo_right_after_posts] in your postbit_legacy template.


Thank you Michelle

That worked great :D

Wheezy 08-24-2007 12:27 AM

Is there a way for the message "This post has been reported" (as a non-link) to be displayed to registered users so that multiple users do not report the same post?

Lea Verou 08-24-2007 12:37 AM

Yes, it should be quite easy, but I don't have the time right now to look at the code and tell you. I'll come back later if you haven't figured it out yourself by then.

Lea Verou 08-25-2007 07:26 PM

Quote:

Originally Posted by Wheezy (Post 1324495)
Is there a way for the message "This post has been reported" (as a non-link) to be displayed to registered users so that multiple users do not report the same post?

Open the plugin "Main Code" from this product and change this:
PHP Code:

if($this->post['reportthreadid'] AND can_moderate()) 

to this:
PHP Code:

if($this->post['reportthreadid']) 

Then go to the template ereports_postbit and change this:
HTML Code:

<a href="$vboptions[bburl]/showthread.php?t=$post[reportthreadid]">$vbphrase[ereports_reported]</a>
to this:
HTML Code:

<if condition="can_moderate()">
<a href="$vboptions[bburl]/showthread.php?t=$post[reportthreadid]">$vbphrase[ereports_reported]</a>
<else />
$vbphrase[ereports_reported]
</if>


Symmetrical? 08-26-2007 07:58 AM

but icant see post report text in postbit template only postbit_legacy :(

Lea Verou 09-01-2007 11:15 AM

Quote:

Originally Posted by Symmetrical? (Post 1325942)
but icant see post report text in postbit template only postbit_legacy :(

Hmmm, edit the main plugin and change postbit_legacy to postbit...
Sorry, I forgot.

Wheezy 09-10-2007 06:50 AM

Bah, I over-looked the vB version (Im running a 3.6.5) But thanks anyhow for getting back to me!

mystic10 02-10-2008 07:26 PM

is there anyway i can change color and make it bold and bigger font size so it can easly be noticed...and i want it to be at botton no in middle..is there anyway u can help sir..thanks in advance


All times are GMT. The time now is 02:16 PM.

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.03110 seconds
  • Memory Usage 1,787KB
  • 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
  • (10)bbcode_html_printable
  • (2)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)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