PDA

View Full Version : Heirarchical Access Masks


Zhin Jio
03-28-2003, 10:00 PM
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 settingv 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
Today at 05:34 AM Boofo said this in Post #3 (https://vborg.vbsupport.ru/showthread.php?postid=374917#post374917)
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.

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

Fixed, thanks.

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
Today at 08:51 AM The General said this in Post #5 (https://vborg.vbsupport.ru/showthread.php?postid=375000#post375000)
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
Today at 06:45 AM Mist said this in Post #4 (https://vborg.vbsupport.ru/showthread.php?postid=374941#post374941)
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

Boofo
03-30-2003, 04:32 AM
I just did the upgrade and the picture below is after the upgrade. Pictured is what I meant about the subforums being over too far. The colors look good now. I read the file and noticed what you said about the colors not alternating on every line. It actually makes more sense this way now. ;)

Spitfireisgod
03-30-2003, 04:39 AM
love it

/me touches the install button softly

Zhin Jio
03-30-2003, 07:09 AM
Yesterday at 11:32 PM Boofo said this in Post #11 (https://vborg.vbsupport.ru/showthread.php?postid=375358#post375358)
I just did the upgrade and the picture below is after the upgrade. Pictured is what I meant about the subforums being over too far. The colors look good now. I read the file and noticed what you said about the colors not alternating on every line. It actually makes more sense this way now. ;)

Yup, I tried it myself and saw precisely that. THe other thing I tried was adding in up to the maximum number of layers and watched how it changed. WHen I had the max, it was all spaced exactly right. I think its just an issue with the browser parser dealing with the colspan. I'll look into some other alternatives though.

- ZJ

Boofo
03-30-2003, 07:14 AM
Other than that minor cosmetic fix, I think you have a winner here. ;)

Zhin Jio
03-31-2003, 01:33 AM
IMPORTANT!!

I found a bug, looking into it now. Basically, the access masks will always come up with all the 'default' radio buttons checked off. Looking into what I messed up now. I'll update as soon as I've got a fix.

- ZJ

Bumpaneer
04-02-2003, 09:29 PM
Any luck with the fix? Great idea BTW I definately like this better!

EDIT: Nevermind just read the first post
~Bumpaneer

Bad Bunny
04-04-2003, 03:00 PM
Hey, I'll look into this, because it was a problem for me too!

Zhin Jio
04-10-2003, 08:04 AM
I'm sorry. I should have posted as well instead of just updating the first post and such.

As of 1.2, the problem with it just showing the defaults for everything .... instead of the existing permissions, is now fixed. One line change. The instructions contain instructions for upgrading as well.

Thanks again for using this hack!

- ZJ