News:

Wondering if this will always be free?  See why free is better.

Main Menu

Subaccounts

Started by SlammedDime, November 12, 2009, 09:59:09 AM

Previous topic - Next topic

jkrlvgn

Just to ask, because I didn't see much of a response to it...any idea on what's causing the "blank.gif" issue?

SlammedDime

I can possibly think of a way this happens, but I'd need a test account to try it on your board to see what happens exactly.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

ishy

We love this mod so much that we decided to start a fan club for it! LOL

zushiba

#103
The select account dropdown isn't showing up on a curve variant theme I've got. I edited the index.template.php to include the , $context['subaccount_dropdown'], '</li> part and $context['subaccount_dropdown'] = '';
if (!empty($user_info['subaccounts']))
{
$context['subaccount_dropdown'] = '
<form style="display: inline; margin-left: 1em;" class="smalltext" action="' . $scripturl . '?action=switchsubaccount" method="post" name="subaccount_drop" id="subaccount_drop" enctype="multipart/form-data">
<select name="subaccount" size="1" onchange="document.subaccount_drop.submit()">
<option selected="selected">' . $txt['change_subaccount'] . '</option>';
foreach($user_info['subaccounts'] as $id => $subaccount)
$context['subaccount_dropdown'] .= '
<option value="' . $id . '">' . $subaccount['name'] . '</option>';
$context['subaccount_dropdown'] .= '
</select>
<input type="hidden" name="' . $context['session_var'] . '" value="' . $context['session_id'] . '" />
</form>';
}

parts, in fact it's nearly identical to the default themes index.template.php but the dropdown is still not showing. Any ideas?

EDIT:
Quoteishy - you forgot to add $user_info and $scripturl to the global declaration on your template_init function.  See the very first edit for index.template.php

This was my problem as well >< I searched the thread but this didn't turn up.

» мιsтєя мιsғιт «

This is one of the best and most useful mods I have ever used, installed perfectly on SMF 2.0 RC2 and no bugs. Well done!


Ifaina

This mod is probably the only reason I bothered upgrading. Thank you so much!

KensonPlays

I get the box with a red "X" in the corner, and I am using SMF 2.0RC2. I am using Curve Solution, a variant of the default theme, and it won't work!

SlammedDime

Can you explain a little bit more about this box with a red x?  I also need a link and test account to see what is happening.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Ifaina

Quote from: SlammedDime on November 15, 2009, 12:37:54 AM
ishy - you forgot to add $user_info and $scripturl to the global declaration on your template_init function.  See the very first edit for index.template.php

What does this mean? I'm having the same problem


SlammedDime

Just like I said... see the very first edit for index.template.php
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Altair

-Gives slammed a cookie- ^^

ishy

Put this on a second site, but the index.template.php is a little bit odd.

Instead of this:
<li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>

There is this:
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '', $txt['hello_member'], ' <b>', $context['user']['name'], '</b><br />';


EDIT:
Yay, I figured it out (html I can read, but php gives me a headache with all those commas). In case anyone else needs it:
    // If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '', $txt['hello_member'], ' <b>', $context['user']['name'], $context['subaccount_dropdown'], '</b><br />';

Ncen

Quote from: FireDitto on November 28, 2009, 11:14:03 PM
Okay,  I *might* have missed something, but when I've sub-accounted a user, it no longer shows on the Memberlist, unless I've got the "subAccounts show on memberlist" option ticked.

My issue is, that I do not want the sub accounts to be listed under their parents on the member list, I want EVERY account on the forum to be listed as it would be BEFORE it became a sub... Or at least the option to have this so.

Aka, I have

Member 1
Member 2
Member 3

Member 3 was subbed to Members 1 and 2, so now instead of the above list on the Member's listing, I just have

Member 1
Member 2

AND the member list states "Viewing Members 1 to 2 (of 2 total members)" when obviously, there are 3 members total.

I am also unable to do a Search for selected members that have been set as a sub...

Please look into this when you have time Slammed, i would also want this feature :)

Ps. Great work by the way! :) This i such a cool mod.

The ability for the user to choose usergroup (out of a few admin-selected groups with no admin-permissions) for their new SubAcc perhaps? ^^

FireDitto

Quote from: SlammedDime on November 28, 2009, 11:15:43 PM
You haven't missed anything, I purposefully coded it how it is.  It is something to look into making an option for, however.

Ahkay, thank you. I'd love to have it as an option =)
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

Atomic Blaze

When a linked account is shared between two accounts making the shared account unsharable removes all the linked accounts from the other person(s)
Trick number one, looketh over there. Doth endeth the trick.

Follow me on Twitter!

Party Llama || GitHub

SlammedDime

Correct. as it should.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Eliana Tamerin

Quote from: Atomic Blaze on December 14, 2009, 11:02:07 PM
When a linked account is shared between two accounts making the shared account unsharable removes all the linked accounts from the other person(s)

I think he means that if Person A has 3 subaccounts, one shareable, and Person B has 4 subaccounts, including the one shared with Person A, making the shareable account unshareable will strip Person B of all 4 subaccounts.

I think that's what he means. That's how I read it, anyway.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Atomic Blaze

Quote from: Eliana Tamerin on December 15, 2009, 08:31:19 AM
I think he means that if Person A has 3 subaccounts, one shareable, and Person B has 4 subaccounts, including the one shared with Person A, making the shareable account unshareable will strip Person B of all 4 subaccounts.

I think that's what he means. That's how I read it, anyway.

right, it removes all of the subaccounts from user B.

I've also noticed that going from ?action=profile;area=managesubaccounts;u=## to ?action=profile;area=managesubaccounts;sa=link;u=## links all sharable accounts to the account you're adding accounts to
Trick number one, looketh over there. Doth endeth the trick.

Follow me on Twitter!

Party Llama || GitHub

mabley

I'm a big fan of this mod - thank you for your expertise and hard work! The role-playing community will be canonizing you as a saint.

We are using "Thing" by Nolt as a theme.  Now we are unable to see the Subaccount Drop Down.  Someone recommended going to the mod's parse page and making the appropriate changes to our theme's index.template.php.  When I did this (and double-checking a billion times for accuracy) it created an error that required me to replace the original index.template.php in order to see the forum again.

What more information can I provide to help you see what the trouble is?

Eliana Tamerin

@mabley: Upload your index.template.php from that theme.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Advertisement: