Recent Topics

1 May 19, 2010 21:01    

My b2evolution Version:3.3.2

I have a quick question about linking your blog to facebook. I would like to have it so that each post will have it's own "like" option.

Is this possible? And if so... where exactly does the code need to go?

I know HOW to get the code... I just don't know where to put it!

Thank you in advance for your help!

Kris :-)

2 May 19, 2010 21:29

        <iframe src="http://www.facebook.com/plugins/like.php?href=<?php $Item->permanent_url();?>&amp;layout=button_count&amp;show_faces=true&amp;width=150&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe>

Put this within your post loop .../skins/yours_skins/index.main.php (posts.main.php)

You can alter the button parameters

http://developers.facebook.com/docs/reference/plugins/like

See a demo [url=http://www.tilqi.com/ozlusozler.php]here:[/url]

but be quick, i just put it for you to see :D i might remove it any time now

3 May 20, 2010 21:25

Thank you for your response...

I get lost when I open the file. I'm just not sure where in the file to put it. I'm using the Extreme Sports Skin...

Here is the Code for the posts.main.php


<?php
/**
 * This is the main/default page template.
 *
 * For a quick explanation of b2evo 2.0 skins, please start here:
 * {@link http://manual.b2evolution.net/Skins_2.0}
 *
 * The main page template is used to display the blog when no specific page template is available
 * to handle the request (based on $disp).
 *
 * @package evoskins
 * @subpackage extreme_sports
 *
 * @version $Id: posts.main.php,v 1.4.2.1 2008/04/26 22:28:54 fplanque Exp $
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

if( version_compare( $app_version, '2.4.1' ) < 0 )
{ // Older 2.x skins work on newer 2.x b2evo versions, but newer 2.x skins may not work on older 2.x b2evo versions.
	die( 'This skin is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
}

// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init( $disp );


// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include( '_html_header.inc.php' );
// Note: You can customize the default HTML header by copying the generic
// /skins/_html_header.inc.php file into the current skin folder.
// -------------------------------- END OF HEADER --------------------------------
?>


<?php
// ------------------------- BODY HEADER INCLUDED HERE --------------------------
skin_include( '_body_header.inc.php' );
// Note: You can customize the default BODY header by copying the generic
// /skins/_body_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>


<div class="top_menu top_menu_narrow">
	<ul>
	<?php
		// ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
		// Display container and contents:
		skin_container( NT_('Menu'), array(
				// The following params will be used as defaults for widgets included in this container:
				'block_start' => '',
				'block_end' => '',
				'block_display_title' => false,
				'list_start' => '',
				'list_end' => '',
				'item_start' => '<li>',
				'item_end' => '</li>',
			) );
		// ----------------------------- END OF "Menu" CONTAINER -----------------------------
	?>
	</ul>
</div>


<div id="content" class="narrowcolumn">

<?php
	// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
	messages( array(
			'block_start' => '<div class="action_messages">',
			'block_end'   => '</div>',
		) );
	// --------------------------------- END OF MESSAGES ---------------------------------
?>

<?php
	// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
	request_title( array(
			'title_before'=> '<h2>',
			'title_after' => '</h2>',
			'title_none'  => '',
			'glue'        => ' - ',
			'title_single_disp' => true,
			'format'      => 'htmlbody',
		) );
	// ------------------------------ END OF REQUEST TITLE -----------------------------
?>

<?php
// Display message if no post:
display_if_empty();

while( $Item = & mainlist_get_item() )
{	// For each blog post, do everything below up to the closing curly brace "}"
?>
	<div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">

		<?php
			$Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
		?>

		<h2><?php $Item->title(); ?></h2>

			<ul class="datetime">	
            <li class="month"><?php
				$Item->issue_time( array(
						'time_format' => 'F',
					) );
			?></li>	
            <li class="day"><?php
				$Item->issue_time( array(
						'time_format' => 'j',
					) );
			?></li>	
                  </ul>


		<?php
			// ---------------------- POST CONTENT INCLUDED HERE ----------------------
			skin_include( '_item_content.inc.php', array(
					'image_size'	=>	'fit-400x320',
				) );
			// Note: You can customize the default item feedback by copying the generic
			// /skins/_item_feedback.inc.php file into the current skin folder.
			// -------------------------- END OF POST CONTENT -------------------------
		?>

		<?php
			// List all tags attached to this post:
			$Item->tags( array(
					'before' =>         '<div class="posttags">'.T_('Tags').': ',
					'after' =>          '</div>',
					'separator' =>      ', ',
				) );
		?>

		<p class="postmetadata">
        
        	<span class="the-comments">		<?php
				// Link to comments, trackbacks, etc.:
				$Item->feedback_link( array(
						'type' => 'feedbacks',
						'link_after' => '',
						'link_text_zero' => '#',
						'link_text_one' => '#',
						'link_text_more' => '#',
						'link_title' => '#',
						'use_popup' => false,
					) );
			?></span>
        <span class="the-categories">
			<?php
				$Item->categories( array(
					'after'           => ' ',
					'include_main'    => true,
					'include_other'   => true,
					'include_external'=> true,
					'link_categories' => true,
				) );
			?></span>

			<?php
				$Item->edit_link( array( // Link to backoffice for editing
						'before'    => ' | ',
						'after'     => '',
					) );
			?>


			</p>
	</div>

	<?php
	locale_restore_previous();	// Restore previous locale (Blog locale)
}
?>

<?php
	// -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
	mainlist_page_links( array(
			'block_start' => '<div class="navigation">',
			'block_end' => '</div>',
   		'prev_text' => '&lt;&lt;',
   		'next_text' => '&gt;&gt;',
		) );
	// ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
?>


</div>


<?php
// ------------------------- SIDEBAR INCLUDED HERE --------------------------
skin_include( '_sidebar.inc.php' );
// Note: You can customize the default BODY footer by copying the
// _body_footer.inc.php file into the current skin folder.
// ----------------------------- END OF SIDEBAR -----------------------------
?>


<?php
// ------------------------- BODY FOOTER INCLUDED HERE --------------------------
skin_include( '_body_footer.inc.php' );
// Note: You can customize the default BODY footer by copying the
// _body_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>


<?php
// ------------------------- HTML FOOTER INCLUDED HERE --------------------------
skin_include( '_html_footer.inc.php' );
// Note: You can customize the default HTML footer by copying the
// _html_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>

So where would I place the code in that file?

Thanks :-)

4 May 21, 2010 00:16

Any chance you could post the code for /home/lenny44/public_html/overcomingpanicattacksrightnow.com/skins/pixelgreen/__MACOSX/pixelgreen/img/style.css.php ?

¥

5 May 21, 2010 10:19

put it anywhere in your post loop depending on where you want it to appear..

Here is an modified example:

<?php
/**
 * This is the main/default page template.
 *
 * For a quick explanation of b2evo 2.0 skins, please start here:
 * {@link http://manual.b2evolution.net/Skins_2.0}
 *
 * The main page template is used to display the blog when no specific page template is available
 * to handle the request (based on $disp).
 *
 * @package evoskins
 * @subpackage extreme_sports
 *
 * @version $Id: posts.main.php,v 1.4.2.1 2008/04/26 22:28:54 fplanque Exp $
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

if( version_compare( $app_version, '2.4.1' ) < 0 )
{ // Older 2.x skins work on newer 2.x b2evo versions, but newer 2.x skins may not work on older 2.x b2evo versions.
	die( 'This skin is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
}

// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init( $disp );


// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include( '_html_header.inc.php' );
// Note: You can customize the default HTML header by copying the generic
// /skins/_html_header.inc.php file into the current skin folder.
// -------------------------------- END OF HEADER --------------------------------
?>


<?php
// ------------------------- BODY HEADER INCLUDED HERE --------------------------
skin_include( '_body_header.inc.php' );
// Note: You can customize the default BODY header by copying the generic
// /skins/_body_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>


<div class="top_menu top_menu_narrow">
	<ul>
	<?php
		// ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
		// Display container and contents:
		skin_container( NT_('Menu'), array(
				// The following params will be used as defaults for widgets included in this container:
				'block_start' => '',
				'block_end' => '',
				'block_display_title' => false,
				'list_start' => '',
				'list_end' => '',
				'item_start' => '<li>',
				'item_end' => '</li>',
			) );
		// ----------------------------- END OF "Menu" CONTAINER -----------------------------
	?>
	</ul>
</div>


<div id="content" class="narrowcolumn">

<?php
	// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
	messages( array(
			'block_start' => '<div class="action_messages">',
			'block_end'   => '</div>',
		) );
	// --------------------------------- END OF MESSAGES ---------------------------------
?>

<?php
	// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
	request_title( array(
			'title_before'=> '<h2>',
			'title_after' => '</h2>',
			'title_none'  => '',
			'glue'        => ' - ',
			'title_single_disp' => true,
			'format'      => 'htmlbody',
		) );
	// ------------------------------ END OF REQUEST TITLE -----------------------------
?>

<?php
// Display message if no post:
display_if_empty();

while( $Item = & mainlist_get_item() )
{	// For each blog post, do everything below up to the closing curly brace "}"
?>
	<div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">

		<?php
			$Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
		?>

		<h2><?php $Item->title(); ?></h2>
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php $Item->permanent_url();?>&amp;layout=button_count&amp;show_faces=true&amp;width=150&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe>
			<ul class="datetime">	
            <li class="month"><?php
				$Item->issue_time( array(
						'time_format' => 'F',
					) );
			?></li>	
            <li class="day"><?php
				$Item->issue_time( array(
						'time_format' => 'j',
					) );
			?></li>	
                  </ul>


		<?php
			// ---------------------- POST CONTENT INCLUDED HERE ----------------------
			skin_include( '_item_content.inc.php', array(
					'image_size'	=>	'fit-400x320',
				) );
			// Note: You can customize the default item feedback by copying the generic
			// /skins/_item_feedback.inc.php file into the current skin folder.
			// -------------------------- END OF POST CONTENT -------------------------
		?>

		<?php
			// List all tags attached to this post:
			$Item->tags( array(
					'before' =>         '<div class="posttags">'.T_('Tags').': ',
					'after' =>          '</div>',
					'separator' =>      ', ',
				) );
		?>

		<p class="postmetadata">
        
        	<span class="the-comments">		<?php
				// Link to comments, trackbacks, etc.:
				$Item->feedback_link( array(
						'type' => 'feedbacks',
						'link_after' => '',
						'link_text_zero' => '#',
						'link_text_one' => '#',
						'link_text_more' => '#',
						'link_title' => '#',
						'use_popup' => false,
					) );
			?></span>
        <span class="the-categories">
			<?php
				$Item->categories( array(
					'after'           => ' ',
					'include_main'    => true,
					'include_other'   => true,
					'include_external'=> true,
					'link_categories' => true,
				) );
			?></span>

			<?php
				$Item->edit_link( array( // Link to backoffice for editing
						'before'    => ' | ',
						'after'     => '',
					) );
			?>


			</p>
	</div>

	<?php
	locale_restore_previous();	// Restore previous locale (Blog locale)
}
?>

<?php
	// -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
	mainlist_page_links( array(
			'block_start' => '<div class="navigation">',
			'block_end' => '</div>',
   		'prev_text' => '&lt;&lt;',
   		'next_text' => '&gt;&gt;',
		) );
	// ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
?>


</div>


<?php
// ------------------------- SIDEBAR INCLUDED HERE --------------------------
skin_include( '_sidebar.inc.php' );
// Note: You can customize the default BODY footer by copying the
// _body_footer.inc.php file into the current skin folder.
// ----------------------------- END OF SIDEBAR -----------------------------
?>


<?php
// ------------------------- BODY FOOTER INCLUDED HERE --------------------------
skin_include( '_body_footer.inc.php' );
// Note: You can customize the default BODY footer by copying the
// _body_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>


<?php
// ------------------------- HTML FOOTER INCLUDED HERE --------------------------
skin_include( '_html_footer.inc.php' );
// Note: You can customize the default HTML footer by copying the
// _html_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>

As you see i ve just added the code right after 'title'..

6 Apr 06, 2011 21:29

"tilqicom" wrote:

put it anywhere in your post loop depending on where you want it to appear..

Hello again!

I have another question?

When I added the line

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ficanhelp.ie%2Ftestblog%2Fblog2.php%2Fmy-journey-to-everest-2012&amp;layout=standard&amp;show_faces=true&amp;width=150&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe>

I get this error.

Parse error: syntax error, unexpected '<' in /home/bcyxshqy/public_html/testblog/skins/evocamp/posts.main.php on line 91

I was putting this code in between

?php
		// Display message if no post:
		display_if_empty();

		while( $Item = & mainlist_get_item() )
		{	// For each blog post:
			// ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
			skin_include( '_item_block.inc.php', array(
					'content_mode' => 'auto',		// 'auto' will auto select depending on $disp-detail
					'image_size'	 =>	'fit-400x320',
				) );
			// Note: You can customize the default item feedback by copying the generic
			// /skins/_item_feedback.inc.php file into the current skin folder.
			// ----------------------------END ITEM BLOCK  ----------------------------
		}
	?>

AND..

<?php
		// -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
		mainlist_page_links( array(
				'block_start' => '<div class="navigation">',
				'block_end' => '</div>',
   			'prev_text' => '&lt;&lt;',
   			'next_text' => '&gt;&gt;',
			) );
		// ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
	?>

	</div>

This is the link to my site, I would love to be able to put the like button beside my blog post to connect it with facebook! Only my second day learning!

Any help would be brilliant!

This is my code if anyone can show me where to put the link! Thanks people!!!

<?php
/**
 * This is the main/default page template.
 *
 * For a quick explanation of b2evo 2.0 skins, please start here:
 * {@link http://manual.b2evolution.net/Skins_2.0}
 *
 * The main page template is used to display the blog when no specific page template is available
 * to handle the request (based on $disp).
 *
 * @package evoskins
 * @subpackage zeke
 *
 * @version $Id: posts.main.php,v 1.13 2009/05/23 14:12:42 fplanque Exp $
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

if( version_compare( $app_version, '3.0' ) < 0 )
{ // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
    die( 'This skin is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
}

// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init( $disp );


// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include( '_html_header.inc.php' );
// Note: You can customize the default HTML header by copying the generic
// /skins/_html_header.inc.php file into the current skin folder.
// -------------------------------- END OF HEADER --------------------------------
?>


<?php
// ------------------------- BODY HEADER INCLUDED HERE --------------------------
skin_include( '_body_header.inc.php' );
// Note: You can customize the default BODY header by copying the generic
// /skins/_body_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>

<div id="page">

    <div id="contentleft">

    <?php
    // Go Grab the featured post:
    if( $Item = & get_featured_Item() )
    {    // We have a featured/intro post to display:
        // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
        skin_include( '_item_block.inc.php', array(
                'feature_block' => true,
                'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
                'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
                'item_class'   => 'featurepost',
                'image_size'     =>    'fit-400x320',
            ) );
        // ----------------------------END ITEM BLOCK  ----------------------------
    }
    ?>

    <?php
    // ------------------------- SIDEBAR INCLUDED HERE --------------------------
    skin_include( '_sidebar_left.inc.php' );
    // Note: You can customize the default BODY footer by copying the
    // _body_footer.inc.php file into the current skin folder.
    // ----------------------------- END OF SIDEBAR -----------------------------
    ?>

    <div id="content">

    <?php
        // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
        request_title( array(
                'title_before'=> '<h2 class="sectionhead">',
                'title_after' => '</h2>',
                'title_none'  => '',
                'glue'        => ' - ',
                'title_single_disp' => true,
                'format'      => 'htmlbody',
            ) );
        // ------------------------------ END OF REQUEST TITLE -----------------------------
    ?>
    <?php
     

        

    <?php
        // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
        messages( array(
            'block_start' => '<div class="action_messages">',
            'block_end'   => '</div>',
        ) );
        // --------------------------------- END OF MESSAGES ---------------------------------
    ?>

    <?php
        // Display message if no post:
        display_if_empty();

        while( $Item = & mainlist_get_item() )
        {    // For each blog post:
            // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
            skin_include( '_item_block.inc.php', array(
                    'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
                    'image_size'     =>    'fit-400x320',
                ) );
            // Note: You can customize the default item feedback by copying the generic
            // /skins/_item_feedback.inc.php file into the current skin folder.
            // ----------------------------END ITEM BLOCK  ----------------------------
        }
    ?>


    <?php
        // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
        mainlist_page_links( array(
                'block_start' => '<div class="navigation">',
                'block_end' => '</div>',
               'prev_text' => '&lt;&lt;',
               'next_text' => '&gt;&gt;',
            ) );
        // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
    ?>

    </div>

</div>

<?php
// ------------------------- SIDEBAR INCLUDED HERE --------------------------
skin_include( '_sidebar_right.inc.php' );
// Note: You can customize the default BODY footer by copying the
// _body_footer.inc.php file into the current skin folder.
// ----------------------------- END OF SIDEBAR -----------------------------
?>

</div>

<?php
// ------------------------- BODY FOOTER INCLUDED HERE --------------------------
skin_include( '_body_footer.inc.php' );
// Note: You can customize the default BODY footer by copying the
// _body_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>


<?php
// ------------------------- HTML FOOTER INCLUDED HERE --------------------------
skin_include( '_html_footer.inc.php' );
// Note: You can customize the default HTML footer by copying the
// _html_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>

7 Apr 07, 2011 09:47

Here is the modified index.php file:

<?php
/**
 * This is the main/default page template.
 *
 * For a quick explanation of b2evo 2.0 skins, please start here:
 * {@link http://manual.b2evolution.net/Skins_2.0}
 *
 * The main page template is used to display the blog when no specific page template is available
 * to handle the request (based on $disp).
 *
 * @package evoskins
 * @subpackage zeke
 *
 * @version $Id: posts.main.php,v 1.13 2009/05/23 14:12:42 fplanque Exp $
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

if( version_compare( $app_version, '3.0' ) < 0 )
{ // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
    die( 'This skin is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
}

// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init( $disp );


// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include( '_html_header.inc.php' );
// Note: You can customize the default HTML header by copying the generic
// /skins/_html_header.inc.php file into the current skin folder.
// -------------------------------- END OF HEADER --------------------------------
?>


<?php
// ------------------------- BODY HEADER INCLUDED HERE --------------------------
skin_include( '_body_header.inc.php' );
// Note: You can customize the default BODY header by copying the generic
// /skins/_body_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>

<div id="page">

    <div id="contentleft">

    <?php
    // Go Grab the featured post:
    if( $Item = & get_featured_Item() )
    {    // We have a featured/intro post to display:
        // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
        skin_include( '_item_block.inc.php', array(
                'feature_block' => true,
                'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
                'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
                'item_class'   => 'featurepost',
                'image_size'     =>    'fit-400x320',
            ) );
        // ----------------------------END ITEM BLOCK  ----------------------------
    }
    ?>

    <?php
    // ------------------------- SIDEBAR INCLUDED HERE --------------------------
    skin_include( '_sidebar_left.inc.php' );
    // Note: You can customize the default BODY footer by copying the
    // _body_footer.inc.php file into the current skin folder.
    // ----------------------------- END OF SIDEBAR -----------------------------
    ?>

    <div id="content">

    <?php
        // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
        request_title( array(
                'title_before'=> '<h2 class="sectionhead">',
                'title_after' => '</h2>',
                'title_none'  => '',
                'glue'        => ' - ',
                'title_single_disp' => true,
                'format'      => 'htmlbody',
            ) );
        // ------------------------------ END OF REQUEST TITLE -----------------------------
    ?>
    <?php
     

        

    <?php
        // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
        messages( array(
            'block_start' => '<div class="action_messages">',
            'block_end'   => '</div>',
        ) );
        // --------------------------------- END OF MESSAGES ---------------------------------
    ?>

    <?php
        // Display message if no post:
        display_if_empty();

        while( $Item = & mainlist_get_item() )
        {    // For each blog post:
            // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
            skin_include( '_item_block.inc.php', array(
                    'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
                    'image_size'     =>    'fit-400x320',
                ) );
            // Note: You can customize the default item feedback by copying the generic
            // /skins/_item_feedback.inc.php file into the current skin folder.
            // ----------------------------END ITEM BLOCK  ----------------------------
        }
    ?>
  <iframe src="http://www.facebook.com/plugins/like.php?href=<?php $Item->ID();?>&amp;layout=button_count&amp;show_faces=true&amp;width=150&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe>

    <?php
        // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
        mainlist_page_links( array(
                'block_start' => '<div class="navigation">',
                'block_end' => '</div>',
               'prev_text' => '&lt;&lt;',
               'next_text' => '&gt;&gt;',
            ) );
        // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
    ?>

    </div>

</div>

<?php
// ------------------------- SIDEBAR INCLUDED HERE --------------------------
skin_include( '_sidebar_right.inc.php' );
// Note: You can customize the default BODY footer by copying the
// _body_footer.inc.php file into the current skin folder.
// ----------------------------- END OF SIDEBAR -----------------------------
?>

</div>

<?php
// ------------------------- BODY FOOTER INCLUDED HERE --------------------------
skin_include( '_body_footer.inc.php' );
// Note: You can customize the default BODY footer by copying the
// _body_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>


<?php
// ------------------------- HTML FOOTER INCLUDED HERE --------------------------
skin_include( '_html_footer.inc.php' );
// Note: You can customize the default HTML footer by copying the
// _html_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>

8 Apr 07, 2011 14:41

Thank you tilqicom!

Thank you so much!

I will let you all know how i get along!!

Have a wonderful day!

9 Apr 07, 2011 16:38

No matter where I place the iframe in the Aventura skin, the page gets truncated...:

Why could that be happening?

10 Apr 07, 2011 17:47

gcasanova wrote:

No matter where I place the iframe in the Aventura skin, the page gets truncated...:

Why could that be happening?

sounds strange.. you are placing it outside php tags right ? try placing it into item.block.php rather than index/posts.main.php

11 Apr 07, 2011 18:14

"tilqicom" wrote:

Here is the modified index.php file: [code]<?php
/**

I added that code to my link and got this result.

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php $Item->ID(http://icanhelp.ie/blog/my-journey-to-everest-2012/);?>&amp;layout=button_count&amp;show_faces=true&amp;width=150&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21&quot; scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe>

I am wondering if there is some other place to put this code? As i dont see it on the blog link http://icanhelp.ie/blog/my-journey-to-everest-2012

I have no errors but the like button does not show up!

More investigation in needed!!

Thanks people!

Anyone push me in the right way?

12 Apr 07, 2011 19:08

......em->ID(http://icanhelp.ie/blog/my-journey-to-everest-2012.......

where does that "http://icanhelp.ie/b...." part come from ?

Did you add that manually ? you shouldnt.

and btw i cannot access your blog:

The connection has timed out.The server at icanhelp.ie is taking too long to respond.

13 Apr 07, 2011 22:21

Hi,

Yes i did add the address, i was thinking that it went in there! I have taken it out now and now i get this error

Parse error: syntax error, unexpected '<' in /home/bcyxshqy/public_html/blog/skins/evocamp/posts.main.php on line 91

When i had the link in, i never got an error. Funny!

http://icanhelp.ie/blog/

I check the site on 2 computers, i hope it is working now for you to have a look.

Thanks tilqicom!

Dave.

14 May 31, 2011 00:00

Can anyone else get this to work? I've played around with it for a while right after upgrading to 4.0.5 and I get an error if I put the code into any file other than index.main.php. Putting it in index.main.php doesn't give an error but I don't see the Like button either. I put the code right before the Main Content Template include.

Thanks,

Paul


Form is loading...