vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   HowTo Create Custom Usergroup Permissions (https://vborg.vbsupport.ru/showthread.php?t=82844)

Ron1n 06-18-2005 12:24 AM

Why cant this be added to bitfield_vbulletin.xml? I have tried, but it doesnt work.

Andreas 06-18-2005 12:29 AM

It can ... but you shouldn't do that, as bitfield_vbulletin.xml will be overwritten during an upgrade, which means you would have to redo the changes.
If you use your own XML file it will still be there and used after an upgrade.

Ron1n 06-18-2005 10:49 PM

how does one go about putting a title on the grey table header? I tried phrase="_phrase_var_" and text="phrase text" but neither worked.

Andreas 06-18-2005 11:43 PM

Quoting myself to answer your question:
Quote:

Originally Posted by KirbyDE

The Parameters for Tag bitfield are:
  • group is the varname for the Phrase that should be displayed as Permission Group Title.
    This is also being used to set up different Groups for your permissions.


Ron1n 06-19-2005 02:05 AM

yea, i read that but figured I also needed another param because it wasnt (and isnt) working

Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<bitfields product="vBulletin">
        <bitfielddefs>
                <group name="ugp">
                        <group name="download_permissions">
                                <bitfield name="canviewfiles" group="download_permissions"  phrase="downloads_can_view_files" install="">1</bitfield>
                                <bitfield name="candownloadfiles" group="download_permissions"  phrase="downloads_can_download_files" install="">2</bitfield>
                                <bitfield name="canratefiles" group="download_permissions"  phrase="downloads_can_rate_files" install="">4</bitfield>
                                <bitfield name="canlinktofiles" group="download_permissions"  phrase="downloads_can_linkto_files" install="">8</bitfield>
                                <bitfield name="canuploadfiles" group="download_permissions"  phrase="downloads_can_upload_files" install="">16</bitfield>
                                <bitfield name="canavoidpurgatory" group="download_permissions"  phrase="downloads_can_avoid_purgatory" install="">32</bitfield>
                                <bitfield name="canmanagepurgatory" group="download_permissions"  phrase="downloads_can_manage_purgatory" install="">64</bitfield>
                                <bitfield name="caneditownfiles" group="download_permissions"  phrase="downloads_can_edit_own" install="">128</bitfield>
                                <bitfield name="caneditallfiles" group="download_permissions"  phrase="downloads_can_edit_all" install="">256</bitfield>
                                <bitfield name="canviewdisabled" group="download_permissions"  phrase="downloads_can_view_disabled" install="">512</bitfield>
                        </group>
                </group>
        </bitfielddefs>
</bitfields>

download_permissions is a phrase that says Download Permissions

I'll try looking over everything to see if there are errors, but I dont see how I could have messed up.

merk 06-20-2005 04:42 AM

Have you tried phrase="download_permissions" instead of name=?

Chris M 06-20-2005 02:27 PM

Kirby - Any way to make this work with Forum Options? :)

Rather than editing forum.php ;)

Satan

deathemperor 06-21-2005 03:40 PM

there're optional ways to use the permission:

along with

$permissions['myhackpermissions'] & $vbulletin->bf_ugp['myhackpermissions']['canfoo']

you can use

$permissions['myhackpermissions'] & $vbulletin->bf_ugp_myhackpermissions['canfoo']

or

$permissions['myhackpermissions'] & 1

the last one is the shortest one but then you won't understand what it does, 1 is the value of <bitfield> tag, just similar as the old permission settings.

I found that the 'canfoo' is case sensitive, this took me almost a day to figure out lol

HakkieDEV 06-25-2005 09:05 AM

I still don't understand how I could add forumpermissions?

I've tried to play with it, I've added an xml file with the content of kirbyDE, but it didn't work.

Andreas 06-25-2005 10:25 AM

Take a look at my recent Get New Posts Hack and you'll see :)


All times are GMT. The time now is 06:37 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.02663 seconds
  • Memory Usage 1,742KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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