News:

SMF 2.1.2 has been released! Take it for a spin! Read more.

Main Menu

Subaccounts

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

Previous topic - Next topic

jibo

Hello thank you for this amazing mod.
I have a question, is it possible to only enable the use of sub-accounts on some of the boards instead of all of them? I have a seperate part for roleplaying and i dont want that they can use the subaccounts on the whole forum.

Arantor

Subaccounts are regular accounts for the most part.

The one solution to it is to put the subaccounts in different usergroups and not allow those other usergroups to access those boards.
Perhaps it would have been better if I'd simply never bothered. Y'all clearly would be less unhappy that way.

jibo

Ok, but it would be easy if i can force that setting,
when creating a subaccount always usergroup - " X " for example, is that possible yet?

Arantor

I don't believe it is, though I haven't explored the depths of the mod yet.
Perhaps it would have been better if I'd simply never bothered. Y'all clearly would be less unhappy that way.

jibo

Thank you! It's an amazing mod and we ware waiting for it! But for now that's the only reason i can't inplement it (yet)

How can i make a request to such feature?

Arantor

You already have - this thread is the place for it. When SlammedDime reads this thread I have no doubt he'll comment on things, he may even have an alternative solution for you.
Perhaps it would have been better if I'd simply never bothered. Y'all clearly would be less unhappy that way.

jibo

Ok this might be slightly offtopic but:
<offtopic>
@SlammedDime, i had to bring you the following message from my forum administrators:

WE LOVE YOU FOR BRINGING THIS AMAZING MOD!
</offtopic>

SlammedDime

jibo, unfortunately there's really no easy way to do what you want to do, limit subaccounts to certain boards.  I can think of a few ways to try and implement it, but it may become messy and I can't think of an easy way to do it at the moment.

Quote from: makaluch on November 12, 2009, 10:25:10 PM
Test installation flagged these errors:

in ./Sources/Profile-Modify.php (0777) Execute modification failed > replace failed, add before successful

Files are configured (via SMF admin panel) to replace files with trailing tildas like 'filename.php~'

Any advice or info?
You have some other mod that is interfering with the function that this mod replaces.  If you can post the 'account' function from Profile-Modify.php, or attach your Profile-Modify.php to your next post, I can see what's wrong and possibly provide a fix for you.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

jibo

Since I installed the Subaccounts mod, i receive the administrator mails twice. I know that because i turned on the "New subaccounts inherit parent membergroup" feature, and i made an test account with the same administrator rights.

I know the answer is: "This is not a bug it's a feature."
But does anyone has some best practice advice for me?

I also want to apologize for my English, it is not my native language

makaluch

It seems that mod:Login Security may be the culprit.

Account function:

function account($memID)
{
global $context, $txt;

loadThemeOptions($memID);
if (allowedTo(array('profile_identity_own', 'profile_identity_any')))

loadCustomFields($memID, 'account');



// Login Security
$allowedips = '';
global $modSettings;
if ($modSettings['ls_allow_ip_security'])
{
global $smcFunc;
$dbresult = $smcFunc['db_query']('',"
SELECT
allowedips
FROM {db_prefix}login_security
WHERE ID_MEMBER = " . $memID);
$numRows = $smcFunc['db_num_rows']($dbresult);
// We are not going to do anything since they don't have any settings defined
if ($numRows != 0)
{

$ipRow = $smcFunc['db_fetch_assoc']($dbresult);
$allowedips = $ipRow['allowedips'];
}
$smcFunc['db_free_result']($dbresult);

$context['allowedips'] = $allowedips;

}


// End Login Security



$context['sub_template'] = 'edit_options';
$context['page_desc'] = $txt['account_info'];

setupProfileContext(
array(
'member_name', 'real_name', 'date_registered', 'posts', 'lngfile', 'hr',
'id_group', 'hr',
'email_address', 'hide_email', 'show_online', 'hr',
'passwrd1', 'passwrd2', 'hr',
'secret_question', 'secret_answer',
)
);
}

Eliana Tamerin

Quote from: SlammedDime on November 13, 2009, 05:55:24 AM
jibo, unfortunately there's really no easy way to do what you want to do, limit subaccounts to certain boards.  I can think of a few ways to try and implement it, but it may become messy and I can't think of an easy way to do it at the moment.

Quote from: jibo on November 13, 2009, 03:56:31 AM
Ok, but it would be easy if i can force that setting,
when creating a subaccount always usergroup - " X " for example, is that possible yet?

That would probably be the easiest way. Change the "New subaccounts inherit parent membergroup" option to an option to select which membergroup(s) new subaccounts get assigned, and add an option to inherit from the parent on top.

The more difficult, but more comprehensive, way would be to add that option down where each group can be limited to X subaccounts. There the admin could select for each group how their subaccounts were assigned groups, whether inherited or automatically assigned X membergroup(s). A bit more work and more code, but it would be the lofty ideal feature. The other, simpler one, would work as well for most I'd imagine.
Do NOT PM me for support.

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

Caltan

Thanks so much for this release, SD!

The upgrade from B3 has been kind of a bear, but only in that resetting passwords by hand for relinking under the new mod is kind of tedious.  Otherwise, it works fantastically, and I love the display on the profile screen.

I'd like to request an option to display subaccounts like regular members on this member list.  I've fixed this myself, but it would be more elegant to have a little ifelse checkbox like the option to display them at all.

erlend_sh

There is one huge feature that would mean the world to me, but probably it would be better off as a completely separate mod all together, just compatible.

Changing/sharing ownership of threads. Similarly to the way the sub-accounts work, this mod would allow you to re-assign a thread to someone else, if they accept/provide their password. Example use would be if I share an account with others that we use for announcements, but by accident I make an announcement with my personal account. All we'd have to do would be to change ownership.

Just throwing it out there ;)

SlammedDime

erlend - with your example, that is possible with this mod.  If you have a shared account with 5 other admins, and you make the post with your ID, you can edit the first post and save it as the shared account.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

erlend_sh

Oh.., my.., god! :D Never noticed that drop-down in posts as well. Had no idea it could be this easy. You've done a terrific job with this mod man, truly outstanding.

My only quirk with it is that you have to go through 'Core Features' to find the config for it, as opposed to the more obvious 'Modification Settings'. It works in the sense that it is such a major feature, but couldn't you maybe just put it there for an additional place to enable it, while the main settings would be accessed through the mod settings just like the rest?

JBlaze

Congrats on this SlammedDime!

This has been in the works for a year now (from what I can tell...) and definately alot of work went into this.

Congrats again!
Jason Clemons
Former Team Member 2009 - 2012

erlend_sh

Quote from: Eliana Tamerin on November 13, 2009, 10:58:34 AM(...) Change the "New subaccounts inherit parent membergroup" option to an option to select which membergroup(s) new subaccounts get assigned, and add an option to inherit from the parent on top.
I also require this feature, and the simple one would suffice. The comprehensive method would surely be nice but not necessary for my part.

gm112

Oh, wow, thank you for this mod! I run a message board which a lot of people seem to like role-playing, and they like using multiple accounts. While I do not mind it, this would make lives easier for everyone! Thank you so much O_o..

PalmBeachPreps

This is a great mod!  However, I'm getting an error on installation: 2.  Replace  ./Themes/default/Display.template.php  Test failed.

I went to correct that part manually, and found out that the problem is that the code which is supposed to be replaced is not entirely the same.  Should I just add the edits after it which actually change everything?

Display template is attached.

ishy

We're having trouble getting the Switch Account drop-down box to show up on anything except Curve (even the two Curve variants) after the template edits. I wonder if that's related to the above poster's problem, too?

Advertisement: