vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How To Hide Avatar And Signature In Specific Forum (https://vborg.vbsupport.ru/showthread.php?t=257922)

creative-friend 01-27-2011 05:58 PM

How To Hide Avatar And Signature In Specific Forum
 
Hello

I Just Wanted to know if there is any way to Hide Avatar And Signature In Specific Forum i did that in VB3.....and tried the same coding in VB4 but its not working

Can anyone help with this please???

Thank u.

borbole 01-28-2011 12:05 PM

Quote:

Originally Posted by creative-friend (Post 2155350)
Hello

I Just Wanted to know if there is any way to Hide Avatar And Signature In Specific Forum i did that in VB3.....and tried the same coding in VB4 but its not working

Can anyone help with this please???

Thank u.

Do you want to hide it from guests or from different groups?

If the first have a look at my mod:

https://vborg.vbsupport.ru/showthread.php?t=250094

It can also be tweaked to hide it from other groups too.

Lynne 01-28-2011 03:22 PM

Don't edit the template, just write a plugin like:
PHP Code:

if ($this->thread['forumid'] == x)
{
$show['avatar'] = false;
$post['signature'] = '';



creative-friend 01-28-2011 08:57 PM

Quote:

Originally Posted by borbole (Post 2155657)
Do you want to hide it from guests or from different groups?

If the first have a look at my mod:

https://vborg.vbsupport.ru/showthread.php?t=250094

It can also be tweaked to hide it from other groups too.

I Wana Hide Avatar And Signature In My Religion Section From Everyone.....

Quote:

Originally Posted by Lynne (Post 2155748)
Don't edit the template, just write a plugin like:
PHP Code:

if ($this->thread['forumid'] == x)
{
$show['avatar'] = false;
$post['signature'] = '';



What do you mean??

Can you please explain abit...

Lynne 01-28-2011 11:52 PM

Quote:

Originally Posted by creative-friend (Post 2155853)
What do you mean??

Can you please explain abit...

Adding or Editing a Plugin

borbole 01-29-2011 02:49 PM

Quote:

Originally Posted by creative-friend (Post 2155853)
I Wana Hide Avatar And Signature In My Religion Section From Everyone.....

If you want to do that with my mod, change this code at the mod file

PHP Code:

if (!$vbulletin->userinfo['userid'] && $forum['guests_avatars']) 

to this:

PHP Code:

if ($forum['guests_avatars']) 

Or you can create a new mod by following Lynne's advice above.

creative-friend 01-30-2011 09:46 PM

Quote:

Originally Posted by Lynne (Post 2155900)

Okay when doing this what do i have to select on Hook Location??

Quote:

Originally Posted by borbole (Post 2156086)
If you want to do that with my mod, change this code at the mod file

PHP Code:

if (!$vbulletin->userinfo['userid'] && $forum['guests_avatars']) 

to this:

PHP Code:

if ($forum['guests_avatars']) 

Or you can create a new mod by following Lynne's advice above.

Bro what will that do??i have changed the code like you said but i cant see anything happening??

Lynne 01-30-2011 10:45 PM

Quote:

Originally Posted by creative-friend (Post 2156641)
Okay when doing this what do i have to select on Hook Location??

Tyr a postbit one like postbit_display_complete.

creative-friend 02-01-2011 01:33 PM

Quote:

Originally Posted by Lynne (Post 2156678)
Tyr a postbit one like postbit_display_complete.

Okay Thats Done

So Do I Have To change anything here

I Mean forum Id or something.....where i dont want to show avatar and signature??

Quote:

if ($this->thread['forumid'] == x)
{
$show['avatar'] = false;
$post['signature'] = '';
}
--------------- Added [DATE]1296575332[/DATE] at [TIME]1296575332[/TIME] ---------------

Great All Done.....

I changed the X to forum Id and it worked fine

Thanks Alot Lynne

Thank u very much.

--------------- Added [DATE]1296575562[/DATE] at [TIME]1296575562[/TIME] ---------------

One more thing

what do i have to do for the sub forums??

Boofo 02-01-2011 02:56 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=246993" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=246993</a>

creative-friend 02-02-2011 07:51 PM

Quote:

Originally Posted by Boofo (Post 2157354)


Thanks Alot Brother....


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.01237 seconds
  • Memory Usage 1,755KB
  • 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
  • (6)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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