MyBB Community Forums

Full Version: Making portal announcements scroll
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to be able to make my portal look for portal like akin to the portals for vbulletin and IPB.

What I want to do is make the portal announcements scroll, so more announcements can be added without making the actual page too big or messing up the layout, I also want to know how boxes can be added and how to move some of them from the left to the right.

Thanks if anyone can let me know.
Xtreme2damax Wrote:I want to be able to make my portal look for portal like akin to the portals for vbulletin and IPB.

What I want to do is make the portal announcements scroll, so more announcements can be added without making the actual page too big or messing up the layout,

I dont know about making it scroll but heres a way to add a paging system to it:

http://mybbhacks.zingaburga.com/showthread.php?tid=54

Xtreme2damax Wrote:I also want to know how boxes can be added and how to move some of them from the left to the right.

Thanks if anyone can let me know.

Heres how someone showed me:

http://community.mybboard.net/showthread...#pid214098
I already read that, but that isn't what I want to do. I'm sorry about posting this thread in the wrong section, thanks for moving it.
http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

Dynamic drive has a few easy to implement javascript methods for scrolling. Unfortunately we won't have an html marquee until 3.0 I believe which isn't supported by browsers yet.
labrocca Wrote:http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

Dynamic drive has a few easy to implement javascript methods for scrolling. Unfortunately we won't have an html marquee until 3.0 I believe which isn't supported by browsers yet.

Thanks, but where do I add that code in the portal.php file or templates?
One way to do it is putting a div around the text that's set to scroll the overflow if it hits a specific height, or in other words...

Templates -> Modify / Delete -> (your template set name) -> Expand -> Portal Templates -> portal_announcement

Find:
<p>{$message}</p>{$post['attachments']}

Replace with:
<div style="max-height: 300px; overflow: auto;">
<p>{$message}</p>{$post['attachments']}
</div>

That wont make it move though mind you, but it'll add a scroll bar if they get too big.