Skip to Content.
Sympa Menu

lyceum-users - Re: [Lyceum-users] How to direct user to dashboard instead of their on user account page

lyceum-users AT lists.ibiblio.org

Subject: Lyceum-users mailing list

List archive

Chronological Thread  
  • From: Bryan Thale <bryan.thale AT motorola.com>
  • To: lyceum-users AT lists.ibiblio.org
  • Subject: Re: [Lyceum-users] How to direct user to dashboard instead of their on user account page
  • Date: Sat, 01 Sep 2007 14:57:52 -0500

|John Joseph Bachir wrote:
On Fri, 17 Aug 2007, Bryan Thale wrote:

In my installation I added a "My Blogs" section to the portal page that
is displayed before the "All Blogs" section if the user is logged in.
For each blog the user is a member of I display a link to the blog and a
link to the blog's dashboard.

Share your code! :)


It's nothing very fancy or sophisticated...

<?php || $myblogs = get_userblogs();
|| if ($myblogs) { ?>
<h2>My Blogs</h2>
<table cellspacing="5">
<?php foreach ($myblogs as $b) { ?>
<tr>
<th align="left"><a href="<?php echo $b->home ?>"><?php echo $b->blogname
?></a></th>
<td><a href="<?php echo $b->home ?>/admin/"><?php echo __('Dashboard')
?></a></td>
</tr>
<?php } ?>
</table> <?php } ?>

Bryan.
|

--
Bryan Thale
Motorola Open Source Technologies, Mobile Devices
bryan.thale AT motorola.com






Archive powered by MHonArc 2.6.24.

Top of Page