Advertisement:

Author Topic: Subaccounts  (Read 187710 times)

Offline jibo

  • Semi-Newbie
  • *
  • Posts: 17
Re: Subaccounts
« Reply #20 on: November 13, 2009, 03:53:18 AM »
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.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Subaccounts
« Reply #21 on: November 13, 2009, 03:54:27 AM »
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.
No good deed goes unpunished
All helpful urges should be circumvented

Offline jibo

  • Semi-Newbie
  • *
  • Posts: 17
Re: Subaccounts
« Reply #22 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?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Subaccounts
« Reply #23 on: November 13, 2009, 03:57:06 AM »
I don't believe it is, though I haven't explored the depths of the mod yet.
No good deed goes unpunished
All helpful urges should be circumvented

Offline jibo

  • Semi-Newbie
  • *
  • Posts: 17
Re: Subaccounts
« Reply #24 on: November 13, 2009, 03:59:38 AM »
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?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Subaccounts
« Reply #25 on: November 13, 2009, 04:00:32 AM »
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.
No good deed goes unpunished
All helpful urges should be circumvented

Offline jibo

  • Semi-Newbie
  • *
  • Posts: 17
Re: Subaccounts
« Reply #26 on: November 13, 2009, 05:20:20 AM »
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>

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,276
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
Re: Subaccounts
« Reply #27 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.

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...
                     

Offline jibo

  • Semi-Newbie
  • *
  • Posts: 17
Re: Subaccounts
« Reply #28 on: November 13, 2009, 10:24:08 AM »
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

Offline makaluch

  • Newbie
  • *
  • Posts: 7
Re: Subaccounts
« Reply #29 on: November 13, 2009, 10:40:55 AM »
It seems that mod:Login Security may be the culprit.

Account function:

Code: [Select]
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',
)
);
}

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,612
  • Gender: Female
Re: Subaccounts
« Reply #30 on: November 13, 2009, 10:58:34 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.

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!

Offline Caltan

  • Semi-Newbie
  • *
  • Posts: 72
    • RP Resources
Re: Subaccounts
« Reply #31 on: November 13, 2009, 12:22:28 PM »
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.

Offline erlend_sh

  • Jr. Member
  • **
  • Posts: 307
  • Gender: Male
  • Lack of sleep is my drug
    • jMonkeyEngine
Re: Subaccounts
« Reply #32 on: November 13, 2009, 06:44:16 PM »
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 ;)

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,276
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
Re: Subaccounts
« Reply #33 on: November 13, 2009, 08:25:14 PM »
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...
                     

Offline erlend_sh

  • Jr. Member
  • **
  • Posts: 307
  • Gender: Male
  • Lack of sleep is my drug
    • jMonkeyEngine
Re: Subaccounts
« Reply #34 on: November 14, 2009, 02:49:15 AM »
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?

Offline JBlaze

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,178
  • Gender: Male
    • jason.p.clemons on Facebook
    • jasonclemons on GitHub
    • jasonclemons1 on LinkedIn
    • @fragicide on Twitter
    • clemons.io
Re: Subaccounts
« Reply #35 on: November 14, 2009, 03:19:07 AM »
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

Offline erlend_sh

  • Jr. Member
  • **
  • Posts: 307
  • Gender: Male
  • Lack of sleep is my drug
    • jMonkeyEngine
Re: Subaccounts
« Reply #36 on: November 14, 2009, 03:37:25 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.

Offline gm112

  • Semi-Newbie
  • *
  • Posts: 57
  • Gender: Male
Re: Subaccounts
« Reply #37 on: November 14, 2009, 09:51:34 AM »
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..

Offline PalmBeachPreps

  • Jr. Member
  • **
  • Posts: 169
  • Gender: Male
    • Palm Beach Preps
Re: Subaccounts
« Reply #38 on: November 14, 2009, 11:08:45 AM »
This is a great mod!  However, I'm getting an error on installation:
Code: [Select]
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.

Offline ishy

  • Jr. Member
  • **
  • Posts: 241
  • Gender: Female
Re: Subaccounts
« Reply #39 on: November 14, 2009, 04:32:26 PM »
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?