vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Disable postbit share buttons in certain forums (https://vborg.vbsupport.ru/showthread.php?t=297922)

Bob_R 05-08-2013 12:29 AM

Disable postbit share buttons in certain forums
 
I got some code and inserted it where it needed to be to have the share buttons display in the postbit (every post).

My question is this:

How do I disable them from showing in certain forums. Meaning obviously the private ones.

Thanks!! :)

Bob_R 05-09-2013 04:02 PM

C'mon please. This is very important to me and it's out of my league.

There has to be a way to code it so it doesn't appear in certain forums.

Again, thanks!

Lynne 05-09-2013 04:15 PM

Questions/Problems regarding modifications/styles need to be asked in the modification/style thread. That is where the support for modification/style is - not out here in the main forums. Please note that if a modification/style is unsupported (or even if it says it is supported), you may be on your own if you chose to install it.

Bob_R 05-09-2013 04:53 PM

Quote:

Originally Posted by Lynne (Post 2420901)
Questions/Problems regarding modifications/styles need to be asked in the modification/style thread. That is where the support for modification/style is - not out here in the main forums. Please note that if a modification/style is unsupported (or even if it says it is supported), you may be on your own if you chose to install it.

My question doesn't pertain to any modification that I found here. It wasn't posted here. Got code and put it in the proper place just wish to exclude certain forums. Just asking for help with the issue.

Lynne 05-09-2013 10:50 PM

And it's near impossible to tell you how to do that when we don't have the code. The best place to ask is wherever you got the code. (And no, since you didn't write the code, you may not post it here.)

There is an article in the vB4 articles section on writing template conditionals, so that may help you to figure it out.

BirdOPrey5 05-11-2013 08:28 PM

If this is code you added to your postbit template you can use a template conditional to hide it in certain forums.

Code:

<vb:if condition="!in_array($thread['forumid'], array(2, 3, 4, 5))">
share code here
</vb:if>

Where 2, 3, 4, and 5 are forum ids of forums to NOT show the code.

Bob_R 05-11-2013 10:08 PM

A million and one thanks, Joe!! :up:

You are the best!! :)


All times are GMT. The time now is 10:05 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.03193 seconds
  • Memory Usage 1,721KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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