vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   An evil little prank mod - force user to a style (https://vborg.vbsupport.ru/showthread.php?t=107400)

amykhar 02-22-2006 02:37 AM

Yes. Leave off the conditional, Smiry.

Southern, sorry. I don't write for older versions.

Andreas 02-22-2006 05:32 AM

Could also easily be done as a plugin on style_fetch :)

Jon. 02-24-2006 04:18 PM

Love it! :) I'm using it as a premium system - i have a skin without adverts that i use for premium, but not anyone else :)

amykhar 02-24-2006 04:36 PM

Jon,
Andreas's mod to restrict styles to usergroups may be more suitable for your needs. It's more robust and it's a plugin.

This is more of a quick and dirty hack to do something style-wise to an individual or two.

Jon. 02-25-2006 08:47 PM

Oh, thanks :)

Smiry Kin's 02-26-2006 02:05 AM

is it possible to have 2
if($vbulletin->userinfo['userid']==useridhere)
{
$codestyleid= styleidhere;
}

?

e.g you might want admins / mods to use a no add style, and users etc to use one..

but then you want a different group to use another style.. is this possbiel?

e.g

if($vbulletin->userinfo['userid']==1,2,3,4)
{
$codestyleid= 1;
}

if($vbulletin->userinfo['userid']==4,5,6)
{
$codestyleid= 2;
}

amykhar 02-26-2006 12:20 PM

Yes, Smiry. But, as I said before if you are doing it with large groups of people, it's better to use Andreas's mod.


All times are GMT. The time now is 11:34 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.01424 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
  • (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
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete