Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Heirarchical Access Masks Details »»
Heirarchical Access Masks
Version: 1.00, by Zhin Jio Zhin Jio is offline
Developer Last Online: Nov 2010 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-28-2003 Last Update: Never Installs: 15
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-29-2003, 09:34 AM
Zhin Jio's Avatar
Zhin Jio Zhin Jio is offline
 
Join Date: Mar 2003
Location: Colorado
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here you go.

- ZJ
Reply With Quote
  #3  
Old 03-29-2003, 10:34 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 03-29-2003, 11:45 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks

- miSt
Reply With Quote
  #5  
Old 03-29-2003, 01:51 PM
The General's Avatar
The General The General is offline
 
Join Date: Aug 2002
Location: Netherlands
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #6  
Old 03-29-2003, 02:14 PM
AllMadden.net AllMadden.net is offline
 
Join Date: Mar 2003
Location: New York
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 03-29-2003, 02:18 PM
AllMadden.net AllMadden.net is offline
 
Join Date: Mar 2003
Location: New York
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind...I used the text file instructions instead and it worked like a charm...great hack
Reply With Quote
  #8  
Old 03-30-2003, 04:07 AM
Zhin Jio's Avatar
Zhin Jio Zhin Jio is offline
 
Join Date: Mar 2003
Location: Colorado
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 03-30-2003, 04:08 AM
Zhin Jio's Avatar
Zhin Jio Zhin Jio is offline
 
Join Date: Mar 2003
Location: Colorado
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 03-30-2003, 04:17 AM
Zhin Jio's Avatar
Zhin Jio Zhin Jio is offline
 
Join Date: Mar 2003
Location: Colorado
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11860 seconds
  • Memory Usage 2,299KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete