1
Installation, Update & Configuration / Call up data from settings
« on: June 30, 2003, 11:47:03 PM »
Thanks
4images code on GitHub Click here to visit GitHub.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
$user_info['user_name'];
$setting_item['required_data'];
okay...where should I add it?
great mod !! ... now if i can get my phpMyadmin link working!Like v@no said above, change the 'PHPMYADMIN LINK' to the link of your phpmyadmin.
question - i see in your screen shot that you have site logs and page logs ..This is a seprate script and is in no way intergrated or part of 4images. it's actually a perl script which I'm looking to replace with a php script. That log script Chris has shown looks very good. I may use that.
also have you down any coding to track downloads ? ..Not yet.
if ($action == "editprofile") {
if ($user_info['user_level'] == GUEST) {
show_error_page($lang['no_permission_updateprofile']);
exit;
}
// User Gender Switch
$gender_array = array("", "Male", "Female");
$user_gender = $gender_array[$user_info['user_gender']]."";
// User Age Display
$this_year=create_date('Y', time(), $board_config['board_timezone']);
$this_date = create_date('md', time(), $board_config['board_timezone']);
if ( $user_info['user_birthday'] != 999999 )
{
$poster_birthdate=realdate('md', $user_info['user_birthday']);
$n=0;
while ($n<26)
{
if ($poster_birthdate>=$zodiacdates[$n] & $poster_birthdate<=$zodiacdates[$n+1])
{
$zodiac = $lang[$zodiacs[($n/2)]];
$u_zodiac = $images[$zodiacs[($n/2)]];
$zodiac_img = '<img src="'.$u_zodiac.'" alt="'.$zodiac.'" title="'.$zodiac.'" border="0"/>';
$n=26;
} else
{
$n=$n+2;
}
}
$poster_age = $this_year - realdate ('Y',$user_info['user_birthday']);
if ($this_date < $poster_birthdate) $poster_age--;
$poster_age = '' . $poster_age .'';
} else
{
$poster_age = '';
}
// User Star Sign Display
if ($user_info['user_birthday']!=999999)
{
$poster_birthdate=realdate('md', $user_info['user_birthday']);
$i=0;
while ($i<26)
{
if ($poster_birthdate>=$zodiacdates[$n] & $poster_birthdate<=$zodiacdates[$i+1])
{
$zodiac = $lang[$zodiacs[($i/2)]];
$u_zodiac = $images[$zodiacs[($i/2)]];
$zodiac_img = $lang['Zodiac'].': <img src="'.$u_zodiac.'" alt="'.$zodiac.'" title="'.$zodiac.'" border="0"/>';
$i=26;
} else
{
$i=$i+2;
}
}
}
// User Sexuality Switch
$i = 0;
$sexuality = "";
$user_sexuality_select = array("", "Straight", "Bisexual", "Open Minded", "Gay / Lesbian");
foreach ($user_gender_select as $key) {
$sexuality .= "<option value=\"".$i."\"".(($user_info['user_sexuality'] == $i) ? " selected" : "").">".$key."</option>\n";
$i++;
}
Warning: Invalid argument supplied for foreach()
Code: [Select]// User Gender Switch
$gender_array = array("Male", "Female", "None Specified");
$user_gender = $gender_array[$user_row['user_sex']]." <img src=\"".TEMPLATE_PATH."/images/gender".$user_row['user_sex'].".gif\">";
// User Gender Switch
if($user_info['user_sex'] == 1){
$user_gender = "<input type=\"radio\" name=\"user_gender\" value=\"1\" checked />
male
<input type=\"radio\" name=\"user_gender\" value=\"2\" />
female</font>";
} else if($user_info['user_sex'] == 2){
$user_gender = "<input type=\"radio\" name=\"user_gender\" value=\"1\"/>
male
<input type=\"radio\" name=\"user_gender\" value=\"2\" checked />
female</font>";
} else {
$user_gender = "<input type=\"radio\" name=\"user_gender\" value=\"1\"/>
male
<input type=\"radio\" name=\"user_gender\" value=\"2\"/>
female</font>";
}