Any one please help.. What's wrong with it?

Discussion in 'PHP' started by masud7827, Nov 10, 2009.

  1. #1
    This is a code for wordpress theme. I don't know whats wrong with it. Please any one help me.

    COPY AND PASTE THIS CODE INTO YOUR CUSTOM_FUNCTIONS.PHP FILE. ONCE YOU ADD THE CSS, IT WILL TAKE SHAPE.
    ------------------------------
    PASTE THE FOLLOWING CODE BELOW
    ------------------------------
    
    	function asnioFooter() { ?>
    	<div id="container">
    		<div id="foot">
    			<h5>Blog Categories</h5>
    			<span class="cat">Information Covered on the Blog</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>'));
    PHP:

     
    masud7827, Nov 10, 2009 IP
  2. liss

    liss Active Member

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    66
    #2
    And whats wrong with it???
    Good code
     
    liss, Nov 10, 2009 IP
  3. masud7827

    masud7827 Active Member

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    i don't know. When i active it. My sites shows broken.
     
    masud7827, Nov 10, 2009 IP
  4. liss

    liss Active Member

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    66
    #4
    maybe u will show something or we must guess what broken??
     
    liss, Nov 10, 2009 IP
  5. masud7827

    masud7827 Active Member

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    ok here is an image [​IMG]
     
    masud7827, Nov 10, 2009 IP
  6. liss

    liss Active Member

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    66
    #6
    Line 77 ????? wtf here only 72 lines in this code you show
     
    liss, Nov 10, 2009 IP
  7. masud7827

    masud7827 Active Member

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #7
    yes. i copy and paste all those code including COPY AND PASTE THIS CODE INTO YOUR CUSTOM_FUNCTIONS.PHP FILE. ONCE YOU ADD THE CSS, IT WILL TAKE SHAPE.
    ------------------------------
    PASTE THE FOLLOWING CODE BELOW
    ------------------------------

    function asnioFooter() { ?>
     
    masud7827, Nov 10, 2009 IP
  8. masud7827

    masud7827 Active Member

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #8
    if i deleted those first line. Thats showes problem with last line means line 72
     
    masud7827, Nov 10, 2009 IP