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

I have that hack installed and I still sometimes get that error location. Don't expect that hack to fix the problem completely.
Reply With Quote
  #433  
Old 05-24-2002, 02:00 AM
Mithan Mithan is offline
 
Join Date: Apr 2002
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great news program, but I would like to know if there is a way for me to display 5 news headlines instead of the same number of News items it shows in the news?

Currently I have 10 news items to be shown, but I only want 5 headlines in that area. How can I edit this?

My site is at www.ac2hq.com

Thank you.
Reply With Quote
  #434  
Old 05-29-2002, 08:36 AM
Seby Seby is offline
 
Join Date: Apr 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I really like this hack/addon, but I have a request for a new feature. I use coranto (new version of newspro) right now and it has an option to display a dividing table after a new day starts. You can see that at www.cscentral.com Here is how it looks in the code:

PHP Code:
<If: SubisNewDate>
<
TABLE WIDTH=100BORDER=0 CELLPADDING=0 CELLSPACING=0>
  <
TR
    <
TD ROWSPAN=3 width="206"> <IMG SRC="http://cscentral.barrysworld.com/images/devider_01.gif" WIDTH=206 HEIGHT=48></TD>
    <
TD background="http://cscentral.barrysworld.com/images/devider_02.gif"> <IMG SRC="http://cscentral.barrysworld.com/images/devider_02.gif" WIDTH=10 HEIGHT=21 align="right"
    </
TD>
    <
TD ROWSPAN=3 width="44"> <IMG SRC="http://cscentral.barrysworld.com/images/devider_04.gif" WIDTH=44 HEIGHT=48></TD>
  </
TR>
  <
TR
    <
TD background="http://cscentral.barrysworld.com/images/devider_05.gif" height="25"
      <
div align="right"><font color="A7A7A5" size="4"><b><FieldDay> <FieldMonth_Name> <FieldYear>&nbsp;&nbsp;&nbsp;&nbsp;</b></font></div>
    </
TD>
  </
TR>
  <
TR
    <
TD HEIGHT=2 background="http://cscentral.barrysworld.com/images/devider_07.gif"> <IMG SRC="http://cscentral.barrysworld.com/images/devider_07.gif" WIDTH=10 HEIGHT=2></TD>
  </
TR>
</
TABLE>
</If> 
edit: I have thought of another feature, maybe edit the format of the news date, e.g. just the date and time instead of the day, since when you have a daily devider table you dont need the date to be displayed.

Would it be possible to implement this in pluhnews?

Thanks,
Sebastian
Reply With Quote
  #435  
Old 05-29-2002, 09:16 AM
Seby Seby is offline
 
Join Date: Apr 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mithan
This is a great news program, but I would like to know if there is a way for me to display 5 news headlines instead of the same number of News items it shows in the news?

Currently I have 10 news items to be shown, but I only want 5 headlines in that area. How can I edit this?

My site is at www.ac2hq.com

Thank you.
Find this line in PluhHeadlins.php

PHP Code:
// 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"
replace $newsitems with the number of headlines you want to have displayed.

Hope this helps,
Sebastian
Reply With Quote
  #436  
Old 06-25-2002, 12:17 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So has anybody figured out how to add avatars to the news events? I know others wanted this feature too.
Reply With Quote
  #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
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 11:27 AM.


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.06241 seconds
  • Memory Usage 2,334KB
  • 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_code
  • (2)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
  • (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