By solipsist on
Once users log in I'd like to show a welcome page which includes editable content, a few modules listing things such as who's online and who the newest registered user is, latest forum topics, popular content et c. It would also be nice to either list nodes the user is tracking or have a link to the tracking page. Is there already a module for this and would it be hard to make?
Comments
Solution?
Did you ever figure this out? I posted the same question today after noticing you never got an answer.
Here's what I did
KLUDGE ALERT:
I added a field "seen_welcome" to the users table.
The field is tinyint, not null, default '0'
If they're logged in, we check for the "seen_welcome" field. If that's set to 0, then the block re-directs to my pre-defined welcome page (and sets seen_welcome = 1).
My custom block:
The block only displays for logged in users (because anons don't need the "welcome page"):
Hey, I tried this, but I
Hey, I tried this, but I guess the field never gets updated in the user table.
Here's the code... swapped and chopped a little.
What code changes it to 1?
Due to the major
Due to the major improvements in Drupal since I wrote this, two years ago, there's a plethora of ways to do this now. I recommend using LoginToboggan to handle the redirect, Panels to build the page with information and Views with arguments to display content that is relevant to the user.
--
Jakob Persson
Webbredaktoren - www.webbredaktoren.se
--
Jakob Persson - blog
Leancept – Digital effect and innovation agency