Featured Content Gallery | WordPress Plugin | iePlexus

Where should i put the code exactly ? Please help me.

Downloading, installing, upgrading, and configuring the FCG plugin

Re: Where should i put the code exactly ? Please help me.

PostBy admin on Mon Nov 22, 2010 3:20 pm

from that code from your page I see, you need to put gallery call without <?php and ?> php brackets
like this
Code: Select all
include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php');
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

Re: Re: Where should i put the code exactly ? Please help me.

Thank you for using the Featured Content Gallery Forum
 

Re: Where should i put the code exactly ? Please help me.

PostBy iNiNJA on Tue Nov 23, 2010 8:20 pm

THANK YOU SOOOOO MUCH!!! My 3 day customization fight is over, now off to float the sidebar next to my Slideshow!!!

You are awesome!!!!!! THANK YOU!!!!
iNiNJA
 
Posts: 3
Joined: Mon Nov 22, 2010 6:54 am

Re: Where should i put the code exactly ? Please help me.

PostBy ashleywirthlin on Tue Nov 23, 2010 9:25 pm

Thanks for the feedback! I tried uploading to page.php per your suggestion, though it appears that still doesn't work.

With pages being used for all of the main pages of my site (instead of posts), this will result in the slideshow appearing on all pages of my site but the "blog", I presume? I've made a static homepage and moved the "blog" to its own tab.

I would love to get this working!

The code is now on the page.php template, and on my website you can see the small difference it's making on all of the pages aside from the "Blog" tab. It's making the bar under the menu navigation thicker than on the blogs.

Ideas?

http://awirthlinpublicrelations.com
ashleywirthlin
 
Posts: 2
Joined: Wed Nov 17, 2010 6:45 pm

Re: Where should i put the code exactly ? Please help me.

PostBy roymusta on Wed Dec 01, 2010 6:57 am

Hello!

My site is good-trava.ru
I'm trying to install your plugin, but i'm a total noob in php.. I want to place the slider above all posts, but can't find a proper place for it.

If you can help me, I can provide any information you need :)

Upd:
Ok, I figured out where to place the code: I put it in index.php
Code: Select all
<?php get_header(); ?>
  <div id="contents" class="clearfix">

   <div id="left_col">

<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>

<?php $options = get_option('mc_options'); ?>
<?php $odd_or_even = 'odd'; ?>


Now I'll try to center it..

Upd:
I found the way to center it on this forum. Is there any way for me to move it a bit to the left? For it to be in the middle of that white vertical field. Once again, my site is good-trava.ru
roymusta
 
Posts: 1
Joined: Wed Dec 01, 2010 6:54 am

Re: Where should i put the code exactly ? Please help me.

PostBy lkalmat on Fri Dec 10, 2010 5:58 pm

The problem I'm having is that the gallery is not showing up at all in my post or if it is, it's blank one the page at the top. I'm using twenty ten and adding it to index.php.

I've added the articleimg twice so that two images would be added in the custom fields along with the value which is the link. Below that featuredtext was added twice for text to go on my images. This was done to get two images to show up.

The only other plugins I have activated are akismet and db-backup. My url is http://riversidearenaskatingclub.org

Ultimately, i want the gallery to be inside my various posts on the home page.
lkalmat
 
Posts: 1
Joined: Fri Dec 10, 2010 4:54 pm

Re: Where should i put the code exactly ? Please help me.

PostBy admin on Mon Dec 13, 2010 8:30 am

I do not see fcg on your site, I see some other gallery and it is working..
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

Re: Where should i put the code exactly ? Please help me.

PostBy macpit on Tue Dec 14, 2010 11:16 am

Hi,

First thanks for the Plugin and the Support!!

My theme is Atmosphere 2010, i like to add the plugin in to the header.

My site: http://famp.ch

Code header.php

Code: Select all
cat header.php
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />

<title><?php
        global $page, $paged;

        wp_title( '|', true, 'right' );

        // Add the blog name.
        bloginfo( 'name' );

        // Add the blog description for the home/front page.
        $site_description = get_bloginfo( 'description', 'display' );
        if ( $site_description && ( is_home() || is_front_page() ) )
                echo " | $site_description";

        // Add a page number if necessary:
        if ( $paged >= 2 || $page >= 2 )
                echo ' | ' . sprintf( __( 'Page %s', 'atmosphere' ), max( $paged, $page ) );

        ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
        if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
        wp_head();
?>

</head>

<body <?php body_class(); ?>>

<?php global $themeOptions; ?>

<?php /* Add in our Right Hand Social Menu */ ?>
<?php get_template_part( 'social', 'vertical' ); ?>

<div id="wrapper" class="hfeed">
        <div id="wrapper-jpg"><!-- Add our Background Image -->

                <div id="header">
                        <div id="masthead">

                                <?php /* Get our second navigation bar */ ?>
                                <?php get_template_part( 'navigation', 2 ); ?>

                                <?php $shortname = 'drcms'; ?>
                                <?php $style = ''; ?>
                                <?php if( $themeOptions[$shortname. '_hide_titles'] ) $style = ' style="display: none;" '; ?>
                                <div id="branding" role="banner">
                                        <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
                                        <<?php echo $heading_tag; ?> id="site-title" <?php echo $style; ?>>
                                                <span>
                                                        <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
                                                </span>
                                        </<?php echo $heading_tag; ?>>
                                        <div id="site-description" <?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
                                </div><!-- #branding -->

                                <?php if( !$themeOptions[$shortname. '_hide_lower_menu'] ) : ?>
                                        <div id="access" role="navigation">
                                                <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'atmosphere' ); ?>"><?php _e( 'Skip to content', 'atmosphere' ); ?></a></div>
                                                <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
                                        </div><!-- #access -->
                                <?php endif; ?>

                        </div><!-- #masthead -->
                </div><!-- #header -->
                </div><!--wrapper-jpg -->

        <div id="main">
                <!-- Added to keep columns inline -->
                <div id="inner-wrapper">

also check in page.php, but don't works
Code: Select all
<?php get_header(); ?>

                <div id="container">
                        <div id="content" role="main">

<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

                                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                                        <?php if ( is_front_page() ) { ?>
                                                <h2 class="entry-title"><?php the_title(); ?></h2>
                                        <?php } else { ?>
                                                <h1 class="entry-title"><?php the_title(); ?></h1>
                                        <?php } ?>
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>

                                        <div class="entry-content">
                                                <?php the_content(); ?>
                                                <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'atmosphere' ), 'after' => '</div>' ) ); ?>
                                                <?php edit_post_link( __( 'Edit', 'atmosphere' ), '<span class="edit-link">', '</span>' ); ?>
                                        </div><!-- .entry-content -->
                                </div><!-- #post-## -->

                                <?php comments_template( '', true ); ?>

<?php endwhile; ?>

                        </div><!-- #content -->
                </div><!-- #container -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>

Cheers Marc
macpit
 
Posts: 2
Joined: Tue Dec 14, 2010 11:10 am

Re: Where should i put the code exactly ? Please help me.

PostBy admin on Tue Dec 14, 2010 12:31 pm

in page.php try to put it under
Code: Select all
<div id="content" role="main">
,
also, give me your url
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

Re: Where should i put the code exactly ? Please help me.

PostBy macpit on Tue Dec 14, 2010 9:47 pm

Thank you, i add the code create the post with the custom field. But it's not work.

My url: http://famp.ch/?p=74

Cheers

Marc
macpit
 
Posts: 2
Joined: Tue Dec 14, 2010 11:10 am

Re: Where should i put the code exactly ? Please help me.

PostBy admin on Wed Dec 15, 2010 8:15 am

the url you gave, says page not found
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

PreviousNext

Return to Getting Started

Who is online

Users browsing this forum: No registered users and 0 guests