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
  #282  
Old 12-31-2001, 12:21 PM
Sean's Avatar
Sean Sean is offline
 
Join Date: Nov 2001
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure.. Ok, now just change the path and stuff to the path to whatever PHP file you put this on:

Code:
<?
require("/path/to/global.php");
require("/path/to/admin/config.php");
//first load global.php & the vB config file

//use this if you want two variables at the top /?var1=blah&var2=blah

if (isset($var1) && isset($var2))  {include ("/path/to/var1.php");}
//You can also use var2 in the path, or use it to determine what conf file you want to load...

//Use this if you want one variable /?var1=blah
if (isset($var1))  {include ("/path/to/var1.php");}


//Ok, now on the page load the conf_$var1 file (specified above) than include the news.php file

include("/path/to/news/conf_$var1");
include("/path/to/PluhNews.php");

?>
Now, if their are any errors, let me relook the code, I sorta wrote the whole thing in here.. BTW: I am no PHP pro. i just know this stuff.
Reply With Quote
  #283  
Old 12-31-2001, 12:28 PM
sianews sianews is offline
 
Join Date: Dec 2001
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I must be dumbed then I thought .

What/Where is "path/to/var1.php" and "path/to/news/conf_$var1"?

And I was replacing </path to pluhnews.php> with this script. Was that correct?
Reply With Quote
  #284  
Old 12-31-2001, 12:31 PM
Sean's Avatar
Sean Sean is offline
 
Join Date: Nov 2001
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oops, that was suppose to be a variable..

Alright..that "path.to/varl" is suppose to be "/path/to/$var1" This is determined by whatever the variable is... HOWEVER, you are not doing the same thing I am doing..let me re-write this for what you want to do.

Give me a few minutes.
Reply With Quote
  #285  
Old 12-31-2001, 12:34 PM
Sean's Avatar
Sean Sean is offline
 
Join Date: Nov 2001
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<?
require("/path/to/global.php");
require("/path/to/admin/config.php");
//first load global.php & the vB config file

//Use this if you want one variable /?var1=blah
//conf_$var1.php is the different Configuration file for PluhNews...So, if you put this code in file.php, 
//and loaded file.php like this: file.php?var1=news, it 
//would load the configuration file called: conf_news.php 
//(this would have the contents of PluhConfig.pgp in it.

if (isset($var1))  {include("/path/to/news/conf_$var1.php");
}  else  {}


//than include the news.php file

include("/path/to/PluhNews.php");

?>

BTW: You can $var1 to ANYTHING you want.. to load for example, or file, or news, or forums, or absolutly anything, as long as I starts with a letter and doesn't end with a _..

Make sure you change them both if you do.
Reply With Quote
  #286  
Old 12-31-2001, 12:39 PM
Sean's Avatar
Sean Sean is offline
 
Join Date: Nov 2001
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ALSO. After loading the different config file, you can load PluhHeadlines.php, and it will be different depending on your config file..

include this before or after the news.php include, or just replace it with this:

Code:
include("/path/to/PluhHeadlines.php");
I hope this all works for you.
Reply With Quote
  #287  
Old 12-31-2001, 02:20 PM
Kayn's Avatar
Kayn Kayn is offline
 
Join Date: Nov 2001
Location: Phoenix, AZ
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Categories...I have a weird way of working the categories when I wrote PluhNews initially.

I left it out though, mostly because it was a quick fix, but here's what I did.

Basically, when you post news, you select a certain icon that would represent the category.

See here: http://pluh.com/forums/newthread.php...read&forumid=1

If you look at the last four icons, they represent the categories: Gaming is the gaming category, Music is the music category, and so forth.

Could you all work with something like that? I did this so I wouldn't have to make any database changes or MAJOR code rewriting.
Reply With Quote
  #288  
Old 12-31-2001, 02:22 PM
sianews sianews is offline
 
Join Date: Dec 2001
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't there a way to assign, say, "fourumid1" = "Category1", and so fouth?
Reply With Quote
  #289  
Old 01-07-2002, 03:38 PM
sianews sianews is offline
 
Join Date: Dec 2001
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never did get that to work.

Still looking for a way to call news from multiple forums.
Reply With Quote
  #290  
Old 01-08-2002, 04:27 PM
bobbydavro bobbydavro is offline
 
Join Date: Jan 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed this along with admins can bump without posting. However when you do bump a post without posting (in your news group) it brings the post to the top in the forum but not on the news page.

Any way to change this?
Reply With Quote
  #291  
Old 01-10-2002, 12:48 PM
sianews sianews is offline
 
Join Date: Dec 2001
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by sianews


Still looking for a way to call news from multiple forums.
bump
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 04:15 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.04819 seconds
  • Memory Usage 2,313KB
  • 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_code
  • (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