1 nik Jul 21, 2005 11:44
3 nik 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 nik 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 personman Jul 24, 2005 22:16
You should be able to change the color of the links using CSS.
6 kwa 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és</SPAN></H3>
<ul>
<li class="Date"><strong><?php echo T_('Date'); ?></strong></li>
<li class="Language"> </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.
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.