مرجع پارسی MyBB

نسخه‌ی کامل: مشکل با پلاگین مدال !
شما درحال مشاهده‌ی نسخه‌ی متنی این صفحه می‌باشید. مشاهده‌ی نسخه‌ی کامل با قالب‌بندی مناسب.
سلام دوستان ...

ببخشید یک مشکلی دارم !

من پلاگین مدال ها رو نصب کردم اما یک مشکلی که داره اینه که مدال ها در قسمت اطلاعات کاربر مانند تصویر زیر قرار میگیره :

[تصویر:  w687_67.jpg]


این باعث شده که من مدال با تصویر متوسط رو قرار میدم کلا این قسمت بهم ریزه !

میخواستم ببینم چه کد (یا متغیری) رو تو قسمت قالب ها > پروفایل کاربران قرار بدم تا این قسمت مثل تصویر زیر برای خودش کادر جداگانه داشته باشه :

[تصویر:  p9837_65.jpg]

و مدال ها زیر هم قرار بگیرند ... نام و توضیحاتشونم جلوشون نوشته شه ...

چیکار باید بکم ؟؟؟

سپاس از توجهتون ... Blush
اگه از Award System v2.0 استفاده میکنی متغییرش {$award_box} هست گه میتونی توی member_profile جاش رو عوض کنی .

از Profile tab استفاده میکنی ؟
سلام ...

نه از profile tab استفاده نمیکنم ... ولی پلاگین مدالم Award System v2.0 هست .

بله میدونم متغیرش همینه اما نمیدونم چرا وقتی این متغیر رو میخوام توی یک کادر جدید و جداگونه بذارم قالب بهم میریزه و انگار اصلا این متغیر برای یک کادر جدید نیست ! و فقط میتونه توی همون قسمت مشخصات بعنوان یک زیرمجموعه قرار بگیره !

میخواستم بدونم متغیر دیگه ای نداره برای کادر جداگونه ؟؟ Huh


سپاس از توجهتون ... Blush
دوستان کسی نیست منو راهنمایی کنه ؟؟؟؟؟؟؟ Confused
منم چند روز پیش نصب کردم همینجوری بود ، کدهای قسمت member_profile رو بزار اینجا من یه تغییر کوچیک میدم شاید بهتر شد .
بسیار ممنون میشم اگه بتونید برام حلش کنید و برای خودش یک کادر جداگونه داشته باشه ... ممنون

اینم کل کد member_profile

کد php:
<html>
<
head>
<
title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{
$headerinclude}
{
$profiledesigncss}
</
head>
<
body>
{
$header}
{
$profiledesigneditor}
<
div id="profile-container">



<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
<
tr>
<
td class="trow1">
<
table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="trow1" width="75%">
<
span class="largetext"><strong>{$formattedname}</strong></span><br />
<
span class="smalltext">
({
$usertitle})<br />
{
$groupimage}
{
$userstars}<br />
<
br />
<
strong>{$lang->registration_date}</strong> {$memregdate}<br />
<
strong>{$lang->date_of_birth}</strong> {$membday} {$membdayage}<br />
<
strong>{$lang->local_time}</strong> {$localtime}<br />
<
strong>{$lang->postbit_status}</strong> {$online_status}

{
$buddy_options


</
span>
</
td><td width="25%" align="left" valign="middle">{$avatar}</td></tr></table>
</
td>
</
tr>
{
$awaybit}
{
$last_visit}
</
table>
<
br />
<
table width="100%" cellspacing="0" cellpadding="0" border="0" align="right">
<
tr>
<
td width="50%" valign="top">
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
<
tr>
<
td colspan="2" class="thead"><strong>{$lang->users_forum_info}</strong></td>
</
tr>
<
tr>
<
td class="trow1"><strong>{$lang->joined}</strong></td>
<
td class="trow1">{$memregdate}</td>
</
tr>
<
tr>
<
td class="trow2"><strong>{$lang->lastvisit}</strong></td>
<
td class="trow2">{$memlastvisitdate} {$memlastvisittime}</td>
</
tr>
<
tr>
<
td class="trow1"><strong>{$lang->total_posts}</strong></td>
<
td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> &mdash; <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</span></td>
</
tr>
<
tr>
<
td class="trow2"><strong>{$lang->timeonline}</strong></td>
<
td class="trow2">{$timeonline}</td>
</
tr>
{
$reputation}
{
$award_box}



{
$warning_level}{$newpoints_shop_profile}{$newpoints_profile}<!-- ProfileComments -->{$pf_statistics}<!-- /ProfileComments -->
{
$showcredit}
{
$showcredit}
</
table>
<
br />
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
<
tr>
<
td colspan="2" class="thead"><strong>{$lang->users_contact_details}</strong></td>
</
tr>
<
tr>
<
td class="trow1" width="40%"><strong>{$lang->homepage}</strong></td>
<
td class="trow1">{$website}</td>
</
tr>
{
$sendemail}
<
tr>
<
td class="{$bgcolors['pm']}"><strong>{$lang->pm}</strong></td>
<
td class="{$bgcolors['pm']}"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a></td>
</
tr>
<
tr>
<
td class="{$bgcolors['yahoo']}"><strong>{$lang->yahoo_id}</strong></td>
<
td class="{$bgcolors['yahoo']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a></td>
</
tr>
</
table>

{
$Propaganda}

<
br />

{
$buddylist}{$modoptions}


{
$adminoptions}
</
td>

<
td width="50%" valign="top">
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
<
table width="50%" cellspacing="0" cellpadding="0" border="0" align="left">
{
$profilefields}
{
$signature}
</
table>
</
table>
</
td>




<
table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">

<!-- 
ProfileComments -->{$comments_index}<!-- /ProfileComments -->
</
table>


</
td>
</
tr>

</
div>
{
$footer}


</
body>
</
html
داداش من بهتر از این چیزی که توی عکس زیر میبینی نتونستم در بیارم :

[تصویر:  81652152811461363602.jpg]


کد:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
{$profiledesigncss}
</head>
<body>
{$header}
{$profiledesigneditor}
<div id="profile-container">



<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1">
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="trow1" width="75%">
<span class="largetext"><strong>{$formattedname}</strong></span><br />
<span class="smalltext">
({$usertitle})<br />
{$groupimage}
{$userstars}<br />
<br />
<strong>{$lang->registration_date}</strong> {$memregdate}<br />
<strong>{$lang->date_of_birth}</strong> {$membday} {$membdayage}<br />
<strong>{$lang->local_time}</strong> {$localtime}<br />
<strong>{$lang->postbit_status}</strong> {$online_status}

{$buddy_options}


</span>
</td><td width="25%" align="left" valign="middle">{$avatar}</td></tr></table>
</td>
</tr>
{$awaybit}
{$last_visit}
</table>
<br />
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="right">
<tr>
<td width="50%" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td colspan="2" class="thead"><strong>{$lang->users_forum_info}</strong></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->joined}</strong></td>
<td class="trow1">{$memregdate}</td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->lastvisit}</strong></td>
<td class="trow2">{$memlastvisitdate} {$memlastvisittime}</td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->total_posts}</strong></td>
<td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> &mdash; <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</span></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->timeonline}</strong></td>
<td class="trow2">{$timeonline}</td>
</tr>
{$reputation}




{$warning_level}{$newpoints_shop_profile}{$newpoints_profile}<!-- ProfileComments -->{$pf_statistics}<!-- /ProfileComments -->
{$showcredit}
{$showcredit}
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td colspan="2" class="thead"><strong>{$lang->users_contact_details}</strong></td>
</tr>
<tr>
<td class="trow1" width="40%"><strong>{$lang->homepage}</strong></td>
<td class="trow1">{$website}</td>
</tr>
{$sendemail}
<tr>
<td class="{$bgcolors['pm']}"><strong>{$lang->pm}</strong></td>
<td class="{$bgcolors['pm']}"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a></td>
</tr>
<tr>
<td class="{$bgcolors['yahoo']}"><strong>{$lang->yahoo_id}</strong></td>
<td class="{$bgcolors['yahoo']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a></td>
</tr>
</table>

{$Propaganda}

<br />

{$buddylist}{$modoptions}


{$adminoptions}
</td>

<td width="50%" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<table width="50%" cellspacing="0" cellpadding="0" border="0" align="left">
{$profilefields}
{$signature}
</table>
</table>
</td>




<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">

<!-- ProfileComments -->{$comments_index}<!-- /ProfileComments -->
</table>

<table class="tborder" style="margin-top: 5px;" border="0" cellpadding="4" cellspacing="1">
<tbody>
<tr><td class="thead">
<div class="smalltext" style="text-align: right; font-weight: bolder;">مدال ها</div>
</td></tr>

<tr>
<td class="trow2 post_content ">
<div style="text-align: center;"><table style="line-height: 60px;" width="100%">
<tbody><tr>

{$award_box}

</tr>
</tbody></table>

</div>
</td></tr></tbody></table>

</td>
</tr>

</div>
{$footer}


</body>
</html>
مررررسی .... دستت درد نکنه داداش ... Blush

اگه کسی از دوستان میدونی که چیکار کنم تا ستونی شه ممنون میشم راهنماییم کنه ... مررررررسی ... Blush

یک مشکلی توی کد جدید هست ... من این کد رو قرار دادم اما به شکل زیر بود و با این تصویری که گذاشتین فرق میکنه : و نمیشه یکاری کنین این بخش مدال بالاتر از یادداشت ها و سمت راست باشه ؟؟ این کد وسط صفحه هست و کلا بهم میریزه پروفایل رو ...

[تصویر:  b8871_345687.jpg]

و یک مشکل دیگه هم پیش اومد ... کدش زیر کد یادداشت ها بود و من آوردم بالای یادداشت ها اما بعضی از منو ها به هم چسبیدن ...

مثل تصویر زیر ... چیکار کنم منو ها از هم جدا شن ؟؟؟؟؟؟

[تصویر:  p135_556.jpg]

[تصویر:  v2282_679.jpg]


داداش اون قسمت چسبیدگی بالا مربوط به کدی که من گذاشتم نیست چون کدی که شما به من دادی هم همین مشکل رو داشت ولی مال پایین رو تغییر بدم تست کن ببین مشکلش حل شده :

کد:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
{$profiledesigncss}
</head>
<body>
{$header}
{$profiledesigneditor}
<div id="profile-container">



<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1">
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="trow1" width="75%">
<span class="largetext"><strong>{$formattedname}</strong></span><br />
<span class="smalltext">
({$usertitle})<br />
{$groupimage}
{$userstars}<br />
<br />
<strong>{$lang->registration_date}</strong> {$memregdate}<br />
<strong>{$lang->date_of_birth}</strong> {$membday} {$membdayage}<br />
<strong>{$lang->local_time}</strong> {$localtime}<br />
<strong>{$lang->postbit_status}</strong> {$online_status}

{$buddy_options}


</span>
</td><td width="25%" align="left" valign="middle">{$avatar}</td></tr></table>
</td>
</tr>
{$awaybit}
{$last_visit}
</table>
<br />
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="right">
<tr>
<td width="50%" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td colspan="2" class="thead"><strong>{$lang->users_forum_info}</strong></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->joined}</strong></td>
<td class="trow1">{$memregdate}</td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->lastvisit}</strong></td>
<td class="trow2">{$memlastvisitdate} {$memlastvisittime}</td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->total_posts}</strong></td>
<td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> &mdash; <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</span></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->timeonline}</strong></td>
<td class="trow2">{$timeonline}</td>
</tr>
{$reputation}


{$warning_level}{$newpoints_shop_profile}{$newpoints_profile}<!-- ProfileComments -->{$pf_statistics}<!-- /ProfileComments -->
{$showcredit}
{$showcredit}
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td colspan="2" class="thead"><strong>{$lang->users_contact_details}</strong></td>
</tr>
<tr>
<td class="trow1" width="40%"><strong>{$lang->homepage}</strong></td>
<td class="trow1">{$website}</td>
</tr>
{$sendemail}
<tr>
<td class="{$bgcolors['pm']}"><strong>{$lang->pm}</strong></td>
<td class="{$bgcolors['pm']}"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a></td>
</tr>
<tr>
<td class="{$bgcolors['yahoo']}"><strong>{$lang->yahoo_id}</strong></td>
<td class="{$bgcolors['yahoo']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a></td>
</tr>
</table>

{$Propaganda}

<br />

{$buddylist}{$modoptions}


{$adminoptions}
</td>

<td width="50%" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<table width="50%" cellspacing="0" cellpadding="0" border="0" align="left">
{$profilefields}
{$signature}
</table>
</table>
</td>




<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">

<!-- ProfileComments -->{$comments_index}<!-- /ProfileComments -->
</table>

<table class="tborder" style="margin-top: 5px;" border="0" cellpadding="4" cellspacing="1">
<tbody>
<tr><td class="thead">
<div class="smalltext" style="text-align: right; font-weight: bolder;">مدال ها</div>
</td></tr>

<tr>
<td class="trow2 post_content ">
<div style="text-align: center;"><table style="line-height: 60px;" width="100%">
<tbody><tr>

{$award_box}

</tr>
</tbody></table>

</div>
</td></tr></tbody></table>

</td>
</tr>

</div>
{$footer}


</body>
</html>

این یکی رو هم تست کن از بالایی بهتر هست :

کد:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
{$profiledesigncss}
</head>
<body>
{$header}
{$profiledesigneditor}
<div id="profile-container">



<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1">
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="trow1" width="75%">
<span class="largetext"><strong>{$formattedname}</strong></span><br />
<span class="smalltext">
({$usertitle})<br />
{$groupimage}
{$userstars}<br />
<br />
<strong>{$lang->registration_date}</strong> {$memregdate}<br />
<strong>{$lang->date_of_birth}</strong> {$membday} {$membdayage}<br />
<strong>{$lang->local_time}</strong> {$localtime}<br />
<strong>{$lang->postbit_status}</strong> {$online_status}

{$buddy_options}


</span>
</td><td width="25%" align="left" valign="middle">{$avatar}</td></tr></table>
</td>
</tr>
{$awaybit}
{$last_visit}
</table>
<br />
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="right">
<tr>
<td width="50%" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td colspan="2" class="thead"><strong>{$lang->users_forum_info}</strong></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->joined}</strong></td>
<td class="trow1">{$memregdate}</td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->lastvisit}</strong></td>
<td class="trow2">{$memlastvisitdate} {$memlastvisittime}</td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->total_posts}</strong></td>
<td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> &mdash; <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</span></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->timeonline}</strong></td>
<td class="trow2">{$timeonline}</td>
</tr>
{$reputation}


{$warning_level}{$newpoints_shop_profile}{$newpoints_profile}<!-- ProfileComments -->{$pf_statistics}<!-- /ProfileComments -->
{$showcredit}
{$showcredit}
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td colspan="2" class="thead"><strong>{$lang->users_contact_details}</strong></td>
</tr>
<tr>
<td class="trow1" width="40%"><strong>{$lang->homepage}</strong></td>
<td class="trow1">{$website}</td>
</tr>
{$sendemail}
<tr>
<td class="{$bgcolors['pm']}"><strong>{$lang->pm}</strong></td>
<td class="{$bgcolors['pm']}"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a></td>
</tr>
<tr>
<td class="{$bgcolors['yahoo']}"><strong>{$lang->yahoo_id}</strong></td>
<td class="{$bgcolors['yahoo']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a></td>
</tr>
</table>

{$Propaganda}

<br />

{$buddylist}

<table class="tborder" style="margin-top: 5px;" border="0" cellpadding="4" cellspacing="1">
<tbody>
<tr><td class="thead">
<div class="smalltext" style="text-align: right; font-weight: bolder;">مدال ها</div>
</td></tr>

<tr>
<td class="trow2 post_content ">
<div style="text-align: center;"><table style="line-height: 60px;" width="100%">
<tbody><tr>

{$award_box}

</tr>
</tbody></table>

</div>
</td></tr></tbody></table>

{$modoptions}


{$adminoptions}
</td>

<td width="50%" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<table width="50%" cellspacing="0" cellpadding="0" border="0" align="left">
{$profilefields}
{$signature}
</table>
</table>
</td>




<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">

<!-- ProfileComments -->{$comments_index}<!-- /ProfileComments -->
</table>


</td>
</tr>

</div>
{$footer}


</body>
</html>

سلام ...

داداش ممنون به کارم اومد اینجوری عالی شد ... راستی من یه کد پیدا کردم که همونجوری هست که من میخوام ولی وقتی این کدو میزارم کلا بهم میریزه قالبم ... راستش کدش نیاز داره که یکم دستکاری شه و یک سری متغیر هم میخواد من نمیدونم اینا چین ...

ببین چیزی از این کد ها دستگیرت میشه ؟؟؟

ممنون میشم اگه چیزی دستگیرت شد برام بذاری ... Blush اگرم نشد فدای سرت Smile

کد ها :


کد php:
<!-- startmember_profile_ougc_awards -->
<
br />
<
table border="0" cellspacing="1" cellpadding="4" class="tborder">
<
tr>
<
td class="thead" colspan="2"><a style="float:right;" href="awards.php?action=send&amp;uid={$memprofile['uid']}">[مشاهده]</a><strong>مدال ها </strong></td>
</
tr>
<!-- 
startmember_profile_ougc_awards_row -->
<
tr>
    <
td class="tcat" rowspan="2" width="1"
        
{$award_box}
&
nbsp;       </td>
    <
td class="trow2 smalltext" >
        <
span style="float:right;">دیروز <i>در</i۰۷:۵۷ عصر</spanنشان طلا 
    
</td>
</
tr>
<
tr>
    <
td class="trow2" >
        {
reason}
    </
td>
</
tr>
<!-- 
endmember_profile_ougc_awards_row -->
</
table>

<!-- 
endmember_profile_ougc_awards -->