Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Kayn Kayn is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-02-2001 Last Update: Never Installs: 59
 
No support by the author.

UPDATED! Woohoo!

I just fixed/added stuff from version 1.0!

Download the new version 1.5 if you have the old 1.0 - lots of better features.

From the readme.txt:

Quote:
This script isn't really a hack, just an external script that pulls information out of the VBulletin Database for news
or whatever reason you see fit. It's easy to install and configure, and has tons of the same features that many other
news scripts have, except you don't have to modify any Vbulletin source code (which I'm never comfortable doing
for some reason, but that's just me .

I had a really rough time finding a good, EASY news script that did what this does. I searched and found some, but
it really came down to easy installation. I didn't want to modify MySql tables or mess with the advanced Vbulletin
source (well, to me anyway). So I wrote this script. Yer.

This script was intended for VBulletin 2.0 only (I don't know if it will work with previous releases) and PHP4.

Working Demos can be found in use at http://pluh.com/forums/PluhNews.php and for headlines,
http://pluh.com/forums/PluhHeadlines.php

After you install, if at all possible, I would appreciate some credit to my script. A link to http://pluh.com
on your page before or after your news would be great. Let me know when you have it installed too - I love
seeing my stuff working on other websites!
You can check out the raw demo here for PluhNews: http://pluh.com/forums/PluhNews.php

And Headlines! http://pluh.com/forums/PluhHeadlines.php


Let me know if you like it! (Thanks Dark Wizard and Bane)

*NOTE: I will not be able to provide support for this hack, as I am extremely busy. Sorry...*

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #532  
Old 04-21-2004, 03:24 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Running this on vB3 also, wicked. Good to be able to come back to this after vB2.
Reply With Quote
  #533  
Old 05-02-2004, 03:45 PM
martinh4 martinh4 is offline
 
Join Date: Jan 2004
Location: Manchester, UK
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank's Mithan for the VB3 changes got this working now.
Reply With Quote
  #534  
Old 05-25-2004, 07:54 AM
HUNTER|UF HUNTER|UF is offline
 
Join Date: Sep 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok little help need to get rid of the errors above the script inclues here:

http://www.cunning-play.com
Reply With Quote
  #535  
Old 08-15-2004, 06:02 PM
Beowolf Beowolf is offline
 
Join Date: Dec 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kayn
Working on those new features, and yes, the script includes the (0 Comments, last comment was by So-and-so).

This might take a while, so bear with me...
Ok, just incase anyone needs to full code that works on vb3, I am using this successfully from my basedir (i.e PluhNews.php is not in my /forum directory)

You will need to change the two occurances of "username" at the top and bottom in chdir() to your site username.

PHP Code:
<?php
chdir
('/home/username/public_html/forum');
//PluhNews 1.5 released under GNU GPL Licence version 2.0 (see copying.txt file for more info)
//Set your permissions in your control panel to make sure that only YOU and who you specify can post news. Otherwise, everyone and their dog can register and post in your news forums, thus posting where your news will appear. But for this script to work it's extra magic, be sure your members can reply to your news posts.

require("./global.php");
require(
"./PluhConfig.php");
require(
"./includes/config.php");

//scroll down to edit the HTML for the news
//**********************

//Start the goodies (please do not edit to goodies unless you know what you are doing

//connect
$connection mysql_connect("$servername","$dbusername","$dbpassword") or die ("Cannot connect to server.");

//select database
$db mysql_select_db("$dbname"$connection) or die ("Could not select database.");

// create sql statement
$sql "SELECT threadid, title, forumid, replycount, postusername, postuserid, lastposter, dateline, iconid FROM thread WHERE forumid = "$newsforums" ORDER BY threadid DESC LIMIT $newsitems";

//execute sql query
$sql_result mysql_query($sql$connection) or die ("Could not execute query.");

if (!
$sql_result) { 
  echo 
"<p>Could not get record.";


while (
$row mysql_fetch_array($sql_result)) {
   
$threadid $row["threadid"];
   
$title $row["title"];   
   
$forumid $row["forumid"];
   
$replycount $row["replycount"];
   
$postusername $row["postusername"];
   
$postuserid $row["postuserid"];
   
$lastposter $row["lastposter"];
   
$iconid $row["iconid"];
   
$dateline $row["dateline"];

//create the second SQL statement to pull the post from the thread it resides in
$sql2 "SELECT postid, threadid, username, userid, title, dateline, pagetext, iconid FROM post WHERE threadid = "$threadid" ORDER BY postid ASC LIMIT 1";

//execute second sql query
$sql_result2 mysql_query($sql2$connection) or die ("Could not execute query in second sql statement.");

if (!
$sql_result2) { 
  echo 
"<p>Could not get record in second statement.";


while (
$row2 mysql_fetch_array($sql_result2)) {
   
$pagetext $row2["pagetext"];



//gotta convert that damn unix time crap
$dateposted date("D j M Y, g:i A",$dateline);
//end the goodies

if ($replycount==1) {
 
$commenttext "Comment";
 }
else {
 
$commenttext "Comments";
 }

require_once(
"./includes/functions_bbcodeparse.php");
$bericht=parse_bbcode2($pagetext,"1","1","1","1","1");
// **********************
//Edit the HTML here (keep in mind that any double quote that is HTML requires a backslash in front of it)


echo "

<a href="
$forumspath/showthread.php?s=&threadid=$threadid"><b>$title</b></a> - <a href="$forumspath/showthread.php?s=&threadid=$threadid"><b>$replycount</b> $commenttext</a><br>
Posted By <a href="
$forumspath/member.php?s=&action=getinfo&userid=$postuserid"><b>$postusername</b></a> at  <i>$dateposted</i>
</center>

<blockquote></a>
$bericht</blockquote><center><a href="$forumspath/showthread.php?s=&threadid=$threadid"><b>$replycount</b> $commenttext</a> Last comment was by <b>$lastposter</b></center><hr noshade height="1" width="60%"><p>
"
;

}
}


//add news search stuff (this is optional - delete if you do not wish to include this, or edit it to meet your needs
echo "<center><a href="$forumspath/search.php?s=">Search the News</a> | <a href="$forumspath/forumdisplay.php?s=&forumid=$newsforums">View All News Posts</a></center>";

//end HTML edit
//**********************

//disconnect
mysql_free_result($sql_result);
mysql_close($connection);

chdir('/home/username/public_html/');
?>
Reply With Quote
  #536  
Old 08-15-2004, 08:54 PM
mrplow mrplow is offline
 
Join Date: Aug 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One thing seems different since my u/g to vb3, and that is the URL parsing...

With vb2 if a news post had a really long URL in it the pluhnews page would show the http://www.blahblah...blah.com (i.e. cut down size) link just like the normal showthread templates do. With pluhnews running on vb3 the links no longer get cut down... they still get cut down in the normal forum view but on the news page the full length URL is shown. This sometimes causes havoc with the site layout.

Anyone have any idea why that is and how it can be changed?
Reply With Quote
  #537  
Old 08-16-2004, 06:51 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A function name has probably changed between vB2 and vB3.
Reply With Quote
  #538  
Old 08-17-2004, 11:41 PM
mrplow mrplow is offline
 
Join Date: Aug 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FleaBag
A function name has probably changed between vB2 and vB3.
Any idea what that might be?
Reply With Quote
  #539  
Old 02-04-2005, 12:53 PM
speedracer68 speedracer68 is offline
 
Join Date: Jul 2004
Location: California
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way for PluhNews to pull info on the most peoplied or the hotest topic at the time? I would like to put a box on my home page that would show the hotest topic each time the home page it loaded.

I looked at some of the sites people listed above to see how theirs worked and every single page I clicked on is no longer there. It's like all the link above point to old web sites that are no longer there.

Thanks for the help!
Reply With Quote
  #540  
Old 02-17-2005, 03:24 PM
ChiefPhillips ChiefPhillips is offline
 
Join Date: Nov 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've tried everything here... and not one thing worked, guess PluhNews isn't for me

I use 3.0.6, imported IPB 1.3.1 into it, working just peachy.. well.. cept PluhNews, heh.
Reply With Quote
  #541  
Old 04-21-2005, 10:25 PM
PsiNyde PsiNyde is offline
 
Join Date: Dec 2003
Location: New Orleans
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good job Beowolf! I've been hounding Kayn for weeks now to update that script to work with vB3 [I work at his site now], but since he's moved on to bigger and better projects for news posting on home page, he has abandoned it. FOR CRY! Glad to see somebody figured out the bbcode parse problem! That was the only real hangup. Awesome job, thanks again.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05142 seconds
  • Memory Usage 2,342KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete