vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Disabling Report a Post in Specific Forums (https://vborg.vbsupport.ru/showthread.php?t=211592)

dm_fan 05-21-2009 06:48 PM

Thanks Lynne
changing to $thread['forumid'] was exactly what did the trick. here is the code again for anyone trying to do the same thing:

Code:

<if condition="$thread['forumid'] != 'xxx'">
<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>
</if>

I started out wanting to change $show['reportlink'] but couldn't find where $show was located (I don't work with PHP or mods to our forums that often).
and I've never created a plugin but would be willing to learn if someone can point me to a good tutorial.

Thanks again

Lynne 05-21-2009 09:59 PM

Quote:

Originally Posted by dm_fan (Post 1814802)
and I've never created a plugin but would be willing to learn if someone can point me to a good tutorial.

Thanks again

I wrote this out. Perhaps it will help you - Disable Post Report Link for a forum

dm_fan 05-21-2009 10:56 PM

I tested it on our forums and everything works fine.

Thanks again

Andreas 05-23-2009 01:06 PM

Keep in mind that it just hides the link - it does not keep users form reporting posts.

Lynne 05-23-2009 03:25 PM

Quote:

Originally Posted by Andreas (Post 1815743)
Keep in mind that it just hides the link - it does not keep users form reporting posts.

That is true for the template edit, which is why I posted a link to a quick article I wrote that uses plugins and that will keep users from being able to report them in that forum.


All times are GMT. The time now is 08:42 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.01052 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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