, $avatar_on, $gender_on, $aimg, $fimg, $mimg
ALTER TABLE `dd_settings` ADD `avatar_on` int(11) NOT NULL DEFAULT '0';ALTER TABLE `dd_settings` ADD `aimg` varchar(250) NOT NULL DEFAULT '';ALTER TABLE `dd_settings` ADD `gender_on` int(11) NOT NULL DEFAULT '0';ALTER TABLE `dd_settings` ADD `mimg` varchar(250) NOT NULL DEFAULT '';ALTER TABLE `dd_settings` ADD `fimg` varchar(250) NOT NULL DEFAULT '';
function account(){global
if ($avatar == "1" ) { $avatarfileurl = '<img src=\''.$domain.'/avatars/'.$avatarfile.'\' height=\'100\' width=\'100\'>'; } else { $avatarfileurl = ''; };
if ($avatar == "1" ) { $avatarfileurl = '<img src=\''.$domain.'/avatars/'.$avatarfile.'\' height=\'100\' width=\'100\'>'; } elseif ($avatar_on == "1" && $gender_on == "1") { if ($sex == "u" || $sex == "") {$avatarfileurl = '<img src=\''.$domain.'/avatars/'.$aimg.'\' height=\'100\' width=\'100\'>';} elseif ($sex == "m") {$avatarfileurl = '<img src=\''.$domain.'/avatars/'.$mimg.'\' height=\'100\' width=\'100\'>';}elseif ($sex == "f") {$avatarfileurl = '<img src=\''.$domain.'/avatars/'.$fimg.'\' height=\'100\' width=\'100\'>';} } elseif ($avatar_on == "1") { $avatarfileurl = '<img src=\''.$domain.'/avatars/'.$aimg.'\' height=\'100\' width=\'100\'>';} else { $avatarfileurl = ''; };
function writebody() {global
if ( $rra['avatar'] == '1' ) { $avatarfileurl = '<p><img src=\''.$domain.'/avatars/'.$rra['avatarfile'].'\' height=\'100\' width=\'100\' border=\'0\'>'; } else { $avatarfileurl = ''; };
if ( $rra['avatar'] == '1' ) { $avatarfileurl = '<p><img src=\''.$domain.'/avatars/'.$rra['avatarfile'].'\' height=\'100\' width=\'100\' border=\'0\'>'; } elseif ($avatar_on == "1" && $gender_on == "1") { if ($rra['sex'] == "u" || $rra['sex'] == "") {$avatarfileurl = '<img src=\''.$domain.'/avatars/'.$aimg.'\' height=\'100\' width=\'100\'>';} elseif ($rra['sex'] == "m") {$avatarfileurl = '<img src=\''.$domain.'/avatars/'.$mimg.'\' height=\'100\' width=\'100\'>';}elseif ($rra['sex'] == "f") {$avatarfileurl = '<img src=\''.$domain.'/avatars/'.$fimg.'\' height=\'100\' width=\'100\'>';} } elseif ($avatar_on == "1") { $avatarfileurl = '<img src=\''.$domain.'/avatars/'.$aimg.'\' height=\'100\' width=\'100\'>';} else { $avatarfileurl = ''; };
if ( $showpages == "0" ) { $spsel = "selected" ; };
if ( $avatar_on == "0" ) { $avsel = "selected" ; } ;if ( $gender_on == "0" ) { $gavsel = "selected" ; };
$metadescr = $_POST['metadescr'];
$savatar_on = clean($_POST['avatar_on']);$saimg = clean($_POST['aimg'];$sgender_on = clean($_POST['gender_on']); $smimg = clean($_POST['mimg']);$sfimg = clean($_POST['fimg']);
metadescr=\''.$metadescr.'\'
,avatar_on=\''.$savatar_on.'\',aimg=\''.$saimg.'\',gender_on=\''.$sgender_on.'\',mimg=\''.$smimg.'\',fimg=\''.$sfimg.'\'
<td class=\'content5\'>Default Meta Description: </td> <td class=\'content5\'><input type=\'text\' name=\'metadescr\' size=\'40\' value=\''.$set['metadescr'].'\'></td> </tr>
<tr> <td class=\'content5\'>Default Avatar Enabled:</td> <td class=\'content5\'><select type=\'dropdown\' name=\'avatar_on\'> <option value=\'1\'>Yes</option> <option value=\'0\' '.$avsel.'>No</option> </select></td> </tr> <tr> <td class=\'content5\' >Generic Avatar File:</td> <td class=\'content5\'><input type=\'text\' name=\'aimg\' size=\'40\' value=\''.$set['aimg'].'\'></td> </tr> <tr> <td class=\'content5\'>Gender Avatar Enabled:</td> <td class=\'content5\'><select type=\'dropdown\' name=\'gender_on\'> <option value=\'1\'>Yes</option> <option value=\'0\' '.$gavsel.'>No</option> </select></td> </tr> <tr> <td class=\'content5\'>Male Avatar File:</td> <td class=\'content5\'><input type=\'text\' name=\'mimg\' size=\'40\' value=\''.$set['mimg'].'\'></td> </tr> <tr> <td class=\'content5\'>Female Avatar File:</td> <td class=\'content5\'><input type=\'text\' name=\'fimg\' size=\'40\' value=\''.$set['fimg'].'\'></td> </tr>
$pagetitle = $sitename ;
$avatar_on = $set['avatar_on'];$aimg = $set['aimg'];$gender_on = $set['gender_on'];$mimg = $set['mimg'];$fimg = $set['fimg'];
Is their a way of a male female default avatar?
Not yet?