Link to home
Start Free TrialLog in
Avatar of VenusBreeze
VenusBreezeFlag for Canada

asked on

Custom Sidebar - How to Add new Widget / Plugin (recent comments)

Hello, my site is http://tiny.cc/a4guz 

on the sidebar, I would like to get rid of Popular Articles and replace it with a new plugin i just installed called "Recent Comments with Avatars". Since I am unfamiliar with PHP, I am not sure what code to put in so I can do this...

Any help?

Thanks :)
<div class="mainright">







		  	<div id="sidebar">



			



<!-- Search Section -->			



			<div id="searchsection">



				<?php include (TEMPLATEPATH . '/searchform.php'); ?>



                <div class="clear"><!-- --></div>



			  </div>



			  



			<?php 	/* Widgetized sidebar, if you have the plugin installed. */



					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>



<!-- End of Search Section -->		











<!-- Poll  -->	



<?php if (function_exists('vote_poll') && !in_pollarchive()): ?>				



	<div class="sidebarWrap" id="poll">



			<h2>Polls</h2>



            <div class="sbContent">



            <?php get_poll();?>



            </div>



	</div>



    <?php endif; ?> 



<!-- End of Poll  -->











<!-- Your Ad Here -->







	<div class="sidebarWrap" id="sponsor2">



			<h2>Support our Sponsors</h2>



			<div class="sbContent">

<!-- Beginning of Project Wonderful ad code: -->

<!-- Ad box ID: 51333 -->

<script type="text/javascript">

<!--

var pw_d=document;

pw_d.projectwonderful_adbox_id = "51333";

pw_d.projectwonderful_adbox_type = "4";

pw_d.projectwonderful_foreground_color = "";

pw_d.projectwonderful_background_color = "";

//-->

</script>

<script type="text/javascript" src="http://www.projectwonderful.com/ad_display.js"></script>

<!-- End of Project Wonderful ad code. -->

</p>

			



			</div>



	</div>



<!-- End of yOUR aD HERE   -->


<!-- Featured Stunna -->					



	<div class="sidebarWrap" id="featured">



			<h2>Stunna Babe of the Moment</h2>



			<div class="sbContent">



<script type="text/javascript" >NumberOfImagesToRotate = 12;FirstPart = '<img src="fansign/fan';LastPart = '.jpg" height="190" width="250">';function printImage() {var r = Math.ceil(Math.random() * NumberOfImagesToRotate);document.write(FirstPart + r + LastPart);}

printImage();</script>

<br><a href="http://www.stunnazine.com/fan-sign-submission.html">Be Seen! Submit your fan sign here</a>

		</div>

	</div>


<!-- End of Featured Stunna -->	



<!-- SZ Team  -->
<div class="sidebarWrap" id="team">
<h2>Advertisement</h2>

<div class="marTop">

<script type="text/javascript"><!--
google_ad_client = "ca-pub-7308943566145520";
/* bigger sidebar ad */
google_ad_slot = "4824911313";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

		</div>

	</div>
<!-- End of SZ Team  -->


<!-- Popular Post -->


	<div class="sidebarWrap" id="popPost">


			<h2>Popular Articles | Hot Topics</h2>


			<div class="sbContent">


			<ul>


			<? //popularPosts(5);
				 $popular = new WP_Query('orderby=comment_count&posts_per_page=10');
					 while ($popular->have_posts()) : $popular->the_post();
					?>
					<li>
					 <a title="<?php the_title(); ?>" href="<?php the_permalink() ?>"><?php the_title(); ?></a>
					 <!--<span><?php //comments_popup_link('0 Comment', '1 Comment', '% Comments', 'comments-link', ''); ?></span>-->
					</li>
					<?php endwhile;

			?>
			</ul>


			</div>

	</div>

<!-- End of Popular Post   -->


<!-- Support -->

<div class="sidebarWrap" id="support">

<h2>Donations</h2>

<div class="sbContent">

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

<input type="hidden" name="cmd" value="_s-xclick">

<input type="hidden" name="hosted_button_id" value="7051702"><input type="image" src="<?php bloginfo('template_directory'); ?>/images/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"></form>


<p>You can help keep this <a href="http://www.stunnazine.com/about.html">free webzine </a> online.</p>        

</div>
</div>



<!-- End of Support   -->


<!-- Cool Sites  -->

<div class="sidebarWrap" id="coolSite">
<h2>Our Friends</h2>
<div class="sbContent">
<ul class="leftCol divider">

<li><a href="http://www.hairflip.net" rel="nofollow" class="menulink">Page Graphics</a></li>

<li><a href="http://wemakeyoulaugh.blogspot.com/" rel="nofollow" class="menulink2">Make You Laugh</a></li>
</ul>
<ul class="leftCol">

<li><a href="http://www.steelcitymovement.webs.com" rel="nofollow" class="menulink">Konvict and Tip-Z</a> </li>

<li><a href="http://www.myspacehoz.com" rel="nofollow" class="menulink">MySpace Hoz</a></li>
</ul>

<div class="clear"><!-- --></div>
</div>
</div>
<!-- End of Cool Sites  -->
<?php endif; ?>

</div> <!-- End side bar -->

</div>
<div class="clear"><!-- --></div>

Open in new window

Avatar of David S.
David S.
Flag of United States of America image

ASKER CERTIFIED SOLUTION
Avatar of jeremyjared74
jeremyjared74
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.