Sub-accounts by Waindigo [Deleted]

Can you add something like this for when we create a character. Make it configurable in the admin cp.

(multiple screenshots because page is too big)
i0HmKzC.png



ulj5.png


T2MeudX.png


@Iversia
 
I'm trying to make a profile tab that lists the characters of that person.

I have the tab made and stuff but nothing shows up. Here is my code for the tab content.

Code:
<xen:require css="member_list.css" />
<xen:require js="js/waindigo/subaccounts/sub_accounts.js" />

<li id="characters" class="profileContent">
      <div class="section">
            <ul class="SubAccountsList memberList">
                    <xen:if is="{$subAccounts}">
                <xen:foreach loop="$subAccounts" value="$user">
                  <xen:include template="waindigo_member_list_item_subaccounts" />
            </xen:foreach>
            </xen:if>
        </ul>
      </div>
</li>
 
Waindigo updated Sub-accounts by Waindigo with a new update entry:

Version 1.0.1 released

New features:
  • Sub-accounts receive parents user-groups and related permissions upon creation. (excludes Admins and Moderator status, user-groups and permissions applied in ACP)
  • Sub-accounts receive parents user-groups and related permissions when applied to parent account. (excludes Admins and Moderator status, user-groups and permissions applied in ACP)

Read the rest of this update entry...
 
Can you assign an existing account as a subaccout to another existing account in the admin panel? And if so how do you do it?

And can you create a new user in the acp as a subaccount for someone? Both things would be very sweet.
 
Last edited:
I just updated to the new version. I couldn't find a rebuild cache function for "rebuild users". I tried running "rebuild user" in case that's the one you meant, but it didn't fix the character counts.
I'm running 1.0.0c now, and I just tried running the "rebuild user" tool, but it still isn't fixing the character counts.
 
Hi. Having some issues with this from the AdminCP side.

I have turned off the users ability to create and delete sub-accounts. We only want the ability in AdminCP.

In ACP when I add a sub account to a parent the child does not get the permissions for the parents groups. When I add a parent to a sub account no permissions. When I do both concurrently no permissions transferred. Am I doing it wrong?
 
Waindigo updated Sub-accounts by Waindigo with a new update entry:

Version 1.0.3 released

New features:
  • Added option to specify certain user groups to never be inherited.
Bug fixes:
  • Fixed bug that unable to create a new user from the Admin Control Panel.
  • Fixed bug that not all user groups were being inherited.
  • Fixed bug that user group inheritance was not being reversed if sub-account links were removed.
  • Fixed bug that user group inheritance was not happening if user was created through linking an existing account or through editing...

Read the rest of this update entry...
 
Hi @Waindigo. I've just updated to version 1.0.4 and found an odd issue with my subaccounts.

I have not activated the subaccount parent inheritance feature. However, when I rebuilt the user cache, any subaccounts of administrators had their names styled like the administrator account. Our admin names are red and our other usergroups are a variety of other colors. However, all subaccounts of admins had their names turn the admin red. This did not happen with subaccounts of other member groups.

Possibly related, but I have the following code in my templates to add usergroup images beneath each user.
Code:
    <xen:if is="{xen:helper ismemberof, $user, 3}">
                            <img src="styles/jagger/groupimages/admin_icon.png" />
                        <xen:elseif is="{xen:helper ismemberof, $user, 8}" />
                            <img src="styles/jagger/groupimages/ooc_icon.png" />
                        <xen:elseif is="{xen:helper ismemberof, $user, 13}" />
                            <img src="styles/jagger/groupimages/user_Horizon.png" />
                        <xen:elseif is="{xen:helper ismemberof, $user, 12}" />
                            <img src="styles/jagger/groupimages/user_Morhall.png" />
                    <xen:elseif is="{xen:helper ismemberof, $user, 11}" />
                            <img src="styles/jagger/groupimages/user_MistyHollow.png" />
                        <xen:elseif is="{xen:helper ismemberof, $user, 5}" />
                            <img src="styles/jagger/groupimages/user_Vagabond.png" />
                    <xen:elseif is="{xen:helper ismemberof, $user, 2}" />
                            <img src="styles/jagger/groupimages/visitor_icon.png" />
                    </xen:if>
After I rebuilt the user cache, all subaccounts were pulling in either "ooc_icon.png" or "admin_icon.png", which matched the usergroup of their parent account. I checked the subaccounts and they were not assigned to the admin or ooc group.

I fixed that by reordering the if statement, but it was an odd occurrence.
 
Oops, one more update.

When someone creates a brand new subaccount, it picks up the username color and username image (determined by the code above) of the parent account.

Our account system is like this:

Parent Account
  • Primary Group: Registered
  • Secondary Group: OOC or Admin
Subaccount
  • Primary Group: Registered
  • Secondary Group: Character and Horizon (or another rp-sorting group) OR n/a
 
Hi @Waindigo. I've just updated to version 1.0.4 and found an odd issue with my subaccounts.

I have not activated the subaccount parent inheritance feature. However, when I rebuilt the user cache, any subaccounts of administrators had their names styled like the administrator account. Our admin names are red and our other usergroups are a variety of other colors. However, all subaccounts of admins had their names turn the admin red. This did not happen with subaccounts of other member groups.

Possibly related, but I have the following code in my templates to add usergroup images beneath each user.
Code:
    <xen:if is="{xen:helper ismemberof, $user, 3}">
                            <img src="styles/jagger/groupimages/admin_icon.png" />
                        <xen:elseif is="{xen:helper ismemberof, $user, 8}" />
                            <img src="styles/jagger/groupimages/ooc_icon.png" />
                        <xen:elseif is="{xen:helper ismemberof, $user, 13}" />
                            <img src="styles/jagger/groupimages/user_Horizon.png" />
                        <xen:elseif is="{xen:helper ismemberof, $user, 12}" />
                            <img src="styles/jagger/groupimages/user_Morhall.png" />
                    <xen:elseif is="{xen:helper ismemberof, $user, 11}" />
                            <img src="styles/jagger/groupimages/user_MistyHollow.png" />
                        <xen:elseif is="{xen:helper ismemberof, $user, 5}" />
                            <img src="styles/jagger/groupimages/user_Vagabond.png" />
                    <xen:elseif is="{xen:helper ismemberof, $user, 2}" />
                            <img src="styles/jagger/groupimages/visitor_icon.png" />
                    </xen:if>
After I rebuilt the user cache, all subaccounts were pulling in either "ooc_icon.png" or "admin_icon.png", which matched the usergroup of their parent account. I checked the subaccounts and they were not assigned to the admin or ooc group.

I fixed that by reordering the if statement, but it was an odd occurrence.

Oops, one more update.

When someone creates a brand new subaccount, it picks up the username color and username image (determined by the code above) of the parent account.

Our account system is like this:

Parent Account
  • Primary Group: Registered
  • Secondary Group: OOC or Admin
Subaccount
  • Primary Group: Registered
  • Secondary Group: Character and Horizon (or another rp-sorting group) OR n/a

Hi @Waindigo. Have you had a chance to look at these bugs yet?
 
Is there anything wrong with creating circular relationships? It appears possible to make A is sub-account of B, and B a sub-account of A...
 
Help me Please @Waindigo !!! My Forum is down!!

Server Error
Mysqli prepare error: Column 'like_count' in field list is ambiguous
  1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
  2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
  3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
  4. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 753
  5. Zend_Db_Adapter_Abstract->fetchRow() in XenForo/Model/User.php at line 427
  6. XenForo_Model_User->getUserById() in XenForo/Model/User.php at line 913
  7. XenForo_Model_User->getVisitingUserById() in XenForo/Visitor.php at line 407
  8. XenForo_Visitor::setup() in XenForo/Session.php at line 370
  9. XenForo_Session::startAdminSession() in XenForo/ControllerAdmin/Abstract.php at line 48
  10. XenForo_ControllerAdmin_Abstract->_setupSession() in XenForo/Controller.php at line 304
  11. XenForo_Controller->preDispatch() in XenForo/FrontController.php at line 346
  12. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  13. XenForo_FrontController->run() in /www///admin.php at line 13

fix: http://xenforo.com/community/threads/sub-accounts-by-waindigo.57242/page-3#post-675048
 
Last edited:
Top Bottom