News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

need help with the NEWS

Started by Floyds, April 11, 2004, 09:10:18 AM

Previous topic - Next topic

Floyds

Is there someone how can tell me if this it posible, and if so tell me how ?!

Eg: on the frontpage.

Thats new. <- topic
bla bla bla bla bla <-news
blab alba .... (more)

I want the news on my frontpage, but not the hole newstopic, because it's to long, and I only want to have 3 or 4 lines only and I want to have the (more) optie ?!

Is this possible ?!

I've got the 3 or 4 lines working, but now I need the (read more) or (more) option.... !!

TiA


Floyds

is there no one how can help me with this.. or is this just not posible yet ?!

Ben_S

What code have you used to get what you have so far?
Liverpool FC Forum with 14 million+ posts.

Floyds

well with this one..

<? include("http://www.alliedassault.nl/yabbse/SSI.php?ssi_function=boardNews;board=1;limit=1;length=100" ); ?>

And I get this as result http://www.alliedassault.nl/t.php

Now I want to have a (more) link instat of the "...."

-=-=-
And I got het headlines with this :

<?php

require_once('/home/alliedassault.nl/html/yabbse/SSI.php');

$array = ssi_boardNews(1, 3, 0, 100, 'array');

foreach ($array as $news)
      echo '
         <a href="', $news['href'], '"target="_blank">', $news['subject'], '</a>','<br />';




?>

Owdy

#4
Quote from: Floyds on April 20, 2004, 09:52:32 AM
Now I want to have a (more) link instat of the "...."



SSI.php
find:
'new_comment' => '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['numReplies'] . '">' . $txt['smf_news_3'] . '</a>',


ad after:
'more' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0"> More</a>',


find:
<tr>
<td>', $news['body'], '<br /><br /></td>
         </tr>

replase
<tr>
<td>', $news['body'], '', $news['more'], '<br /><br /></td>
          </tr>


Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Floyds

Many many thanks... this is what I wanted.... thanks again.... :D

Owdy

If you want modify that "more" output its in that:
'more' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0"> More</a>',

like this maybe:
'more' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0">(more)</a>',
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Floyds

will have a look at that aswell.. I did some modifications just yet, and and now it opens a news window..

thx again..

I hope this comes in the final release... is great for self made portals..

Floyds

Now it's working like hell... but now I want to know how to change the text size, I can't get it to work for me..  anyone how can help me out...

[Unknown]

You can use a stylesheet to fix it.. or use font/span/div/whatever.

-[Unknown]

Floyds

Way is this not working then ?? (I think it's wrong, but I don't know whats wrong) ?!

The styles:
<style>
.style1 {color: #FFFFFF
   text-decoration:none;
   font-size: 8px;
}
</style>

The Code/Include:
<div class="style1"><? include("http://www.alliedassault.nl/yabbse/SSI.php?ssi_function=boardNews;board=29;limit=1;length=150"); ?>
</div>

I know that i'm doing something wrong but what ??

[Unknown]

Try:

.style td
{
   color: #FFFFFF;
   font-size: 8px;
}

-[Unknown]

Floyds

thats the trick... it works...  ;D

Thanks.. (again)... :D

Advertisement: