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
Logician NEWS: Drag Any Message to Your Main Page Details »»
Logician NEWS: Drag Any Message to Your Main Page
Version: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-30-2002 Last Update: Never Installs: 105
 
No support by the author.

This is a news script which will drag vb forum messages from your vb db to your non-vb main page/news page. There are a lot of good news script around but I needed a highly customizable main page news script with some special features and wrote it myself. I'm using it in my site's main page for a long time, but I was just too lazy to write installation/help documents to share it here, sorry!

FEATURES:

* This script simply pulls forum messages which you marked as "news" from your vb database and post them in your non-vbulletin (main/other) page.
* You can mark messages as "NEWS" in any forum you want (including private forums). You dont need to restrict your news to a specific forum.
* You can drag any message to your main page, regardless of its date. So news is NOT supposed to be the most recent messages in your board.
* You do NOT have to carry the whole message to your main page as news. You can import it all or simply take some part of it. So eg. you can drag a message's the first paragraph to your news page and link the thread for "Read More".
* Moreover you can insert invisible custom NEWS text which will be dragged to your main page to your board messages, but not shown in the original forum thread. So your original thread message and news text on your main page can be different than eachother.
* You can have sticky news in your main page (even if they are not sticky in your forum).
* News does NOT need to be the first message in the thread. You can tag any reply message as news and pull it to your main page either.
* Script parses ALL of your message icons/smilies (including your custom add-ons) and some of the important vBCode like: [url] [email] [img] [b] [i] [u]
* You can specify which members may post news.
* You can form your News' title seperately, apart from of the original thread/message title.
* You can set maximum number of news shown in your main page.
* You can set maximum number of characters that all shown news should not exceed. Some messages can be long and some can be short and if you set a character limit, the script will automatically compile enough news from your database to fit your web page's relevant part according to the limit you set.
* You can enable/disable:
News Poster Name
News Date
News Read Number
News 'Send to a Friend' Link
Comment number/Add comment button/Last commenter
Will viewing news increase the original thread's view count or not
News is sticky or not
for ALL your news INDIVIDUALLY.
* All news tags are invisible in the original thread. So forum readers do not notice any difference when you tag a message as news.
* Dragging a message to your main page as news is as simple as inserting a hidden [news]Title of My News[/news] tag to your forum message.

Well, these features are what I needed in my news script, so it should suffice to you too!

It's an easy to install script and will work with ALL vbulletin versions because it's an add-on, not a hack. I can give support as much as I have time, but please ask here, not via email or PM.

If you use the script, please click INSTALL. If you post the URL of your news page after installation, you can help other users see the script in action in different pages and in custom designs, thank you!

Logician

Show Your Support

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

Comments
  #42  
Old 06-22-2002, 09:00 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FrankR310

do i have to change that line to $run_time_config={string....?
$run_time variable keeps the running time of the script while our new $run_time_config variable keeps the option if this will be displayed or not. So do NOT touch that line. The line I mentioned in the bugfix message is the only line that should be changed (as you have already noticed)
Reply With Quote
  #43  
Old 06-22-2002, 10:00 PM
Highlander Highlander is offline
 
Join Date: Apr 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi..logician..again i tried your third hack..and i like it again..but enough of that ..you hear that so many times..but its your great work..you handle codes like i drink water on hot days..lol..

ok..i got no bugs to report..only wishes..like every time i meet you..here..

please follow this link to see what i mean:
<a href="http://www.spieleplanet.net/news/index.php">http://www.spieleplanet.net/news/index.php</a>
there you see my old news system....its similar like yours..but not integrated in the board..its a standalone script....but what i liked there is that i could handle different categories ..cause i got english users and german users..and for every head line there was an quick link schown on the top..so all headlines are shown on the top and seen at once..,got an idea how to handle this ?..and the next thing is....to display old news on NEXT PAGES or something like this..

so another question and this is what i need to know really ..how can i make the news system like you showed on teh news pages on the beginning of this thread..(examples) ..i want to make news from FORUM ID XX in the middle....and other news Forums should be shown in side boxes..what about that..its possible to make categories like center BOx (big in the center of the page with main news..and SIDE BOXES with short news on the right or left ?..i have to define specific Forum ids for that..but i dont see any option..for example Forum ID 50 will be shown only in the side boxes ..and ForumID 10 will be shown in the center as main news..understand my idea ?

you just win the football gemae today .. gratulation !
Reply With Quote
  #44  
Old 06-23-2002, 06:55 AM
Highlander Highlander is offline
 
Join Date: Apr 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ups the URL is wrong :

http://www.spieleplanet.org/vbp/news/
Reply With Quote
  #45  
Old 06-23-2002, 10:43 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Highlander :Unfortunately your wishes are not achievable with this script. Script can not support different categories like English or German. However if you want, you can install it to 2 different directories and use one for English News and the other for German news. This is possible.

As for old news support, it's not possible. This is not designed to be a stand-alone news script but a vb-integration so it just drags vb news tagged messages to your main page and if a message is tagged as news but not dragged to the main page, script automatically removes the news tags from it (configurable in options part). This is intentional to decrease SQL load in your server and incease script running time and because of this behavior, it's not possible to save/archive/access old news.

Again you cannot create different columns for news, script is not designed to do that either. In my site's main page only the middle column is generated by this script, the other columns are not. So if you are referring the right column in that page, it's not this script doing it, I writed an individual PHP code to handle it.
Reply With Quote
  #46  
Old 06-23-2002, 01:25 PM
Highlander Highlander is offline
 
Join Date: Apr 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay..thx..i will dake the old news script for right side boxes....

but really it would be nice if we could define specific forums for specific teables..like FORUM1 and FORUM2 is with link or without link..so maybe it would be nice to make FORUM3 and Forum4 to define two Forum IDS for specific news .. this script is integrated in VB its the thing i searched..cause i need comments functions .. and so my news on main page and forum are the same..but for me only once written..

p.s. did you rite the seperate news script for the side boxes..could i try it maybe ´for extra news in side boxes like you got !

but really it would be nice to make a more dynamic news vb-script..with specific Forums to choosse wich are shown on the side in extra boxes..or somewhere else..maybe with other tags like [news1] news here inside[/news1]
Reply With Quote
  #47  
Old 06-23-2002, 06:03 PM
FrankR310 FrankR310 is offline
 
Join Date: Jun 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i was thinking about how to do this as well....

couldnt i just rename one file like phpheader.php and phpheader1.php along with newsconfig.php and newsconfig1.php

then change reference to the correct file in the scripts and the news () function to news1 () function?

modify the template in phpheader

specify specific forums to pull news from for each one

then include them on the main news page?

i wanted to try this but didnt want to mess anything up as it's running so well right now...

what do you think? i have no zero knowledge on programming..just thinking things thru to see if it's possible.

thanks,
frank
Reply With Quote
  #48  
Old 06-23-2002, 06:22 PM
futureal futureal is offline
 
Join Date: Feb 2002
Location: Del Mar, CA, USA
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quick question about this news script/hack: Is it possible to define a range of dates to display on a page (such as a site News page) with this?

In other words, suppose I want my site's home page to display all news messages newer than one month ago. Then I have another page (say, Archive) that will display all news posts for May, one for all on April, one for all of March, etc.

Would that work? I read through the documentation and either didn't see that info, or totally missed it. If it's the latter, I apologize.
Reply With Quote
  #49  
Old 06-23-2002, 06:59 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Frank: All you suggested may be done but it will be pointless because both scripts (newsconfig.php and newsconfig1.php) will compile the same data from the database so although you achieve to have two news columns in one page, the compiled news will be same.

To seperate the news you need to go on hacking the script and modify the news tags too. [edit: just noticed you planned to seperate forums to post news, so you can skip this step]

So it requires a lot of work but it is possible, at least in theory.

@futureal: This script is degisned to pull messages only if they are tagged as news in the original post. So if you are referring a system that the script will automatically pull the news according to post date without author's tagging them, no it's not possible. You need to insert [news] tag to pull a message to your main page and delete the tag to remove it. The script automatically deletes the tag in certain cases too but message date is not one of them.

What you want to achive can be done via the new version of my WebTemplates hack though. (Recent beta version doesnt support this feature yet). Or you may want to check other news scripts released here. I dont know if any of them support what you asked but there are nice scripts around so you can find one with that feature.
Reply With Quote
  #50  
Old 06-26-2002, 09:52 AM
Highlander Highlander is offline
 
Join Date: Apr 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi @all

I think i found a little bug..its not a really a bug ..but for all vbulletin owners wich got the FADE hack the news tag will make your posts fading (glowing) like links...i tried to manage this..but the fading hack sees in the news TAGS the same like [url] so the message is glowing...fading..

but only in the Forum..and i thought..maybe its not so bad..so the people see at once..thats news !
Reply With Quote
  #51  
Old 07-23-2002, 07:31 PM
inetd inetd is offline
 
Join Date: Nov 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician, this hack can work with WebTemplates?
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 02:49 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.05025 seconds
  • Memory Usage 2,320KB
  • 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_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
  • (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