<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: random-avatar_panel.php
| Version: 0.02 Alpha For PHPFusion V7.01.0x
| Author: Fangree Productions
| Developers: Fangree_Craig
| Site: http://www.fangree.co.uk
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
add_to_head("<style type='text/css'>fieldset { border: 1px solid #ccc; text-align:center; height: 100px; width:80px; padding: 5px 4px;
-moz-border-radius:5px; -webkit-border-radius:5px; -moz-box-shadow:0 1px 0 rgba(255, 255, 255, 0.20); -webkit-box-shadow:0 1px 0 rgba(255, 255, 255, 0.20) }
legend {color: #ccc; font-size: 12px; font-weight:700; padding: 2px 4px; margin-right: 0.7em;}</style>");
openside("Random Avatar");
$result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_avatar !='' AND user_status = '0' ORDER BY RAND() LIMIT 1");
if (dbrows($result)!=0) {
$data = dbarray($result);
echo "<div class='side' align='center'>\n";
echo"<fieldset>\n";
echo "<legend><b><i>".profile_link($data['user_id'], $data['user_name'], $data['user_status'])."</i></b></legend>\n";
if ($data['user_avatar'] && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
$user_avatar = "<img src='".IMAGES."avatars/".$data['user_avatar']."' style='border: 0px; height: 70px; width: 70px;' alt='".$locale['567']."' />";
echo profile_link($data['user_id'], $user_avatar, $data[user_status]);
}
echo "</fieldset></div>\n";
unset($data);
}
unset($result);
closeside();
?>
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: random-avatar_panel.php
| Version: 0.01 Alpha PHPFusion V7.00.xx Version
| Author: Fangree Productions
| Developers: Fangree_Craig
| Site: http://www.fangree.co.uk
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
add_to_head("<style type='text/css'>fieldset { border: 1px solid #ccc; text-align:center; height: 100px; width:80px; padding: 5px 4px;
-moz-border-radius:5px; -webkit-border-radius:5px; -moz-box-shadow:0 1px 0 rgba(255, 255, 255, 0.20); -webkit-box-shadow:0 1px 0 rgba(255, 255, 255, 0.20) }
legend {color: #ccc; font-size: 12px; font-weight:700; padding: 2px 4px; margin-right: 0.7em;}</style>");
openside("Random Avatar");
$result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_avatar !='' AND user_status = '0' ORDER BY RAND() LIMIT 1");
if (dbrows($result)!=0) {
$data = dbarray($result);
echo "<div class='side' align='center'>\n";
echo"<fieldset>\n";
echo "<legend><b><i><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'/>".$data['user_name']."</a></i></b></legend>\n";
if ($data['user_avatar'] && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'/><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='' height='70px' width='70px' border='o' /></a><br /><br />\n";
}
echo "</fieldset></div>\n";
unset($data);
}
unset($result);
closeside();
?>
Category Forum
Code Snippet and functions - 8Labels
None yet
Statistics
1 participant
Notifications
You are not receiving notifications from this thread.
Related Questions