Dragonfly CMS v9 ⇒ Modules & Blocks :: Archives ⇒ User Info block: small for normal users, big for admins!! :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexModules & Blocks

Archived ⇒ User Info block: small for normal users, big for admins!!


So I sat down with spacebar tonight at our favorite cafe to solve this itty bitty problem I was having.

Please keep in mind this hack was done with DF 9.1.1

I don't know if it makes a difference per version. It shouldn't after 9.0.x.

I said:

"How about if I showed a little User Info for everyone on the site (a mini one) and then hacked the normal User Info block for admins only to show everything except what the little User Info shows?

That way, I can display all the fun stuff that I miss using the little one, but not have duplicate database queries etc using both."

Here's a picture of what I mean. On the upper left, that's what normal users see. On the entire right hand side, that's what admins see:






So what you do, is upload a block called "block-User_Info_small.php in your /public_html/blocks/ folder.

This is the code for that block (I got this on this site)

<?php /********************************************* CPG Dragonflyâ„ � CMS ******************************************** Copyright  � 2004 - 2005 by CPG-Nuke Dev Team http://www.dragonflycms.com Dragonfly is released under the terms and conditions of the GNU GPL version 2 or any later version $Source: /cvs/html/blocks/block-User_Info_small.php,v $ $Revision: 9.14 $ $Author: nanocaiordo $ $Date: 2006/12/10 05:27:17 $ Encoding test: n-array summation ∑ latin ae w/ acute Ç � ********************************************************/ if (!defined('CPG_NUKE')) { exit; } global $prefix, $user_prefix, $db, $sec_code, $userinfo, $MAIN_CFG, $CPG_SESS; $content = ''; // number online $result = $db->sql_query('SELECT COUNT(*), guest FROM '.$prefix.'_session GROUP BY guest ORDER BY guest'); $online_num = array(0, 0, 0, 0); while ($row = $db->sql_fetchrow($result)) { $online_num[$row[1]] = intval($row[0]); } $db->sql_freeresult($result); // number of members list($numusers) = $db->sql_ufetchrow('SELECT COUNT(*) FROM '.$user_prefix."_users WHERE user_id > 1 AND user_level > 0",SQL_NUM); // users registered today $day = L10NTime::tolocal((mktime(0,0,0,date('n'),date('j'),date('Y'))-date('Z')), $userinfo['user_dst'], $userinfo['user_timezone']); list($userCount[0]) = $db->sql_ufetchrow("SELECT COUNT(*) FROM ".$user_prefix."_users WHERE user_regdate>='".$day."'", SQL_NUM); // users registered yesterday list($userCount[1]) = $db->sql_ufetchrow("SELECT COUNT(*) FROM ".$user_prefix."_users WHERE user_regdate<'".$day."' AND user_regdate>='".($day-86400)."'", SQL_NUM); // latest member list($lastuser) = $db->sql_ufetchrow('SELECT username FROM '.$user_prefix.'_users WHERE user_active = 1 AND user_level > 0 ORDER BY user_id DESC LIMIT 0,1',SQL_NUM); if(is_user()) { $content .= '<center>'; if ($userinfo['user_avatar_type'] == 1) { $avatar = $MAIN_CFG['avatar']['path'].'/'.$userinfo['user_avatar']; } else if ($userinfo['user_avatar_type'] == 2) { $avatar = $userinfo['user_avatar']; } else if ($userinfo['user_avatar_type'] == 3 && !empty($userinfo['user_avatar'])) { $avatar = $MAIN_CFG['avatar']['gallery_path'].'/'.$userinfo['user_avatar']; } else { $avatar = $MAIN_CFG['avatar']['gallery_path'].'/'.$MAIN_CFG['avatar']['default']; } $content .= "<img src=\"$avatar\" alt=\"\" />"; $content .= '<br />'._BWEL." <b>$userinfo[username]</b><br /><img src=\"images/spacer.gif\" height=\"8\" alt=\"\" /></center>\n"; if (is_active('Private_Messages')) { $pm = $userinfo['user_new_privmsg']+$userinfo['user_unread_privmsg']; $content .= ' <a title="'._READSEND.'" href="'.getlink('Private_Messages').'"><img src="images/blocks/email.gif" alt="" border="0" /></a>  <a title="'._READSEND.'" href="'.getlink('Private_Messages').'">'._INBOX.'</a>'; $content .= '  '._NEW.": <b>$pm</b><br />\n"; } $content .= '<a title="'._ACCOUNTOPTIONS.'" href="'.getlink('Your_Account').'"><img src="images/blocks/logout.gif" alt="" border="0" /></a> <a title="'._ACCOUNTOPTIONS.'" href="'.getlink('Your_Account').'">'._Your_AccountLANG.'</a><br /> <a title="'._LOGOUTACCT.'" href="'.getlink('Your_Account&op=logout&redirect', false).'"><img src="images/blocks/login.gif" alt="" border="0" /></a> <a title="'._LOGOUTACCT.'" href="'.getlink('Your_Account&op=logout&redirect', false).'">'._LOGOUT.'</a><br />'; } else { if (isset($_GET['redirect']) && !isset($CPG_SESS['user']['redirect'])) { $CPG_SESS['user']['redirect'] = $CPG_SESS['user']['uri']; } $redirect = isset($CPG_SESS['user']['redirect']) ? $CPG_SESS['user']['redirect'] : get_uri(); $content .= '<center><img src="images/blocks/no_avatar.gif" alt="" /><br />'._BWEL.' <b>'._ANONYMOUS.'</b></center> <hr /><form action="'.$redirect.'" method="post" enctype="multipart/form-data" accept-charset="utf-8"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr><td>'._NICKNAME.'</td><td align="right"><input type="text" name="ulogin" size="10" maxlength="25" /></td></tr> <tr><td><label for="user_password">'._PASSWORD.'</label></td><td align="right"><input type="password" id="user_password" name="user_password" size="10" maxlength="20" /></td></tr>'; if ($sec_code & 2) { $content .='<tr><td>'._SECURITYCODE.'</td><td>'.generate_secimg().'</td></tr> <tr><td>'._TYPESECCODE.'</td><td align="right"><input type="text" name="gfx_check" size="10" maxlength="8" /></td></tr>'; } $content .= '<tr><td align="right" colspan="2"><input type="submit" value="'._LOGIN.'" /></td></tr> </table></form>'; // don't show register link unless allowuserreg is yes if ($MAIN_CFG['member']['allowuserreg']) $content .= '<div align="center">(<a title="'._BREG.'" href="'.getlink('Your_Account&file=register').'">'._BREG.'</a>)</div>'; } if (is_admin()) { $content .= '<a title="'._LOGOUTADMINACCT.'" href="'.adminlink('logout').'"><img src="images/blocks/login.gif" alt="" border="0" /></a> <a title="'._LOGOUTADMINACCT.'" href="'.adminlink('logout').'">'._ADMIN.' '._LOGOUT."</a><br />\n"; } $content .= '<hr /> <img src="images/blocks/group-1.gif" alt="" /> <b><u>'._BMEMP.':</u></b><br /> <img src="images/blocks/ur-moderator.gif" alt="" /> '._BLATEST.': <a href="'.getlink("Your_Account&profile=$lastuser").'"><b>'.$lastuser.'</b></a><br /> <img src="images/blocks/ur-author.gif" alt="" /> '._BTD.': <b>'.$userCount[0].'</b><br /> <img src="images/blocks/ur-admin.gif" alt="" /> '._BYD.': <b>'.$userCount[1].'</b><br /> <img src="images/blocks/ur-guest.gif" alt="" /> '._BOVER.': <b>'.$numusers.'</b><br /> <hr /> <img src="images/blocks/group-1.gif" alt="" /> <b><u>'._BVISIT.':</u></b><br /> <img src="images/blocks/ur-member.gif" alt="" /> '._BMEM.': <b>'.$online_num[0].'</b><br /> <img src="images/blocks/ur-anony.gif" alt="" /> '._BVIS.': <b>'.$online_num[1].'</b><br /> <img src="images/blocks/ur-anony.gif" alt="" /> '._BOTS.': <b>'.$online_num[3].'</b><br /> <img src="images/blocks/ur-registered.gif" alt="" /> '._STAFF.': <b>'.$online_num[2].'</b> <hr /> <b><u>'._STAFFONL.':</u></b><br />'; // staff online $result = $db->sql_query("SELECT a.uname, u.user_id FROM ".$prefix."_session AS a LEFT JOIN ".$user_prefix."_users AS u ON u.username = a.uname WHERE guest = 2 ORDER BY a.uname"); if($db->sql_numrows($result) < 1) { $content .= '<br /><i>'._STAFFNONE.'</i>'; } else { $num = 0; while($row = $db->sql_fetchrow($result)) { $num++; if ($num < 10) { $content .= '0'; } $content .= "$num: "; if($row['user_id'] > 1) { $content .= '<a href="'.getlink('Your_Account&profile='.$row['user_id']).'">'.$row['uname'].'</a><br />'; } else { $content .= $row['uname'].'<br />'; } } } $db->sql_freeresult($result);




Then, you upload a rather hacked "block-User_Info.php" to your public_html/blocks/ directory (same one as the last one) with this code in it:

<?php /********************************************* CPG Dragonflyâ„ � CMS ******************************************** Copyright  � 2004 - 2005 by CPG-Nuke Dev Team http://www.dragonflycms.com Based on "All Info Block" by Alex Hession http://www.gnaunited.com Block heavily modified by DJMaze http://www.cpgnuke.com Dragonfly is released under the terms and conditions of the GNU GPL version 2 or any later version $Source: /cvs/html/blocks/block-User_Info.php,v $ $Revision: 9.15 $ $Author: nanocaiordo $ $Date: 2006/12/10 05:27:17 $ Encoding test: n-array summation ∑ latin ae w/ acute Ç � ********************************************************/ if (!defined('CPG_NUKE')) { exit; } global $prefix, $user_prefix, $db, $sec_code, $userinfo, $MAIN_CFG, $CPG_SESS; $content = ''; $pm_active = is_active('Private_Messages'); $memres = $db->sql_query('SELECT s.uname, s.module, s.url, u.user_allow_viewonline FROM '.$prefix.'_session AS s LEFT JOIN '.$user_prefix.'_users AS u ON u.username=s.uname WHERE guest=0 OR guest=2 ORDER BY s.uname'); $anonres = $db->sql_query('SELECT uname, module, url FROM '.$prefix.'_session WHERE guest=1 OR guest=3'); $online_num[0] = $db->sql_numrows($memres); $online_num[1] = $db->sql_numrows($anonres); $online_num[2] = $online_num[0] + $online_num[1]; $who_where = array('', ''); $hidden = 0; for ($i = 1; $i <= $online_num[0]; $i++) { $onluser = $db->sql_fetchrow($memres); if ($onluser['user_allow_viewonline'] || is_admin()) { $ttt = "<a href=\"".getlink("Your_Account&profile=$onluser[uname]")."\">"; if ($onluser['user_allow_viewonline']) $ttt .= "$onluser[uname]</a> >"; else $ttt .= "<i>$onluser[uname]</i></a> >"; if($i < 10) { $who_where[0] .= "0"; } $who_where[0] .= "$i: $ttt <a href=\"$onluser[url]\">$onluser[module]</a><br />\n"; } else { $hidden++; } } $db->sql_freeresult($memres); for ($i = 1; $i <= $online_num[1]; $i++) { $onluser = $db->sql_fetchrow($anonres); if($i < 10) { $who_where[1] .= "0"; } $who_where[1] .= "$i: <a href=\"$onluser[url]\">$onluser[module]</a><br />\n"; } $db->sql_freeresult($anonres); $day = L10NTime::tolocal((mktime(0,0,0,date('n'),date('j'),date('Y'))-date('Z')), $userinfo['user_dst'], $userinfo['user_timezone']); list($last[0]) = $db->sql_ufetchrow("SELECT COUNT(*) FROM ".$user_prefix."_users WHERE user_regdate>='".$day."'", SQL_NUM); list($last[1]) = $db->sql_ufetchrow("SELECT COUNT(*) FROM ".$user_prefix."_users WHERE user_regdate<'".$day."' AND user_regdate>='".($day-86400)."'", SQL_NUM); list($lastuser) = $db->sql_ufetchrow("SELECT username FROM ".$user_prefix."_users WHERE user_active = 1 AND user_level > 0 ORDER BY user_id DESC LIMIT 1", SQL_NUM); list($numusers) = $db->sql_ufetchrow("SELECT COUNT(*) FROM ".$user_prefix."_users WHERE user_id > 1 AND user_level > 0", SQL_NUM); $content .= '<b><u>'._BMEMP.":</u></b><br />\n"; $content .= '<img src="images/blocks/ur-moderator.gif" alt="" /> '._BLATEST.': <a href="'.getlink("Your_Account&profile=$lastuser").'"><b>'.$lastuser.'</b></a><br /> <img src="images/blocks/ur-author.gif" alt="" /> '._BTD.': <b>'.$last[0].'</b><br /> <img src="images/blocks/ur-admin.gif" alt="" /> '._BYD.': <b>'.$last[1].'</b><br /> <img src="images/blocks/ur-guest.gif" alt="" /> '._BOVER.': <b>'.$numusers.'</b><br /> <hr /> <img src="images/blocks/group-1.gif" alt="" /> <b><u>'._BVISIT.':</u></b><br /> <img src="images/blocks/ur-member.gif" alt="" /> '._BMEM.': <b>'.$online_num[0].'</b><br /> <img src="images/blocks/ur-anony.gif" alt="" /> '._BVIS.': <b>'.$online_num[1].'</b><br /> <img src="images/blocks/ur-registered.gif" alt="" /> '._BTT.': <b>'.$online_num[2].'</b> <hr /> <img src="images/blocks/group-1.gif" alt="" /> <u><b>'._WHOWHERE.':</b></u><br />'; if($online_num[0] > 0) { $content .= '<img src="images/blocks/members.gif" alt="" /> <span class="content"><b>'._BMEM.':</b></span><br />'.$who_where[0]; } if($online_num[1] > 0) { $content .= '<img src="images/blocks/visitors.gif" alt="" /> <span class="content"><b>'._BVIS.':</b></span><br />'.$who_where[1]; } if ($hidden > 0) { $content .= '<span class="content"><b>'._BHID.':</b></span> '.$hidden; } $num = 0; $content .= "\n<hr />\n<b><u>"._STAFFONL.':</u></b><br />'; $result = $db->sql_query("SELECT a.uname, u.user_id FROM ".$prefix."_session AS a LEFT JOIN ".$user_prefix."_users AS u ON u.username = a.uname WHERE guest = 2 ORDER BY a.uname"); if($db->sql_numrows($result) < 1) { $content .= '<br /><i>'._STAFFNONE.'</i>'; } else while($row = $db->sql_fetchrow($result)) { $num++; if ($num < 10) { $content .= '0'; } $content .= "$num: "; if($row['user_id'] > 1) { if($pm_active) { $content .= "<a href=\"".getlink("Private_Messages&mode=post&u=$row[user_id]")."\"><img src=\"images/blocks/email.gif\" border=\"0\" alt=\"PM\" title=\"Send a private message to $row[uname]\" /></a>"; } $content .= " <a href=\"".getlink("Your_Account&profile=$row[user_id]")."\">$row[uname]</a><br />\n"; } else $content .= "$row[uname]<br />\n"; } $db->sql_freeresult($result);


Now, you go to your admin/blocks screen and add and activate both of them.

Final step:

The "block-User_Info_small.php" (the small user info block) needs to be set to "All Users" can see it.

The "block-User_Info.php" block (the default user info block that comes with df) needs to be set to "Administrators" only so just admins view it.

Once you do that, login as a normal user to see just the little user info block, then login as an admin and see the extended block right below it.

Again, I want to thank spacebar who sat down with me tonight for about sixty seconds to figure this out. The man's a genius.

Login to xxiis.com without registering using : testuser/testuser

XXIIs.com, the storytelling site. Get paid to share your stories. Kids, teens, adult, etc. Weekly or Monthly serials delivered to your Inbox. Join today!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FreeBSD-5.5p1/1.3.37(Unix)/5.0.33-log/5.2.0/9.1.1


Note:

Actually, instead of "block-User_Info.php" (the default one that is hacked above), I renamed mine "block-Admin_Info.php" and named it Admin Info in the blocks admin page. Same code, different name. Looks nicer for admins.

Login to xxiis.com without registering using : testuser/testuser

XXIIs.com, the storytelling site. Get paid to share your stories. Kids, teens, adult, etc. Weekly or Monthly serials delivered to your Inbox. Join today!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FreeBSD-5.5p1/1.3.37(Unix)/5.0.33-log/5.2.0/9.1.1


Love the concept...

My user block small and user block produce the exact same results.

I got the admin block running separately, now to trim down the user block. Membership,People Online and Staff Online

I changed the block_User_Info_small.php as follows and got it working.
<?php /********************************************* CPG Dragonflyâ„ ? CMS ******************************************** Copyright  ? 2004 - 2005 by CPG-Nuke Dev Team http://www.dragonflycms.com Dragonfly is released under the terms and conditions of the GNU GPL version 2 or any later version $Source: /cvs/html/blocks/block-User_Info_small.php,v $ $Revision: 9.14 $ $Author: nanocaiordo $ $Date: 2006/12/10 05:27:17 $ Encoding test: n-array summation ∑ latin ae w/ acute Ç ? ********************************************************/ if (!defined('CPG_NUKE')) { exit; } global $prefix, $user_prefix, $db, $sec_code, $userinfo, $MAIN_CFG, $CPG_SESS; $content = ''; // number online $result = $db->sql_query('SELECT COUNT(*), guest FROM '.$prefix.'_session GROUP BY guest ORDER BY guest'); $online_num = array(0, 0, 0, 0); while ($row = $db->sql_fetchrow($result)) { $online_num[$row[1]] = intval($row[0]); } $db->sql_freeresult($result); // number of members list($numusers) = $db->sql_ufetchrow('SELECT COUNT(*) FROM '.$user_prefix."_users WHERE user_id > 1 AND user_level > 0",SQL_NUM); // users registered today $day = L10NTime::tolocal((mktime(0,0,0,date('n'),date('j'),date('Y'))-date('Z')), $userinfo['user_dst'], $userinfo['user_timezone']); list($userCount[0]) = $db->sql_ufetchrow("SELECT COUNT(*) FROM ".$user_prefix."_users WHERE user_regdate>='".$day."'", SQL_NUM); // users registered yesterday list($userCount[1]) = $db->sql_ufetchrow("SELECT COUNT(*) FROM ".$user_prefix."_users WHERE user_regdate<'".$day."' AND user_regdate>='".($day-86400)."'", SQL_NUM); // latest member list($lastuser) = $db->sql_ufetchrow('SELECT username FROM '.$user_prefix.'_users WHERE user_active = 1 AND user_level > 0 ORDER BY user_id DESC LIMIT 0,1',SQL_NUM); if(is_user()) { $content .= '<center>'; if ($userinfo['user_avatar_type'] == 1) { $avatar = $MAIN_CFG['avatar']['path'].'/'.$userinfo['user_avatar']; } else if ($userinfo['user_avatar_type'] == 2) { $avatar = $userinfo['user_avatar']; } else if ($userinfo['user_avatar_type'] == 3 && !empty($userinfo['user_avatar'])) { $avatar = $MAIN_CFG['avatar']['gallery_path'].'/'.$userinfo['user_avatar']; } else { $avatar = $MAIN_CFG['avatar']['gallery_path'].'/'.$MAIN_CFG['avatar']['default']; } $content .= "<img src=\"$avatar\" alt=\"\" />"; $content .= '<br />'._BWEL." <b>$userinfo[username]</b><br /><img src=\"images/spacer.gif\" height=\"8\" alt=\"\" /></center>\n"; if (is_active('Private_Messages')) { $pm = $userinfo['user_new_privmsg']+$userinfo['user_unread_privmsg']; $content .= ' <a title="'._READSEND.'" href="'.getlink('Private_Messages').'"><img src="images/blocks/email.gif" alt="" border="0" /></a>  <a title="'._READSEND.'" href="'.getlink('Private_Messages').'">'._INBOX.'</a>'; $content .= '  '._NEW.": <b>$pm</b><br />\n"; } $content .= '<a title="'._ACCOUNTOPTIONS.'" href="'.getlink('Your_Account').'"><img src="images/blocks/logout.gif" alt="" border="0" /></a> <a title="'._ACCOUNTOPTIONS.'" href="'.getlink('Your_Account').'">'._Your_AccountLANG.'</a><br /> <a title="'._LOGOUTACCT.'" href="'.getlink('Your_Account&op=logout&redirect', false).'"><img src="images/blocks/login.gif" alt="" border="0" /></a> <a title="'._LOGOUTACCT.'" href="'.getlink('Your_Account&op=logout&redirect', false).'">'._LOGOUT.'</a><br />'; } else { if (isset($_GET['redirect']) && !isset($CPG_SESS['user']['redirect'])) { $CPG_SESS['user']['redirect'] = $CPG_SESS['user']['uri']; } $redirect = isset($CPG_SESS['user']['redirect']) ? $CPG_SESS['user']['redirect'] : get_uri(); $content .= '<center><img src="images/blocks/no_avatar.gif" alt="" /><br />'._BWEL.' <b>'._ANONYMOUS.'</b></center> <hr /><form action="'.$redirect.'" method="post" enctype="multipart/form-data" accept-charset="utf-8"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr><td>'._NICKNAME.'</td><td align="right"><input type="text" name="ulogin" size="10" maxlength="25" /></td></tr> <tr><td><label for="user_password">'._PASSWORD.'</label></td><td align="right"><input type="password" id="user_password" name="user_password" size="10" maxlength="20" /></td></tr>'; if ($sec_code & 2) { $content .='<tr><td>'._SECURITYCODE.'</td><td>'.generate_secimg().'</td></tr> <tr><td>'._TYPESECCODE.'</td><td align="right"><input type="text" name="gfx_check" size="10" maxlength="8" /></td></tr>'; } $content .= '<tr><td align="right" colspan="2"><input type="submit" value="'._LOGIN.'" /></td></tr> </table></form>'; // don't show register link unless allowuserreg is yes if ($MAIN_CFG['member']['allowuserreg']) $content .= '<div align="center">(<a title="'._BREG.'" href="'.getlink('Your_Account&file=register').'">'._BREG.'</a>)</div>'; } if (is_admin()) { $content .= '<a title="'._LOGOUTADMINACCT.'" href="'.adminlink('logout').'"><img src="images/blocks/login.gif" alt="" border="0" /></a> <a title="'._LOGOUTADMINACCT.'" href="'.adminlink('logout').'">'._ADMIN.' '._LOGOUT."</a><br />\n"; } $db->sql_freeresult($result);

.m@.

"Reality is merely an illusion, albeit a very persistent one. " - Albert Einstein

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
{GoDaddy Hosted} Linux/ 1.3.33 / 5.0.45 / 4.3.11 / 9.1.2.1


Weird. It seems to work fine for me the way I have the code up there.

Login to xxiis.com without registering using : testuser/testuser

XXIIs.com, the storytelling site. Get paid to share your stories. Kids, teens, adult, etc. Weekly or Monthly serials delivered to your Inbox. Join today!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FreeBSD-5.5p1/1.3.37(Unix)/5.0.33-log/5.2.0/9.1.1


The second code block in: cpgnuke.com/Forums/vie...tml#122699

Which began:
xxiis.com wrote
Then, you upload a rather hacked "block-User_Info.php" to your public_html/blocks/ directory (same one as the last one) with this code in it:


Is all that's required from this page, in Dragonfly 9.1.2.1

[edit]
The "rather hacked" block here seems to be better than: this block.
[/edit]

The block-User_Info_small.php works as is available here: dragonflycms.org/Downl...d=434.html

block-User_Info_small.php set to "All Visitors".
block-User_Info_medium.php would be a good place to save the second codeblock from opening-post. Replace default "User Info" with that, and set it viewable "Registered Only". Don't set it "Admin Only", since admin get to see it anyway... unless you actually want to hide membership and online stats from your CMS members.

Anonymous Visitor: cpgnuke.com/bbuploads/df-home.png
Member logged in: cpgnuke.com/bbuploads/df-member.png
Admin/Member logged in: cpgnuke.com/bbuploads/...member.png
Admin only logged in: cpgnuke.com/bbuploads/df-admin.png

cpgnuke.com/Forums/vie...32202.html is relevant to configuring Dragonfly this way.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Debian/etch Apache/2.2.3 MySQL/5.0.32-Debian_7etch1-log PHP/5.2.0-8+etch7 Dragonfly CMS/9.1.2.1

All times are UTC