Reseller can't use Client-Templates?

Discussion in 'Installation/Configuration' started by MrWolf, Aug 20, 2013.

  1. MrWolf

    MrWolf New Member

    Hi,

    I would like to know if is there a reason why reseller can't use client-template and if it's possible to add them the permission to use it.

    if I take the time to create some template, why I can't force the reseller to use it instead of letting them allowing any setting to the client?

    Thank you
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The client templates are available for clients only, not resellers.
     
  3. MrWolf

    MrWolf New Member

    I understand that I can't assign a "client-template" to a reseller.
    but why a reseller can't assign a "client-template" to a client?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The template functionality is implemented for the admin only in the current ISPConfig versions. There is a feature request for eimplementing it for resellers as well in the bugtracker. If you need that functionality you might want to vote for its implementation in the bugtracker.
     
  5. MrWolf

    MrWolf New Member

    Thank you :)
     
  6. MrWolf

    MrWolf New Member

  7. MrWolf

    MrWolf New Member

    Took more time to find where to edit then time to fix it... :)

    I edited this file:
    /usr/local/ispconfig/interface/web/client/templates/client_edit_limits.htm

    at the beginning:
    Code:
     <tmpl_if name="is_admin">
                    <div class="ctrlHolder">
                        <label for="template_master">{tmpl_var name='template_master_txt'}</label>
                        <select name="template_master" id="template_master" class="selectInput">
                            {tmpl_var name='template_master'}
                        </select>
                    </div>
                    <div class="ctrlHolder">
                        <label for="template_additional">{tmpl_var name='template_additional_txt'}</label>
                        <select name="tpl_add_select" id="tpl_add_select" class="selectInput">
                            {tmpl_var name='tpl_add_select'}
                        </select>
                    </div>
                    <div class="ctrlHolder">
                        <p class="label">{tmpl_var name='active_template_additional_txt'}</p>
                        <div id="template_additional_list" class="multiField">
                            <ul>
                            {tmpl_var name='template_additional_list'}
                            </ul>
                        </div>
                        <input type="hidden" id="template_additional" name="template_additional" value="{tmpl_var name='template_additional'}">
                    </div>
                    <div class="ctrlHolder">
                        &nbsp;
                    </div>
                </tmpl_if>
    
    just remove this:
    Code:
    <tmpl_if name="is_admin">
    </tmpl_if>
    
    and the reseller will be able to choose template for the client.

    Thank you
     
  8. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    If you remove this, the template selection might be shown to clients, too!
     
  9. MrWolf

    MrWolf New Member

    but client don't have the client tab (!?)
     
  10. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Ouch ;) Totally right ;)
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    I havent tested this but it might be that your resellers are able to extend their limits now beyond the limits that the admn has set to them.
     
  12. MrWolf

    MrWolf New Member

    the reseller don't have the "edit reseller" and they don't have template assigned. I don't think they will be able to change their own limit just because they can assign template to client
     
  13. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    I think what till means is, that reseller could assign more limits to their clients than they have been assigned by admin if they can use templates.
     
  14. MrWolf

    MrWolf New Member

    I understand, that may be possible, I didn't test it since all my reseller are unlimited
     

Share This Page