Forum Replies Created

Viewing 10 replies - 196 through 205 (of 205 total)
  • Forum: Hacks
    In reply to: Add a comment field
    Thread Starter Taro

    (@sicktb)

    Ok so i should not edit the comment-template.php

    Meaning i can only edit the comments.php and function.php

    <?php comment_form(); ?> <- this code should be removed and replaced by the code i pased. Above in my 2nd post. But as you told me bcworkz. I can add additional fields useing the defaults. But what if i need to ad like 10 more fields? I need to add more array’s somehow with out addign the core files.

    Is this done in the function.php? And if so.. how? ??

    Forum: Hacks
    In reply to: Add a comment field
    Thread Starter Taro

    (@sicktb)

    https://blog.ideashower.com/post/15147134893/wordpress-plugin-extra-comment-fields

    This maybe helps me but i think its not up to date…

    [Moderator Note: Please ensure that you are embedding links correctly in your posts.]

    Forum: Hacks
    In reply to: Add a comment field
    Thread Starter Taro

    (@sicktb)

    Some more information.

    I replaced the code
    <?php comment_form(); ?>

    With the code:

    <?php $comment_args = array( 'title_reply'=>'Got Something To Say:',
    
    'fields' => apply_filters( 'comment_form_default_fields', array(
    
    'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Your Good Name' ) . '</label> ' . ( $req ? '<span>*</span>' : '' ) .
    
            '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',  
    
        'email'  => '<p class="comment-form-email">' .
    
                    '<label for="email">' . __( 'Your Email Please' ) . '</label> ' .
    
                    ( $req ? '<span>*</span>' : '' ) .
    
                    '<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' />'.'</p>',
    
        'url'    => '' ) ),
    
        'comment_field' => '<p>' .
    
                    '<label for="comment">' . __( 'Let us know what you have to say:' ) . '</label>' .
    
                    '<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea>' .
    
                    '</p>',
    
        'comment_notes_after' => '',
    
            'test' => '<p>' .
    
                    '<label for="test">' . __( 'Hoe maak je kaas?:' ) . '</label>' .
    
                    '<textarea id="test" name="test" cols="45" rows="8" aria-required="true"></textarea>' .
    
                    '</p>',
    
        'comment_notes_after' => '',
    
    );
    
    comment_form($comment_args); ?>

    Why? I need to make different comments-forms on all pages.

    With kind regards,
    Taro

    Thread Starter Taro

    (@sicktb)

    It has to do someting with how i build my site… Probly i forgot something in the header..

    Thread Starter Taro

    (@sicktb)

    Some one an idee?

    You can try and make a ie style only.

    <!–[if IE]>
    <link rel=”stylesheet” type=”text/css” href=”https://www.domein.com/css/iestyle.css&#8221; />
    <![endif]–>

    <?php
    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(‘name’=>’sidebarname1’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h4>’,
    ‘after_title’ => ‘</h4>’,
    ));
    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(‘name’=>’sidebarname2’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h4>’,
    ‘after_title’ => ‘</h4>’,
    ));
    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(‘name’=>’sidebarname3’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h4>’,
    ‘after_title’ => ‘</h4>’,
    ));
    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(‘name’=>’sidebarname4’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h4>’,
    ‘after_title’ => ‘</h4>’,
    ));
    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(‘name’=>’sidebarname5’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h4>’,
    ‘after_title’ => ‘</h4>’,
    ));

    ?>

    Here this works for me; 5 sidebars. Rember this is just the functions.php
    You also need to make te code on the html page where you whant the sidebars.

    If you whant to remove a sidebar just deleet the peace i marked bold from functions.php

    This code must be on the html page

    <?php if ( !function_exists(‘dynamic_sidebar’)
    || !dynamic_sidebar(‘sidebarname1’) ) : ?>
    <?php endif; ?>

    etc

    Thread Starter Taro

    (@sicktb)

    1st site update works but i dont see meta seo pack in my code… Its active and i put information.

    2nd site
    Well plugins still not update by wordpress autoupdate. Still says its updated but the are marked as to be updated. Here the seo plugin is working correct.

    That worked indeed.
    Cant change the font color tho ??

    Not working for me aswel ??
    look here

    the last image(earth) has an info.

    This are my settings atm(btw im missing font color to change)

    Info Width: 500
    Info Background: 0x00000
    Info Background Alpha: 0.8
    Info Margin: 2
    Info Sharpness: 0.7
    Info Thickness: 2

    Gr, Taro

Viewing 10 replies - 196 through 205 (of 205 total)