Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vBadvanced CMPS
Mark Thread as News Details »»
Mark Thread as News
Version: , by Blue Moose Aaron Blue Moose Aaron is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-05-2005 Last Update: Never Installs: 0
 
No support by the author.

For my site I have a number of forums and my users post news daily. Rather than post news everyday myself I decided it would be best to find a way to mark threads as news rather than move them into a forum for news.

The benefit of this is that you can leave the thread in the forum its in and nto have to worry about members not being able to find the thread.


In the Admin CP

Go to Post Icons > Post Icon Manager
Now click [Add New Post Icon Category].

Title: News
Display Order: 2

Save.

Now on the page where you are redirected (Edit Post Icon Categories) click Post Icon Permissions on the icon category you just created. Set the category so that is only accessible by admin, mods or whatever group you want to have the ability to put news on your vBa index page.

Now go to Post Icons > Upload Post Icon
If your icons folder isn't set to CHMODD 0777 you'll need to do so or just upload news.gif to your icons folder manually via FTP.

Now go to Add Post Icon

Title: News
Post Icon File Path: images/icons/news.gif
Post Icon Category: News
Display Order: 1

Save.

Getting the Thread Icon ID

Back in the Post Icon Manager click [view]
Then on your icon click [edit]

You should see your id number in the title of the box - "Post Icon: News (id: 57)" (number will vary)

File edits in modules/news.php

In modules/news.php find
PHP Code:
WHERE forumid IN($vba_options[portal_news_forumid]) AND thread.visible AND thread.open != 10 $notdeleted 
Replace with (updated on 2/24/05)
PHP Code:
WHERE thread.iconid IN($vba_options[portal_news_forumid]) AND thread.visible AND thread.open != 10 $notdeleted 
Save and Upload.

Now return to AdminCP and under CMPS default settings and put your icon ID number in the field in your admin options that was once used for the news forum ID.


How to Display News
To display news you simply select the icon that was uploaded as the thread icon - not post icon! - meaning you have to select the icon when creating the thread OR via edit thread in the thread tools moderation menu. If you try to select the thread icon via the edit button it will not work.

Enjoy. I'll answer any questions you may have. I hope my instructions were clear.

2/24: Updated query. New query uses field in admin cp for News Forum ID rather than hardcoding it. Note this renders your news forum useless.

3/25: For best support visit this thread.

Download Now

File Type: (21.3 KB, 164 views)

Show Your Support

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

Comments
  #2  
Old 03-01-2005, 09:24 AM
mrplow mrplow is offline
 
Join Date: Aug 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's pretty excellent
Reply With Quote
  #3  
Old 03-26-2005, 02:32 AM
Blue Moose Aaron's Avatar
Blue Moose Aaron Blue Moose Aaron is offline
 
Join Date: Sep 2002
Location: Austin, Texas
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #4  
Old 07-12-2007, 07:22 PM
Apostolos-Pap Apostolos-Pap is offline
 
Join Date: Jan 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for bumping such an old thread, but is there any other similar mod for the newest versions of vbulletin & vbadvanced CMPS? Thanks
Reply With Quote
  #5  
Old 07-21-2007, 10:39 AM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to create different news categories this way? I run a NFL forum and we have news for all 32 NFL teams and 18 other categories. Right now we are restricted to posting news in one forum and it gets filled up FAST.
Reply With Quote
Reply

Thread Tools

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 09:46 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.04486 seconds
  • Memory Usage 2,255KB
  • Queries Executed 19 (?)
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
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (1)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete