Do you know what's wrong with this php?

Discussion in 'PHP' started by theblurr5495, Dec 6, 2009.

  1. #1
    Okay, everything was working fine till I deleted php which moved the position of a search bar. Now everything is messed up. Right now I can not access my site when I do it says:

    If you look at my site you can see that the author bio is acting weird and so is other codings.

    Can someone please help?

    <?php

    <div class="postauthor">
    <?php echo get_avatar( get_the_author_id() , 100 ); ?>
    <h4>Article by <a href="<?php the_author_url(); ?>">
    <?php the_author_firstname(); ?> <?php the_author_lastname(); ?></a></h4>
    <p><?php the_author_description(); ?></p>
    <p class="hlight"><?php the_author_firstname(); ?> has written <span><?php the_author_posts(); ?></span> awesome articles for us.</p>
    </div>

    <div id="similar">
    <h3>You May Also Be Interested In...</h3>
    <p> <?php similar_posts(); ?> </p>
    </div>

    <div id="rightcol">
    <div id="subscribe">
    <h3>Stay Connected!</h3>
    <p>If you enjoyed this post, you will definitely enjoy our others. Subscribe to the feed to get instantly updated our next posts. Subscribe and learn how to make money online!</p>
    <ul>
    <li><a href="feed">Subscribe to our RSS Feed</a></li>
    <li><a href="http://feedburner.google.com/fb/a/mailverify?uri=webjourney/oUfK&amp;loc=en_US">Subscribe for Email Updates</a></li>

    <li><a href="twitter">Follow Us on Twitter</a></li>
    </ul>
    </div>

    <div id="custom">
    <h3>Best of Web Journey</h3>
    <p>Want to take your blog or website to the next level? Want to seriously make money online? The best posts or web journey will get you one step closer.</p>
    </div>
    </div>
    ?>

    <?php

    add_action('thesis_hook_after_post_box', 'post_footer');

    function asnioFooter() { ?>
    <div id="container">
    <div id="foot">
    <h5>Blog Categories</h5>
    <span class="cat">Information Covered on Web Journey</span>
    <ul id="cats">
    <?php wp_list_cats('sort_column=id&hide_empty=0&optioncount=0&hierarchical=0'); ?>
    </ul>

    <div class="col Footer1">
    <ul class="sidebar_list">
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer 1') ){ ?>
    <li class="widget">
    <div class="widget_box">
    <h3><?php _e('Footer Widget 1', 'thesis'); ?></h3>
    <p>You can edit the content that appears here by visiting your Widgets panel and modifying the <em>current widgets</em> there.</p>
    </div>
    </li>
    <? } ?>
    </ul>
    </div>

    <div class="col Footer2">
    <ul class="sidebar_list">
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer 2') ) { ?>
    <li class="widget">
    <div class="widget_box">
    <h3><?php _e('Footer Widget 2', 'thesis'); ?></h3>
    <p>You can edit the content that appears here by visiting your Widgets panel and modifying the <em>current widgets</em> there.</p>
    </div>
    </li>
    <? } ?>
    </ul>
    </div>

    <div class="col Footer3">
    <ul class="sidebar_list">
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer 3') ) { ?>
    <li class="widget">
    <div class="widget_box">
    <h3><?php _e('Footer Widget 3', 'thesis'); ?></h3> <p>You can edit the content that appears here by visiting your Widgets panel and modifying the <em>current widgets</em> there.</p>
    </div>
    </li>
    <? } ?>
    </ul>
    </div>

    <div id="copyright">
    <ul class="sidebar_list">
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer Copyright') ) { ?>
    <li class="widget">
    <div class="widget_box">
    <h3><?php _e('Copyright', 'thesis'); ?></h3> <p>You can edit the content that appears here by visiting your Widgets panel and modifying the <em>current widgets</em> there.</p>
    </div>
    </li>
    <? } ?>
    </ul>
    <!-- Please do not remove these lines. If you have a developers license, you may remove the thesis copyright, but do not remove the Asnio copyright unless you have paid the $5 fee. Feel free to remove these comment lines however -->
    <p>Get smart with the <a href="http://diythemes.com/thesis/">Thesis WordPress Theme</a> from DIYthemes.</p>
    <p>Footer by <a href="http://asnio.com/">Asnio</a>.</p>
    </div>
    </div>
    </div>
    <? }
    add_action('thesis_hook_after_html', 'asnioFooter');
    remove_action('thesis_hook_footer', 'thesis_attribution');
    remove_action('thesis_hook_footer', 'thesis_admin_link');

    register_sidebar(array('name'=>'Footer 1', 'before_title'=>'<h3>', 'after_title'=>'</h3>'));
    register_sidebar(array('name'=>'Footer 2', 'before_title'=>'<h3>', 'after_title'=>'</h3>'));
    register_sidebar(array('name'=>'Footer 3', 'before_title'=>'<h3>', 'after_title'=>'</h3>'));
    register_sidebar(array('name'=>'Footer Copyright', 'before_title'=>'<h3>', 'after_title'=>'</h3>'));

    function custom_bookmark_links() {
    global $post;
    ?>
    <ul class="bookmark_links">
    <li><a rel="nofollow" href="http://delicious.com/save?url=<?php urlencode(the_permalink()); ?>&amp;title=<?php urlencode(the_title()); ?>" onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=<?php urlencode(the_permalink()); ?>&amp;title=<?php urlencode(the_title()); ?>', 'delicious', 'toolbar=no,width=550,height=550'); return false;" title="Bookmark this post on del.icio.us">Bookmark this article on Delicious</a></li>
    </ul>
    <?
    }
     
    Last edited: Dec 6, 2009
    theblurr5495, Dec 6, 2009 IP
  2. CoreyPeerFly

    CoreyPeerFly Notable Member Affiliate Manager

    Messages:
    394
    Likes Received:
    24
    Best Answers:
    5
    Trophy Points:
    240
    #2
    Remove the first <?php from the top of the script.
     
    CoreyPeerFly, Dec 6, 2009 IP
  3. astkboy2008

    astkboy2008 Peon

    Messages:
    211
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    
    
    <div class="postauthor">
    <?php echo get_avatar( get_the_author_id() , 100 ); ?>
    <h4>Article by <a href="<?php the_author_url(); ?>">
    <?php the_author_firstname(); ?> <?php the_author_lastname(); ?></a></h4>
    <p><?php the_author_description(); ?></p>
    <p class="hlight"><?php the_author_firstname(); ?> has written <span><?php the_author_posts(); ?></span> awesome articles for us.</p>
    </div>
    
    <div id="similar">
    <h3>You May Also Be Interested In...</h3>
    <p> <?php similar_posts(); ?> </p>
    </div>
    
    <div id="rightcol">
    <div id="subscribe">
    <h3>Stay Connected!</h3>
    <p>If you enjoyed this post, you will definitely enjoy our others. Subscribe to the feed to get instantly updated our next posts. Subscribe and learn how to make money online!</p>
    <ul>
    <li><a href="feed">Subscribe to our RSS Feed</a></li>
    <li><a href="http://feedburner.google.com/fb/a/mailverify?uri=webjourney/oUfK&amp;loc=en_US">Subscribe for Email Updates</a></li>
    
    <li><a href="twitter">Follow Us on Twitter</a></li>
    </ul>
    </div>
    
    <div id="custom">
    <h3>Best of Web Journey</h3>
    <p>Want to take your blog or website to the next level? Want to seriously make money online? The best posts or web journey will get you one step closer.</p>
    </div>
    </div>
    
    Code (markup):
    and you should use any templete engine to merge php in html easy
    choose on of this page
    http://www.jooria.com/scripts/PHP-Templates-Engine-118/
    Code (markup):
     
    astkboy2008, Dec 6, 2009 IP