vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Restrict Style to Usergroup (https://vborg.vbsupport.ru/showthread.php?t=95910)

Boofo 10-11-2005 01:46 PM

I just noticed this in the first post. If we are using that hack, this won't work then?


Attention: This Hack does not work with Show Users using Style in Style Chooser

Andreas 10-11-2005 02:12 PM

Yep. It does not work due to a "design problem" of the vBulletin Plugin System :)

Boofo 10-11-2005 02:44 PM

So, use one or the other but not both. Will you be updating this as the plug-in system gets updated then?

Andreas 10-11-2005 02:54 PM

The design problem which causes these two Hacks to not work together will probably never be changed :)

Xplorer4x4 10-16-2005 11:58 PM

I had the Show Users using Style in Style Chooser hack instaled AND this. Then I realized I had to uninstall the other. I didn't really care that much. However that was the only modification I did today and afterwards one member was having a DB Error. I had to log into his acount to reporduce the problem and I got this:
PHP Code:

Database error in vBulletin 3.5.0:
Invalid SQL:
SELECT user.avatariduser.avatarrevisionavatarpathNOT ISNULL(filedata) AS hascustomcustomavatar.dateline,
customavatar.widthcustomavatar.height
FROM user 
AS user
LEFT JOIN avatar 
AS avatar ON avatar.avatarid user.avatarid
LEFT JOIN customavatar 
AS customavatar ON customavatar.userid user.userid
WHERE user
.userid =;
MySQL Error You have an error in your SQL syntaxCheck the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6
Error Number 
1064
Date         
SundayOctober 16th 2005 07:39:03 PM
Script     
http://www.xtremepain.net/forums/index.php
Referrer     
IP Address 
Username     :
Classname    vb_database 

I simply disabled and enabled the plug in system and it seem to solve the DB issue.

Andreas 10-17-2005 12:09 AM

This error most likely is not caused by this Hack; furthermore, this query (issued by fetch_avatar_url() ?) is not a standard query used by index.php

lazyseller 11-09-2005 09:13 PM

great hack thanks

theArchitect 11-11-2005 10:17 PM

Quote:

Originally Posted by lazyseller
I have an idea for cobranding that im working on and trying to implement this hack.

i setup a special usergroup called COBRAND2 and as well a template called COBRAND2Template. I want users in cobrand2 to only see the cobrand2template but for some reason once a user logs out and back in he uses the default template

Is it just me, or has this hack stopped working on 3.5.1?

It was working fine when I first installed it, but since the upgrade all user groups can access all styles. I have re-checked and apart from 2 styles, all of my other styles should not be visable to other user groups.

Any thoughts?

Andreas 11-11-2005 10:19 PM

Admins can see all styles ...
Except that, I don't see any reason why it would not work - though you might have to rebuild the stylecache once (edit one style, click save without making any changes).

theArchitect 11-11-2005 10:30 PM

Quote:

Originally Posted by Andreas
Admins can see all styles ...
Except that, I don't see any reason why it would not work - though you might have to rebuild the stylecache once (edit one style, click save without making any changes).

Thanks for the reply.

I tested it using a "Registered User" account, so the permissions should be in effect. I have also rebuilt the style information but stil no go.

I will look into it further, as it could be a template (or code) issue at my end. I have just use my fail safe and viewed the forum via the Default (or unhacked) style. And in this style no style chooser is being displayed.

So I will have a play around and see if I can work it out.

Many thanks for your prompt responce.


All times are GMT. The time now is 02:43 PM.

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.01168 seconds
  • Memory Usage 1,749KB
  • 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)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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