change_permissions.naml

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

change_permissions.naml

Harvey
I'd like to edit the text in change_permissions.naml but it seems that the poll override prohibits that?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: change_permissions.naml

Pedro
You can go to permission_rows macro.  This is the macro now:
 <override_macro name="permission_rows">
    <n.overridden />
    <n.permission_row
        permission ="[n.create_poll_permission/]"
        description="[t]Who can create polls.[/t]"
        anyone_cell =""
        administrators_cell ="true"
    />
</override_macro> 
The second line has the same role of the default macro, so you can replace( override ) it with the default macro edited, like this:
<override_macro name="permission_rows">
     <n.permission_row
        permission ="[n.view_permission/]"
        description="[t]Who can view this application and its contents[/t]"
        administrators_cell ="true"
        authors_cell ="true"
    />
    <n.permission_row
        permission ="[n.edit_app_permission/]"
        description="[t]Who can edit applications (e.g., change name, description, etc.)[/t]"
        authors_cell ="true"
    />
    <n.permission_row
        permission ="[n.create_topic_permission/]"
        description="[t]Who can create new topics under this application[/t]"
    />
    <n.permission_row
        permission ="[n.reply_permission/]"
        description="[t]Who can reply to messages posted under this application[/t]"
    />
    <n.permission_row
        permission ="[n.move_permission/]"
        description="[t]Who can move messages under other destinations (e.g., under other topics or sub-forums)[/t]"
    />
    <n.permission_row
        permission ="[n.create_sub_apps_permission/]"
        description="[t]Who can create sub applications (e.g., sub-forums, subcategories, etc.)[/t]"
    />
    <n.permission_row
        permission ="[n.change_post_date_permission/]"
        description="[t]Who can change the date and time of messages[/t]"
    />
    <n.permission_row
        permission ="[n.manage_subscribers_permission/]"
        description="[t]Who can manage subscribers of this application[/t]"
    />
    <n.permission_row
        permission ="[n.manage_pinned_topics_permission/]"
        description="[t]Who can pin/unpin topics in this application[/t]"
    />
    <n.permission_row
        permission ="[n.manage_locked_topics_permission/]"
        description="[t]Who can lock/unlock topics in this application[/t]"
    />
    <n.if.page_node.is_root>
        <then>
            <n.site_permission_row
                permission ="[n.manage_banned_users_permission/]"
                description="[t]Who can ban/unban users[/t]"
            />
        </then>
    </n.if.page_node.is_root>
    <n.permission_row
        permission ="[n.show_group_members_permission/]"
        description="[t]Which groups allow members to be listed[/t]"
        anyone_cell =""
        authors_cell =""
    />
    <n.permission_row
        permission ="[n.unrestricted_posting_permission/]"
        description="[t]Who can post any content without restriction (including javascript code, &lt;object&gt; and &lt;style&gt; tags, etc.). [b]Security Warning[/b]: Allow this option only for users that you really trust.[/t]"
        anyone_cell =""
        authors_cell =""
    />
    <n.permission_row
        permission ="[n.edit_all_permission/]"
        description="[t]Who can edit any content, both applications and posts.  Note: Please only use this feature in extreme circumstances.  Most users will not like having their posts edited by someone else.[/t]"
        authors_cell =""
        anyone_cell =""
        registered_cell =""
        members_cell =""
        other_groups_cell =""
    />
    <n.permission_row
        permission = "[n.create_poll_permission/]"
        description="[t]Who can create polls.[/t]"
        anyone_cell = ""
        administrators_cell = "true"
    />
</override_macro>
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: change_permissions.naml

Harvey
Do I end up with a double override then?

If so could you just replace the existing override with the one below?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: change_permissions.naml

Pedro
Hi Harvey, Hugo suggested me a simpler way to do it.
Please, go to your advanced editor and see the _harvey_naml file. Note that in the beginner of this file you have some "translation tags", you can create more tags like this so that the text edition will be easier.
For example, if you want to replace, at the permission page, the sentence "Who can view this application and its contents" with "Who can see this forum and its contents", you should write the following tag:
<translation><from>Who can view this application and its contents</from><to>Who can see this forum and its contents</to></translation>
Did you understand?
My test forum.