Customizing SMF > SMF Coding Discussion

need help with the NEWS

(1/3) > >>

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?

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:

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


--- End quote ---


SSI.php
find:

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

--- End code ---

ad after:

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

--- End code ---

find:

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

--- End code ---
replase

--- Code: ---<tr>
<td>', $news['body'], '', $news['more'], '<br /><br /></td>
          </tr>

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version