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
  #437  
Old 06-25-2002, 09:50 PM
Mithan Mithan is offline
 
Join Date: Apr 2002
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just a FYI:

I have version 1.0 installed on my site and it works great.

http://www.ac2hq.com

We had to put in some extra code to suppress an error message, but other than that, its great.

PS: Whats so good about 1.5?
Reply With Quote
  #438  
Old 06-29-2002, 02:27 PM
dogbomb's Avatar
dogbomb dogbomb is offline
 
Join Date: Mar 2002
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There seems to be a strange bug in this. Whe you are pulling an article from the selected forum, it runs fine. However, when you COPY an old article (one no longer on the main PluhNews page) from that forum to another this start to get a bit kooky.

The article reshows back on the page, but not the original article but a reply firther down.

Anyone else encountered this problem?
Reply With Quote
  #439  
Old 07-13-2002, 10:36 PM
TooHectic TooHectic is offline
 
Join Date: Feb 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by GuruXL
i don't know what i did now, but it works if i directly go to PluhNews.php, however, if i try to include PluhNews.php from the root directory (where my main files are), i don't get an error, but a blank page...
Quote:
I fixed the errors hehe
How did you fix this problem?

I'm having the same problem with my site. I can open http://my site/forums/pluhnews.php just fine, and it works as intended, but if I try to include pluhnews.php inside my http://my site/index.php, I just get a blank page.

Like everyone else, I know the error comes from global.php. Even if I add the full path to global.php in the pluhnews.php file, it still produces a blank page since inside global.php other requires are called. And since those other requires don't have a full path defined, the script cannot find them. (since all requires are called like "./global.php" and "./functions.php".... and since I'm requiring the file from the root directory, it's looking for functions.php, global.php, etc in the root rather than in /forums.)

How did you remedy this problem? Is there a command that will force require statements to look in the same directory as the required file versus the directory the initial call is made from?

Any help is appreciated! Thanks.
Reply With Quote
  #440  
Old 07-14-2002, 06:49 AM
TooHectic TooHectic is offline
 
Join Date: Feb 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, i fixed it. I just added added some chdir stuff to the beginning of pluhnews.php where the requires are called:

Code:
chdir("./forums");
require("./global.php");
require("./PluhConfig.php");
require("./admin/config.php");
chdir("..");
I'm not sure if that's the best way, but it works.... but then I started getting that weird "Cannot add header information" error. But luckily I found the answer a few pages back. I just moved the requires including the chdir statements out of the PluhNew.php file and put them above the <html> tag in my /index.php file. Seems to work.

If anyone knows of a better solution. Feel free to point it out. Optimization is good.
Reply With Quote
  #441  
Old 07-14-2002, 04:51 PM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there anyway to have pluhnews inherit vbulletin styles or code like <smallfont> and {categoryfont } ect. ect.

That would be great. I want to put my news in tables but I am going to have different styles and I want the news to inherit the different style colors when a user changes styles. Is this possible. I tried to do it but I kept getting errors and it just wouldn't work with the echo" being in the script.

Well what I want to do is, i have vbportal and the front page I am using the news from that, and then I am going to have different sections of within the site and each section is going to have a news forum. I need a script that will post the news from the specific forum on the sections front page. Pluhnews is great but I want something that will use vbulletins styles like vbportal does. I asked about this over at phpportals.com and I they didn't give me an answer. Any ideas?
Reply With Quote
  #442  
Old 07-16-2002, 04:05 AM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump
Reply With Quote
  #443  
Old 07-19-2002, 05:03 PM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would the output be able to be done through vb templates? I would then use your vb styles correct? Like instead of using the echo to do the output make it do an eval("\$variable = \"".gettemplate($templatename)."\";");

would that work?
Reply With Quote
  #444  
Old 07-19-2002, 06:33 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mithan
Just a FYI:

I have version 1.0 installed on my site and it works great.

http://www.ac2hq.com

We had to put in some extra code to suppress an error message, but other than that, its great.

PS: Whats so good about 1.5?
With a little tweaking 1.5 can do this -> www.3dNewz.com
Reply With Quote
  #445  
Old 07-20-2002, 02:41 AM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that is nice, are you willing to tell what you did to make it look like that?
Reply With Quote
  #446  
Old 07-23-2002, 07:05 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, it was a lot of tweaking here and there. Some of the stuff I can't even remember how to do it. Some of the things I have added though are in this thread around pages 15 - 20 I think that allows you to get multiple news headlines on the same page.
Reply With Quote
  #447  
Old 08-03-2002, 05:53 AM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok is there a reason my smilies don't show up? I have my smilies path set to the full path but nothing. Anyone else have probs with smilies not showing?
Reply With Quote
  #448  
Old 08-03-2002, 05:55 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think we talked about this at around page 18 or so. Go 3 or 4 pages in both directions of page 18 and I think that's were we were talking about something like this.
Reply With Quote
  #449  
Old 08-04-2002, 03:29 AM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok thank you
Reply With Quote
  #450  
Old 08-05-2002, 04:19 PM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Redmak
There's an easy way to have vbcode and linebreaks and stuff interpreted by vbulletin so it shows up on your main news page.

Make sure the following line is added to the news script

PHP Code:
require("./global.php"); 
To have the message parsed by vbulletin add the following:

PHP Code:
  $bericht=bbcodeparse2($pagetext,"1","1","1","1"); 
$bericht is now the formatted message

The 1's stand for "dohtml,dobbimagecode,dosmilies,dobbcode"


Enjoy

Ok this is already in the hack, but my smilies still don't show up, the links are good just not the smilies. I have the script in the forums directory and I am php including it in a file that is outside of the forums directory. Any ideas why my smilies aren't showing up. It really isn't a big deal cause I could just go with out smilies. So if know one knows why that's fine.
Reply With Quote
  #451  
Old 08-15-2002, 10:48 AM
Caliber Caliber is offline
 
Join Date: Feb 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love this script, but it is very hard on a large site's performance (40k+ visitors/day). We have dual servers running our vBulletin and MySQL set for max_connections of 1000, but it still caused our server to crash.

I would like to use cron to run it once a day and then SSI the results to the homepage. Any suggestions? Extra credit if anyone knows how to modify it to return the top most active threads from the previous day. That would make the most compelling content appear on the homepage I believe. Many thanks.
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 03:53 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
  • Page Generation 0.05275 seconds
  • Memory Usage 2,369KB
  • 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
  • (2)bbcode_php
  • (5)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