Plugins & Hacks

How can I make the "Your site" link point to a specific blog for specific authors?

Scenario:
"I want to make it so when any blog author clicks 'Your site' link on the upper right of the admin screen, it takes you to the their blog and not the main site."

Solution:
All you need to do is change one little line of code. Open admin.php and change this line:

echo "<a href='".$CONF['IndexURL']."'>"._YOURSITE."</a>";

to this:

echo "<a href='".$CONF['IndexURL']."?blogid=" . $member->getID() . "'>"._YOURSITE."</a>";

Original forum thread (thanks, bihlink!):
http://forum.nucleuscms.org/viewtopic.php?t=8258
http://forum.nucleuscms.org/viewtopic.php?t=9120

section: Plugins & Hacks | submitted by Leng on 2005.Oct.21 | 3606 views

item rate
Total votes: 2 - Rating: 8.00

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10