Featured Content Gallery | WordPress Plugin | iePlexus

one more time..Socrates theme. where does code go?

Downloading, installing, upgrading, and configuring the FCG plugin

one more time..Socrates theme. where does code go?

PostBy jonkirby2012 on Wed Aug 24, 2011 9:37 pm

Dear sirs, Please don't take my criticism as being rude i only am saying this because
I want to get your product to work!

Here goes You spent alot of time and energy showing step by step how to install
this plugin then you leave most newbies including me out in the cold.
You place your code in the instruction video in a nonstandard file but most
of us want to use it in a standard theme so i have socrates very standard
Where is it EXACTLY do i put this code. here is a majority snippet.

/**
* Socrates Premium Theme for Wordpress
* (c) 2010 Flying Monkey Media, Inc.
* http://www.socratestheme.com
* Version 2.2.8
*
* Development Team:
* Jon Carroll (jc)
* Tim Golen (tg)
*
* @File index.php
*/
get_header();
include "topAd.php";
//include "sidebar.php";
//include "sidebar2.php";
$inpost1counter = 0;
$inpost2counter = 0;
$layout = get_option("layoutOptions");
if($layout['sidebar'] == 'styleBothSides.css') {
include "sidebar.php";
}
$topAd = get_option("socratesOptions");
?>

<div id="im-mainContent" class="im-mainContent">
<div id="post-" class="post">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">

<?php
// if this is a page, then we might have to use h1 tags for the title instead of the default h2 tags
$titleTag = 'h2';
if (is_page()){
$titleTag = ($topAd['useh1page'] == 'on')?'h1':'h2';
}
?>

<<?php echo $titleTag; ?>><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></<?php echo $titleTag; ?>>
<?php
$custom_fields = get_post_custom($post->ID);
if($topAd['authonpage'] == 'on' ) { ?>
<div class="postAuthor">By <?php the_author_posts_link(); ?> on <?php the_time('l, F jS, Y') ?> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></div>
<?php } ?>


<div class="entry">
<?php
$topAd = get_option("socratesOptions");
if(($topAd['inpostad1'] != '' && !is_page() && $inpost1counter<$topAd['inpostadmaxrepeat']) && !$custom_fields['_mcf_postDisableInPostAd'][0]) {
if ($topAd['inpostposition'] != 'top'){
echo '<div id="socratesinpostad" style="float:'.$topAd['inpostposition'].'; display:block; padding:5px; margin:0;">'.stripslashes($topAd['inpostad1']).'</div>';
} else {
echo '<div id="socratesinpostad" style="display:block; padding:5px; margin:0;">'.stripslashes($topAd['inpostad1']).'</div><br />';
}
$inpost1counter++;
}
?>

<?php
$custom_fields = get_post_custom($post->ID);
// do we need to display custom text for the read more link?
$readMoreText = ($custom_fields['_mcf_postcustomreadmore'][0] != '')?$custom_fields['_mcf_postcustomreadmore'][0]:'Read More...';
?>
<?php the_content($readMoreText); ?>

<div class="entry-utility postmetadata">


I am assuming it's above here somewhere. Please email me. I would appreciate it
and take you time as needed it's no rush I am using it for me personal. Thank you.
this is a standard socrates index file and might be useful to your customers. Jon
jonkirby2012
 
Posts: 2
Joined: Wed Aug 24, 2011 9:19 pm

Re: one more time..Socrates theme. where does code go?

Thank you for using the Featured Content Gallery Forum
 

Re: one more time..Socrates theme. where does code go?

PostBy admin on Tue Sep 06, 2011 10:20 am

try to put it under
Code: Select all
<div id="im-mainContent" class="im-mainContent">
Yelena Khamidullina
Web Applications Developer, iePlexus

1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
User avatar
admin
Site Admin
 
Posts: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA


Return to Getting Started

Who is online

Users browsing this forum: No registered users and 0 guests