Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Force Style for Selected Usergroups Details »»
Force Style for Selected Usergroups
Version: 4.0.002, by Mosh Mosh is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.x Rating:
Released: 11-27-2009 Last Update: 03-11-2010 Installs: 43
DB Changes Uses Plugins
Re-useable Code Translations  
No support by the author.

Please click Mark as Installed if you are using this hack.

IMPORTANT NOTICE: This hack has now been discontinued - this means that while it will remain available for download and use, there will be no further updates as this thread is no longer monitored. I am also not interested in doing paid work requests to update this hack at all.


What Does This Hack Do?[hr]Silver[/hr]
It is a update of my v3.8.x hack available here, designed to work with vBulletin v4.0.x.

This hack allows you to force a style to a usergroup via usergroup permissions, so this means that you can force different usergroups to different styles (previous versions of this hack only allowed you to apply only 1 style to a set of usergroups/users).

Scenario

The setup on my forums is that I use the default style as the parent to all my other styles which makes modifying the templates easy for me, I just edit my default style and the child styles inherit the changes.

I wanted to use a child style as the standard style for visitors and members, but not have them have a choice of the default style at all, but as soon as you logged out you were presented with the default style that you did not want guests to see.

This hack rectifies that. It also allows you to let others use the forum wide default style (selected via Style & Language Settings -> Default Style in the vBulletin Options of the AdminCP) while forcing the usergroup(s) to the one style you selected.


Frequently Asked Questions

Question:
What if you need custom style permissions as well?
Answer:
This question has been asked a few times: What if you need custom style permissions so that you can control which usergroups see/select what styles? The hack I use is Andreas's Restrict Style to Usergroup hack which he released for v3.5.x. It is because of that hack that this one exists, and I have tested it on v3.5.x, v3.6.x, v3.7.x, v3.8.x and v4.0.0 Beta, and it works for all five versions and works fine with my hacks as well.

For instance on my forum I need to use both hacks, as the style I force on my guests and normal members is not selectable nor do I allow them permission to use it, and is also not my default style (all my other styles are child styles of my default one), so without Andreas's hack I would not be able to do this.

But just to let you know that Andreas's hack is unsupported and is not likely to ever be supported (unless it is a proven bug), so if you have problems with it, you are on your own.

vBulletin Version Compatibility[hr]Silver[/hr]
This hack can only be used with v4.0.0 and later versions.

For the v3.8.x version of this hack, which will also work with v3.7.x and v3.6.x - check here.

For the unsupported v3.5.x version of this hack - check here.



Install/Upgrade/Uninstall Instructions[hr]Silver[/hr]
The readme.txt instructions file is included in attached .zip file.


Version History[hr]Silver[/hr]
v4.0.002 - Friday 12th March 2010
-- Final v4.0.x release
-- Released at Wolfshead Solutions on Friday 5th March 2010
-- Fixed: Style not being enforced in vBulletin v4.0.2 and above

v4.0.001 - Saturday 28th November 2009
-- Initial v4.0.x Release
-- Changed: Plugin (removed forcing style on users - does not work at the moment)
-- Changed: Hack name (used to be called "Force Style for Selected Users or Groups")
-- Added: readme.txt file
-- Added: VersionHistory.txt file
-- Removed: 1 phrase
-- Removed: 2 AdminCP settings
-- Removed: 1 Bitfield setting


Thanks[hr]Silver[/hr]
Thanks go out to Paul M who gave me permission to use some of his install code.


Show Your Appreciation [hr]Silver[/hr]
Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.

Download Now

File Type: zip ms_force_style_40.zip (3.8 KB, 336 views)

Screenshots

File Type: png screenshot1.png (15.7 KB, 0 views)
File Type: png screenshot2.png (7.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
madness85

Comments
  #32  
Old 05-04-2011, 08:43 AM
lmgc lmgc is offline
 
Join Date: Apr 2010
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any way to force style by language ??
Reply With Quote
  #33  
Old 08-29-2011, 02:52 AM
iDHKHCM iDHKHCM is offline
 
Join Date: Aug 2011
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is working fine on me for vb 4.1.5 pl1
simplw fix

just open "ms_force_style_40.xml"

find
<dependency dependencytype="vbulletin" minversion="4.0.0 Beta 1" maxversion="4.0.999" />

replace with
<dependency dependencytype="vbulletin" minversion="4.0.0 Beta 1" maxversion="4.1.6" />

works perfect for me hope it works for u guys
Reply With Quote
  #34  
Old 08-19-2012, 11:58 AM
GuLYaRaSi GuLYaRaSi is offline
 
Join Date: Jun 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When will versiyon 4.2.0 ??
Reply With Quote
  #35  
Old 04-13-2013, 07:44 AM
madness85 madness85 is offline
 
Join Date: Jun 2012
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

4.2 would be great anyone help?
Reply With Quote
  #36  
Old 08-11-2013, 02:25 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it works great without any issues on vb4.2.1

Thanks big times, mate
Reply With Quote
  #37  
Old 08-22-2013, 09:34 PM
madness85 madness85 is offline
 
Join Date: Jun 2012
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This product is not compatible with version 4.2.0 of vBulletin.
Reply With Quote
  #38  
Old 08-05-2015, 11:27 AM
Marv Marv is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 372
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working with 4.2.2

Sorry for diggin out such an old thread, but this one came in very handy - a usefull mod, but there is one downside. May be someone knows a workaround for that:

With this mod I´m forcing unregistered users (only) to use style 16. The problem is, when they visit the forums via tablet or smartphone the autodetection and style-assignement for mobile browser (-> assigning the mobile style) doesn´t work. I guess it would be possible to add a <vb:if> condition that excludes unregistered mobile browsers from the style enforcement. Anyone an idea how to do that and which conditionals to use for the mobile detection?
Reply With Quote
  #39  
Old 08-07-2015, 11:48 AM
Marv Marv is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 372
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mhm, guess this problem needs to be slightly bumped. I volunteer
Reply With Quote
  #40  
Old 08-13-2015, 05:17 AM
x iJailBreak x's Avatar
x iJailBreak x x iJailBreak x is offline
 
Join Date: Jan 2011
Location: United Kingdom
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wrote a similar plugin for my own board (to stop users using beta styles mid-build). If interested, I'll post it.
Reply With Quote
  #41  
Old 08-13-2015, 05:31 AM
killah360z killah360z is offline
 
Join Date: Jul 2013
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by x iJailBreak x View Post
I wrote a similar plugin for my own board (to stop users using beta styles mid-build). If interested, I'll post it.
im intrested
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 12:21 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04868 seconds
  • Memory Usage 2,338KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete