News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

Subaccounts

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

Previous topic - Next topic

Afro

Quote from: SlammedDime on November 24, 2009, 03:51:28 PM
There's an option in the admin panel: "SubAccounts show in user's profiles"... just disable it.  Admins can still view subaccounts on the 'view subaccounts' admin menu.
ok, thanks

PalmBeachPreps

When someone views my profile (admin), it shows this: "All Posts:(Including SubAccounts)".

How do I get rid of that?

SlammedDime

You'd have to edit Profile.template.php and remove that section of code.  I didn't add an option for that.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Altair

Hey Slammed. Have you had the chance to look at my theme issue? If Not, I understand and will continue to wait. I'm sure there has to be some way to incorporate the mod into it, even if I have to put the code in manually.

Thanks for considering.

jkrlvgn

Quote from: Afro on November 19, 2009, 07:35:06 AM
Quote from: poolhall on November 17, 2009, 07:59:05 PM
Great mod, SlammedDime, congratulations!

I have a minor problem with the mod: when I switch to or from a subaccount on the forum index page, I am being redirected to /Themes/default/images/blank.gif. This doesn't happen if I switch from other locations.

i get the same error if i want to role back to the parent/admin account

Just to mention, it seems as if this issue occurs for me when installed with the "Member Color Link" mod installed.  Something doesn't jive well...still investigating, but...narrowed it down to that.

PalmBeachPreps

Quote from: SlammedDime on November 25, 2009, 05:53:24 AM
You'd have to edit Profile.template.php and remove that section of code.  I didn't add an option for that.
Can you tell me exactly which section to remove?  Thanks.

Altair

#86
@PalmBeachPreps:

In Profile.template.php

Find:


        {
                echo '
                                <dt>', $txt['profile_posts'], ': </dt>
                                <dd>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</dd>';
                           
                if (isset($context['member']['subaccounts_posts']))
                        echo ' <dt>', $txt['subaccount_posts'], '</dt>
                        <dd>', $context['member']['subaccounts_posts'], ' (', $context['member']['subaccounts_posts_per_day'], ' ', $txt['posts_per_day'], ')</dd>';
        }


Replace with:


                echo '
                                <dt>', $txt['profile_posts'], ': </dt>
                                <dd>',$context['member']['posts'], ' (', $context['member']['posts_per_day'],' ', $txt['posts_per_day'], ')</dd>';


That should take care of it.

SlammedDime

Thx Altair, that is indeed the code to edit.  I haven't had a chance to look into your theme yet... I'd like to really take the time to go over it but I only get spurts to actually come online and play due to the baby.  I'm on vacation next week and will see what I can do.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

mirahalo

@PalmBeachPreps: you may also, wanna delete this part:


   // This is nasty, but hey, it works...
if (!empty($context['member']['subaccounts']) && !empty($modSettings['subaccountsShowInProfile']))
echo '
<dt>', $txt['subaccounts'], ':</dt>
<dd><a href="', $scripturl, '?action=profile;u=', implode('</a>, <a href="' . $scripturl . '?action=profile;u=', array_map(create_function('$id,$account', 'return $id . \'">\' . $account[\'name\'];'), array_keys($context['member']['subaccounts']), $context['member']['subaccounts'])), '</a></dd>';



btw, great mod,  specially good for admins of new forums, create Subaccounts and start "talking to yoursefl" maybe cheating, but is a good way to have more users to register at you new forum ;)



Eliana Tamerin

Quote from: 130860 on November 26, 2009, 05:42:09 PM
@PalmBeachPreps: you may also, wanna delete this part:


   // This is nasty, but hey, it works...
if (!empty($context['member']['subaccounts']) && !empty($modSettings['subaccountsShowInProfile']))
echo '
<dt>', $txt['subaccounts'], ':</dt>
<dd><a href="', $scripturl, '?action=profile;u=', implode('</a>, <a href="' . $scripturl . '?action=profile;u=', array_map(create_function('$id,$account', 'return $id . \'">\' . $account[\'name\'];'), array_keys($context['member']['subaccounts']), $context['member']['subaccounts'])), '</a></dd>';



btw, great mod,  specially good for admins of new forums, create Subaccounts and start "talking to yoursefl" maybe cheating, but is a good way to have more users to register at you new forum ;)

Yeah....that's really abusive, IMO. Can we stick to more legitimate uses?
Do NOT PM me for support.

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

Arantor

I'm still trying to decide whether I use this or something different for my MMORPG, not sure yet whether I want to do multiple toons on the game side only or have multiple accounts attached in the forum too.

Hmm... still an awesome mod though :D

Altair

That's completely understandable, Slammed. The fact that you put the time aside to work on something like this at all, is more than enough for me. Please, take your time. I am in no rush. I don't plan to move my current community to 2.0 until it's out of RC completely.

;)

Eliana Tamerin

Quote from: Altair on November 26, 2009, 07:25:21 PM
That's completely understandable, Slammed. The fact that you put the time aside to work on something like this at all, is more than enough for me. Please, take your time. I am in no rush. I don't plan to move my current community to 2.0 until it's out of RC completely.

;)

December 22, 2012. :P
Just kidding!
Do NOT PM me for support.

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

SlammedDime

Quote from: 130860 on November 26, 2009, 05:42:09 PM
@PalmBeachPreps: you may also, wanna delete this part:


   // This is nasty, but hey, it works...
if (!empty($context['member']['subaccounts']) && !empty($modSettings['subaccountsShowInProfile']))
echo '
<dt>', $txt['subaccounts'], ':</dt>
<dd><a href="', $scripturl, '?action=profile;u=', implode('</a>, <a href="' . $scripturl . '?action=profile;u=', array_map(create_function('$id,$account', 'return $id . \'">\' . $account[\'name\'];'), array_keys($context['member']['subaccounts']), $context['member']['subaccounts'])), '</a></dd>';



btw, great mod,  specially good for admins of new forums, create Subaccounts and start "talking to yoursefl" maybe cheating, but is a good way to have more users to register at you new forum ;)
It's not necessary to delete that part and I don't recommend it.  That part is controlled by the option in the admin panel.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Altair

Quote from: Eliana Tamerin on November 26, 2009, 07:42:20 PM
Quote from: Altair on November 26, 2009, 07:25:21 PM
That's completely understandable, Slammed. The fact that you put the time aside to work on something like this at all, is more than enough for me. Please, take your time. I am in no rush. I don't plan to move my current community to 2.0 until it's out of RC completely.

;)

December 22, 2012. :P
Just kidding!

If that's how long it takes, so be it. Better safe, then sorry. :P

mirahalo

ok, I'm sorry, I just thought the user wants to use the mod that way, I guest I was wrong,   I apologize.

DarkSylver

Would be no way to change the MOD to be compatible with 1.1.8?

Arantor

Not without a strong rewrite. As also advised elsewhere, please upgrade to 1.1.10.

FireDitto

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.




Did I miss something? Is there an option on to have this or not?


Sorry if this sounds weird/bad/or angry or something. It's not meaning to. But I've a way with words sometimes.  :-\
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

SlammedDime

You haven't missed anything, I purposefully coded it how it is.  It is something to look into making an option for, however.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Advertisement: