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)

Andreas 09-11-2005 07:34 PM

Exactly.

Gray Matter 09-14-2005 01:20 AM

Thanks for this Kirby, you know I've been looking out for it. ;)

nexialys 09-20-2005 04:44 PM

don't know if it's just me, but THERE IS a hook in 'editstyle'...

>> admin_style_form

so your plugin "Prepare Usergroup Selector" can be rebuilt a little, i think... i've recreated the process myself and it's working...
HTML Code:

                <plugin active="1">
                        <title>Restrict Styles to Usergroup: Prepare Usergroup Selector</title>
                        <hookname>admin_style_form</hookname>
                        <phpcode><![CDATA[
                        print_membergroup_row($vbphrase['restrict_to_usergroup'], 'allowedusergroups', 0, array('membergroupids' =>
$style['allowedusergroups']));
                        ]]></phpcode>
                </plugin>


Andreas 09-20-2005 04:50 PM

Interesting. My RC3 does not have Hook admin_style_form there - only in addstyle.
That's why I requested it to be in editstyle too.
But maybe my RC3 is different from yours.
What's the CVS Version of your template.php?

Edit: OK. Revision 1.232 of template.php does have the Hook there, Revision 1.231 (which was the RC3 one I had) does not ;)

Gonna update the XML :)

nexialys 09-20-2005 05:01 PM

when they released the RC3 publically, 30 secondes before the release, they thought "Darm We Forgot KirbyDE"... lol

oh btw, suggestion, i know there is no hook in that function, but it would be great to filter the styles in the dropdowns too...

"function construct_style_options" ... in functions.php!

Andreas 09-20-2005 05:03 PM

LOL.
I had the staff preview and expected that there were no changes to the official RC3 - guess I was wrong.

Andreas 09-20-2005 05:07 PM

Quote:

Originally Posted by nexialys
oh btw, suggestion, i know there is no hook in that function, but it would be great to filter the styles in the dropdowns too...

You mean in the Quick Style Chooser and profile.php?
Should be filtered - except if you are Admin.

nexialys 09-20-2005 05:12 PM

Quote:

Originally Posted by KirbyDE
You mean in the Quick Style Chooser and profile.php?
Should be filtered - except if you are Admin.

ARGH, damn stupidity to be an admin... lol... too much privileges!

NOTA: just read the TYPO in the thead title... ;)

Christine 09-24-2005 04:31 PM

If we set a style for subscribing members and their subscription expires, do they get to keep the style or can it default them back to the forum default?

amykhar 09-24-2005 04:42 PM

If it works like my original one did, it doesn't let people in usergroups that aren't allowed to use the style access the style. So, if the subscription changes their usergroup, they are no longer able to use that style.


All times are GMT. The time now is 10:38 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.01115 seconds
  • Memory Usage 1,739KB
  • 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_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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