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


All times are GMT. The time now is 11:51 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.02118 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
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (4)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