![]() |
vB News Ticker - Your Blogs RSS Feeds and Forums in a Marquee
1 Attachment(s)
What does this do?
It allows you to take your news from your forums (up to 10), blogs (up to 10), and/or RSS feeds (up to 10) and display them in a ticker (marquee). You have a choice on how many you can pull from each forum as a whole or select your whole site, how fast you want the ticker to scroll, the length of the title of each news item, colors, etc. You can also add RSS feeds and the latest blogs. Install Instructions Step 1: Fresh Install If you intend to use the RSS features, upload the RSS folder to the root of your forums. If you rename this folder or change the location, you MUST edit the path in the XML file for each of the require_once 'rss/rss_fetch.inc'; paths. Go to your admin Control Panel => Plugin System => Manage Products => [Add/Import Product]; Click Browse and find product-davidw_vbnews_ticker.xml Click Import Upgrade Options: Go to your admin Control Panel => Plugin System => Manage Products => [Add/Import Product]; Click Browse and find product-davidw_vbnews_ticker.xml [If upgrading] Click the button next to Yes in Allow Overwrite Click Import You will probably want to revert any templates you have altered as most changes people have requested are now integrated. Step 2: Edit the admincp options *** IMPORTANT *** Make sure that if you do not enter an item in the forumIDs after the first one, the rest must be set to 0 - if it is not set to 0 or a forumid number, it will result in a database error. Step 3: Go to your admin Control Panel => Styles & Templates => Style Manager Find your Master/Parent style or the style you wish to add this to and drop down the All Style Options menu dropdown and choose Edit Templates Click Go if it does not redirect you For your Forums Directory: Open up your Forum Home Templates subdirectory and choose your FORUMHOME template Find: PHP Code:
PHP Code:
For all your web pages (Navigation Bar) Open up your Navigation / Breadcrumb Templates subdirectory and choose Navbar template Find: PHP Code:
PHP Code:
Frequently Asked Questions How do I add the news ticker to my vB Advanced? To get the ticker in your vbadvanced, you need to add global output variables Admin CP => vBa CMPS => Default Settings => Portal Output Global Variables and put vbnews_ticker in there. How do I add the news ticker to the IBProArcade or Photoplog? Thanks to Mark.B for his add - https://vborg.vbsupport.ru/showpost....&postcount=144 Why does this seem slow? For a couple links or for a couple displayed items per link/news item, it should display fine, but as you add more (fill up) each potential slot and up the number of items to pull it will take longer to load. It it easy to add up fast. This uses anywhere from 1-30 queries depending on how many you use. What is the forumid? The forumid is the id of the forum you have created. Each forum has its own unique number assigned to it. When you click on a forum link you can see a number that is assigned to it. This will show up in the URL of the page you are browsing. Another way of seeing the forumid is to go to your admin control panel => Forums & Moderators => Forum Manager => Click on [Expand All] and then move your mouse over (hover) any of the forums you've created. Your status bar (bottom of screen) should display your forumid (number at the end of the link/url). How do I change the colors? It's an admincp option now :) Ticker Background Color: If you leave this blank, it will stay your forum colors. If you put in a hex value, it will change to that color. Please use 000000 - FFFFFF only. Ticker Color: If you leave this blank, it will stay your forum colors. If you put in a hex value, it will change to that color. Please use 000000 - FFFFFF only. If you want alternating colors do this (You need to edit the plugin to make this work.): Find: PHP Code:
PHP Code:
In the plugin, find each instance of showthread.php?t= (or whatever the page is) and change part to a full url. Example: http://www.yoursite.com/showthread.php?t= |
Seems quite interesting, I'll test it out.
|
installed
Good work, Thanks a lot |
Don't forget to click install :)
|
Installed, however, when using an RSS feed, only about 20% of the news items actually have a link to the news item on the site I am getting the feed from. Why is this?
Also, if you are using a ticker separator, when the last item is reached it adds the seperator after the last item. It looks out of place. How come you are not allowed to use each style's CSS? If I have more than 1 style, the colors do not match the 2nd style. Thanks in advance. :) Also, you should let people know that in the AdminCP, when setting a Ticker Prefix, you can use HTML to customize it. I used "<b><font color="#000000">Headlines:</font></b>". Looks good. ~ Sean |
On some feeds, it depends on the source of the feed. Some sites format the feed correctly, while others do not, and yet others are hit and miss on which results are formatted correctly. I have this issue with vbulletin's own RSS integration for new threads from certain sites. Some sites won't work at all, some give me some results, and some give me all the results. I can't really explain other than that.
As for the ticker separator, I never did work on that further than the last one as the one I originally intended it for worked how it was meant to. It's been like that since its inception. For the CSS, it was intended for a global ticker (which is why you have adjustments in the admincp) and for non-vb pages as long as you can integrate them. I had it running on a non-vb page originally - but have made many changes since then. There was a lot I wanted to add (write in) on the admincp, but formatting breaks my HTML in the phrases, so I passed. I have given out similar suggestions to some in the earlier versions - before 3.8.x (I am unsure if it is in the thread or sent by PM) but yes, you cando that :) I have a copy or two of an earlier version somewhere where I attempted to use the style-based CSS rather than admincp input and I might revive that but I have a few other projects I am working on for release. |
Seems really good, any online demo to se it in action ?.-
|
Great mod thanks David, installed and working perfectly :). Can see it working HERE masterweb
Is there any way I could get it working so particular feeds on appear in certain forums? |
You would probably have to create a new instance of a ticker - rename the variables and such. Another way might be to rewrite the ticker and create a template for each forumid.
|
Thanks David, well I'm no coder, if you could point me in the direction of which variables I'd have to rename I'd appreciate it :).
Am using CMPS modules for the current ticker so wouldn't need the forumid ... at least I think not :s. |
If you want the shorthand approach, you could essentially copy the product and rename it. Then open it with a text editor or what-not - rename every variable that has a $ before it and add a 1 or whatever after it. Also, every instance in the setting and phrase will need to have their names adjusted as well (phrase before the _desc and _title)
You will want to rename these or it will only overwrite the product <product productid="davidw_vbnews_ticker" active="1"> <title>vB News Ticker</title> <description>Latest News in a Ticker</description> This should give you a starting point. -or- Another quicker way that might work is this: Edit the xml and find instances of $ticker_titles Edit that variable on the forumids that you want in the different forums. Example: Code:
if (fid2) { Code:
if (fid2) { then duplicate the templates from Code:
<templates> Code:
<templates> and then find this: Code:
eval('$vbnews_ticker .= "' . fetch_template('vbnews_ticker') . '";'); Code:
eval('$vbnews_ticker .= "' . fetch_template('vbnews_ticker') . '";'); |
Mod is great, but... when I enable it in the CPU time used by scripts PHP/CGI jump up by 100%.
I could do something bad, is it normal? |
I'm not sure why this mod alone would cause 100% CPU usage but marquees have a tendency to increase the CPU usage of the page.
|
What is the selection criteria for each forum?
Lets say I have 2 forums with 3 news items selected - which threads from those forums are selected? |
You have a limit that you set on the latest. They pertain to the latest (newest) created threads. If you set 3 as the limit for 2 forums, it would take the latest 3 created threads from those 2 forums.
|
Thanks for the info there - much appreciated
Our threads on the forum are ordered by last post Is it possible to modify the code to select the last eg. 3 updated threads. Problem I am having is that for our events, threads were created a while back and get updated daily or every second day.. This means that although the thread is updated today ( and showing first on the forum list), its the older (events passed) links which are showing up on the ticker (according to your selection criteria) since their created date is newer than the last updated thread - hope that makes sense:p In short I want to be able to select the last 3 posts which were updated - and not by thread creation date Your help would be appreciated:D |
Try something like this...
Code:
SELECT t.lastpost, t.threadid, t.title, t.forumid, t.open, t.dateline, t.visible, t.firstpostid, t.prefixid Also, if the variables are different, change them as I have not tested the script - only tested in phpmyadmin. |
Thanks a stack - that works!!
Much obliged |
Thanks for the demo CFodder ;)
|
Nice; now if the users could select the feeds it'd be even better.
|
This is something that might be doable - but only if this option were the only option (kind of like how the forums option is either ALL forums or selected forums).
|
Is there a way of changing this from marquee to blinking?
|
Anything is possible - if you can get it to work. All you have to do is change the template. Find the marquee and change it to what you want. I have tried three or four different types but have had limited success, however, depending on what you want to do it may work. Edit the template and find the marquee - change that to blinking text (whichever you want to use).
|
Does it display the post Icon as well? I want something that can do that.
|
No, not yet - but that is going to be part of one of the future updates.
|
Okay, here is an interesting question
Can you make it so that it refreshes every x seconds (Which I can specify :D) Also, it won't refresh the whole page, just that particular thing :D Thanks for this - installed! |
Does anyone know how I would need to mod this so that when you click on a ticker item it opens in the existing window, rather than a new one?
Edit: For clarification, I would only like the forum based ticker to open in the same window. If I add RSS ticker items, I would want them to open in a new window. I tried modifying the plugin and tried changing to target = "self" and Target = "parent" in the thread ticker areas, but that didn't change it to open in the same window. Code:
$ticker_titles .= '<a style="text-decoration:none" href="showthread.php?t='. $ticker['threadid'] .'" title="'. $ticker['title'] .'" target="parent"><font color="#'. $tickcolor .'">'. $ticker['prefix_rich'] .' '. $ticker['title'] .'</font></a> '. $ticksep.''; |
Hi David,
Every now and then my site will either crash or crawl so it is unusable. Most of the time I have put it down to a server blip but I've just had one again and actually called my host and got them to diagnose it while I was on the phone. They have emailed me with the following error: Quote:
Does this mean anything to you? and if it is a problem retrieving a xml feed from a down or slow site is there any code within the plugin to timeout and forget about it until the next scheduled time it checks the feed? Any advice would be greatly appreciated as ever. |
I`m using this on vB 3.8.3 to display on index page the latest posts from a news site and it works great so far 10x
Only one little issue: the quotes(") are shown as question marks (?) DEMO: http://bvlist.com |
What kind of HTML Character Set are you using? You can find this information in your Language Manager under Languages & Phrases. Click edit on your language.
Don't forget to click install. |
Quote:
And the site from where i get the news is also an english only site ! I saw today this ’ appears also as a ? |
The reason I ask is that I also use ISO-8859-1 and in the default RSS feeds (vBulletin) I have the same issue. I am looking for a workaround on this.
|
David, any help with this please?
https://vborg.vbsupport.ru/showpost....6&postcount=28 My site just this second started crawling and I disabled your plugin and the site sprung back to life, enabled it again and it's still working fine. |
The main issue appears to be an issue with a feed you are trying to receive. This is beyond your control unless you use a different feed. Tickers (marquees) have a tendency from time to time cause a lag or crawling issue even from pulling from your own site (non-RSS) - this is normal. The only way to really speed it up is to possibly set up caching which you can do via the RSS feed manager. I don't have documentation on that but it is available out there.
|
thanks
|
Thanks for making this nice addon! :)
When a link is clicked, it opens in new window. Can it be configurable to open in same or new window? |
At last! I found the code for the typed ticker, frequently requested. It is a commercial code though. Can you make your hack work with this:
http://www.willmaster.com/software/attentionticker/ |
Quote:
Code:
target="blank" Quote:
|
great mod but i have a better idea.
i need to moderators able to mark the thread as news and that news show in marquee in forumhome,would you please do this? |
While this might be something to consider, it isn't feasible in its present form. It would take a rewrite of the script. I will consider this for a future update.
|
All times are GMT. The time now is 05:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|