Balasan Forum telah dibuat

Melihat 7 balasan - 1 sampai 7 (dari total 7)
  • Pencetus Utas Munta Pas

    (@munta-pas)

    Alhamdulillah sudah ketemu masalahnya. hasil ngutak ngatik. 😀

    Pencetus Utas Munta Pas

    (@munta-pas)

    setelah itu saya menambahkan kode di text edito (header.php) saya di bawah kode : <meta charset=”<?php bloginfo(‘charset’) ?>” />
    saya menambahkan kode seperti ini : <meta property=’fb:app_id’ conten=’500116303439416’/>
    itu cara yg saya dapatkan dari tmn.
    tpi masih juga ga bisa.

    Nah jadi apa semua yg sudah saya lakukan masih ada yg salah atau memang ada cara lain.?

    tolong pak dibantu untuk mengatasinya..

    Pencetus Utas Munta Pas

    (@munta-pas)

    Maaf pak masih ga bisa..
    maksud /* tutup php-nya atau di bagian akhir php */ ?> itu dmn nya.?
    kode text editor saya di (comment.php) sepeti ini :

    <?php
    /**
    *
    * comments.php
    *
    * The comments template. Used to display post or page comments and comment form.
    *
    * Additional settings are available under the Appearance -> Theme Options -> Comments.
    *
    */
    if (!empty($_SERVER[‘SCRIPT_FILENAME’]) && ‘comments.php’ == basename($_SERVER[‘SCRIPT_FILENAME’]))
    die(‘Please do not load this page directly. Thanks!’);

    if (post_password_required()) {
    theme_post_wrapper(array(‘content’ => ‘<p class=”nocomments”>’ . __(‘This post is password protected. Enter the password to view any comments.’, THEME_NS) . ‘</p>’));
    return;
    }

    if (have_comments()) {
    theme_ob_start();
    printf(_n(‘One Response to %2$s’, ‘%1$s Responses to %2$s’, get_comments_number(), THEME_NS), number_format_i18n(get_comments_number()), ‘‘ . get_the_title() . ‘‘);
    theme_post_wrapper(array(‘content’ => ‘<h4 id=”comments”>’ . theme_ob_get_clean() . ‘</h4>’));
    $prev_link = get_previous_comments_link(__(‘<span class=”meta-nav”>←</span> Older Comments’, THEME_NS));
    $next_link = get_next_comments_link(__(‘Newer Comments <span class=”meta-nav”>→</span>’, THEME_NS));
    theme_page_navigation(array(‘prev_link’ => $prev_link, ‘next_link’ => $next_link));
    echo ‘<ul id=”comments-list”>’;
    wp_list_comments(‘type=all&callback=theme_comment’);
    echo ”;
    theme_page_navigation(array(‘prev_link’ => $prev_link, ‘next_link’ => $next_link));
    }
    theme_ob_start();
    $args = array();
    if (theme_get_option(‘theme_comment_use_smilies’)) {

    function theme_comment_form_field_comment($form_field) {
    theme_include_lib(‘smiley.php’);
    return theme_get_smilies_js() . ‘<p class=”smilies”>’ . theme_get_smilies() . ‘</p>’ . $form_field;
    }

    add_filter(‘comment_form_field_comment’, ‘theme_comment_form_field_comment’);
    }
    comment_form();
    theme_post_wrapper(array(‘content’ => str_replace(array(‘ id=”respond”‘, ‘type=”submit”‘), array(”, ‘class=”art-button” type=”submit”‘), theme_ob_get_clean()), ‘id’ => ‘respond’));

    <div id=”fb-root”></div>
    <script src=”http://connect.facebook.net/en_US/all.js#xfbml=1″></script&gt;
    <fb:comments href=”<?php the_permalink();?>”width=600″></fb:comments>

    Pencetus Utas Munta Pas

    (@munta-pas)

    Maaf pak masih ga bisa..

    maksudnya
    /* tutup php-nya atau di bagian akhir php */ ?> gmn maksudnya.?
    Di text editor saya di (comments.php) kayanya ga ada bagian akhir phpnya.

    justru di text editor saya di (comments.php) seperti ini :

    <?php
    /**
    *
    * comments.php
    *
    * The comments template. Used to display post or page comments and comment form.
    *
    * Additional settings are available under the Appearance -> Theme Options -> Comments.
    *
    */
    if (!empty($_SERVER[‘SCRIPT_FILENAME’]) && ‘comments.php’ == basename($_SERVER[‘SCRIPT_FILENAME’]))
    die(‘Please do not load this page directly. Thanks!’);

    if (post_password_required()) {
    theme_post_wrapper(array(‘content’ => ‘<p class=”nocomments”>’ . __(‘This post is password protected. Enter the password to view any comments.’, THEME_NS) . ‘</p>’));
    return;
    }

    if (have_comments()) {
    theme_ob_start();
    printf(_n(‘One Response to %2$s’, ‘%1$s Responses to %2$s’, get_comments_number(), THEME_NS), number_format_i18n(get_comments_number()), ‘‘ . get_the_title() . ‘‘);
    theme_post_wrapper(array(‘content’ => ‘<h4 id=”comments”>’ . theme_ob_get_clean() . ‘</h4>’));
    $prev_link = get_previous_comments_link(__(‘<span class=”meta-nav”>←</span> Older Comments’, THEME_NS));
    $next_link = get_next_comments_link(__(‘Newer Comments <span class=”meta-nav”>→</span>’, THEME_NS));
    theme_page_navigation(array(‘prev_link’ => $prev_link, ‘next_link’ => $next_link));
    echo ‘<ul id=”comments-list”>’;
    wp_list_comments(‘type=all&callback=theme_comment’);
    echo ”;
    theme_page_navigation(array(‘prev_link’ => $prev_link, ‘next_link’ => $next_link));
    }
    theme_ob_start();
    $args = array();
    if (theme_get_option(‘theme_comment_use_smilies’)) {

    function theme_comment_form_field_comment($form_field) {
    theme_include_lib(‘smiley.php’);
    return theme_get_smilies_js() . ‘<p class=”smilies”>’ . theme_get_smilies() . ‘</p>’ . $form_field;
    }

    add_filter(‘comment_form_field_comment’, ‘theme_comment_form_field_comment’);
    }
    comment_form();
    theme_post_wrapper(array(‘content’ => str_replace(array(‘ id=”respond”‘, ‘type=”submit”‘), array(”, ‘class=”art-button” type=”submit”‘), theme_ob_get_clean()), ‘id’ => ‘respond’));

    <div id=”fb-root”></div>
    <script src=”http://connect.facebook.net/en_US/all.js#xfbml=1″></script&gt;
    <fb:comments href=”<?php the_permalink();?>”width=600″></fb:comments>

    Nah setelah itu saya masuk ke text editor (header.php)
    dibawah kode ini :
    <meta charset=”<?php bloginfo(‘charset’) ?>” />

    saya menambahkan kode seperti ini :
    <meta property=’fb:app_id’ conten=’500116303439416’/>
    itu sesuai cara yg saya dapatkan dari tmn.

    jadi pertnyaanya apa saya salah mengedit/menambahkan kode di text editor apa memang ada cara lainnya.?

    Tolong pak dibantu cara mengatasinya..

    Pencetus Utas Munta Pas

    (@munta-pas)

    Ok sudah bisa, terimakasih pak atas bantuuannya..
    Oy satu saya Lagi ini mengenai editor.
    sebelumnya saya pakai template dari search halaman admin wp saya pasang kode comment facebok di editor comments(comments.php)di paling bawah saya tulis :

    <?php comment_form( ); ?>
    </div>
    <div id=”fb-root”></div>
    <script src=”http://connect.facebook.net/en_US/all.js#xfbml=1″></script&gt;
    <fb:comments href=”<?php the_permalink();?>”width=600″></fb:comments>

    dan hasil OK, tapi, setelah saya ganti template dari design sendiri yg dibuat dari artisteer versi 4.1 dan di upload trus di install.
    setelah itu saya mau pasang kode comment facebok di editor comments(comments.php) ternyata beda. kodenya yg di paling bawahnya seperti ini :

    comment_form();
    theme_post_wrapper(array(‘content’ => str_replace(array(‘ id=”respond”‘, ‘type=”submit”‘), array(”, ‘class=”art-button” type=”submit”‘), theme_ob_get_clean()), ‘id’ => ‘respond’));

    kalau kodenya seperti diatas saya harus merubah/menambahkan dan menempatkan kode comment facebooknya di bagian yg mananya.?

    Forum: Tema
    Dalam balasan untuk: Widget text tidak bisa muncul di website

    Sama saya juga ga bisa. tapi bukan dilocalhost, wp saya sudah hosting, koetika saya coba widget text yg sudah didrag di sidebar dan di isi kose html trus disave. tapi malah ga muncul di website.

    kira-kira knpa ya..? saya ga bisa masukin screenshot halaman admin sidebarnya nih.. link website saya passocietybanten.com
    mohon tolong bantuanya agan2 smuanya..

    Pencetus Utas Munta Pas

    (@munta-pas)

    Contoh saya sudah memasukan kode html di appereance-> widget trus saya pilih text area yg sudah dimasukan ke widget are lalu saya masukan kode html seperti ini :

    <span class=’embed-youtube’ style=’text-align:center;display:block;’>[youtube=http://www.youtube.com/watch?v=Tj08M9X398Q&w=250&h=250]</span>

    setelah disave trus saya view tetp masih ga bisa, malah ketika di view cuma ada tulisan seperti ini :
    [youtube=http://www.youtube.com/watch?v=Tj08M9X398Q&w=250&h=250]

    Tolong bantuanya Para Master dan agan2 smuanya…

    passocietybanten.com

Melihat 7 balasan - 1 sampai 7 (dari total 7)