vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Remove Reputation from Certain Forums (https://vborg.vbsupport.ru/showthread.php?t=261182)

Lambolica 03-30-2011 10:48 AM

Remove Reputation from Certain Forums
 
I wish to remove all users ability to place reputation in Certain Forums.

I had this working in 3.8 using an array conditional however it appears all this has changed in vB4 and I'm at a loss after searching around for the last few hours. The following code is where I am at but it is turning off the rep icon in all Forums:

In Postbit

Code:

<vb:if condition="$show['reputationlink'] AND in_array($foruminfo['forumid'], array(5,14))">
Any Clues?


Cheers
Simon

Lynne 03-30-2011 01:45 PM

Instead of $foruminfo['forumid'], try $threadinfo['forumid'] or $thread['forumid']

Lambolica 03-31-2011 02:17 AM

Still turns the button off in all forums with either the $thread or $ threadinfo versions.

In Postbit
Code:

<vb:if condition="$show['reputationlink'] AND in_array($thread['forumid'], array(5,14))">
                                        <span class="reputationpopupmenu popupmenu popupcustom" title="{vb:raw post.postid}"><a class="popupctrl reputation" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&amp;p={vb:raw post.postid}" title="{vb:rawphrase add_reputation}" rel="nofollow" id="reputation_{vb:raw post.postid}"><!--<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase add_reputation}" />-->&nbsp;</a></span>
                                        </vb:if>

Cheers
Simon

Lynne 03-31-2011 03:36 AM

Have you tried spitting out the $show['reputationlink'] variable to see if it's true or false? It could be that part of your condition that is set incorrectly. (I always spit out all the variables when having condition problems, so do that and see which variable is incorrect that way.)

Lambolica 03-31-2011 07:18 AM

No idea how to do that... sorry

Cheers
Simon


All times are GMT. The time now is 12:57 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.00972 seconds
  • Memory Usage 1,715KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete