Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1224
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Board News Block Setting up News

Started by [dx], November 20, 2008, 09:54:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[dx]

Hi there :)

I was wondering if somehow can be done that those Topic Names from Board News Block can be written in news base.

So let say, for example:

I choose to show 10 topics in board news block and each topic name is written to news db. Hope you understand what I'm saying about.

Later i'll use news in <marquee> to scrool latest news :]

Thanks in advance.

bvs

I have done it using a PHP Block by placing a call to "board news" block  between marquee tag.

sp_boardnews(32.0); 

As I use one board exclusively for the latest news, I don't have to filter it further. 

Hope this would help you

:)

cheers!


God is good, all the time :)

[dx]

Not really, can you show me your script

bvs

other than the call to sp_boardnews function which is part of SP standard functions, the remaing code is for the marquee. Please note that  I found the HTML version of  this marquee script at  www.dynamicdrive.com and had to convert to pure PHP to put it in a PHP block.

[code]
echo "<style type='text/css'>";
echo "";
echo "#marqueecontainer{";
echo "position: relative;";
echo "width: 200px; /*marquee width */";
echo "height: 200px; /*marquee height */";
echo "background-color: white;";
echo "overflow: hidden;";
echo "border: 3px solid orange;";
echo "padding: 2px;";
echo "padding-left: 4px;";
echo "}";
echo "";
echo "</style>";
echo "";
echo "<script type='text/javascript'>";
echo "";
echo "/***********************************************";
echo "* Cross browser Marquee II-
God is good, all the time :)

[dx]

I've searched in ManagaNews.php file from Source folder and found this

updateSettings(array('news' => implode("\n", $_POST['news'])));

Could be used in New Block when reading last news to update or something.

Any help :)

ibm450


[dx]

Quote from: ibm450 on November 21, 2008, 07:14:11 PM
dosnt scroll, whats it meant to do??

What?

----------------

So, something can be done with setting up news?

Regards