vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Removing Plugin from one skin? (https://vborg.vbsupport.ru/showthread.php?t=326254)

shibby2 04-04-2018 12:56 AM

Yes I did, but it also removed it from all styles, not just the mobile one. :(

MarkFL 04-04-2018 02:48 AM

Okay, what is the styleid of your mobile style?

shibby2 04-04-2018 03:27 AM

Style ID is 4.

MarkFL 04-04-2018 04:50 AM

Okay, then try:

PHP Code:

if (STYLEID != 4)
{
    
plugin code here...



shibby2 04-04-2018 06:36 AM

That worked! :) Thank you so much!

Just wondering...and if it's not possible or too hard, please ignore...but how hard would it be to make it so users could just click a button or something to 'turn on' the random album pics if they wish to? So it would normally always be off for that style, but they have the choice to display it if they wish.

Thanks again for all the help! :)

MarkFL 04-04-2018 10:57 AM

Quote:

Originally Posted by shibby2 (Post 2593921)
That worked! :) Thank you so much!

Just wondering...and if it's not possible or too hard, please ignore...but how hard would it be to make it so users could just click a button or something to 'turn on' the random album pics if they wish to? So it would normally always be off for that style, but they have the choice to display it if they wish.

Thanks again for all the help! :)

You could set up a "yes/no" custom profile field that would allow users to toggle whether this feature works or not. Then include in the conditional:

PHP Code:

$vbulletin->userinfo['fieldX'] == 'Yes' 

where X is the id number of the custom profile field.

shibby2 04-04-2018 10:22 PM

Hmm, I like that, but I was also thinking a lot of people won't bother going into their User CP. So maybe something right there on forumhome where the pics would be, like a button or link that would turn it on? Is that possible?

MarkFL 04-04-2018 10:40 PM

Yes, that could be done, but it would require a bit of javascript coding, particularly if you want the user's choice to be remembered. Or you could wrap the whole thing in a collapsible block.

shibby2 04-04-2018 11:52 PM

That would be perfect, a collapsible box. Would that be hard?

MarkFL 04-05-2018 01:57 AM

Is the information displayed by the addon done so with a custom template?


All times are GMT. The time now is 07:01 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.01919 seconds
  • Memory Usage 1,728KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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