vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Allow Somebody to Use Non-Selectable Styles (https://vborg.vbsupport.ru/showthread.php?t=50574)

amykhar 03-20-2003 10:00 PM

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

Overgrow 03-21-2003 02:25 PM

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.

Dean C 03-21-2003 02:28 PM

Interesting hack - very useful though amy :)

- miSt

filburt1 03-21-2003 02:32 PM

Non-selectable selectable styles :)

Davey 03-21-2003 02:56 PM

Nice idea!
I will install it (licking install and wiping it clean:p) now, then actually install it later to test it.
Thanks.

Dave.

amykhar 03-21-2003 03:01 PM

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

afterlab 03-21-2003 03:02 PM

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

Dan 03-21-2003 03:10 PM

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

Davey 03-22-2003 03:12 AM

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.

Cyricx 03-22-2003 06:35 AM

Hmm is there a way for me to let two specific users do this?

I tried this

PHP Code:

if ($bbuserinfo[userid]==6,286) { 

but that didn't work =/

6 and 286 being the two userid's I would like to enable this on.

Thanks and great hack! :)


All times are GMT. The time now is 06:57 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.01258 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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