vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Disabling signatures for specified forums (https://vborg.vbsupport.ru/showthread.php?t=116814)

DominicG 08-02-2006 08:37 PM

I was looking for this as well. I put the code in but it doesn't work. Do I replace the original code or add to it? Also when I add the forums I don't want to see siggy's in do I add ' before and after each forum? Thank you so much for your help :)

Kathleen(Dominic is my son)

Freesteyelz 08-03-2006 12:58 AM

@Kathleen/DominicG:

In your postbit or postbit_legacy template find:
Code:

                <if condition="$post['signature']">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>

And replace it with:
Code:

                <if condition="$thread['forumid'] == x or $thread['forumid'] == y">
                <else />
                <if condition="$post['signature']">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>
                </if>

Then substitute "x" and "y" for the Forumid #; the forums that you do not want the signatures displayed. The above example only will disallow 2 forums. To add more just copy and paste the following code (apply the spaces too):

Code:

or $thread['forumid'] == z
The overall code will then be:
Code:

<if condition="$thread['forumid'] == x or $thread['forumid'] == y  or $thread['forumid'] == z">
I tested it and it should work. If you have any questions let me know. :)

DominicG 08-03-2006 01:08 AM

Thank you so much! I will try it and let you know :)

Freesteyelz 08-03-2006 01:16 AM

Ok. :)

DominicG 08-03-2006 12:50 PM

I tried it and it doesn't work :( I'm sure it's something I'm doing wrong. I just don't know what. I'm not good at this stuff. I'm just learning. Thank you so much for your help :)

Kathleen

Freesteyelz 08-04-2006 02:02 AM

NP...We'll work this through. :)

Make sure that you're editing the correct postbit template; either postbit or postbit_legacy. Please post (in the code tag) the signature code that you're using; if you also have my codes in place please add them too. I will also need your forum ID numbers of the forums that you do not want the signature to display.


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.01167 seconds
  • Memory Usage 1,724KB
  • 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
  • (4)bbcode_code_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
  • (6)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