![]() |
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.
|
All times are GMT. The time now is 03:12 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:
|