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
  #512  
Old 10-12-2003, 02:47 PM
Clegg Clegg is offline
 
Join Date: Dec 2001
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heres the Deal, I modified Pluh enough to work under VB3 pretty much fine. Heres the MAIN peice of code that needs to be changed:
(I emailed the writer of Pluh but his response a few months ago let me to believe that vb3 versions of the mod were far off. so reading through the vb3 functions php files I was able to ID what code needed to be altered in the Pluh script to get it to work right:

Code:
Find:
$bericht=parse_bbcode2($pagetext,"1","1","1","1");
Replace With:
$bericht=parse_bbcode2($pagetext,"","","1","1","1");
the parse_bbcode2 function has some different switches on it now that needed an additional bit and some different values. Other than that everything else was childs play to fix... so easy I cant even remember what other code changes I made.

An example is here http://www.midwestlan.com All the fields on the front page were based off the Pluh scripts but then highly modified. The Upcomign events is a script I wrote from scratch.
Reply With Quote
  #513  
Old 10-14-2003, 09:06 PM
Tannerman's Avatar
Tannerman Tannerman is offline
 
Join Date: Mar 2002
Location: Chicago, IL
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like ga.net was having problems back on 8/1, today I started getting this error:
Quote:
Warning: main(): stream does not support seeking in /home/tannerwo/public_html/steveandamysly/index.php on line 94
Did anyone come up with a solution to fix this problem?

Unfortunately, my webhost (Ventures Online) updated Apache and PHP on my server today (as a part of an overall MySQL upgrade) and this messed some stuff up.

You can view my homepage here:
http://steveandamysly.tannerworld.com/

The modification is still pulling the last 5 posts, however an error message appears at the top of these posts.

I'm running vBulletin 2.3.2 on my forums (which are located at http://forums.tannerworld.com/). Not being a huge techie, what should I do to fix this problem? The update to Apache and PHP caused this problem, so maybe some calls need to be fixed relating to that.

Any help would be greatly appreciated.

Thanks,
Steve
Reply With Quote
  #514  
Old 10-15-2003, 07:22 PM
Tannerman's Avatar
Tannerman Tannerman is offline
 
Join Date: Mar 2002
Location: Chicago, IL
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got an update on this problem. My webhost was able to track down the problem, which appears to be a bug in the latest version of PHP which has been documented at:

http://bugs.php.net/bug.php?id=24053

The include for PluhNews is actually working, however the error message is displayed. A quick fix is to place an @ symbol in front of the include to suppress the error message.

The bottom line is that it's a bug in PHP which will most likely be addressed in a future update, however there appears to be several temporary work arounds for this issue
Reply With Quote
  #515  
Old 11-18-2003, 05:12 PM
mrplow mrplow is offline
 
Join Date: Aug 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This 'hack' is absolutely awesome dude, thanks hugely.
In use at my website, working beautifully.
Reply With Quote
  #516  
Old 12-03-2003, 06:53 PM
ScubaClicks ScubaClicks is offline
 
Join Date: Nov 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work with allheadlinenews.com?
Reply With Quote
  #517  
Old 12-07-2003, 04:18 PM
ScruffyDeluxe's Avatar
ScruffyDeluxe ScruffyDeluxe is offline
 
Join Date: Feb 2002
Location: Merseyside
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This rocks my box. I tried it on my Main gaming news site, worked a treat. I hacked it slightly for vB3 Gamma, worked just as well.

http://www.hoteldope.com/forums/PluhNews.php - running on my Current vB3 beta 4 testboards, also working spiffy :B

I'll be modifying this to work using only CSS1 for layout, when I learn the new template system. Finally I can get rid of vBPortal and build a custom frontpage for vB3.

*makes devil sign with hands and bangs head* YOU RULE!
Reply With Quote
  #518  
Old 12-12-2003, 07:05 PM
Memnoch-NMX- Memnoch-NMX- is offline
 
Join Date: Dec 2001
Location: San Antonio, TX
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ScruffyDeluxe
I hacked it slightly for vB3 Gamma, worked just as well.
I'm admittedly no PHP or SQL expert...not even close. But this script was extremely easy to get working with vB3 Gamma. I've got it running perfectly on my development site. My main site is still running vB 2.3.3, but with this script working I'll be moving to vB3 Gamma pretty damn soon.

And the thing I like about this "hack" the most? It requires no custom templates or modifying of existing templates at all!!

Awesome job...thanks for the script!!
Reply With Quote
  #519  
Old 12-27-2003, 01:19 PM
Beowolf Beowolf is offline
 
Join Date: Dec 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I have been using PluhNews and now I modified it just a very little to work as a Game Reviews script. The problem is, that even with the threadid variable successfully passing, it still displays all the threads in the forum. (I have page1 which shows all reviews, click on one and it brings you to page two, where the correct threadid variable has been passed, but it still outputs all the threads in forum 17)

This is the line:

PHP Code:
$sql2 "SELECT postid, threadid, username, userid, title, dateline, pagetext, iconid FROM post WHERE threadid = '{$_GET['threadid']}' LIMIT 1"
Anyone know why it seems to ignore the WHERE and LIMIT statements?
Reply With Quote
  #520  
Old 01-01-2004, 01:04 AM
[FG]Omega [FG]Omega is offline
 
Join Date: Dec 2003
Location: Vienna
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I read the previous pages but I still get this error when I try to include PluhNews.php:

Fatal error: Cannot redeclare stripslashesarray() (previously declared in /home/www/web/html/forum/global.php:31) in /home/www/web/html/forum/global.php on line 31

I did this:

I added in the PluhNews.php File this:
chdir("/home/www/web/html/forum/");

and at the end of the file:
chdir("/home/www/web/html/");

Anyone can help?

btw: I have vb 2.3.3

*edit*: made some changes in PluhNews...works now
Reply With Quote
  #521  
Old 01-15-2004, 08:07 PM
Tannerman's Avatar
Tannerman Tannerman is offline
 
Join Date: Mar 2002
Location: Chicago, IL
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been running this without a problem on my vB2 board. Before upgrading to vB3, I was wondering if someone could list any modifications they needed to make to get it working.
Reply With Quote
  #522  
Old 02-13-2004, 10:39 PM
Mithan Mithan is offline
 
Join Date: Apr 2002
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just upgraded my forum to a clean install of vBulletin 3.0, and got PluhNews working with it.


Here are some tips for people doing the same:

PluhConfig.php
Basic editing here...

Edit:
$newsforums = ; to the new News Forum. (same # if you just upgrade)
$forumspath = "/forum"; to the new vB 3.0 forum dir (probably the same)



PluhHeadlines.php
Basic editing here...

Change:
require("./admin/config.php");
to
require("./includes/config.php");



PluhNews.php
Change:
require("./admin/config.php");
to
require("./includes/config.php");

Change:
$bericht=bbcodeparse2($pagetext,"1","1","1","1");
to

require_once("./includes/functions_bbcodeparse.php");
$bericht=parse_bbcode2($pagetext,"1","1","1","1"," 1");



Where you might have problems:
Getting the global.php file to load in PluhNews.php may be a problem.

For me, the old method of loading the global.php file didn't work.
This WAS my code for vb2.3.4:
PHP Code:
chdir("/home/virtual/site22/fst/var/www/html/forum/");
require(
"./global.php");
require(
"./PluhConfig.php");
require(
"./admin/config.php");

....(
at the bottom of the page)...
chdir("/home/virtual/site22/fst/var/www/html"); 
That did NOT work.

I had to delete require("./global.php"); from PluhNews.php entirely (or // it out) and I had to move it to my main sites index.php file.

This is what I put in at the top of my Index.php File:
PHP Code:
chdir("/home/virtual/site22/fst/var/www/html/forum/");

require(
"./global.php");
chdir("/home/virtual/site22/fst/var/www/html/"); 
This is what the top of my PluhNews.php File looks like now:
PHP Code:
chdir("/home/virtual/site22/fst/var/www/html/forum/");
require(
"./PluhConfig.php");
require(
"./includes/config.php"); 

Anyways, to make a long story short, I got this working fairly quickly, the only problem was with the global.php file not working, which stops the parsing and doesn't allow your script to format the output correctly.

A good way to error test is to // (rem) out require("./global.php"); and replace $bericht=bbcodeparse2($pagetext,"1","1","1","1"); with $bericht=$pagetext;

That will allow you to do some basic error checking and isolate the global.php problems from the actual news posting.


I still get MySQL errors though. Trying to suppress those now...
Reply With Quote
  #523  
Old 02-16-2004, 02:18 PM
Tannerman's Avatar
Tannerman Tannerman is offline
 
Join Date: Mar 2002
Location: Chicago, IL
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mithan, thanks for posting about your progress. I appreciate the details. I haven't got vB3 up and running yet, but this is going to be very helpful soon!
Reply With Quote
  #524  
Old 03-11-2004, 01:52 PM
Owen Owen is offline
 
Join Date: Jan 2002
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah got it running, no global.php problems, running RC4
Reply With Quote
  #525  
Old 03-11-2004, 10:12 PM
Tannerman's Avatar
Tannerman Tannerman is offline
 
Join Date: Mar 2002
Location: Chicago, IL
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Owen
Ah got it running, no global.php problems, running RC4
Owen, thanks for the update. What sort of modifications (if any) did you make to the original script?
Reply With Quote
  #526  
Old 03-12-2004, 06:30 AM
Owen Owen is offline
 
Join Date: Jan 2002
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What Mithan suggested I do, didnt do the global.php stuff though... His Post: https://vborg.vbsupport.ru/showpost....&postcount=521
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:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07872 seconds
  • Memory Usage 2,379KB
  • Queries Executed 30 (?)
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_code
  • (4)bbcode_php
  • (4)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
  • (1)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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