Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
An evil little prank mod - force user to a style
amykhar
Join Date: Oct 2001
Posts: 4,438

PA
by amykhar amykhar is offline 07 Feb 2006

I threw this together as a practical joke. I installed a style for one of our private forums, and some members hated it. So, I set it so that one of those users was faced with that style in every forum - and couldn't change it.

If you want to force a user to a given style, do this:

1. Note your styleid and the userid of the person you want to torment.

In global.php Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add After

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

If you have a whole usergroup you want to torment, do this: (haven't tested this one)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Views: 4866
Reply With Quote
Comments
  #2  
Old 07 Feb 2006, 20:42
hiiped's Avatar
hiiped hiiped is offline
 
Join Date: Jan 2006
force ?

torment ?

wow, you're so evil











but I love it . LOL
Reply With Quote
  #3  
Old 07 Feb 2006, 21:12
IrPr IrPr is offline
 
Join Date: Mar 2005
Real name: MoOZ
code modification?
i think Andreas coded and awesome product named "Restrict Style to Usergroup"
goood work, but i prefer Andreas's work
Reply With Quote
  #4  
Old 07 Feb 2006, 21:25
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
That's different. It's an update of one of my older mods and certainly has it's uses.

This is a temporary code hack that can be used as a practical joke or even for users that you're trying to drive away. Both have their uses.
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #5  
Old 08 Feb 2006, 03:11
IrPr IrPr is offline
 
Join Date: Mar 2005
Real name: MoOZ
Originally Posted by amykhar
That's different. It's an update of one of my older mods and certainly has it's uses.

This is a temporary code hack that can be used as a practical joke or even for users that you're trying to drive away. Both have their uses.
ofcourse this mod supports user restriction
Thanks Amy
Reply With Quote
  #6  
Old 08 Feb 2006, 09:24
Smiry Kin's's Avatar
Smiry Kin's Smiry Kin's is offline
 
Join Date: Dec 2005
If you have a whole usergroup you want to torment, do this: (haven't tested this one)

Code:

if(is_member_of($vbulletin->userinfo,usergroupidhere))
{
$codestyleid= styleidhere;
}
Does this work?? also ideal if people are having problems not viewing the default skin..??
Reply With Quote
  #7  
Old 08 Feb 2006, 12:05
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Thanks!
Reply With Quote
  #8  
Old 09 Feb 2006, 13:13
Sooner95 Sooner95 is offline
 
Join Date: Apr 2003
This would be a cool thing one could buy via Estore or Ushop..haha..

Nice one..
Reply With Quote
  #9  
Old 14 Feb 2006, 20:36
SouthernTn SouthernTn is offline
 
Join Date: Jul 2005
can you do this in 3.5.2? Theres no START TEMPLATES & STYLES
Reply With Quote
  #10  
Old 22 Feb 2006, 03:01
Smiry Kin's's Avatar
Smiry Kin's Smiry Kin's is offline
 
Join Date: Dec 2005
is there away to select all user groups? :S
Reply With Quote
  #11  
Old 22 Feb 2006, 03:37
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
Yes. Leave off the conditional, Smiry.

Southern, sorry. I don't write for older versions.
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #12  
Old 22 Feb 2006, 06:32
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Could also easily be done as a plugin on style_fetch
Reply With Quote
  #13  
Old 24 Feb 2006, 17:18
Jon.'s Avatar
Jon. Jon. is offline
 
Join Date: Dec 2005
Real name: Jon
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
Reply With Quote
  #14  
Old 24 Feb 2006, 17:36
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
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.
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #15  
Old 25 Feb 2006, 21:47
Jon.'s Avatar
Jon. Jon. is offline
 
Join Date: Dec 2005
Real name: Jon
Oh, thanks
Reply With Quote
Reply

Similar Article
Article Author Type Replies Last Post
Force Guests To Use One Style ninjashoes vBulletin 3.6 Template Modifications 15 20 Oct 2007 19:28
Force Style to Certain Usergroup(s) and/or User(s) Mosh vBulletin 3.5 Add-ons 28 02 Apr 2007 22:11



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:15.

Layout Options | Width: Wide Color: