Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Good Morning,
    I stumbled across this question while looking for something else and even though it is a few months old, it may be worth me saying how I approach this in case it helps others.

    I use…

    <?php if(is_admin()): ?>
         <!-- Stuff to show in admin -->
    <?php else: >
         <!-- front end of site stuff -->
    <?php endif; ?>

    I usually use this if I’m loading in some sort of slider that is easier to manage in edit mode rather than preview mode so I put a message for the client to click across to edit mode.

    Hope this helps`

    • This reply was modified 3 years, 5 months ago by MikeChipshop.
    • This reply was modified 3 years, 5 months ago by MikeChipshop.
    Thread Starter MikeChipshop

    (@mikechipshop)

    Obvious really. Been a long day :p

    Cheers for your reply it was enough to trigger my memory of the same problem a while back, which indeed was a backup with a dodgy file. Re-upped the core and it’s now all golden.

    Muchos thanks!

    Thread Starter MikeChipshop

    (@mikechipshop)

    I actually can’t remember off of the top of my head as it was quite a while back.

    What i probably did was lock down all the permissions to the recommended WordPress settings. This is an interesting read regarding that matter https://codex.www.ads-software.com/Changing_File_Permissions .

    If this doesn’t solve the issue, then let me know here and i’ll see if i can get FTP access to that clients site back, and have a poke around for you.

    Thread Starter MikeChipshop

    (@mikechipshop)

    Right. My mistake.
    For some reason my clients hosting company decided to set everything to a nice open ‘777’ permissions. Once i dropped this down to a more preferable ‘755’ everything kicked in.

    Great work fella.

    Thread Starter MikeChipshop

    (@mikechipshop)

    Cheers for the reply, i’m pretty sure the code is inserted right.

    My code looks like so…

    <div id="comments">
    <?php if ( post_password_required() ) : ?>
    				<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p>
    			</div><!-- #comments -->
    <?php
    		/* Stop the rest of comments.php from being processed,
    		 * but don't kill the script entirely -- we still have
    		 * to fully load the template.
    		 */
    		return;
    	endif;
    ?>
    
    <?php
    	// You can start editing here -- including this comment!
    ?>
    <ul id="SQ-socialbuttons">
    <li><?php if(function_exists('twit_connect')){twit_connect();} ?></li>
    <li><?php do_shortcode("[fb_login size='large' login_text='Logout' logout_text='Logout']"); ?></li>
    </ul>
    <?php if ( have_comments() ) : ?>
    			<h3 id="comments-title"><?php
    			printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ),
    			number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
    			?></h3>
    ...

    I can’t spot anything immediately obviously wrong… or am i just being blind? Cheers for the help.

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