31
Modifikasyonlar / [MOD]Üyeniz yüklediklerini Görsün
« on: April 20, 2008, 01:34:41 PM »
بسم الله الرحمن الرحيم
السلام عليكم ورحمة الله وبركاته
Saygı değer 4images üyeleri;
Sitenizdeki üyelerin kontrol panelınde yükledikleri Resimleri,dosyaları görmesini istiyor musunuz? O zaman çok kısa olan bu işlemi hemen yapın :
1: Öncelikleri Ekteki dosyayı indirip rar dosyasından çıkardıkdan sonra onu public_html/templates/kendi temanıza atın
2: member.php yi açıp şu kodu bulun :
2.1 yine member.php de bu kodu bulun:
3: olarak olarak public_html/lang/ türkçe/ main php yi açın :
en aşığıcaki ?> bunun öncesine şu kodu ekleyin
Dilerseniz bu türkçe yazan kısmı değişebilirsiniz
şimdi kendi kontrol panelinize gidin ve yüklediklerinizi görün veya üyelerinizinkine bakın
Kolay gelsin
DilnüvaZ
السلام عليكم ورحمة الله وبركاته
Saygı değer 4images üyeleri;
Sitenizdeki üyelerin kontrol panelınde yükledikleri Resimleri,dosyaları görmesini istiyor musunuz? O zaman çok kısa olan bu işlemi hemen yapın :
1: Öncelikleri Ekteki dosyayı indirip rar dosyasından çıkardıkdan sonra onu public_html/templates/kendi temanıza atın
2: member.php yi açıp şu kodu bulun :
Code: [Select]
if ($action == "editprofile") {
$txt_clickstream = $lang['control_panel'];
Bu kodun öncesine aşağıdaki kodu ekleyin Code: [Select]
//-----------------------------------------------------
//--- Show uploaded images from edit profile ----------
//-----------------------------------------------------
if ($action == "show_uploaded_images") {
$sql1 = "
SELECT i.image_id, i.image_name, i.image_thumb_file, i.image_media_file, i.cat_id" . get_user_table_field(", u.", "user_name") . "
FROM (" . IMAGES_TABLE . " i, " . CATEGORIES_TABLE . " c)
LEFT JOIN " . USERS_TABLE . " u ON (" . get_user_table_field("u.", "user_id") . " = i.user_id)
WHERE i.image_active = 1 AND i.cat_id = c.cat_id AND " . get_user_table_field("u.", "user_id") . " = i.user_id AND i.user_id = " . $user_info['user_id'] . " AND (i.cat_id NOT IN (".get_auth_cat_sql("auth_viewimage", "NOTIN").", ".get_auth_cat_sql("auth_viewcat", "NOTIN")."))
ORDER BY i.image_date DESC
";
$result = $site_db->query($sql1);
$num_rows = $site_db->get_numrows($result);
if (!$num_rows) {
$uploaded_images_from_edit_profile = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
$uploaded_images_from_edit_profile .= $lang['no_new_images'];
$uploaded_images_from_edit_profile .= "</td></tr></table>";
}
else {
$uploaded_images_from_edit_profile = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
$count = 0;
$bgcounter = 0;
while ($uploaded_images_from_edit_profile_row = $site_db->fetch_array($result)) {
$user_name = format_text(trim(ucfirst($uploaded_images_from_edit_profile_row[$user_table_fields['user_name']]), 2));
if ($count == 0) {
$row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
$uploaded_images_from_edit_profile .= "<tr class=\"imagerow".$row_bg_number."\">\n";
}
$uploaded_images_from_edit_profile .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";
show_image($uploaded_images_from_edit_profile_row);
$uploaded_images_from_edit_profile .= $site_template->parse_template("thumbnail_bit");
$uploaded_images_from_edit_profile .= "\n</td>\n";
$count++;
if ($count == $config['image_cells']) {
$uploaded_images_from_edit_profile .= "</tr>\n";
$count = 0;
}
} // end while
if ($count > 0) {
$leftover = ($config['image_cells'] - $count);
if ($leftover >= 1) {
for ($f = 0; $f < $leftover; $f++) {
$uploaded_images_from_edit_profile .= "<td width=\"".$imgtable_width."\">\n \n</td>\n";
}
$uploaded_images_from_edit_profile .= "</tr>\n";
}
}
$uploaded_images_from_edit_profile .= "</table>\n";
} // end else
$site_template->register_vars("lang_uploaded_images_from_edit_profile", $lang['uploaded_images_from_edit_profile']);
$site_template->register_vars("uploaded_images_from_edit_profile", $uploaded_images_from_edit_profile);
$site_template->register_vars("lang_uploaded_images_go_back", $lang['uploaded_images_go_back']);
$content = $site_template->parse_template("member_editprofile");
$txt_clickstream = $lang['show_uploaded_images'];
unset($uploaded_images_from_edit_profile);
}
2.1 yine member.php de bu kodu bulun:
Code: [Select]
"lang_edit_profile_msg" => $edit_profile_msg,
Sonrasına bu kodu ekleyin :Code: [Select]
"lang_show_uploaded_images" => $lang['show_uploaded_images'],
3: olarak olarak public_html/lang/ türkçe/ main php yi açın :
en aşığıcaki ?> bunun öncesine şu kodu ekleyin
Code: [Select]
$lang['show_uploaded_images'] = "Yüklediğin Resimler ";
$lang['uploaded_images_from_edit_profile'] = "Senin Tarafından Yüklenenler";
$lang['uploaded_images_go_back'] = "<span class=\"smalltext\">[ Profiline Geri Dön ]</span>";
Dilerseniz bu türkçe yazan kısmı değişebilirsiniz
şimdi kendi kontrol panelinize gidin ve yüklediklerinizi görün veya üyelerinizinkine bakın
Kolay gelsin
DilnüvaZ