Discussion:
[Typo3] How to set the default user group for a BE user
Steffen Müller
2005-02-23 15:40:50 UTC
Permalink
Hi.

If a BE user is member of more than one group, how can I setup the
default group for this user?

I belived to find this one in the docs, but I must have been blind...
--
cheers,
Steffen
Kraft Bernhard
2005-02-23 16:39:14 UTC
Permalink
Post by Steffen Müller
Hi.
If a BE user is member of more than one group, how can I setup the
default group for this user?
What do you mean by "default group"

He is just a member of all groups. There is no special "default group"

What do you want to achieve ?


greets,
Bernhard
--
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50
Steffen Müller
2005-02-23 17:07:48 UTC
Permalink
Hi Bernhard,
Post by Kraft Bernhard
Post by Steffen Müller
If a BE user is member of more than one group, how can I setup the
default group for this user?
What do you mean by "default group"
He is just a member of all groups. There is no special "default group"
Well, maybe default is the wrong word here, I meant the main user group.

In Tools>User Admin: "User info", you can find a row called "Main user
group":

Main user group:
group_1

Member of groups:
group_1
group_2
global_group
Post by Kraft Bernhard
What do you want to achieve ?
Whenever a user creates a new page, TYPO3 asigns a user a group and
access restrictions to the page (see Page>Access). If a user belongs to
several groups, the "main user group" will be choosen automatically for
the new page.
In my case, we make use of a "helper-group", providing special rights to
all users. I do not want these helper-groups to be taken as group for
the page access, therefore I need a "default" group.


P.S. TCEMAIN.permissions.groupid in PageTS is not what I am looking for.
--
cheers,
Steffen
Tyler Kraft
2005-02-23 17:05:38 UTC
Permalink
Post by Kraft Bernhard
Post by Steffen Müller
Hi.
If a BE user is member of more than one group, how can I setup the
default group for this user?
What do you mean by "default group"
He is just a member of all groups. There is no special "default group"
What do you want to achieve ?
greets,
Bernhard
so that all content he creates is given the permissions and access based
on that user group?

if thats what you want then reoredr the list of his user groups so that
the desired default user group is at the top of the list.

NOTE this is not possible for 3.7 because kasper forgot about this, but
he fixed it for 3.8
Steffen Müller
2005-02-23 19:02:19 UTC
Permalink
Post by Tyler Kraft
so that all content he creates is given the permissions and access based
on that user group?
if thats what you want then reoredr the list of his user groups so that
the desired default user group is at the top of the list.
NOTE this is not possible for 3.7 because kasper forgot about this, but
he fixed it for 3.8
That's it. Thanks for your hint. Isn't it possible via TS?
--
cheers,
Steffen
Kraft Bernhard
2005-02-23 21:56:24 UTC
Permalink
Post by Steffen Müller
That's it. Thanks for your hint. Isn't it possible via TS?
Luke, look into the source:

t3lib/class.t3lib_userauthgroup.php line 867:
// If this function is processing the users OWN group-list (not subgroups) AND if the ->firstMainGroup
// is not set, then the ->firstMainGroup will be set.
if (!strcmp($idList,'') && !$this->firstMainGroup) {
$this->firstMainGroup=$uid;
}

so you see when idList is emtpy and firstMainGroup is not set (this is true when the
first entry is processed) then firstMainGroup gets set.

And as this is as it is (wow) you can't don anything about it except reorder
the list.

greets,
Bernhard
--
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
Steffen Müller
2005-02-24 10:38:12 UTC
Permalink
Post by Kraft Bernhard
// If this function is processing the users OWN group-list (not
subgroups) AND if the ->firstMainGroup
// is not set, then the ->firstMainGroup will be set.
if (!strcmp($idList,'') && !$this->firstMainGroup) {
$this->firstMainGroup=$uid;
}
so you see when idList is emtpy and firstMainGroup is not set (this is true when the
first entry is processed) then firstMainGroup gets set.
And as this is as it is (wow) you can't don anything about it except reorder
the list.
Thanks for your information, Obi-Wan!
Unfortunately I use 3.7 and the be_user.usergroup is a tinyblob, so I
don't see any chance to change that on the fly. Is 3.8 in sight?
--
cheers
Steffen
Tyler Kraft
2005-02-24 12:26:53 UTC
Permalink
Post by Steffen Müller
Unfortunately I use 3.7 and the be_user.usergroup is a tinyblob, so I
don't see any chance to change that on the fly. Is 3.8 in sight?
i'm using a few instances of 3.8 -dev with out any issues so far on some
live sites...

give it a try but at your own risk.


the other option is to create a user group that will naturally sit at
the top of the list alphabetiaclly (as the page access rights will be
assigned from this group at the top of the list) and then have all
users as members of that group. then have all users create/save content
so that it is editable by them, there group, and everyone and then with
the addition of various user groups control page access and feature access.

hope this makes sense. I did this instead of switching back to 3.6 at
some points along the way
Kraft Bernhard
2005-02-24 13:09:43 UTC
Permalink
Post by Steffen Müller
Thanks for your information, Obi-Wan!
Unfortunately I use 3.7 and the be_user.usergroup is a tinyblob, so I
don't see any chance to change that on the fly. Is 3.8 in sight?
I don't know if the Groups get displayed in alphabetical order as Tyler wrote.
AFAIK the groups get listed in the order in which you have inserted them ....

So in my opinion the only thing you would have to do to make another group the
main group is to delete all entries from the group box and reinsert them in the
correct order ... the first element should be the main group ...
this has to be done this way in 3.7 cause kasper forgot to add the "Move up" button
as someone already noted ...


greets,
Bernhard
--
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50
Tyler Kraft
2005-02-24 13:33:43 UTC
Permalink
Post by Kraft Bernhard
I don't know if the Groups get displayed in alphabetical order as Tyler wrote.
AFAIK the groups get listed in the order in which you have inserted them ....
So in my opinion the only thing you would have to do to make another group the
main group is to delete all entries from the group box and reinsert them in the
correct order ... the first element should be the main group ...
this has to be done this way in 3.7 cause kasper forgot to add the "Move up" button
as someone already noted ...
ahhh yes of course thats right. That make s alot more sense to what
happened for me.

i forgot about the way it orders them based on that and it explains why
it worked for me after several attempts and then deleteling them all and
re-selecting them.


...and another little light is illuminated in the vast world of Typo3
Michael Stucki
2005-02-24 13:51:21 UTC
Permalink
Hi Steffen,
Post by Steffen Müller
Post by Kraft Bernhard
And as this is as it is (wow) you can't don anything about it except
reorder the list.
Thanks for your information, Obi-Wan!
Unfortunately I use 3.7 and the be_user.usergroup is a tinyblob, so I
don't see any chance to change that on the fly. Is 3.8 in sight?
Quick fix from CVS:

--- t3lib/stddb/tbl_be.php-1.14 2005-02-24 14:45:05.000000000 +0100
+++ t3lib/stddb/tbl_be.php 2005-02-24 14:45:09.000000000 +0100
@@ -74,7 +74,7 @@
'foreign_table_where' => 'ORDER BY be_groups.title',
'size' => '5',
'maxitems' => '20',
- 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
+# 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
'iconsInOptionTags' => 1,
'wizards' => Array(
'_PADDING' => 1,

- michael
--
Want support? Please read the list rules first: http://typo3.org/1438.0.html
Steffen Müller
2005-02-27 21:51:37 UTC
Permalink
Post by Michael Stucki
--- t3lib/stddb/tbl_be.php-1.14 2005-02-24 14:45:05.000000000 +0100
+++ t3lib/stddb/tbl_be.php 2005-02-24 14:45:09.000000000 +0100
Great, just a one-line-comment. Thank you all for helpful discussing and
quickly solving my problem. The TYPO3 community rocks!
--
cheers,
Steffen
Cyro Pintos
2005-02-23 21:18:57 UTC
Permalink
Hi,
Trying to upgrade to Typo3 3.7, after replacing the folders i get the
following line in the Administration Login in Quickstart:

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result
resource in C:\apache\htdocs\quickstart\typo3\t3lib\class.t3lib_db.php on
line 723

It doesn?t allow me to login with the usual password.
Any help would be appreciated.
Thanks in advance.

Cyro
Carsten Rose
2005-02-23 20:22:46 UTC
Permalink
Hi Folks

I just realised that there is no type 'script' visible for the page content elements in Typo 3.7
anymore. I checked the TCA definitons but didn't found the solution.

Thanks

Carsten
Carsten Rose
2005-02-23 20:30:53 UTC
Permalink
Hi Folks

I would like to setup a PHP Skript as a frontend plugin extension. The plugin should appear directly
in the 'content element type'-list. That all works fine via the kickstarter.

But when I choose the new type as a page content, I'm only capable to type in a header and nothing
more. I need some more of the standard fields of tt_content like frame, bodytext, access, ...

Is it possible to specify the needed fields in the Kickstarter ? How ?

Or how can I specify this in the plugin ?

Thanks a lot.

CU
Carsten
Tim Tuerlinckx
2005-02-24 10:55:41 UTC
Permalink
Hi,

The reason why your password has changed is because you didn't compare your
database en dumped static in the installation tool. (In the Typo3 folders
you copied is already a database file present, and typo is using that
configuration now, instead of you previous databaseconfigurations). If you
do that, your should be able to log in just fine and the error-message
should be gone.

Good luck

Tim

----- Original Message -----
From: "Cyro Pintos" <cpintos at adinet.com.uy>
To: "TYPO3 English" <typo3-english at lists.netfielders.de>
Sent: Wednesday, February 23, 2005 10:18 PM
Subject: [Typo3] upgrading to 3.7 problems
Post by Cyro Pintos
Hi,
Trying to upgrade to Typo3 3.7, after replacing the folders i get the
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL
result resource in
C:\apache\htdocs\quickstart\typo3\t3lib\class.t3lib_db.php on line 723
It doesn?t allow me to login with the usual password.
Any help would be appreciated.
Thanks in advance.
Cyro
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
Cyro Pintos
2005-02-24 14:06:35 UTC
Permalink
Hi Tim,
thanks for your help.

The problem is that I can?t get the install tool running.
I get a 404 message: Object not found.
I couldn?t find the answer in the tutorial about upgrading. It says it will
discuss the problem, but couldn?t find it.

The fact is that I?m a designer, newbie in Typo3, trying to dig all these
things. Maybe I missed it.

Thanks again.
Cyro



----- Original Message -----
From: "Tim Tuerlinckx" <tim at verzetje.be>
To: "Cyro Pintos" <cpintos at adinet.com.uy>; "TYPO3 English"
<typo3-english at lists.netfielders.de>
Sent: Thursday, February 24, 2005 7:55 AM
Subject: Re: [Typo3] upgrading to 3.7 problems
Post by Tim Tuerlinckx
Hi,
The reason why your password has changed is because you didn't compare
your database en dumped static in the installation tool. (In the Typo3
folders you copied is already a database file present, and typo is using
that configuration now, instead of you previous databaseconfigurations).
If you do that, your should be able to log in just fine and the
error-message should be gone.
Good luck
Tim
----- Original Message -----
From: "Cyro Pintos" <cpintos at adinet.com.uy>
To: "TYPO3 English" <typo3-english at lists.netfielders.de>
Sent: Wednesday, February 23, 2005 10:18 PM
Subject: [Typo3] upgrading to 3.7 problems
Post by Cyro Pintos
Hi,
Trying to upgrade to Typo3 3.7, after replacing the folders i get the
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL
result resource in
C:\apache\htdocs\quickstart\typo3\t3lib\class.t3lib_db.php on line 723
It doesn?t allow me to login with the usual password.
Any help would be appreciated.
Thanks in advance.
Cyro
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
Continue reading on narkive:
Loading...