Help with {NEW}, Changing the way its displayed

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
CJThunder
Posts: 5
Joined: Fri 21. Apr 2006, 19:46

Help with {NEW}, Changing the way its displayed

Post by CJThunder »

I want a scrolling news ticker like http://www.nintendoinsider.com (not my site, so don't think I am plugging) anyway, I want to use {NEW} but it puts posts Vertical.

1.
2.
3.
4.
5.

Is there any way to get {NEW} to post Horizontal and to get it scrolling?

1. 2. 3. 4. 5.


Thanks...
CJThunder
Posts: 5
Joined: Fri 21. Apr 2006, 19:46

Post by CJThunder »

OK I got an idea, since I can't change {NEW} directly, because its used elswhere, I want to make a copy of it and make a new one called {NEW_TICKER} without the line break, do you think this will work, and if so how would I do this?


Thanks.
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Here you can find some tools...
Don't know, if it's possible, but i would start here:
// new articles --------------------------------- ===============================================================================
$template_default["news"]["before"] = '<div class="news">';
$template_default["news"]["after"] = '</div>';
$template_default["news"]["link_before"] = '<p>::';
$template_default["news"]["link_after"] = '</p>';
$template_default["news"]["link_symbol"] = '';
$template_default["news"]["link_target"] = '';
$template_default["news"]["link_length"] = 0; //if 0 no limit
$template_default["news"]["cut_title_add"] = "…";
$template_default["news"]["date_language"] = "DE"; // DE=German, IT=Italian, FR=French, ES = Spanish, DA = Danish, NO = Norwegian
$template_default["news"]["date_format"] = "d.m.Y"; //if empty -> no Date
$template_default["news"]["date_before"] = '<br /><span class="datelink">';
$template_default["news"]["date_after"] = ' :<br /></span>';
$template_default["news"]["sort_by"] = 'update'; // 'cdate' = Creation date, or 'udate' = update date
mattslk
Posts: 7
Joined: Sat 22. Apr 2006, 03:10

Post by mattslk »

Won't editing that just make it one way or the other? Either horizontal or vertical list? You could edit that code to get rid of the line breaks and such but then you wouldnt be able to list vertically, my guess would be to make a new replacement tag. I would like to know a good answer to this as well, or maybe if anybody knows where there is a good tutorial to create a replacement tag.
CJThunder
Posts: 5
Joined: Fri 21. Apr 2006, 19:46

Post by CJThunder »

CJThunder wrote:OK I got an idea, since I can't change {NEW} directly, because its used elswhere, I want to make a copy of it and make a new one called {NEW_TICKER} without the line break, do you think this will work, and if so how would I do this?


Thanks.
See how I said COPY so there would be two, I would change what I need and have the original and the new one...but I just need to know what steps to take.
Post Reply