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
  #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
  #527  
Old 03-22-2004, 03:48 PM
Crazy Pete Crazy Pete is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you have to alter to have this recognize the vB3 bbcode? Right now it just seems to ignore it. Thanks.
Reply With Quote
  #528  
Old 03-24-2004, 11:41 AM
HUNTER|UF HUNTER|UF is offline
 
Join Date: Sep 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Mithan i got it working fine, i think on my site running vb3 full
Reply With Quote
  #529  
Old 03-26-2004, 03:49 PM
JacobiKenobi JacobiKenobi is offline
 
Join Date: Mar 2004
Location: Florida, USA
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, all I have to say is GREAT SCRIPT!

definitely in top 5 for me. Does exactly what I want. and fully customizeable and easily comprehendible for changes!!

i have 1 small problem though, concerning smilies/images, and I would bet that it interferes with some otehr bbcode thing but I haven't checked yet.

i place the script here: /website_root_directory/forum/PluhNews.php
i php-include the script here: /website_root_directory/another_directory/some_page.php

and the smilie doesn't show up. i viewed the properties of the smilie and this is where it is trying to load it from: website_root_directory/another_directory/images/smilies/some_smilie.gif

how can i fix this so it grabs the smilie images from the forum directory?
Reply With Quote
  #530  
Old 03-26-2004, 03:50 PM
JacobiKenobi JacobiKenobi is offline
 
Join Date: Mar 2004
Location: Florida, USA
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By the way, i may edit this news script and release a version for vB 3.0.0 with some extra features.
Reply With Quote
  #531  
Old 04-13-2004, 04:25 PM
SK's Avatar
SK SK is offline
 
Join Date: Feb 2004
Location: Nottingham, UK
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way of making it so it cuts the news post to a certain number of characters and adds a [Read More] URL to the end of a news post?
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 07:42 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.04765 seconds
  • Memory Usage 2,322KB
  • 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
  • (3)bbcode_php
  • (2)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