هاست لینوکس

آخرین بسته‌ی MyBB: نسخه‌ی 1.8.27 MyBB منتشر شد


امتیاز موضوع:
  • 0 رأی - میانگین امتیازات: 0
  • 1
  • 2
  • 3
  • 4
  • 5
مشکل با آواتور و کش اومدن انجمن
#1
[تصویر:  1294291713.gif]



کد showthread


کد:


<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
    var quickdelete_confirm = "{$lang->quickdelete_confirm}";
// -->
</script>
<script type="text/javascript" src="jscripts/thread.js?ver=1600"></script>
<script type="text/javascript" src="jscripts/fitonpage.js?ver=210"></script>
<script type="text/javascript">
<!--
    var fitonpage_on = "{$mybb->settings['g33k_fitonpage_enabled']}";
    var fitonpage_resize = "{$mybb->settings['g33k_fitonpage_resize']}";
    var fitonpage_fluid = "{$mybb->settings['g33k_fitonpage_fluid']}";
    var fitonpage_topbar_resized = "{$lang->fitonpage_topbar_resized}";
    var fitonpage_topbar_full = "{$lang->fitonpage_topbar_full}";
    var fitonpage_topbar_text_class = "{$mybb->settings['g33k_fitonpage_topbar_text_class']}";
    var fitonpage_topbar_bground = "{$mybb->settings['g33k_fitonpage_topbar_bground']}";
    var fitonpage_topbar_icon = "{$mybb->settings['g33k_fitonpage_topbar_icon']}";
    var fitonpage_location = "showthread";
-->
</script>
</head>
<body>
    {$header}
{$topbar}
    {$pollbox}<!-- TopicStats --><br />

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-top-width:1;">
    <tr>
        <td class="trow1" width="100%"><span class="smalltext"><strong>{$thread['subject']}</strong></span></span><div class="smalltext float_left">{$lang->welcome_current_time}</div></td>
    </tr>
    <tr>
        <td class="trow2">
            <table border="0" width="100%">
                <tr class="smalltext topstats">
                    <td>
<div><a href="printthread.php?tid={$tid}"><img src="{$mybb->settings['bburl']}/images/printable.gif" class="topstateicon" border="0"> {$lang->view_printable}</a></div>
<div><a href="sendthread.php?tid={$tid}"><img src="{$mybb->settings['bburl']}/images/fw_pm.gif" class="topstateicon" border="0"> {$lang->send_thread}</a></div>
                    </td>
                    <td>
<div><a href="showthread.php?tid={$tid}&page=last"><img src="{$mybb->settings['bburl']}/images/mini_last.gif" class="topstateicon" border="0"> نمایش آخرین ارسال این موضوع</a></div>
<div><a href="./ratethread.php?tid={$thread['tid']}&amp;rating=5&amp;my_post_key={$mybb->post_code}" onClick = 'var parameterString = this.href.replace(/.*\?(.*)/, "$1");return Rating.add_rating(parameterString);return false;'><img src="{$mybb->settings['bburl']}/images/mini_add.gif" class="topstateicon" border="0"> اهدای بیشترین امتیاز به این موضوع</a></div>
                    </td>
                    <td>
<div><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}&amp;my_post_key={$mybb->post_code}"><img src="{$mybb->settings['bburl']}/images/{$add_remove_subscription}subscription.gif" class="topstateicon" border="0"> {$add_remove_subscription_text}</a></div>
<div>
<div style="padding-top:3px; border-bottom: 1px #2A4956 solid; float: right;">
<a rel="nofollow" style="text-decoration:none;" href="http://www.mister-wong.com/" onclick="window.open('http://www.mister-wong.com/index.php?action=addurl&amp;bm_url='+encodeURIComponent(location.href)+'&amp;bm_notice=&amp;bm_description='+encodeURIComponent(document.title)+'&amp;bm_tags=');return false;" title="افزودن به: Mr. Wong"> <img style="padding-bottom:1px;" src="images/wong.gif" alt="افزودن به: Mr. Wong" name="wong" border="0" id="wong"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.linkarena.com/" onclick="window.open('http://linkarena.com/bookmarks/addlink/?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)+'&amp;desc=&amp;tags=');return false;" title="افزودن به: Linkarena"> <img style="padding-bottom:1px;" src="images/linkarena.gif" alt="افزودن به: Linkarena" name="Linkarena" border="0" id="Linkarena"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://digg.com/" onclick="window.open('http://digg.com/submit?phase=2&amp;url='+encodeURIComponent(location.href)+'&amp;bodytext=&amp;tags=&amp;title='+encodeURIComponent(document.title));return false;" title="افزودن به: Digg"> <img style="padding-bottom:1px;" src="images/digg.gif" alt="افزودن به: Digg" name="Digg" border="0" id="Digg"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://del.icio.us/" onclick="window.open('http://del.icio.us/post?v=2&amp;url='+encodeURIComponent(location.href)+'&amp;notes=&amp;tags=&amp;title='+encodeURIComponent(document.title));return false;" title="افزودن به: Del.icio.us"> <img style="padding-bottom:1px;" src="images/del.gif" alt="افزودن به: Del.icio.us" name="Delicious" border="0" id="Delicious"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.facebook.com/" onclick="window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(location.href)+'&amp;t='+encodeURIComponent(document.title));return false;" title="افزودن به: Facebook"> <img style="padding-bottom:1px;" src="images/facebook.gif" alt="افزودن به: Facebook" name="Facebook" border="0" id="Facebook"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.furl.net/" onclick="window.open('http://www.furl.net/storeIt.jsp?u='+encodeURIComponent(location.href)+'&amp;keywords=&amp;t='+encodeURIComponent(document.title));return false;" title="افزودن به: Furl"> <img style="padding-bottom:1px;" src="images/furl.gif" alt="افزودن به: Furl" name="Furl" border="0" id="Furl"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.yahoo.com/" onclick="window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(document.title)+'&amp;d=&amp;tag=&amp;u='+encodeURIComponent(location.href));return false;" title="افزودن به: Yahoo"> <img style="padding-bottom:1px;" src="images/yahoo.gif" alt="افزودن به: Yahoo" name="Yahoo" border="0" id="Yahoo"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.spurl.net/" onclick="window.open('http://www.spurl.net/spurl.php?v=3&amp;tags=&amp;title='+encodeURIComponent(document.title)+'&amp;url='+encodeURIComponent(document.location.href));return false;" title="افزودن به: Spurl"> <img style="padding-bottom:1px;" src="images/spurl.gif" alt="افزودن به: Spurl" name="Spurl" border="0" id="Spurl"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.google.com/" onclick="window.open('http://www.google.com/bookmarks/mark?op=add&amp;hl=fa&amp;bkmk='+encodeURIComponent(location.href)+'&amp;annotation=&amp;labels=&amp;title='+encodeURIComponent(document.title));return false;" title="افزودن به: Google"> <img style="padding-bottom:1px;" src="images/google.gif" alt="افزودن به: Google" name="Google" border="0" id="Google"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.blinklist.com/" onclick="window.open('http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Tag=&amp;Url='+encodeURIComponent(location.href)+'&amp;Title='+encodeURIComponent(document.title));return false;" title="افزودن به: Blinklist"> <img style="padding-bottom:1px;" src="images/blinklist.gif" alt="افزودن به: Blinklist" name="Blinklist" border="0" id="Blinklist"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://blogmarks.net/" onclick="window.open('http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url='+encodeURIComponent(location.href)+'&amp;content=&amp;public-tags=&amp;title='+encodeURIComponent(document.title));return false;" title="افزودن به: Blogmarks"> <img style="padding-bottom:1px;" src="images/blogmarks.gif" alt="افزودن به: Blogmarks" name="Blogmarks" border="0" id="Blogmarks"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.diigo.com/" onclick="window.open('http://www.diigo.com/post?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)+'&amp;tag=&amp;comments='); return false;" title="افزودن به: Diigo"> <img style="padding-bottom:1px;" src="images/diigo.gif" alt="افزودن به: Diigo" name="Diigo" border="0" id="Diigo"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.social-bookmark-script.com/social.bookmarking.htm" target="_Blank" title="Information"> <img style="padding-bottom:1px;" src="images/what.gif" alt="Information" name="Information" border="0" id="Information"> </a>
</div>
</div>
                    </td>
                </tr>
            </table>
<table width="100%" style="line-height:20px">
<tr class="smalltext">

<td  width="56%" style="line-height:31px"><fieldset><legend>{$lang->users_browsing_thread}</legend> <span class="smalltext"> {$onlinemembers}{$onlinesep}{$invisonline}{$onlinesep2}{$guestsonline}</span>
</fieldset> </td>
<td align="center" width="11%" style="line-height:31px"><fieldset><legend>{$lang->author}:</legend>  <a href="member.php?action=profile&uid={$thread['uid']}">{$thread['username']}</a></fieldset></td>
<td align="center" width="11%" style="line-height:31px"><fieldset><legend>{$lang->lastpost}:</legend>  <a href="member.php?action=profile&uid={$thread['lastposteruid']}">{$thread['lastposter']}</a></fieldset></td>
<td align="center" width="11%" style="line-height:31px"><fieldset><legend>{$lang->replies}</legend> {$postcount}</fieldset></td>
<td align="center" width="11%" style="line-height:31px"><fieldset><legend>{$lang->views}</legend> {$thread['views']}</fieldset></td>
</tr>            </table>
        </td>
    </tr>
</table>          

<br />
<!-- /TopicStats -->
    <div class="float_right">
        {$multipage}

    </div>
    <div class="float_left">
        {$newreply}
    </div>
    {$ratethread}
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0;">
        <tr>
            <td class="thead" colspan="2">
                <div style="float: left;">
                    <span class="smalltext"><strong><a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
                </div>
                <div>
                    <strong>{$thread['threadprefix']}{$thread['subject']}</strong>
                </div>
            </td>
        </tr>
        {$classic_header}
    </table>
    <div id="posts">
        {$posts}
    </div>
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-top-width: 0;">
        <tr>
            <td colspan="2" class="tfoot">
                {$search_thread}
                <div>
                    <strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
                </div>
            </td>
        </tr>
    </table>
    <div class="float_right">
        {$multipage}
    </div>
    <div style="padding-top: 4px;" class="float_left">
        {$newreply}
    </div>
    <br style="clear: both;" />
    {$quickreply}
    {$threadexbox}
    {$similarthreads}
    <br />
    <div class="float_right">
        <ul class="thread_tools">
            <li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
            <li class="sendthread"><a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></li>
            <li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li>
        </ul>
    </div>

    <div class="float_left" style="text-align: left;">
        {$moderationoptions}
        {$forumjump}
    </div>
    <br style="clear: both;" />
    {$usersbrowsing}
    {$footer}
</body>
</html>



کد postbit


کد:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    <tbody>
        <tr>
            <td class="tcat">
                <div class="float_right smalltext">
                    {$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
                </div>
                {$post['posturl']}
            </td>
        </tr>

        <tr>
            <td class="trow1 {$unapproved_shade}">
                <table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
                    <tr>
                        <td class="post_avatar" width="1" style="padding-left: 10px;">
                            {$post['useravatar']}
                        </td>
                        <td class="post_author">
                            <strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
                            <span class="smalltext">
                                {$post['usertitle']}<br />
                                {$post['userstars']}
                                {$post['groupimage']}
                            </span>
                        </td>
                        <td class="smalltext post_author_info" width="165">
                            {$post['user_details']}
                        </td>
                    </tr>
                </table>
            </td>
        </tr>

        <tr>
            <td class="trow2 post_content {$unapproved_shade}">
                <span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>

                <div class="post_body" id="pid_{$post['pid']}">
                    {$post['message']}
                </div>
                {$post['attachments']}
                {$post['signature']}

                <div class="post_meta" id="post_meta_{$post['pid']}">
                {$post['iplogged']}
                </div>
            </td>
        </tr>

        <tr>
            <td class="trow1 post_buttons {$unapproved_shade}">
                <div class="author_buttons float_right">
                    {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
                </div>
                <div class="post_management_buttons float_left">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['thanks']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
                </div>
            </td>
        </tr>{$post['thxdsp_inline']}
    </tbody>
</table>{$post['thxdsp_outline']}


آواتورو درست کردم ولی دوتای دیگه مونده
پاسخ
#2
به نظر میاد مشکل از همین کدهایی هستیش که گذاشتی.
بهترین کار اینه که روشون کلیک کنی و بزنی بازگردانی به نسخه اصل یا یه جوری کد های درستشو پیدا کنی.
دیگه وقت مدیریت سایت و انجمن رو ندارم و از امروز به بعد فقط کارم کمک تو این پشتیبانی هست

Smile
پاسخ
#3
مشکل از پلاگین پاسخ سریع پیشرفته است

اینم کدshowthread_quickreply

کد:
<br />
<form method="post" action="newreply.php?tid={$tid}&amp;processed=1" name="quick_reply_form" id="quick_reply_form">
    <input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
    <input type="hidden" name="subject" value="RE: {$thread['subject']}" />
    <input type="hidden" name="action" value="do_newreply" />
    <input type="hidden" name="posthash" value="{$posthash}" id="posthash" />
    <input type="hidden" name="quoted_ids" value="" id="quoted_ids" />
    <input type="hidden" name="lastpid" id="lastpid" value="{$last_pid}" />
    <input type="hidden" name="from_page" value="{$page}" />
    <input type="hidden" name="tid" value="{$tid}" />
    <input type="hidden" name="method" value="quickreply" />

    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
        <thead>
            <tr>
                <td class="thead" colspan="2">
                    <div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickreply']}.gif" id="quickreply_img" class="expander" alt="[-]" title="[-]" /></div>
                    <div><strong>{$lang->quick_reply}</strong></div>
                </td>
            </tr>
        </thead>
        <tbody style="{$collapsed['quickreply_e']}" id="quickreply_e">
            <tr>
                <td class="trow1" valign="top" width="15%">
                    <strong>{$lang->message}</strong><br />
                    <span class="smalltext">{$lang->message_note}<br /><br />
                    <label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" {$postoptionschecked['signature']} />&nbsp;<strong>{$lang->signature}</strong></label><br />
                    <label><input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="1" />&nbsp;<strong>{$lang->disable_smilies}</strong></label>{$closeoption}</span><br />{$clickablesmilies}
                </td>
                <td class="trow1">
                    <div style="width: 95%">
                        <textarea style="width: 100%; padding: 2px; margin: 0;" rows="18" cols="20" name="message" id="message" tabindex="1"></textarea>
{$codebuttons}
                    </div>
                    <div class="editor_control_bar" style="width: 95%; padding: 4px; margin-top: 3px; display: none;" id="quickreply_multiquote">
                        <span class="smalltext">
                            {$lang->quickreply_multiquote_selected} <a href="./newreply.php?tid={$tid}&amp;load_all_quotes=1" onclick="return Thread.loadMultiQuoted();">{$lang->quickreply_multiquote_now}</a> {$lang->or} <a href="javascript:Thread.clearMultiQuoted();">{$lang->quickreply_multiquote_deselect}</a>.
                        </span>
                    </div>
                </td>
            </tr>
            {$captcha}
            <tr>
                <td colspan="2" align="center" class="tfoot"><input type="submit" class="button" value="{$lang->post_reply}" tabindex="2" accesskey="s" id="quick_reply_submit" /> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="3" /></td>
            </tr>
        </tbody>
    </table>
</form>



میشه بگین باید کدومو تغیر بدم

در مورد اواتور

کد:
<a href="{$post['profilelink_plain']}"><img src="{$post['avatar']}" alt="" {$avatar_width_height} /></a>


وقتی اینو به این تغیر میدم
کد:
<a href="{$post['profilelink_plain']}"><img src="{$post['avatar']}" alt="" 200*200 /></a>


تغیر میدم کار نمیکنه میشه بگید مشکلش از کجاست ؟؟Huh
شماره 1رو درست کردم .

Post Bit Templates>>>>
postbit_online
و
postbit_offline

پاسخ
#4
شما میخوای اندازه آوتارتو مشخص کنی ؟
اگه آره از اینجا درست نمیشه باید از توی تنظیمات درستش کنی.
دیگه وقت مدیریت سایت و انجمن رو ندارم و از امروز به بعد فقط کارم کمک تو این پشتیبانی هست

Smile
پاسخ
#5
(۱۳۸۹/۱۰/۱۵، ۲۳:۱۴:۴۷ عصر)parsilu نوشته است: شما میخوای اندازه آوتارتو مشخص کنی ؟
اگه آره از اینجا درست نمیشه باید از توی تنظیمات درستش کنی.


من هم اینکا رو کردم ولی نشد .

-----------------------------------------------------

در مورد کش اومدن انجمن

من از اموزشی که توی این پست بود استفاده کردم ودرست شد.
http://community.mybbiran.com/thread-3013-page-3.html
پاسخ
#6
اواتور حل شد


من از این کد توی postbit_avatar استفاده کردم

کد:
<a href="{$post['profilelink_plain']}"><img src="{$post['avatar']}" alt="" height="250" width="" /></a>


Blush

پاسخ
 سپاس شده توسطشماره مجازی (۱۴۰۱/۸/۲۶، ۰۱:۵۴:۳۱ صبح) ، گراف مسنجر (۱۴۰۱/۱۰/۳، ۰۴:۱۶:۱۹ صبح) ، چارتر ۴۲۴ (۱۴۰۲/۹/۱۲، ۱۵:۱۸:۲۵ عصر)


پرش به انجمن:


کاربرانِ درحال بازدید از این موضوع: 1 مهمان