السلام عليكم ورحمة الله وبركاته
كود اظهار رقم العضوية في البيانات الشخصية
كما في الصور للتوضيح
---
طريقة التركيب
ModernBB :
اول شيء اذهب لقالب المواضيع
وابحث عن الكود التالي
الكود:
<dd class="postprofile-contact">
وضع الكود التالي فوقه مباشرة
الكود:
<div class="postprofile-contactt">رقم العضوية:</div>
ثم ضع التالي في الجفا واختار المواضيع
الكود:
$(function() {
$('.postprofile').each(function(){
var userId = $(this).find('.postprofile-contact a').eq(0).attr('href'),
postprofile = $(this).find('.postprofile-contactt').last();
$.get(userId+'stats' , function(d) {
var lastvisit = $('#cp-main', d);
if (lastvisit[0]) {
lastvisit = lastvisit.html();
$(postprofile).append('<span class="user_id">' + userId.slice(2) + '</span>');
}
});
console.log(userId);});
});
-----
PHPBB2 :
طريقة التركيب للنسخة الثانية
ابحث عن الكود التالي
ابحث عن الكود التالي
الكود:
{postrow.displayed.RANK_IMAGE}{postrow.displayed.POSTER_AVATAR}<br /><br />
وضع الكود التالي اسفلة مباشرة
الكود:
<br /> <div class="postprofile-contactt">رقم العضوية:</div><br />
ثم ضع التالي بالجفا مع اختيار المواضيع
الكود:
$(function() {
$('tr.post td:first-child').each(function(){
var userId = $(this).find('strong a').eq(0).attr('href'),
postprofile = $(this).find('.postprofile-contactt').last();
$.get(userId+'stats' , function(d) {
var lastvisit = $('#profile-advanced-details .stats-field:last-child li:last-child', d);
if (lastvisit[0]) {
lastvisit = lastvisit.html();
$(postprofile).append('<span class="user_id">' + userId.slice(2) + '</span>');
}
});
console.log(userId);});
});
AwesomeBB :
ابحث في قالب المواضيع عن التالي
الكود:
<div class="post-author-rpg">
ثم ضع الكود التالي فوقه مباشره
الكود:
<div class="postprofile-contactt">رقم العضوية:</div>
ثم ضع الكود التالي بالجافا واختار المواضيع
الكود:
$(function() {
$('aside.post-aside').each(function(){
var userId = $(this).find('.avatar-big a').eq(0).attr('href'),
postprofile = $(this).find('.postprofile-contactt').last();
$.get(userId+'stats' , function(d) {
var lastvisit = $('div.block-content', d);
if (lastvisit[0]) {
lastvisit = lastvisit.html();
$(postprofile).append('<span class="user_id">' + userId.slice(2) + '</span>');
}
});
console.log(userId);});
});
Invision :
اولا شي ابحث في قالب المواضيع عن التالي
الكود:
<!-- BEGIN profile_field -->
وضع الكود التالي فوقه
الكود:
<div class="postprofile-contactt">رقم العضوية:</div>
ثم ضع كود الجافا التالي واختار المواضيع
الكود:
$(function() {
$('.postprofile').each(function(){
var userId = $(this).find('.postprofile-details a').eq(0).attr('href'),
postprofile = $(this).find('.postprofile-contactt').last();
$.get(userId+'stats' , function(d) {
var lastvisit = $('.box-content.profile .stats-field:last-child li:last-child', d);
if (lastvisit[0]) {
lastvisit = lastvisit.html();
$(postprofile).append('<span class="user_id">' + userId.slice(2) + '</span>');
}
});
console.log(userId);});
});
PHPBB3 :
اذهب الى قالب المواضيع وابحث عن الكود التالي
وضع الكود التالي فوقه مباشرة
ثم ضع الكود التالي بالجافا واختار المواضيع
الكود:
<!-- BEGIN profile_field -->
وضع الكود التالي فوقه مباشرة
الكود:
<div class="postprofile-contactt">رقم العضوية:</div>
ثم ضع الكود التالي بالجافا واختار المواضيع
الكود:
$(function() {
$('.postprofile').each(function(){
var userId = $(this).find('a').eq(0).attr('href'),
postprofile = $(this).find('.postprofile-contactt').last();
$.get(userId+'stats' , function(d) {
var lastvisit = $('#cp-main', d);
if (lastvisit[0]) {
lastvisit = lastvisit.html();
$(postprofile).append('<span class="user_id">' + userId.slice(2) + '</span>');
}
});
console.log(userId);});
});
تم عمل هذا الكود في البداية بواسطة العضو @omarpop23 لاخر زيارة
ثم تم تحويل الكود من اخر زيارة الى رقم العضوية بوسطة العضو il Corvo
ثم تم العمل الكود لباقي الاصدارات بواسطة كونان2000
-----------
وفقكم الله