Loading...
 
Skip to main content

Features / Usability


Need help with user pages

Hi,

I want to make it so when a user get's created, he/she has a user page that is automatically filled in with some default information.

I've been told might this be a bit complicated, but I'm willing to try. Can someone help?

Thanks.

Seems like this could be done by making a group called something like "Newusers" that new registrants are automatically assigned to. Make a group homepage for Newusers that contains the information you want to display. When making the group, set the option that lets people opt out of the group. This homepage should also display the 'opt-out' switch (I don't know how that works as I've never had to go through the process; maybe it can all be done on-page or maybe you need to make a link to some group membership page). Then when the user leaves the group, he/she won't see that homepage or its info anymore.

-- Gary


Gary Cunningham-Lee wrote:

Seems like this could be done by making a group called something like "Newusers" that new registrants are automatically assigned to. Make a group homepage for Newusers that contains the information you want to display. When making the group, set the option that lets people opt out of the group. This homepage should also display the 'opt-out' switch (I don't know how that works as I've never had to go through the process; maybe it can all be done on-page or maybe you need to make a link to some group membership page). Then when the user leaves the group, he/she won't see that homepage or its info anymore.

-- Gary


That would work for getting a message to new users, but what I'm aiming for is filling in all the new "user:" pages with some default stuff.

I suppose I could write a script (maybe perl?) that runs every time a new user is created (not sure how to accomplish this; maybe it checks every-so-often via cron?), and it goes and changes the mysql DB values for those pages. I know how to do that already. Does that sounds like a good idea?


dkniffin wrote:

Hi,

I want to make it so when a user get's created, he/she has a user page that is automatically filled in with some default information.

I've been told might this be a bit complicated, but I'm willing to try. Can someone help?

Thanks.


As the typical viewed Page is actually a composite page, you could create your "default info" section as a new page.

Have the new page include any variables you need ( , , , ) then edit the Template for the default User: page to include your new page as content.

I would additionally recommend saving the Template as a new template and changing which Template the User Page reads from ... (to avoid template clashes after an upgrade).

[Side Note] If you have switched on SEFURL and "Prevent Special Characters in Page names" then

Copy to clipboard
User:

will not work ... change the default prefix to

Copy to clipboard
User-

and your linkage will work again 😊