Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter mrfraz

    (@mrfraz)

    Have a look here in the source, i use the tag groups.

    http://www.ligareport.de/manuel-neuer/

    Manuel Neuer (FC Bayern München)

    Or in the Keywords..

    Have some troubles with üäö when i output groupname in my theme-functions..how can is fix that?

    Forum: Hacks
    In reply to: Show second tag
    Thread Starter mrfraz

    (@mrfraz)

    uuh.. i don’t understand all 🙂
    can i do a hotfix… for this tag?

    i have only on one.. page this (bug).

    or how can is fix it?

    thanks!

    Thread Starter mrfraz

    (@mrfraz)

    perfect, thank you very much :_)

    Forum: Hacks
    In reply to: echo wp_get_attachment_image
    Thread Starter mrfraz

    (@mrfraz)

    <?php $meta = get_option('spielerdaten'); if (!is_array($meta)) $meta = (array) $meta; $queried_object = get_queried_object(); $term_id = $queried_object->term_id;  $meta = isset($meta[$term_id]) ? $meta[$term_id] : array();
    
    $files = $meta['spielerbild'];
    
    if ( ! empty( $files ) ) {
    foreach ($files as $att) {
       if('' == $img) {
          echo '<img src="'.content_url().'/2013/07/default.jpg">';
       } else {
          echo $img;
       }
    } }
    
    ?>

    Now he shows the replace picture… and nothing when it’s empty.
    i need default when it’s empty and the attached pic when.. it’s not empty?

    Forum: Hacks
    In reply to: echo wp_get_attachment_image
    Thread Starter mrfraz

    (@mrfraz)

    <?php $meta = get_option('field_id'); if (!is_array($meta)) $meta = (array) $meta; $queried_object = get_queried_object(); $term_id = $queried_object->term_id;  $meta = isset($meta[$term_id]) ? $meta[$term_id] : array();
    
    $files = $meta['id'];
    
    if ( ! empty( $files ) ) {
    foreach ($files as $att) {
     echo wp_get_attachment_image($att); } }
    ?>

    that’s my complete code now. works. show the attached image.. and nothing when there is no image. but i want a to show a default image, if there is no image attached. could you help me there? it’s code with meta taxonomy.

    Forum: Hacks
    In reply to: Get Term-ID
    Thread Starter mrfraz

    (@mrfraz)

    hey,

    sorry for duplicate.

    i found a solution..

    $meta = isset($meta[$term_id]) ? $meta[$term_id] : array();

    no i search help.. for “if empty”

    if (empty($meta)) {
      echo 'empty';
    }

    doesn’t work..

    Thread Starter mrfraz

    (@mrfraz)

    works perfect, thank you very much.
    could you even insert date and author for me?

    that would be awesome… i’m not a php coder.
    i only need the ouput..

    thank you 🙂

    Thread Starter mrfraz

    (@mrfraz)

    Hm… i use this comments_popup_script()

    It works on the frontpage,
    but recent comments works not…

    do you have a code snippe for recent comments with

    title (link to comment pop-up)
    author
    and time?

    they i will try this one.

    best!

    Thread Starter mrfraz

    (@mrfraz)

    Hey,

    i use a single Page called Community, where the last 10 Comments should be displayed. And the Topic should Link to a Pop-up with Comments releated to the topic. Or the pop-up-comment.

    Is that possible?

    The Code-Snippet above do this, but without.. the pop-up. Link only to the Single Post.

    Thanks for your help. Maybe we will find a solution 🙂

    Thread Starter mrfraz

    (@mrfraz)

    <?php
    $comments = get_comments('status=approve&number=5');
      foreach($comments as $comment) :?>
    
      <?php $my_id = $comment->comment_post_ID ; $post_id_comms = get_post($my_id); $title = $post_id_comms->post_title;?> 
    
        Who: <?php echo($comment->comment_author);?><br />
        About: <?php comments_popup_link('', $title, $title, 'comment-link-top', ''); ?>
        What they said: <?php echo($comment->comment_content);?><br />
        When they said it: <?php echo($comment->comment_date);?><br />
    
      <?php endforeach;?>

    didn’t work? About ist blank…

    best!

    Thread Starter mrfraz

    (@mrfraz)

    Page: Community

    20 Recent Comments

    Topic: Arsenal London wins
    From: User #1 | at 4:00pm

    Topic: Machester City wins
    From: User #2 | at 3:00pm

    Topic: FC Barcelona wins
    From: User #3 | at 2:00pm

    ..

    And wenn you click on Arsenal London wins, should open the popup with the Comments from this post. That’s what i need. Only Comments…or popup-link..

    Thank you for your good feedback.

    Thread Starter mrfraz

    (@mrfraz)

    Hey,

    thanks for your Help.
    I want the five or ten recent comments with title and onlick the popup with comments. that’s what i need. not a link to the single page (my website work without single-page) rather the link to the (pop-up)-comments.

    thank you very much 🙂

    Thread Starter mrfraz

    (@mrfraz)

    Hm. but how can i open the popup, when i clicked on

    <a href="<?php echo get_permalink($my_id) ?>#comment-<?php echo $comment->comment_post_ID?>" title="on <?php echo $title ?>"><?php echo $title ?></a>

    can you help me with the code?
    that would be great.

    Forum: Hacks
    In reply to: order get_the_tags()
    Thread Starter mrfraz

    (@mrfraz)

    Could yo maybe implement it in my code?
    I’m not a good php coder 🙂

    thanks!

Viewing 15 replies - 1 through 15 (of 15 total)