Help Forum không hiện chỗ viết chủ đề

kOy

Private
Tham gia
03/03/2016
Bài viết
12
Được Like
5
Không biết nói như thế nào... tình hình là mình vừa làm 1 cai Forum vào đang chủ đề thì bị sốc khi nó không hiện chỗ viết ... chả biết làm sao

upload_2016-3-25_11-7-19.png


link : http://forum.mclcgames.com/
 
V

vanphu113

Khách VNXF
Thật xl bạn. Tôi đang dùng điện thoại. Bạn có thể làm theo hướng dẫn sau:
Đầu tiên cài 1 style mới, hoặc vào style mặt định của xenforo, vào tiếp phân template, nhập vào thread_create sau đó copy toàn bộ code trong đấy fand vào template thread create của style lỗi và lưu lại là được.
Thân ái
 
V

vanphu113

Khách VNXF
Bạn vào template thread_create dán code sau vào:
PHP:
<xen:title>{xen:phrase create_thread}</xen:title>

<xen:if is="{$forum.description} AND @threadListDescriptions">
    <xen:description class="baseHtml">{xen:raw $forum.description}</xen:description>
</xen:if>

<xen:navigation>
    <xen:breadcrumb source="$nodeBreadCrumbs" />
</xen:navigation>

<xen:require js="js/xenforo/discussion.js" />

<xen:container var="$head.robots">
    <meta name="robots" content="noindex" /></xen:container>
<xen:container var="$bodyClasses">{xen:helper nodeClasses, $nodeBreadCrumbs, $forum}</xen:container>
<xen:container var="$searchBar.forum"><xen:include template="search_bar_forum_only" /></xen:container>

<form action="{xen:link 'forums/add-thread', $forum}" method="post" id="ThreadCreate"
    class="xenForm Preview AutoValidator"
    data-previewUrl="{xen:link 'forums/create-thread/preview', $forum}"
    data-redirect="on"
>
    <xen:hook name="thread_create">

    <xen:if is="{$visitor.user_id} == 0">
        <dl class="ctrlUnit">
            <dt><label for="ctrl_guestUsername">{xen:phrase name}:</label></dt>
            <dd><input type="text" name="_guestUsername" value="{$visitor.username}" class="textCtrl" /></dd>
        </dl>
   
        <!-- slot: after_guest -->
    </xen:if>

    <xen:include template="helper_captcha_unit" />

    <fieldset>
        <xen:include template="title_prefix_edit">
            <xen:set var="$selectedPrefix">{$prefixId}</xen:set>
            <xen:set var="$idSuffix">thread_create</xen:set>
        </xen:include>
   
        <dl class="ctrlUnit fullWidth surplusLabel">
            <dt><label for="ctrl_title_thread_create">{xen:phrase title}:</label></dt>
            <dd><input type="text" name="title" class="textCtrl titleCtrl" id="ctrl_title_thread_create" maxlength="100" autofocus="true"
                placeholder="{xen:phrase thread_title}..." value="{$title}"
                data-liveTitleTemplate="{xen:phrase create_thread}: <em>%s</em>" /></dd>
        </dl>

        <xen:hook name="thread_create_fields_main" params="{xen:array 'forum={$forum}'}" />

        <dl class="ctrlUnit fullWidth">
            <dt></dt>
            <dd>{xen:raw $editorTemplate}</dd>
        </dl>
    </fieldset>
   
    <!-- slot: after_editor -->
   
    <xen:if is="{$canEditTags}">
        <xen:require js="js/xenforo/tag.js" />
        <dl class="ctrlUnit">
            <dt>{xen:phrase tags}:</dt>
            <dd>
                <input type="text" name="tags" value="{$tags}" class="textCtrl TagInput" data-extra-class="verticalShift" />
                <p class="explain">
                    {xen:phrase multiple_tags_may_be_separated_by_commas}
                    <xen:if is="{$forum.min_tags}">{xen:phrase you_must_specify_at_least_x_tags, 'min={xen:number $forum.min_tags}'}</xen:if>
                </p>
            </dd>
        </dl>
    </xen:if>

    <dl class="ctrlUnit submitUnit">
        <dt></dt>
        <dd>
            <input type="submit" value="{xen:phrase create_thread}" accesskey="s" class="button primary" />
            <xen:include template="attachment_upload_button" />
            <input type="button" value="{xen:phrase preview}..." class="button PreviewButton JsOnly" />
           
            <xen:if is="{$xenOptions.multiQuote}"><input type="button" class="button JsOnly MultiQuoteWatcher"
                value="{xen:phrase insert_quotes}..."
                style="display: none"
                data-href="{xen:link 'threads/multi-quote', {xen:array 'thread_id=1'}, 'formId=#ThreadCreate'}"
                data-cacheOverlay="false" /></xen:if>
        </dd>
    </dl>

    <xen:if is="{$attachmentParams}">
        <dl class="ctrlUnit AttachedFilesUnit">
            <dt>{xen:phrase attached_files}:</dt>
            <dd><xen:include template="attachment_editor">
                <xen:set var="$attachments" value="{$attachmentParams.attachments}" />
            </xen:include></dd>
        </dl>
       
        <!-- slot: after_attachment -->
    </xen:if>
   
    <xen:if is="{$visitor.user_id}">
        <fieldset>
            <dl class="ctrlUnit">
                <dt>{xen:phrase options}:</dt>
                <dd><ul>
                    <li><xen:include template="helper_thread_watch_input" /></li>
                </ul></dd>
            </dl>
   
            <xen:include template="thread_fields_status" />
        </fieldset>
       
        <!-- slot: after_options -->
    </xen:if>

    <xen:hook name="thread_create_fields_extra" params="{xen:array 'forum={$forum}'}" />
   
    <xen:if is="{$canPostPoll}">
        <h3 class="textHeading">{xen:phrase post_poll}</h3>
        <xen:include template="helper_poll_create" />
    </xen:if>
   
    </xen:hook>

    <xen:if is="{$visitor.user_id} OR {$canPostPoll}">
        <dl class="ctrlUnit submitUnit">
            <dt></dt>
            <dd>
                <input type="submit" value="{xen:phrase create_thread}" class="button primary" />
                <input type="button" value="{xen:phrase preview}..." class="button PreviewButton JsOnly" />
            </dd>
        </dl>
    </xen:if>

    <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
</form>
<!--code by hackerpro536-hvngroups.net-->
<xen:comment><xen:include template="editor" /></xen:comment>
 

kOy

Private
Tham gia
03/03/2016
Bài viết
12
Được Like
5
Bạn vào template thread_create dán code sau vào:
PHP:
<xen:title>{xen:phrase create_thread}</xen:title>

<xen:if is="{$forum.description} AND @threadListDescriptions">
    <xen:description class="baseHtml">{xen:raw $forum.description}</xen:description>
</xen:if>

<xen:navigation>
    <xen:breadcrumb source="$nodeBreadCrumbs" />
</xen:navigation>

<xen:require js="js/xenforo/discussion.js" />

<xen:container var="$head.robots">
    <meta name="robots" content="noindex" /></xen:container>
<xen:container var="$bodyClasses">{xen:helper nodeClasses, $nodeBreadCrumbs, $forum}</xen:container>
<xen:container var="$searchBar.forum"><xen:include template="search_bar_forum_only" /></xen:container>

<form action="{xen:link 'forums/add-thread', $forum}" method="post" id="ThreadCreate"
    class="xenForm Preview AutoValidator"
    data-previewUrl="{xen:link 'forums/create-thread/preview', $forum}"
    data-redirect="on"
>
    <xen:hook name="thread_create">

    <xen:if is="{$visitor.user_id} == 0">
        <dl class="ctrlUnit">
            <dt><label for="ctrl_guestUsername">{xen:phrase name}:</label></dt>
            <dd><input type="text" name="_guestUsername" value="{$visitor.username}" class="textCtrl" /></dd>
        </dl>
  
        <!-- slot: after_guest -->
    </xen:if>

    <xen:include template="helper_captcha_unit" />

    <fieldset>
        <xen:include template="title_prefix_edit">
            <xen:set var="$selectedPrefix">{$prefixId}</xen:set>
            <xen:set var="$idSuffix">thread_create</xen:set>
        </xen:include>
  
        <dl class="ctrlUnit fullWidth surplusLabel">
            <dt><label for="ctrl_title_thread_create">{xen:phrase title}:</label></dt>
            <dd><input type="text" name="title" class="textCtrl titleCtrl" id="ctrl_title_thread_create" maxlength="100" autofocus="true"
                placeholder="{xen:phrase thread_title}..." value="{$title}"
                data-liveTitleTemplate="{xen:phrase create_thread}: <em>%s</em>" /></dd>
        </dl>

        <xen:hook name="thread_create_fields_main" params="{xen:array 'forum={$forum}'}" />

        <dl class="ctrlUnit fullWidth">
            <dt></dt>
            <dd>{xen:raw $editorTemplate}</dd>
        </dl>
    </fieldset>
  
    <!-- slot: after_editor -->
  
    <xen:if is="{$canEditTags}">
        <xen:require js="js/xenforo/tag.js" />
        <dl class="ctrlUnit">
            <dt>{xen:phrase tags}:</dt>
            <dd>
                <input type="text" name="tags" value="{$tags}" class="textCtrl TagInput" data-extra-class="verticalShift" />
                <p class="explain">
                    {xen:phrase multiple_tags_may_be_separated_by_commas}
                    <xen:if is="{$forum.min_tags}">{xen:phrase you_must_specify_at_least_x_tags, 'min={xen:number $forum.min_tags}'}</xen:if>
                </p>
            </dd>
        </dl>
    </xen:if>

    <dl class="ctrlUnit submitUnit">
        <dt></dt>
        <dd>
            <input type="submit" value="{xen:phrase create_thread}" accesskey="s" class="button primary" />
            <xen:include template="attachment_upload_button" />
            <input type="button" value="{xen:phrase preview}..." class="button PreviewButton JsOnly" />
          
            <xen:if is="{$xenOptions.multiQuote}"><input type="button" class="button JsOnly MultiQuoteWatcher"
                value="{xen:phrase insert_quotes}..."
                style="display: none"
                data-href="{xen:link 'threads/multi-quote', {xen:array 'thread_id=1'}, 'formId=#ThreadCreate'}"
                data-cacheOverlay="false" /></xen:if>
        </dd>
    </dl>

    <xen:if is="{$attachmentParams}">
        <dl class="ctrlUnit AttachedFilesUnit">
            <dt>{xen:phrase attached_files}:</dt>
            <dd><xen:include template="attachment_editor">
                <xen:set var="$attachments" value="{$attachmentParams.attachments}" />
            </xen:include></dd>
        </dl>
      
        <!-- slot: after_attachment -->
    </xen:if>
  
    <xen:if is="{$visitor.user_id}">
        <fieldset>
            <dl class="ctrlUnit">
                <dt>{xen:phrase options}:</dt>
                <dd><ul>
                    <li><xen:include template="helper_thread_watch_input" /></li>
                </ul></dd>
            </dl>
  
            <xen:include template="thread_fields_status" />
        </fieldset>
      
        <!-- slot: after_options -->
    </xen:if>

    <xen:hook name="thread_create_fields_extra" params="{xen:array 'forum={$forum}'}" />
  
    <xen:if is="{$canPostPoll}">
        <h3 class="textHeading">{xen:phrase post_poll}</h3>
        <xen:include template="helper_poll_create" />
    </xen:if>
  
    </xen:hook>

    <xen:if is="{$visitor.user_id} OR {$canPostPoll}">
        <dl class="ctrlUnit submitUnit">
            <dt></dt>
            <dd>
                <input type="submit" value="{xen:phrase create_thread}" class="button primary" />
                <input type="button" value="{xen:phrase preview}..." class="button PreviewButton JsOnly" />
            </dd>
        </dl>
    </xen:if>

    <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
</form>
<!--code by hackerpro536-hvngroups.net-->
<xen:comment><xen:include template="editor" /></xen:comment>

Cam on ban minh da lam theo nhu nhung gi ban da huong dan nhung ket qua van khong thay doi.. Bay gio minh phai xu li nhu the nao ?
 
  • Like
Reactions: THB

kOy

Private
Tham gia
03/03/2016
Bài viết
12
Được Like
5
Cam on rat nhieu da ho tro minh da up style xml len lai va xoa style xml cu vay la da giai quyet xong
 

kOy

Private
Tham gia
03/03/2016
Bài viết
12
Được Like
5
@Phú ơi fix xong lỗi đó lòi thêm lỗi mới T.T cái Thread Prefixes tạo xong nó tự đổi thành cai khác. Kiễu như tạo thông báo thì save xong nó thành share deleta tạo lai nó ra thành view .... không viết phải làm ntn để fix
upload_2016-3-26_3-8-57.png

upload_2016-3-26_3-9-9.png
 

kOy

Private
Tham gia
03/03/2016
Bài viết
12
Được Like
5
@Phú ơi fix xong lỗi đó lòi thêm lỗi mới T.T cái Thread Prefixes tạo xong nó tự đổi thành cai khác. Kiễu như tạo thông báo thì save xong nó thành share deleta tạo lai nó ra thành view .... không viết phải làm ntn để fix
View attachment 10391
View attachment 10392
lúc trước làm con 1.5.6 bi lỗi này nên xuống 1.5.5 lúc đầu bình thường bây giờ bị lại :/
 
  • Like
Reactions: THB

THB

Founder
Thành viên BQT
Tham gia
25/02/2015
Bài viết
6,646
Được Like
3,931
Do cài addon nào đó rồi.
 

Hướng dẫn sử dụng

XenForo 1 XenForo 2
Translate by PVS

Dịch vụ XenForo của VNXF

Mobile/Zalo: 0906081284

Telegram: anhanhxf

Chỉ nhận web nội dung lành mạnh

Nhà Tài Trợ

Mút Xốp Không Gian
Mút Sofa Không Gian
Top Bottom