Recent Topics

1 Jul 21, 2005 11:44    

Hi there! I am new to this forum, but I have read a lot here. First off all, thank you for all the great tips around here.

Second, I need some help. My site needs a portal. But I have no idea how to do it. What I got:

- a full b2evo installation in http/odn/
- an index page in http/

But now, I want to show the titles of my blog, on the main (index) page. So you can only see the hearders, and click those links to go to the full article.

Anyone got a great idea how to do this?

Well, that's not all. I tried to find a way to align my images automatically, I found a way to do it, but that didn't work (see http://blog.lesperlesduchat.com/perles.php/2005/06/05/deni_de_service). I had to import somce code to my costum.css, but I cant get it working. See this topic: http://forums.b2evolution.net/viewtopic.php?t=4763

Solved the image align problem myself :)

If you are interesed in my created skin, check www.ookditnog.nl

Thank you in advance for your reply :)

2 Jul 21, 2005 14:09

Your skin looks great. You should [url=http://skins.b2evolution.net/submit.php]submit it[/url] to the skin repository. If you want to have links to post on your main index page, then take a look at summary.php. You can do a php include on that file in your main index.php and it should show links to your stories.

3 Jul 23, 2005 19:05

Thanks for the comment :) But I will not make my skin public because it is part of my site. Perhaps I will contribute it with different colours. Glad you like the skin!

Well, I looked at summary.php, but I have no idea what to do with it. I guess I should read some kind of a manual first, but thanks for the help. Going to do some research right now :)

4 Jul 23, 2005 22:14

Well, I got it all working now :) The only problem is that the links do not get the right colour! And I definatelly need some pictures, and other stuff to make the portal page more interesting. Does anyone have an idea?

5 Jul 24, 2005 22:16

You should be able to change the color of the links using CSS.

6 Jul 25, 2005 01:24

Nik wrote:

But now, I want to show the titles of my blog, on the main (index) page. So you can only see the hearders, and click those links to go to the full article.

Anyone got a great idea how to do this?

I've made it on [url=http://blog.lesperlesduchat.com]my own site's main page[/url]. You can check [url=http://blog.lesperlesduchat.com/media/zip/lesperlesduchat_accueil_v0.1.zip]my "all" blogs's skin[/url] (it is specific to my site.) The interesting stuff is there:

<?php // ------------------------------------ START OF POSTS
	$order = 'DESC';
	$orderby = 'issue_date';
	$posts = 30;
	$MainList = & new ItemList( $blog, $show_statuses, $p, $m, $w, $cat, $catsel, $author, $order, 
					$orderby, $posts, $paged, $poststart, $postend, $s, $sentence, $exact,
					$preview, '', '', $timestamp_min, $timestamp_max, $title );

	if( isset($MainList) )
	{
		$posts_per_page = $MainList->posts_per_page;
		$what_to_show = $MainList->what_to_show;
		$request = & $MainList->request;
		$result_num_rows = $MainList->get_num_rows();
		$postIDlist = & $MainList->postIDlist;
		$postIDarray = & $MainList->postIDarray;
	?>
		<H3 class="bTitle"><SPAN>Articles publi&eacute;s</SPAN></H3>
		<ul>
			<li class="Date"><strong><?php echo T_('Date'); ?></strong></li>
			<li class="Language">&nbsp;</li>
			<li class="Title"><strong><?php echo T_('Title'); ?></strong></li>
			<li class="Category"><strong><?php echo T_('Category'); ?></strong></li>
			<li class="Author"><strong><?php echo T_('Author'); ?></strong></li>
		</ul>
		<?php
		while( $Item = $MainList->get_item() )
		{
		?>
			<?php locale_temp_switch( $Item->locale ); // Temporarily switch to post locale ?>
			<ul>
				<li class="Date"><?php $Item->issue_date( 'd/m' ); ?> <?php $Item->issue_time( 'H:i' ); ?></li>
				<li class="Language"><?php locale_flag( $Item->locale, 'h10px' ); ?></li>
				<li class="Title"><a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><?php $Item->title('', '', false ); ?></a></li>
				<li class="Category"><?php $Item->categories( false, '', '', 'hide' ); ?></li>
				<li class="Author"><?php $Item->Author->prefered_name(); ?></li>
			</ul>
		}
	} // ---------------------------------- END OF POSTS
?>

The <ul> and <li> tags are modified by the associated CSS to behave as table and cells.


Form is loading...