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 badmeetsevil- badmeetsevil- is offline
Developer Last Online: Jul 2002 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-01-2001 Last Update: Never Installs: 1
 
No support by the author.

Headlines.php
..a editing of "PluhNews"
Created by Kayn -- Re-Edited By BadMeetsEvil-

What's it do?

Posts the latest thread's (more than 1 if you choose) title, thread starter, last poster, and other information on a .php page, so you can SSI it in, so it can go on a Non-VB Page.

Demo
http://www.soaped-up.com/bbs/headlines.php

Added Things to PluhNews Headlines

a.) Combinded Config.php and Headline.php into one document.
b.) Added Option to see Total Thread Replies
c.) Added Option to see Last Poster of that Thread
d.) Added Option to use Thread Icon
e.) Thread Starters Username, is now link to Profile.
f.) Config Details taken Further
g.) Script is now only about 65 lines.

Installation

1.) Open headlines.php in Notepad, and edit the config section to fit your forums. Pretty much self explanitory.

$newsforums
is the forum you want the headlines to be displayed from. If you don't know how to find out the forum ID, go to your Forums, and hover the name of the forum (the link). On your toolbar at the bottom, it will display the link (IE), and the number at the very end is the forum ID.

$newsitems
are how many items you would displayed on the page.

$forumspath
is your forums path. Edit this to your needs. I found out that it only works with my server if you put a / infront of the path, or else the link would be /bbs/bbs/blah.php. But, it would be different with yours. No trailing slash.

2.) Edit the HTML section to how you want it.. you can add or delete some of the PHP phrases in case you don't like having the Reply Count, Last Poster, or whatever.

3.) Upload to your forums directory.. and open headlines.php in your browser.

http://www.soaped-up.com
BadMeetsEvil-

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-03-2001, 01:19 PM
cambridge2001
Guest
 
Posts: n/a
Default

cool hack. it really works good.
Reply With Quote
  #3  
Old 09-04-2001, 06:11 PM
badmeetsevil-'s Avatar
badmeetsevil- badmeetsevil- is offline
 
Join Date: Oct 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks man.
Reply With Quote
  #4  
Old 10-13-2001, 07:57 AM
mem mem is offline
 
Join Date: Oct 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear, badmeetsevil- :

First,it;s a goog kack. 3Q~~~

But....

// ID of Forum you would like the Headlines Displayed From
$newsforums = 2;----->only forums = 2



If i want to show top 10(or any) with all forums.

How can i to do ?

Thank you very much.

sorry,my english is bad.
Reply With Quote
  #5  
Old 10-13-2001, 04:21 PM
badmeetsevil-'s Avatar
badmeetsevil- badmeetsevil- is offline
 
Join Date: Oct 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see what you're saying.. You want all the new posts from all the forums.

Hm.. that might be a little tough, I'll look into it though. Promise.
Reply With Quote
  #6  
Old 10-26-2001, 02:24 PM
Bouddha's Avatar
Bouddha Bouddha is offline
 
Join Date: Oct 2001
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a really good hack, thank you ! I think I'll use that !
Reply With Quote
  #7  
Old 04-12-2002, 08:05 PM
keely keely is offline
 
Join Date: Apr 2002
Location: North Carolina EST
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how would you link this to your mainpage? (IE Index.html)
Reply With Quote
  #8  
Old 04-13-2002, 04:24 PM
grandma grandma is offline
 
Join Date: Apr 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone tell me how to include this on an .shtml page?

Thanks

Grandma
Reply With Quote
  #9  
Old 04-13-2002, 04:36 PM
grandma grandma is offline
 
Join Date: Apr 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I tinkered a bit.

This works for me.

<!--#include virtual="/vb/headlines.php"-->
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 12:55 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.10645 seconds
  • Memory Usage 2,273KB
  • Queries Executed 22 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete