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
  #377  
Old 02-21-2002, 04:26 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hamma, so if I have say 2 different news things on one page, both headlines and news, I would rename all the $connection in one headline file to $connection1, and in one news file $connection2 and in the other news file $connection3?

So that in one headline it called $connection (the default), the 2nd headlines it called $connection1, in one of the news in called $connection2 and in the 2nd news it called $connection3.

Is that correct?
Reply With Quote
  #378  
Old 02-21-2002, 04:45 PM
Hamma Hamma is offline
 
Join Date: Oct 2001
Location: MA,USA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, thats pretty much it.. each script needs its own connection name. So each headline/news script would have a seperate one.. make sure you rename every instance of $connection (im pretty sure it shows in only the script, and not the config file)

This worked like a charm for me And you were getting pretty much the same errors.

Example:

Ive incuded 1 news, and 2 headlines on my index.php

News
$connection in the mainnews.php was renamed to

$connectionnews

Headlines
$connection in the t2headlines.php script was renamed to

$connectiont2

$connectoin in my daocheadlines.php was renamed to

$connectiondaoc

Let me know how it works out..
Reply With Quote
  #379  
Old 02-21-2002, 05:09 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems to work. Got rid of the error and everything. Great work. After how many times and people have been to this thread, it's surprizing it was something soo simple... Although I had a feeling that it would be something simple.

Many thanks.

Also for anybody using a lot of different connections you may want to double check your config.php file in your admin directory and make sure that you DON'T have persistant connection on, because if you have a lot of different news scripts each taking a spot on your mysql connections to the database, it could limit the access to your site.

Thanks Hamma, we finally traced down that pesky bug. I doubt everybody else that replied in those earlier pages knows that we fixed it. Maybe you should post something on one of the main forum pages and let everybody know that the PluhNews script is working again.

Good job.
Reply With Quote
  #380  
Old 02-21-2002, 05:21 PM
sccr410 sccr410 is offline
 
Join Date: Jan 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In my index.php file:

PHP Code:
<?php 
        
require("/home/sandieg/public_html/forum/global2.php"); 
        require(
"/home/sandieg/public_html/forum/admin/config.php"); 
        include(
'/home/sandieg/public_html/forum/PluhNews.php'); 
?>
I don't have PluhConfig.php because all the config options were moved into the PluhNews.php. I have multiple pages that access different news forums, so I had to do this.

I still get the following error:
Quote:
Warning: Cannot add header information - headers already sent by (output started at /home/sandieg/public_html/index.php:3) in /home/sandieg/public_html/forum/admin/functions.php on line 1530
Reply With Quote
  #381  
Old 02-21-2002, 07:59 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check your other files sccr410 and make sure they aren't "requiring" the same files that you are requiring in the index.php file. I know I had that problem before too, and I think that was the cause, is that there were multiple files requiring the same files.

Let me know.
Reply With Quote
  #382  
Old 02-21-2002, 08:11 PM
sccr410 sccr410 is offline
 
Join Date: Jan 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In global2.php there was a require to admin/config.php and in the require statements on my index.php the suggestion was to require the same file. I commented out the require on the index page, that didn't work. Commented out the one on the global2.php file, that made things even worse.

I have it working fine, but mine doesn't know how to read bbcode. I was hoping all this would fix that.

http://www.sandiegopegasus.com
Reply With Quote
  #383  
Old 02-21-2002, 08:15 PM
Hamma Hamma is offline
 
Join Date: Oct 2001
Location: MA,USA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, You removed my path from the global2.php and added your own correct? (I think there were a few instances)
Reply With Quote
  #384  
Old 02-21-2002, 08:28 PM
sccr410 sccr410 is offline
 
Join Date: Jan 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, sure did.
Reply With Quote
  #385  
Old 02-21-2002, 08:34 PM
Hamma Hamma is offline
 
Join Date: Oct 2001
Location: MA,USA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

k hmm if i remember correctly that is related to cookies, did you change the cooking setting in the CP to .yourdomain.com ?
Reply With Quote
  #386  
Old 02-21-2002, 08:37 PM
Hamma Hamma is offline
 
Join Date: Oct 2001
Location: MA,USA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also you dont want to include the file in the top line with the other files, you would want to include it somewhere else on the page

<? include('/home/sandieg/public_html/forum/PluhNews.php'); ?>
Reply With Quote
  #387  
Old 02-21-2002, 08:46 PM
sccr410 sccr410 is offline
 
Join Date: Jan 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh, I made the require statements the first thing on my index page and it worked

Now, the only problem is that the path to the smilies is wrong and I get the red x box
Reply With Quote
  #388  
Old 02-21-2002, 08:51 PM
sccr410 sccr410 is offline
 
Join Date: Jan 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind, now the smilies work too It's all working 100% now! WOOHAW!

Now I shouldn't get any "Why doesn't this work?" questions from all the team managers trying to use it
Reply With Quote
  #389  
Old 02-21-2002, 09:55 PM
Hamma Hamma is offline
 
Join Date: Oct 2001
Location: MA,USA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol congrats, always ends up bein somthin easy Im gonna end up being an expert on this script lol
Reply With Quote
  #390  
Old 02-22-2002, 07:08 PM
SirSteve SirSteve is offline
 
Join Date: Oct 2001
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about a teaser line and "Click here" for the full story where you get a separate page with the full article (that doesn't look like the forums)? And the ability to included attachments within the article...
Reply With Quote
  #391  
Old 02-23-2002, 01:26 AM
sianews sianews is offline
 
Join Date: Dec 2001
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Steve, we alreasdy have that in the character limit on page 11 or 13 I think. The problem is, only the latest article from any given forum can be shown on the websites template. See www.sianews.com/columnists.php for example. On each columnists page, I have their latest article, but PluhHeadlines can only link to the forum .

I was thinking of linking to www.sianews.com/forums/authorid.php?threadid in the Headlines file, but I don't know how to pullt hat threadid back out of the URL to make it display.

Does that even make sense .
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:14 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.10767 seconds
  • Memory Usage 2,362KB
  • 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_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
  • (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