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
  #62  
Old 08-22-2002, 04:34 AM
miho miho is offline
 
Join Date: Nov 2001
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excuse me, may be i did not express everything right (I,m German).

I tried it on your Homepage.

http://www.turkhukuksitesi.com/hukuk...93&postid=5459

This link under the news on your frontpage brings me to the first post in the thread, not to the post number 5459.
Reply With Quote
  #63  
Old 08-23-2002, 09:24 AM
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 miho
I tried it on your Homepage.
http://www.turkhukuksitesi.com/hukuk...93&postid=5459

This link under the news on your frontpage brings me to the first post in the thread, not to the post number 5459.
ok you are correct and congrats you caught a small bug which has gone unnoticed for months..

The fix is:

Replace:

PHP Code:
$news[$i][link]='[<a href="'.$forumlocation."showthread.php?threadid=".$news[$i][threadid]."&postid=".$news[$i][postid].'">'.$readresttext.'</a>]'
AS:

PHP Code:
$news[$i][link]='[<a href="'.$forumlocation."showthread.php?postid=".$news[$i][postid]."#post".$news[$i][postid].'">'.$readresttext.'</a>]'
Thx for bringing this to my attention..
Reply With Quote
  #64  
Old 08-24-2002, 11:02 PM
DeadMan384AD's Avatar
DeadMan384AD DeadMan384AD is offline
 
Join Date: Aug 2002
Location: Right Behind you
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow great script!

Unfortunatly, for some reason It isnt parsing the code for when people use the quote tag.

The instructions say to look for:
Code:
$postdate=vbdate($dateformat,$postinfo[dateline]);
$posttime=vbdate($timeformat,$postinfo[dateline]);
$pagetext=htmlspecialchars($postinfo[pagetext]);
but the closest I found was :
Code:
    $postdate=vbdate($dateformat,$postinfo[dateline]);
    $posttime=vbdate($timeformat,$postinfo[dateline]);
    $pagetext=$postinfo[pagetext];
It should be near the top of the file right? I'm still pretty new at installing hacks. This isnt a huge problem, cause I have it limited to only a few people to post news, but its messy and I'm sure people will ask about. and then put all the uneeded tags in there...

Also, I cant get
Code:
??STATICLINK??
to work... and we like to post the full news post on the main page, rather than having a summary.

Otherwise it was a great script! Exactly what I was looking for!

edit- Forgot to mention I'm using vB 2.2.6
Reply With Quote
  #65  
Old 08-25-2002, 10:59 AM
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 DeadMan384AD
Wow great script!

Unfortunatly, for some reason It isnt parsing the code for when people use the quote tag.

The instructions say to look for:
Code:
$postdate=vbdate($dateformat,$postinfo[dateline]);
$posttime=vbdate($timeformat,$postinfo[dateline]);
$pagetext=htmlspecialchars($postinfo[pagetext]);
but the closest I found was :
Code:
    $postdate=vbdate($dateformat,$postinfo[dateline]);
    $posttime=vbdate($timeformat,$postinfo[dateline]);
    $pagetext=$postinfo[pagetext];
It should be near the top of the file right? I'm still pretty new at installing hacks. This isnt a huge problem, cause I have it limited to only a few people to post news, but its messy and I'm sure people will ask about. and then put all the uneeded tags in there...
Do you you mean "parsing the qoute tag" in news or "deleting the news tags when a news message is quoted by another member"? (Installation Step 4)

If it's the latter you are right. Seems that vb 2.2.6 made some small code changes but where you referred is correct. Just apply the code after that part and you should be fine (this is for "deleting the news tags when a news message is quoted by another member")

Quote:
Also, I cant get
Code:
??STATICLINK??
to work...
What happens when you use it?

Quote:
and we like to post the full news post on the main page, rather than having a summary.
It's upto you, dont use summary tags then..

If you use only [news]Title of your news[/news] tags in a message, all post will be moved to your news page..

Regards,
Reply With Quote
  #66  
Old 08-26-2002, 02:50 AM
DeadMan384AD's Avatar
DeadMan384AD DeadMan384AD is offline
 
Join Date: Aug 2002
Location: Right Behind you
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup, putting the Step 4 after rather than before worked. Thanks

Like it says, the newslink doesnt appear if only the news tag is used.
but the staticlink tag turns out as:
Reply With Quote
  #67  
Old 08-26-2002, 07:19 AM
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 DeadMan384AD
Like it says, the newslink doesnt appear if only the news tag is used.
but the staticlink tag turns out as:
ok got you.. Edit phpheader.php, find:
PHP Code:
$readresttext="Read All->>"
after that add:

PHP Code:
$staticlink="Go to Post->>"
And it will work as you wished..
Reply With Quote
  #68  
Old 08-26-2002, 11:19 PM
DeadMan384AD's Avatar
DeadMan384AD DeadMan384AD is offline
 
Join Date: Aug 2002
Location: Right Behind you
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent... Thanks man!
Once again, great hack!
Reply With Quote
  #69  
Old 09-09-2002, 01:51 PM
zonegray zonegray is offline
 
Join Date: Feb 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What are the limits on the $news_posters array? I might have 30-50 users that I'd want to enable this for.

Great add-on, BTW.
Reply With Quote
  #70  
Old 09-10-2002, 07:21 AM
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 zonegray
What are the limits on the $news_posters array? I might have 30-50 users that I'd want to enable this for.
Go ahead and add them.. Since the array values are hard-coded inside the code, adding a lot of members does not effect the performance..
Reply With Quote
  #71  
Old 09-10-2002, 11:36 PM
DeadMan384AD's Avatar
DeadMan384AD DeadMan384AD is offline
 
Join Date: Aug 2002
Location: Right Behind you
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I finally have this available to the public on my site... and it looks great! Works great too! I just need to get it so smilies work, but I think you mentioned it in this thread already, if not...
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 07:45 PM.


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.04581 seconds
  • Memory Usage 2,338KB
  • 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
  • (6)bbcode_code
  • (4)bbcode_php
  • (6)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