المشاركة الأصلية كتبت بواسطة: الصم;8062 أفتح ملف/ index.php
أبحث عن مرتين /
PHP
eval($activeusers = ", . fetch_template(forumhome_loggedinuser) . ";
اضف /
PHP
//######################### Bulle infos membre #############################
$userinfo=fetch_userinfo($loggedin[userid]);
$userinfo[joindate] = vbdate($vboptions[dateformat],$userinfo[joindate]);
$userinforeputation = $userinfo[reputation];
$userposts = $userinfo[posts];
$userinfostyle = $DB_site->query_first("
SELECT * FROM " . TABLE_PREFIX . "style WHERE styleid=$userinfo[styleid]"
if ($userinfo[styleid]!=$userinfostyle)
{
$userinfostyle= $style[title];
} else {
$userinfostyle = $userinfostyle[title];
}
if ($userinfo[posts]!=0 and $userinfo[lastpost]!=0)
{
$lastpostdate=vbdate($vboptions[dateformat],$userinfo[lastpost]);
$permslastposts=$DB_site->query("SELECT thread.title,thread.threadid,thread.forumid,postid,post.dateline
FROM " . TABLE_PREFIX . "post AS post," . TABLE_PREFIX . "thread AS thread
WHERE thread.threadid=post.threadid
AND thread.visible = 1
AND post.userid=$loggedin[userid]
ORDER BY post.dateline DESC LIMIT 20"
while ($permslastpost=$DB_site->fetch_array($permslastposts))
{
$forumperms=fetch_permissions($permslastpost[forumid]);
if ($forumperms & CANVIEWOTHERS)
{
$lastposttitle=$permslastpost[title];
break;
}
}
} else {
$lastpostdate="Jamais";
}
$usersujetcount = $DB_site->query_first("SELECT COUNT(title) AS starts FROM " . TABLE_PREFIX . "thread WHERE postusername=$userinfo[username] AND open!=10"
$usersujet = $usersujetcount[starts];
$userreply = $userinfo[posts] - $usersujet;
$personels = $DB_site->query_first("
SELECT SUM(views) AS personelviews FROM " . TABLE_PREFIX . "thread WHERE postuserid=$userinfo[userid] AND open!=10"
$personel= 2*$userinfo[posts]+$personels[personelviews];
if ($personels == ""{
$personels = "0";
}
//######################### Bulle infos membre #############################
أفتح تمبلت / forumhome_loggedinuser
بحث /
PHP
$loggedin[buddymark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a> <a href="private.php?do=newpm&u=$userid"><img src="images/sendpmonline.gif" border="0" alt="اضغط هنا وارسل رساله خاصه لهذا العضو"></a> $loggedin[invisiblemark]
أستبدل/
PHP
<a href="member.php?$session[sessionurl]u=$loggedin[userid]" id="$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]
<if condition="$bbuserinfo[userid] != 0">
******** type="text/**********"> vbmenu_register("$loggedin[userid]" ***********
<!-- show infos menu -->
<div class="vbmenu_popup" id="$loggedin[userid]_menu" style="display:none">
<div class="tcat" style="padding:$stylevar[cellpadding]px; border:1px inset; overflow:auto" nowrap="nowrap">أحصائية العضو</div>
<div class="alt1" style="border:1px inset; overflow:auto; width:140px">
<a href="member.php?$session[sessionurl]u=$loggedin[userid]" title="$vbphrase[view_profile]"> $loggedin[musername] </a>
<br>
<phrase 1="$lastposttitle" 2="$userinfo[joindate]" 3="$lastpostdate" 4="$userposts" 5="$usersujet" 6="$userreply" 7="$personel" 8="$userinfostyle" 9="$userinforeputation">$vbphrase[login_infos_membre]</phrase>
</div>
</div>
</if>
خيارات المنتدى
أختار اللغات والعبارات ومنها اختار أضافة عباره جديدة
اسم المتغير:
login_infos_membre
النص:
PHP
Register Date: <span class="time">{2}</span><br><br>
Last post: <span class="time" title="Last post title: {1}">{3}</span><br><br>
Number of posts: <span class="time">{4}</span><br><br>
Number of threads: <span class="time">{5}</span><br><br>
Number of answers: <span class="time">{6}</span><br><br>
Number of views: <span class="time">{7}</span><br> <br>
Use style: <span class="time">{8}</span><br><br>
Reputation points: <span class="time">{9}</span><br><br>
وفى نص الترجمة العربى ضع
PHP
<br><span lang="ar-sa">تاريخ التسجيل</span> : <span class="time">{2}</span><br><br>
<span lang="ar-sa">اّخر مشاركة</span> : <span class="time" title="Last post title: {1}">{3}</span><br><br>
<span lang="ar-sa">عدد المشاركات</span> : <span class="time">{4}</span><br><br>
<span lang="ar-sa">عدد المواضيع</span> : <span class="time">{5}</span><br><br>
<span lang="ar-sa">عدد الردود</span> : <span class="time">{6}</span><br><br>
<span lang="ar-sa">عدد المشاهدات</span> : <span class="time">{7}</span><br><br>
<span lang="ar-sa">الأستايل المستخدم</span> : <span class="time">{8}</span><br>
<span lang="ar-sa">عدد النقاط</span>: <span class="time">{9}</span><br><br>
مثل