Recent Topics

1 Sep 02, 2007 19:19    

My b2evolution Version: Not Entered

G'day all.

I just created a blog that I want to integrate into a site.

Here's the blog:

http://synesiassociates.com/blog/

Here's the first integration into their beta site (I know, using iFrame. I'm cheap):

http://tomvranas.com/wblog/news.html

Now what I'm trying to do is create a listing of the last 3 postings on every other page (I've already created a text box for this):

http://tomvranas.com/wblog/index.html

Finally, I've gotten my summary.php parsed down:

http://synesiassociates.com/blog/summary.php

---

HELP! How do I take it the next step and only get the headlines from *one* blog into the site? Formatting?

I'm totally clueless, any help would be awesome.

Thanks,
Tom

2 Sep 02, 2007 19:23

ive deleted your other thread - please dont doublepost. If you do doublepost accidentally, as the topic starter you can go back and delete the duplicate by editing it, and checking the delete box.

3 Sep 02, 2007 19:29

@whoo: LOL, I got an 'This post doesn't exist' error when posting my answer.

It's all there in summary.php from line 89:

 { # by uncommenting the following lines you can hide some blogs
  // if( $blog == 1 ) continue; // Hide blog 1...


All blogs have a number. The All Blog is number 1, Blog A number 2, Blog B number 3 and the Linkblog is number 4 (from the basic installation)

BTW, <iframe> is not cheap, it's just not poular due to it's big brother <frame>. Depending on how your site should end up, I would suggest you to avoid the <iframe> for the blog, but it's an excellent choice for the summary.

Do have a look at the [url=http://brendoman.com/dbc/2006/07/12/sideblog_plugin_for_b2evolution]Side blog Plugin[/url] as well.

Good luck

4 Sep 05, 2007 16:15

I thought I posted this earlier, but I'm getting closer...

Here's the current summary page:

http://synesiassociates.com/blog/summary.php

Here's a test of the iFrame:

http://tomvranas.com/wblog/company.html

I want to do 3 things still:

1) take off the blog title
2) take off the langauge brackets
3) change the font

Any help? Here's the current summary.php:

<?php
/**
 * This is a demo template displaying a summary of the last posts in each blog
 *
 * If you're new to b2evolution templates or skins, you should not start with this file
 * It will be easier to start examining blog_a.php or noskin_a.php for instance...
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
 * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
 *
 * @package evoskins
 * @subpackage noskin
 */

/**
 * Check this: we are requiring _main.php INSTEAD of _blog_main.php because we are not
 * trying to initialize any particular blog
 */
require(dirname(__FILE__).'/b2evocore/_main.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>"><!-- InstanceBegin template="/Templates/Standard.dwt" codeOutsideHTMLIsLocked="false" -->
<head>



<!-- =================================== START OF MAIN AREA =================================== -->


<?php // --------------------------- BLOG LIST -----------------------------
	for( $blog=blog_list_start('stub');
				$blog!=false;
				 $blog=blog_list_next('stub') )
	{ # by uncommenting the following lines you can hide some blogs
		if( $blog == 1 ) continue; // Hide blog 1...
		?>
<h3><a href="<?php blog_list_iteminfo('blogurl', 'raw' ) ?>" title="<?php blog_list_iteminfo( 'shortdesc', 'htmlattr'); ?>"><?php blog_list_iteminfo( 'name', 'htmlbody'); ?></a></h3>
		<ul>
		<?php	// Get the 3 last posts for each blog:
			$BlogBList = & new ItemList( $blog,  '', '', '', '', '', array(), '', 'DESC', '', '', '', '', '', '', '', '', '', '3', 'posts' );

			while( $Item = $BlogBList->get_item() )
			{
			?>
			<li lang="<?php $Item->lang() ?>">
				<?php $Item->issue_date() ?>:
				<a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><?php $Item->title( '', '', false ); ?></a>
				<span class="small">[<?php $Item->lang() ?>]</span>
			</li>
			<?php
			}
			?>
			<li><a href="<?php blog_list_iteminfo('blogurl', 'raw' ) ?>"><?php echo T_('More posts...') ?></a></li>
		</ul>
		<?php
	}
	// ---------------------------------- END OF BLOG LIST --------------------------------- ?>
<!-- InstanceEndEditable --></div>

<!-- InstanceEndEditable --></p>
</body>
<!-- InstanceEnd --></html>

Thanks in advance!!

5 Sep 05, 2007 16:35

1)

<h3><a href="<?php blog_list_iteminfo('blogurl', 'raw' ) ?>" title="<?php blog_list_iteminfo( 'shortdesc', 'htmlattr'); ?>"><?php blog_list_iteminfo( 'name', 'htmlbody'); ?></a></h3> 

is the title (delete it.)

2)
Change

<li lang="<?php $Item->lang() ?>">


in

<li>


2a)
Delete

<span class="small">[<?php $Item->lang() ?>]</span> 

3)
Add right before </head>

<style type="text/css">
body {
font-family: sans-serif;
font-size: 8px;
}
</style>


but the body disappeared. so insert directly after <head>

<title>latest posts</title>
*** paste the code above here ***
</head>
<body>

Good luck


Form is loading...