![]() |
Allow Somebody to Use Non-Selectable Styles
I put this together very quickly to allow me to use non-selectable styles so that I can develop and test styles without members using something that is not ready yet.
It's a quick hack that I have put together in two versions. The first allows one specific user to use all styles. The second allows all admins to use all styles. If you know PHP, it is trivial for you to add more users or more usergroups to the list. No screenshot is available because it would have no meaning. Basially, what you will see after installation is that non-selectable styles now appear in your usercp dropdown if you are the designated member. Using the styles in postbit hack and don't want your users to see that you are using an unavailable style? This addon will help: https://vborg.vbsupport.ru/showthrea...533#post374533 |
Yea that is a handy problem you are fixing there :) Makes no sense that as an admin, you can't view a style to develop it.
|
Interesting hack - very useful though amy :)
- miSt |
Non-selectable selectable styles :)
|
Nice idea!
I will install it (licking install and wiping it clean:p) now, then actually install it later to test it. Thanks. Dave. |
I must confess that I put this together to help prepare for my April Fool's joke. A hack created with evil intentions :D
Amy |
heh.. I was about to release something like this. I made one of these custom for myself awhile back. Good job though. Yours looks more cleaner coded than mine, so I may use yours instead. :p
|
Exactly what I needed now my test account can use this instead of me having private forums for style testing......
/me will use this and install this when he gets home. ~Dan /me clicks install |
One thing troubles me, it would be nice if you could have an option so that the admin can put the userids into the config.php file.
This way, you can easily add a list of users who can 'beta test' your style. Just need someone to implement it. Oh come on! How hard can it be!? lol. Dave. |
Hmm is there a way for me to let two specific users do this?
I tried this PHP Code:
6 and 286 being the two userid's I would like to enable this on. Thanks and great hack! :) |
You want if (($bbuserinfo[userid]==6) or ($bbuserinfo==286)) {
|
Great hack...I installed it, seems to be working smoothly. Nice work. :)
|
Awesome! Great Hack! :)
|
Great Idea:)
Satan |
Thank you all :)
Amy |
Is there a way too intergrate this with the Styles in Postbit hack. So that mods who have a scheme that is non-selectable it shows up as the default?
|
Forgot to ask you about the Global.php too :)
How do I need to alter this line to allow for user id 6 and 286 in the global.php? Code:
if (!$style['userselect'] and $bbuserinfo[userid]!=X) { This is an AWESOME help to creating styles. :) |
Code:
if (!$style['userselect'] and $bbuserinfo[userid]!=6 and $bbuserinfo[userid]!=286) { |
Quote:
Here's the code you need to modify: (Please understand queries before you try to do this. I am writing the instructions this way to enable you to use it with other hacks.) Find: Code:
style.title as styletitle Code:
,style.userselect as userselect Code:
Code:
Code:
style.title as styletitle Code:
,style.userselect as userselect Code:
$post[postcount] = ++$postcount; Code:
if (!$post[userselect]) { Amy |
w00t! :)
Now I can get the wife to browse over the new ones too. :) Thanks! |
good :)
Amy |
Not sure if you can help, but, I am using filberts style dropdown hack, which uses the phpinclude template instead of firefly's change style hack. Will the styles that are not-selectable still appear in the drop down box on forumhome?
|
No, they will not show there unless you code them to do so for the specific user or group.
|
Hey Amy, :)
Can you integrate this hack with your other hack Style for Premium Members! I have Style for Premium Members hack, yet I need Mods/Supermods/Admins to be able to see hidden schemes fully so that they're easier to customize. :) |
I no longer have a copy of vbulletin 2 and no longer code for older versions. Sorry.
|
Parse error: parse error, unexpected $ in /home/piper/public_html/member.php on line 3033
Help! |
What editor did you use to make the edit?
|
I used CuteFTP Pro.....
|
All times are GMT. The time now is 12:26 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|