View Full Version : Newspro + VBulletin Question (or any other good program)
At http://pluh.com - I have newspro set up on my site with vbulletin as the forums.
I've seen Ratorasniki's hack for newspro and vbulletin, which is really cool and I'm looking to add couple of features, or if I have to work on coding them myself, I would love a good point in the right direction.
Basically, I would like to be able to post a news item, it being under a certain category (as you can see on my site, I have categories for news posts), and for the news topic to post in the forums along with the content from the topic, where people can comment on there.
Not only that, but it will also read from the forums and say something in the news topic on the main page like, "X comments" - x being the number of comments on that news post in vbulletin.
That, and the category thing, is my main concern. Any good news programs out there that can do this for me?
Remember: News + News Categories + dynamic comment count + vbulletin = Yay.
Thanks!
Search in the forums here for BFC_WEBLOG. It does what you want.
If you can't find it post here and I will make it available.
I searched and the link is dead...can you post it? Thx.
im working on a new version of the newspro+vb integration thang that does most of what you want. i dont have the # of comments thing down just yet, but im working on it =D
in the meantime you can make a script like this, and plop it in your vb dir:
<?
//Newspro link to vB forum thread finder
//vbGenGetThread.php
<?
require("global.php");
$title="News: ".$subject;
//echo "$title";
$threads = $DB_site->query("SELECT threadid FROM thread WHERE title='".addslashes($title)."'");
while ($thread = $DB_site->fetch_array($threads)) {
//echo "$thread[0]";
$url="http://www.tribalwar.com/forums/showthread.php?threadid=".$thread[0];
//echo "<a href=$url>test</a>";
if(!$thread[0]){header("Location: http://www.tribalwar.com/");}
header("Location: $url");
}
?>
obviously if you use a prefix other then News: you'll have to change that part, and adjust the links to showthread.php and nocomment.shtml (or whatever you want to take them back to if theres no comment thread)
theres some problems with it (like it selects the last thread to be posted w/ that name, so if you have 2 identically titled news posts that you want active comment threads for you're SOL for now) but it works nicely for me :D
see it in action @ http://www.tribalwar.com/
also, so far as only doing it for each category, in newspro set your category in question to use a different doHTML subroutine, and then copy your current doHTML, name it what you told the category to use, and add something like
<a href="http://www.tribalwar.com/forums/vbgenGetThread.php?subject=$newssubject">Comments>></a>
wherever you want for a Comments link. again, use your link to your script, but that should work (except for the number of comments, but as i said i havent really figured how to go about that yet)
[Edited by Ratorasniki on 01-23-2001 at 08:50 PM]
Actually I was looking for BFC_WEBLOG. I am a Alpha Tester for NewsPro (now named Coranto) and suggest you wait on the integration with vb as the coding has been redone from the ground up. There is nothing code wise from version 3.7.5 or earlier in Coranto!
I will post BFC_WEBLOG tomorrow. It is on my other PC.
Weblog and 'Coranto?'
What sort of changes are in coranto from Newspro, being an Alpha tester and all? :)
And I'm interested like crazy to see how weblog works.
Thanks guys!
You can find it at:
http://www.vbulletin.org/hacks/hacks.php?action=gethack&id=41
I had thought about NewsPro integration. However I want to get away from PERL and have a completely integrated system in one language.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.