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)
-   -   Heirarchical Access Masks (https://vborg.vbsupport.ru/showthread.php?t=50950)

Zhin Jio 03-28-2003 10:00 PM

Heirarchical Access Masks
 
It was beginning to frustrate me that the 'Edit Access Masks' page displayed the forums simply in the order they'd been created. I had several sub-forums on my board that were named the same thing (eg, 'General Info', or 'Public Access'), and I could no longer tell them apart.

What I wanted was a way to display the forum list in the Edit Access Mask page in the same format (heirarchical) as it is displayed in the forum permissions or modify forums pages.

So here's the result of that effort. Note, this is *very* simple hack. It only took about a 1/2 hour to code, but I like it so much better now.

v 1.2 changes:
  • Fixed that all masks were coming up with 'default' checked instead of the user's setting
v 1.1 changes:
  • Added support for alternating rows of colors
  • Took instructions out of forum post and updated instructions in text file
  • Updated screenshot to show alternating colors
Instructions attached include both upgrade as well as fresh installation instructions.

As always, have fun, and let me know if encounter any problems!

- ZJ

Zhin Jio 03-29-2003 09:34 AM

Here you go.

- ZJ

Boofo 03-29-2003 10:34 AM

Let me be the first to install and say, this is something that should have been done a long time ago. Good job. ;)

BTW, your text file has to [/code] variables in it at the end of the pieces of code to add and replace, ;)

Is there a way to have the lines alternate between firstaltcolor and secondaltcolor? Since the access masks radio buttons are all the way to the right, it might make it easier to follow which radio button goes to which line. Also, I have subforums and they show up way to the right of the parent forum instead on like the parent forum shows up for the category.

Dean C 03-29-2003 11:45 AM

Indeed this is an excellent idea but please keep the instructions to the hack inside a textfile :)

Thanks

- miSt

The General 03-29-2003 01:51 PM

Excellent hack!!! Works like a charm...

I desperately needed something like this, since I'm using a huge amount of sub forums.

Very cool & thanks!

AllMadden.net 03-29-2003 02:14 PM

I keep getting the following error. I can't seem to find the extra colon...I am cutting and pasting right from what it says...

Parse error: parse error, unexpected ':' in /home/virtual/site4/fst/var/www/html/madden/forums/admin/user.php on line 418

AllMadden.net 03-29-2003 02:18 PM

Never mind...I used the text file instructions instead and it worked like a charm...great hack

Zhin Jio 03-30-2003 04:07 AM

Quote:

Today at 05:34 AM Boofo said this in Post #3
Let me be the first to install and say, this is something that should have been done a long time ago. Good job. ;)
Thanks. My first hack. I feel so ... all gooey inside.

Quote:

BTW, your text file has to [/code] variables in it at the end of the pieces of code to add and replace, ;)
Fixed, thanks.

Quote:

Is there a way to have the lines alternate between firstaltcolor and secondaltcolor? Since the access masks radio buttons are all the way to the right, it might make it easier to follow which radio button goes to which line. Also, I have subforums and they show up way to the right of the parent forum instead on like the parent forum shows up for the category.
First, on the colors. Done. I just updated the instructions and such for upgrading as well as a fresh install. That was a simple tweak to add. Great suggestion, thanks!

As to the second point, I observed that as well. It seems that after one or two levels, the table parser is trying to 'guess' how best to make efficient use of the table's allocated columns and space. IE and Moz both do it, Opera doesn't. *shrug* ... I'm not sure its something I can really fix without adding template changes to use text-indents and such. Again, I was shooting for a simple hack here.

If you feel its a real hindrance to using this hack, repost and let me know, and I'll get complex in the da hizouse.

Again, thanks for the feedback!

- ZJ

Zhin Jio 03-30-2003 04:08 AM

Quote:

Today at 08:51 AM The General said this in Post #5
Excellent hack!!! Works like a charm...

I desperately needed something like this, since I'm using a huge amount of sub forums.

Very cool & thanks!

My pleasure. I'm just glad someone else can get value out of something I've done.

- ZJ

Zhin Jio 03-30-2003 04:17 AM

Quote:

Today at 06:45 AM Mist said this in Post #4
Indeed this is an excellent idea but please keep the instructions to the hack inside a textfile :)

Thanks

- miSt

Done! Thanks for the suggestion. Sorry if it was a bit 'bulky'.

- ZJ


All times are GMT. The time now is 08:43 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.01181 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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