Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Vertical News Ticker Panel

Asked Modified Viewed 13,105 times
J
jikaka
J
jikaka 10
www.rusfusion.ru - russian nss
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 82 threads in the forums
  • Started this discussions
asked
Veteran Member

[mp]408[/mp]
0 replies

19 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Nice one!
0 replies
J
jikaka
J
jikaka 10
www.rusfusion.ru - russian nss
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 82 threads in the forums
  • Started this discussions
answered
Veteran Member

thx:)
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Welcome! Its coolio.
0 replies
H
HaYaLeT
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Great! i like it..
0 replies
J
jikaka
J
jikaka 10
www.rusfusion.ru - russian nss
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 82 threads in the forums
  • Started this discussions
answered
Veteran Member

thanks guys!
:)
0 replies
— 2 months later —
H
Harly
H
Harly 10
Regards, Har1y.
  • Senior Member, joined since
  • Contributed 302 posts on the community forums.
  • Started 51 threads in the forums
answered
Senior Member

Hi jikaka!

There's some minor typo-errors in the locale files of this panel - both in the Russian and the English one..
This:
$locale['vnt002'] = "Category:";
$locale['vnt003'] = "Author:";

Result:
Category:Whatever
Author:Harly


- should be like this:
$locale['vnt002'] = "Category: ";
$locale['vnt003'] = "Author: ";

Result:
Category: Whatever
Author: Harly


Looks better that way, right? ;)

Besides that: Thanks for the fine panel! :)
0 replies
Z
zodan
Z
zodan 10
  • Member, joined since
  • Contributed 51 posts on the community forums.
  • Started 10 threads in the forums
answered
Member

Hello and thank you for what you do, I installed this panel time ago, but since I applied this mod,
http://www.php-fusion.co.uk/forum/vie...d_id=29035
the display panel is not properly.

here's a screen panel can be seen Tags: center and image, my mistake to install? Can you tell me something...
Sorry for my bad English

img860.imageshack.us/img860/3664/immagineotn.png
0 replies
Z
zodan
Z
zodan 10
  • Member, joined since
  • Contributed 51 posts on the community forums.
  • Started 10 threads in the forums
answered
Member

UP
0 replies
L
lifeguard
L
  • Member, joined since
  • Contributed 113 posts on the community forums.
  • Started 27 threads in the forums
answered
Member

Is it possible, to see only the titles?
0 replies
— 2 months later —
Z
zodan
Z
zodan 10
  • Member, joined since
  • Contributed 51 posts on the community forums.
  • Started 10 threads in the forums
answered
Member

Ciao a tutti, ci stò sbattendo da un pò con questo pannello, il problema e che non visualizza l'immagine (se eventualmente cè) ma direttamente il codice dell'immagine stessa :
Eccovi uno screen:
img109.imageshack.us/img109/1797/immaginekgo.png


come si vede viene evidenziato tutto il codice immagine ma non l'immagine.
Vi allego il file, spero solo che qualcuno mi dia una mano...
grazie

Hello everyone, I'm hitting it a bit with this panel, and that the problem does not display the image (if any else) but directly the code of the image:
Here's a screen:
img109.imageshack.us/img109/1797/immaginekgo.png


As you can see is the entire code image but not the image.
I am attaching the file, I just hope someone give me a hand ...
thanks
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

Quote

zodan wrote:

As you can see is the entire code image but not the image.
I am attaching the file, I just hope someone give me a hand ...
thanks


Why would you use BBCode in news? Is not allowed you have to use plain HTML, or have you modded the news page(s) to render BBCodes?
0 replies
Z
zodan
Z
zodan 10
  • Member, joined since
  • Contributed 51 posts on the community forums.
  • Started 10 threads in the forums
answered
Member

No no modded I tried to use the html code but the result does not change, it seems to me that the code panel has been created for the sole text of the news and cleaned of all html codes.
I am attaching the panel
(Sorry for my bad English)


<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: vertical_news_ticker_panel.php
| Version: 1.0
| Author: jikaka
| Web: www.rusfusion.ru
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

if (file_exists(INFUSIONS."vertical_news_ticker_panel/locale/".$settings['locale'].".php")) {
   include INFUSIONS."vertical_news_ticker_panel/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."vertical_news_ticker_panel/locale/English.php";
}

add_to_head("
<script type='text/javascript' src='".INFUSIONS."vertical_news_ticker_panel/js/jquery.vticker-min.js'></script>
<script type='text/javascript'>
$(function(){
        $('#news-container').vTicker({
      speed: 900,
      pause: 5000,
      animation: 'fade',
      mousePause: true,
      showItems: 5
   });
});
</script>
");

$result = dbquery(
      "SELECT tn.*, tc.*, user_id, user_name FROM ".DB_NEWS." tn
      LEFT JOIN ".DB_USERS." tu ON tn.news_name=tu.user_id
      LEFT JOIN ".DB_NEWS_CATS." tc ON tn.news_cat=tc.news_cat_id
      WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") AND news_draft='0'
      ORDER BY news_sticky DESC, news_datestamp DESC LIMIT 0,5");

openside($locale['vnt001']);

echo "<div id='news-container'><ul>";
if (dbrows($result)) {
   while ($data = dbarray($result)) {
      echo "<li>".strftime('%d.%m.%Y', $data['news_datestamp']+($settings['timeoffset']*3600))."<br />
      <a href='".BASEDIR."news.php?readmore=".$data['news_id']."'><strong>".trimlink(strip_tags(stripslashes($data['news_subject'])), 50)."</strong></a><br />
      <a href='".BASEDIR."news.php?readmore=".$data['news_id']."'>".trimlink(strip_tags(stripslashes($data['news_news'])), 100)."</a><br /><br />
      <i>".$locale['vnt002']."<a href='".BASEDIR."news_cats.php?cat_id=".$data['news_cat']."'>".$data['news_cat_name']."</a><br />
      ".$locale['vnt003']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></i></li>";
   }
}
echo "</ul></div>";

closeside();
?>
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

Quote

zodan wrote:

...it seems to me that the code panel has been created for the sole text of the news and cleaned of all html codes...

That's right, and is probably not a good idea to render HTML in that panel.
0 replies
J
jikaka
J
jikaka 10
www.rusfusion.ru - russian nss
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 82 threads in the forums
  • Started this discussions
answered
Veteran Member

all right:)
0 replies
Z
zodan
Z
zodan 10
  • Member, joined since
  • Contributed 51 posts on the community forums.
  • Started 10 threads in the forums
answered
Member

I do not understand, why is not a good idea?
Instead of having a text you have images, perhaps with even the default values of magnitude
0 replies
J
jikaka
J
jikaka 10
www.rusfusion.ru - russian nss
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 82 threads in the forums
  • Started this discussions
answered
Veteran Member

in the near future will correct this addon
0 replies
Z
zodan
Z
zodan 10
  • Member, joined since
  • Contributed 51 posts on the community forums.
  • Started 10 threads in the forums
answered
Member

Quote

jikaka wrote:

in the near future will correct this addon



TNKS
0 replies
L
lelebart
L
I don't know! I don't know why I did it, I don't know why I enjoyed it, and I don't know why I'll do it again! Bart Simpson
  • Member, joined since
  • Contributed 133 posts on the community forums.
  • Started 21 threads in the forums
answered
Member

here how i mod the panel for his needs: http://php-fusion.it/forum/viewthread...post_17455 :P

btw, for future release consider an approach like:

query;
if   query   then
  openside
  _loop
  closeside
  add_to_head css
  add_to_footer javascript
else
  nothing to show -- or "no news" message


remember that <br /> inside <i> is not allowed, neither inside <span>. (is <i> deprecated? better use <em>? better inline style? better css class for theme customization? :P)
Edited by lelebart on 10-04-2012 01:06,
0 replies
J
jikaka
J
jikaka 10
www.rusfusion.ru - russian nss
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 82 threads in the forums
  • Started this discussions
answered
Veteran Member

very good:)
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 19 posts
  • Votes 0 votes
  • Topic users 8 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet