Yayınımız yeniliklerle beraber yeni sitemizden devam ediyor. Seditio.com.tr takip edin.
Bu Modifiye Sayesinde Sayfalarda Sayfa ekleyen kişinin profil bilgilerini gösterebilirsiniz.
system/core/page/page.inc.php'de bulun
if (!empty($al)) { $sql = sed_sql_query("SELECT p.*, u.user_name, u.user_avatar FROM $db_pages AS p LEFT JOIN $db_users AS u ON u.user_id=p.page_ownerid WHERE page_alias='$al' LIMIT 1"); } else { $sql = sed_sql_query("SELECT p.*, u.user_name, u.user_avatar FROM $db_pages AS p LEFT JOIN $db_users AS u ON u.user_id=p.page_ownerid WHERE page_id='$id'"); }
Kod içerisinde alttakini bulun
u.user_name
Devamına userin hangi bilgisini göstermek istiyorsanız onu ekleyin.
Örnek: u.user_email, u.user_ip, u.user_maingrp
Şeklinde her 2 koda da ekleyiniz. alias ve id satırlarına.
Kullanabileceğiniz Etiketler aşağıdaki gibidir.
"USERS_DETAILS_ID" => $pag['user_id'], "USERS_DETAILS_PM" => sed_build_pm($pag['user_id']), "USERS_DETAILS_NAME" => sed_cc($pag['user_name']), "USERS_DETAILS_MAINGRP" => sed_build_group($pag['user_maingrp']), "USERS_DETAILS_MAINGRPID" => $pag['user_maingrp'], "USERS_DETAILS_MAINGRPSTARS" => sed_build_stars($sed_groups[$pag['user_maingrp']]['level']), "USERS_DETAILS_MAINGRPICON" => sed_build_userimage($sed_groups[$pag['user_maingrp']]['icon']), "USERS_DETAILS_GROUPS" => sed_build_groupsms($pag['user_id'], FALSE, $pag['user_maingrp']), "USERS_DETAILS_COUNTRY" => sed_build_country($pag['user_country']), "USERS_DETAILS_COUNTRYFLAG" => sed_build_flag($pag['user_country']), "USERS_DETAILS_TEXT" => $pag['user_text'], "USERS_DETAILS_AVATAR" => sed_build_userimage($pag['user_avatar']), "USERS_DETAILS_PHOTO" => sed_build_userimage($pag['user_photo']), "USERS_DETAILS_SIGNATURE" => sed_build_userimage($pag['user_signature']), "USERS_DETAILS_EXTRA1" => sed_cc($pag['user_extra1']), "USERS_DETAILS_EXTRA2" => sed_cc($pag['user_extra2']), "USERS_DETAILS_EXTRA3" => sed_cc($pag['user_extra3']), "USERS_DETAILS_EXTRA4" => sed_cc($pag['user_extra4']), "USERS_DETAILS_EXTRA5" => sed_cc($pag['user_extra5']), "USERS_DETAILS_EXTRA6" => sed_cc($pag['user_extra6']), "USERS_DETAILS_EXTRA7" => sed_cc($pag['user_extra7']), "USERS_DETAILS_EXTRA8" => sed_cc($pag['user_extra8']), "USERS_DETAILS_EXTRA9" => sed_cc($pag['user_extra9']), "USERS_DETAILS_EXTRA1_TITLE" => $cfg['extra1title'], "USERS_DETAILS_EXTRA2_TITLE" => $cfg['extra2title'], "USERS_DETAILS_EXTRA3_TITLE" => $cfg['extra3title'], "USERS_DETAILS_EXTRA4_TITLE" => $cfg['extra4title'], "USERS_DETAILS_EXTRA5_TITLE" => $cfg['extra5title'], "USERS_DETAILS_EXTRA6_TITLE" => $cfg['extra6title'], "USERS_DETAILS_EXTRA7_TITLE" => $cfg['extra7title'], "USERS_DETAILS_EXTRA8_TITLE" => $cfg['extra8title'], "USERS_DETAILS_EXTRA9_TITLE" => $cfg['extra9title'], "USERS_DETAILS_SKIN" => $pag['user_skin'], "USERS_DETAILS_WEBSITE" => $pag['user_website'], "USERS_DETAILS_ICQ" => sed_build_icq($pag['user_icq']), "USERS_DETAILS_IRC" => sed_cc($pag['user_irc']), "USERS_DETAILS_GENDER" => $pag['user_gender'], "USERS_DETAILS_BIRTHDATE" => $pag['user_birthdate'], "USERS_DETAILS_AGE" => $pag['user_age'], "USERS_DETAILS_TIMEZONE" => sed_build_timezone($pag['user_timezone']), "USERS_DETAILS_LOCATION" => sed_build_location($pag['user_location']), "USERS_DETAILS_OCCUPATION" => sed_cc($pag['user_occupation']), "USERS_DETAILS_REGDATE" => @date($cfg['dateformat'], $pag['user_regdate'] + $usr['timezone'] * 3600)." ".$usr['timetext'], "USERS_DETAILS_LASTLOG" => @date($cfg['dateformat'], $pag['user_lastlog'] + $usr['timezone'] * 3600)." ".$usr['timetext'], "USERS_DETAILS_LOGCOUNT" => $pag['user_logcount'], "USERS_DETAILS_POSTCOUNT" => $pag['user_postcount'], "USERS_DETAILS_LASTIP" => $pag['user_lastip'],
Benzer Sayfalar Onaysız Sayfaları Gösterme Hatası Çözümü | 7648 | 2021-01-08 |
Php ile Cihaz Bilgilerini Öğrenme (user_agent) | 3797 | 2021-01-20 |