Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • @fijitrader – The EXACT same thing is happening to me, but to a site I hardly write in anymore, but yes, no comments or stolen content (according to Copyscape). It is odd and I can’t see the benefit. I am glad I found this post and I am not the only one.

    @frikafrax what would they utilize sleeper accounts for? And how would they exploit public user profiles? Is there a way to moderate/block subscribers without blocking legitimate subscribers?

    Thanks for your response!

    Thread Starter Julie

    (@juliebmack)

    The code is here: https://pastebin.com/qRmBS5Eh

    Thread Starter Julie

    (@juliebmack)

    I meant the logo. Essentially, I have my own header with the title embedded in the graphic. I don’t want the Site title to display.

    Julie

    (@juliebmack)

    Wow!! I am so glad I found thia!!! I have the EXACT same problem!! MY URL is https://internetmarketinginspiration.com

    HELP!!

    I had 78 errors in vaidator!! How do I know what line to fix it all…. is it all in style.CSS

    Thread Starter Julie

    (@juliebmack)

    I am sorry you are getting frustrated… I don’t know what file you are talking about – I am not a php expert. I am using Elegant Themes – Interphase, but I don’t know what file you would like…. sorry! ?? This may not be possible… ??

    Thread Starter Julie

    (@juliebmack)

    No luck, huh?

    Thread Starter Julie

    (@juliebmack)

    It is there.. thanks for all your help!!

    Thread Starter Julie

    (@juliebmack)

    /*this function allows for the auto-creation of post excerpts*/
    function truncate_post($amount,$echo=true) {
    	global $post, $shortname;
    
    	$postExcerpt = '';
    	$postExcerpt = $post->post_excerpt;
    
    	if (get_option($shortname.'_use_excerpt') == 'on' && $postExcerpt <> '') {
    		if ($echo) echo do_shortcode($postExcerpt);
    		else return do_shortcode($postExcerpt);
    	} else {
    		$truncate = $post->post_content;
    
    		$truncate = preg_replace('@\[caption[^\]]*?\].*?\[\/caption]@si', '', $truncate);
    
    		if ( strlen($truncate) <= $amount ) $echo_out = ''; else $echo_out = '...';
    		$truncate = apply_filters('the_content', $truncate);
    		$truncate = preg_replace('@<script[^>]*?>.*?</script>@si', '', $truncate);
    		$truncate = preg_replace('@<style[^>]*?>.*?</style>@si', '', $truncate);
    
    		$truncate = strip_tags($truncate);
    
    		if ($echo_out == '...') $truncate = substr($truncate, 0, strrpos(substr($truncate, 0, $amount), ' '));
    		else $truncate = substr($truncate, 0, $amount);
    
    		if ($echo) echo $truncate,$echo_out;
    		else return ($truncate . $echo_out);
    	};
    }
    Thread Starter Julie

    (@juliebmack)

    Ok, I just am not sure where to put it in that code specifically….

    Thread Starter Julie

    (@juliebmack)

    /*this function allows for the auto-creation of post excerpts*/
    function truncate_post($amount,$echo=true) {
    	global $post, $shortname;
    
    	$postExcerpt = '';
    	$postExcerpt = $post->post_excerpt;
    
    	if (get_option($shortname.'_use_excerpt') == 'on' && $postExcerpt <> '') {
    		if ($echo) echo do_shortcode($postExcerpt);
    		else return do_shortcode($postExcerpt);
    	} else {
    		$truncate = $post->post_content;
    
    		$truncate = preg_replace('@\[caption[^\]]*?\].*?\[\/caption]@si', '', $truncate);
    
    		if ( strlen($truncate) <= $amount ) $echo_out = ''; else $echo_out = '...';
    		$truncate = apply_filters('the_content', $truncate);
    		$truncate = preg_replace('@<script[^>]*?>.*?</script>@si', '', $truncate);
    		$truncate = preg_replace('@<style[^>]*?>.*?</style>@si', '', $truncate);
    
    		$truncate = strip_tags($truncate);
    
    		if ($echo_out == '...') $truncate = substr($truncate, 0, strrpos(substr($truncate, 0, $amount), ' '));
    		else $truncate = substr($truncate, 0, $amount);
    
    		if ($echo) echo $truncate,$echo_out;
    		else return ($truncate . $echo_out);
    	};
    Thread Starter Julie

    (@juliebmack)

    I don’t have a category template… the closest I have is in custom_functions

    /*this function allows for the auto-creation of post excerpts*/
    function truncate_post($amount,$echo=true) {
    	global $post, $shortname;
    
    	$postExcerpt = '';
    	$postExcerpt = $post->post_excerpt;
    
    	if (get_option($shortname.'_use_excerpt') == 'on' && $postExcerpt <> '') {
    		if ($echo) echo do_shortcode($postExcerpt);
    		else return do_shortcode($postExcerpt);
    	} else {
    		$truncate = $post->post_content;
    
    		$truncate = preg_replace('@\[caption[^\]]*?\].*?\[\/caption]@si', '', $truncate);
    
    		if ( strlen($truncate) <= $amount ) $echo_out = ''; else $echo_out = '...';
    		$truncate = apply_filters('the_content', $truncate);
    		$truncate = preg_replace('@<script[^>]*?>.*?</script>@si', '', $truncate);
    		$truncate = preg_replace('@<style[^>]*?>.*?</style>@si', '', $truncate);
    
    		$truncate = strip_tags($truncate);
    
    		if ($echo_out == '...') $truncate = substr($truncate, 0, strrpos(substr($truncate, 0, $amount), ' '));
    		else $truncate = substr($truncate, 0, $amount);
    
    		if ($echo) echo $truncate,$echo_out;
    		else return ($truncate . $echo_out);
    	};
    Thread Starter Julie

    (@juliebmack)

    Actually, it was way simpler than that. I had an extra space in my functions.php file and that fixed it! Go figure! Thanks!

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