Hello,
I've search all over the site but couldn't find it anywhere.
My question is:
How can i put the message icon's i put in my form also get in the frontpage of Tinyportal, where the latest new topics are shown? The firts newest topic is open but the rest is only the title, (you can better watch it on: http://www.ggamer.nl ), i want to show it at all newest topics on my frontpage (also the only-title ones)
An example:
I put the standard icon in my forum topic, but i can't see it on my frontpage.
Thanx!
Kebam
Welcome to TinyPortal
It looks to me like you are using 1 Article and 1 Block set as a Recent Topics Block?
2 different things.
You could set up 1 board to feature News on the home page, or several boards, you can see an example on my home page, the top center news block and 2 additional Articles below, each feature news from a different board.
Link to my home page is under my Avatar.
To do something similar, see this post:
http://www.tinyportal.net/index.php?topic=24840.msg199834#msg199834
Outstanding layout and site ZTN, first time I've seen it. Looks like it could be a great solution for Kebam.
Sorry if I get off track a bit.
Thanks for your reply, but it isn't the tight answer.
The left box is a Recent Topics Block, the first one can be readed a little and the the other topics you only see the title. No Article box is used.
Great site, but it isn't what i want. i just want to have it like this, without you can read all the topics a little.
The only thing i want is to show the message icons on my frontpage, like it is on this page: http://www.ggamer.nl/index.php/board,1.0.html
Is this possible?
Thanks again for your reply
Quote from: Bluto on July 23, 2008, 03:16:26 PM
Outstanding layout and site ZTN, first time I've seen it. Looks like it could be a great solution for Kebam.
Sorry if I get off track a bit.
Thanks
Im not sure what "solution" you are after. Much of my home page is custom.
@ Kebam
I'm having a little difficulty understanding exactly what it is you are after. Heres what I think you want.
You want:
- Game Console Post Icons, displayed next to the posts
- Topic Heading, Author and short intro as in the First top message
It can be done using the post I suggested earlier, but using an array calling all the boards that you need. I might ask IchBin if he knows a better way to do it. But, if you navigate here: http://www.ggamer.nl/ssi_examples.php
You can see all the options currently available in the SSI (Server Side Include) file.... ( I love SMF ;))
lol, I'm looking for your site Bluto called Kebam, and realised you were refering to Kebam the topic starter, gawd.. I am stoopid :uglystupid2:
LOL, no worries. I knew what you meant.
Sorry for misunderstanding, i made an example of what i want.
See picture! And what i got now you can see @ my site.
The images you see (@ left) are the message icons.
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.ggamer.nl%2FPreview.jpg&hash=247842d402b6a5ac2523ed74bdb0819c67dcf0ec)
Thats what I thought, although I still do not understand how or why you have the top first post with an intro, unless its a separate block or article, because TP does not do that natively.
And unless you want to use some custom code, bearing in mind, I'm not a coder.. TP does not include post icons next to the Recent Topics. Most of our coders are on hiatus right now. But the way I see it is to use the ssi board news function, in an array and to only display Post Icon, Title, Author and Time & Date.
Something like the following example, taken from a now abandoned block code from my site..
Example:
// Fetch Board, Number of Topics Displayed. Subject, Time & Date and Topic Starter
$array = ssi_boardNews(66.0, 8, null, null, 'array');
foreach ($array as $r)
{
echo '
<div style="padding: 0px;" class="smalltext"><p style="margin: 0pt; padding: 0pt 0pt 0.5ex;">
<a href="', $r['href'], '">', $r['subject'], '</a><br>', '['.$r['time'].']', '<br>by <b>', $r['poster']['link'], '</b></p></div>';
if (!$r['is_last'])
echo '
<hr width="100%" />';
}
I would need to look into how to pull the Post Icon into that code as well as the array for the extra boards. JPDeni or Dragooon could probably tell you straight off the top.. It took me the best part of an afternoon to figure that much :buck2:
hmm, long time no post, sorry. But i don't get it, if this is the right code?
I think i found the place where to change this setting:
Tportal.template:
// first normal, rest icons
case '2':
if($count<2)
{
if($story['is_boardnews'] || $story['frame']=='theme')
echo '
<div class="tborder tp_article_frame">';
$ntime='
<span class="tp_month">' . date("M",$story['timestamp']). '</span><span class="tp_thindivider"> </span><span class="tp_day">'. date("d",$story['timestamp']) . '</span> <span class="tp_year"> '. date("Y",$story['timestamp']) . '</span>';
if($story['is_boardnews'] || isset($story['options']['title']) || $context['TPortal']['mycat']!='')
{
echo '
<div' , $story['is_featured'] ? ' id="featured_article"' : '' , ' class="' , $story['is_boardnews'] ? 'catbg' : 'titlebg' , ' tp_subject">';
if($context['TPortal']['print_articles']==1)
echo '
<a href="' . $story['print_href'] . '"><img style="margin-right: 6px;" align="right" src="' . $settings['tp_images_url'] . '/TPprint.gif" alt="" /></a>';
if(isset($story['options']['date']) || $story['is_boardnews'])
echo $ntime;
echo '
<img src="' , $settings['tp_images_url'] , '/TPxx.gif" alt="" /> <a href="' , $story['href'] , '">' , $story['subject'] , '</a>
</div>';
And then the latest 2 lines (TPxx.gif)
or:
// normal render
case '1':
if($story['is_boardnews'] || $story['frame']=='theme')
echo '
<div class="tborder tp_article_frame">';
$ntime='
<span class="tp_month">' . date("M",$story['timestamp']). '</span><span class="tp_thindivider"> </span><span class="tp_day">'. date("d",$story['timestamp']) . '</span> <span class="tp_year"> '. date("Y",$story['timestamp']) . '</span>';
if($story['is_boardnews'] || isset($story['options']['title']) || $context['TPortal']['mycat']!='')
{
echo '
<div' , $story['is_featured'] ? ' id="featured_article"' : '' , ' class="' , $story['is_boardnews'] ? 'catbg' : 'titlebg' , ' tp_subject">';
if($context['TPortal']['print_articles']==1)
echo '<a href="' . $story['print_href'] . '"><img style="margin-right: 6px;" align="right" src="' . $settings['tp_images_url'] . '/TPprint.gif" alt="" /></a>';
if(isset($story['options']['date']) || $story['is_boardnews'])
echo $ntime;
echo '
<img src="' , $settings['tp_images_url'] , '/TPxx.gif" alt="" /> <a href="' , $story['href'] , '">' , $story['subject'] , '</a>
</div>';
}
Also the latest 2 lines (TPxx.gif).
Someone knows how to fix this? BTW: i change the front page, so the image isn't recent anymore. Now there is always the TPxx.gif image in the title of my post. For recent frontpage go to ggamer.nl
Thanks for reading and maybe posting/helping me!