vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > Add-On Modules & Modifications > vBa CMPS v3.x & 2.x > Modifications (version 3.x & 2.x)

Reply
 
Thread Tools Display Modes
  #1  
Old 05-21-2008, 09:17 AM
SecTa SecTa is offline
Junior Member
 
Join Date: Oct 2004
Posts: 13
Thumbs up News module with 'mark news by icon' and other useful things.

This hack is an upgraded version of this one. I think this might be useful to other people. Works with vBa CMPS v3.0.1

What does it do:
Pagination feature altered: now you don't need to enter number of pages - just turn it on and news will be paginated.
Mark news by icon: threads will became news if marked by certain icon
Sort news by thread edit time: this sorting method is added to existing ones. It's useful when you marking old thread as news and want it to appear at the top of news.
Brake Tag: with this tag you may manually specify where to position '...[Read More]' link

Instructions:

1. Install from scratch (no vba installed):
replace news.php and vbacmps_install.php with updated files from the archive, install vba as usual.

2. Update existing vba installation:
overwrite forum/modules/news.php with one from the archive.
Copy vbacmps_install.php to forum/admincp/ and run it.
Update templates and update phrases and reinstall settings. delete the file afterwards.
Attached Files
File Type: zip PagNewsExt.zip (47.2 KB, 217 views)
Reply With Quote
  #2  
Old 05-22-2008, 10:18 AM
Crazy Serb Crazy Serb is offline
Member
 
Join Date: Sep 2004
Posts: 36
Default Re: News module with 'mark news by icon' and other useful things.

this will not work out of the box if you didn't mark all your news posts with a specific icon from the very start (and given that most people have marked their news posts manually through the admin interface, it might be a problem)...

so, I edited the news.php (line 133) to something like this to include the icon as an optional check in addition to the current forum/thread checks:

Code:
			$getnewsids_query = "
				SELECT %s FROM " . TABLE_PREFIX . "thread AS thread
				%s
				WHERE visible = 1
					AND open != 10
					AND (thread.forumid IN(" . implode(',', $mods['inforums']) . ")" .
					iif(!empty($newstids), ' OR threadid IN(' . implode(',', $newstids) . ')') .
					iif($mod_options['portal_news_post_iconid'] > 0, " OR thread.iconid IN ({$mod_options['portal_news_post_iconid']})") . ")" .
					iif($mod_options['portal_news_cutoffdate'], 'AND thread.dateline > ' . (TIMENOW - ($mod_options['portal_news_cutoffdate'] * 86400))) .
Reply With Quote
  #3  
Old 08-29-2008, 06:55 PM
viciox viciox is offline
Banned
 
Join Date: Jun 2007
Posts: 6
Default

Thanks, this mod works very good with the icons, but i have a problem with the Pagination, i put 1 in the Enable News Pagination option but doesn't work anything shows in the portal i have a lot of news but doesn't display the pagination.

Thanks.
Reply With Quote
  #4  
Old 09-09-2008, 12:31 PM
ptytb ptytb is offline
Junior Member
 
Join Date: Jun 2008
Posts: 15
Default

Same thing for me. Everything works, except PAGINATION.
SOLVED: go to News Archive and set Number of Archived News Posts to Display to 0 !
Reply With Quote
  #5  
Old 01-15-2009, 06:37 PM
shalliday shalliday is offline
Junior Member
 
Join Date: Sep 2004
Posts: 8
Default

Thanks for sharing. Installed and works great!
Reply With Quote
  #6  
Old 03-29-2009, 08:25 AM
mycarsms mycarsms is offline
Junior Member
 
Join Date: Mar 2009
Posts: 2
Default

do you have for 3.8.1
Reply With Quote
  #7  
Old 06-23-2009, 08:43 PM
akrep1980 akrep1980 is offline
Junior Member
 
Join Date: Feb 2008
Posts: 7
Default

Any solution for v3.2.0 ?
Reply With Quote
  #8  
Old 07-06-2009, 11:40 AM
zi5 zi5 is offline
Junior Member
 
Join Date: Feb 2005
Posts: 27
Default

Quote:
Originally Posted by akrep1980 View Post
Any solution for v3.2.0 ?

Last edited by zi5; 08-31-2009 at 02:07 AM.
Reply With Quote
  #9  
Old 08-31-2009, 02:06 AM
zi5 zi5 is offline
Junior Member
 
Join Date: Feb 2005
Posts: 27
Default

Secta you don't want to update as with new version ?
Thanks ,
Zi5
Reply With Quote
  #10  
Old 08-31-2009, 05:38 PM
kaps kaps is offline
Junior Member
 
Join Date: Aug 2009
Posts: 2
Default

Please
I have Vbulletin V3.8.3
That Modification want not to install
I have this message to vBadvanced CMPS Install
Quote:
It appears that you are trying to install the vBulletin 3.6 version of vBadvanced CMPS on an older version of vBulletin.
Please go back to vbadvanced.com and download the version of vBadvanced CMPS that corresponds to your version of vBulletin, or upgrade to vBulletin 3.6 before proceeding.
What is the solution ? please ...
Reply With Quote
  #11  
Old 09-04-2009, 11:23 AM
kaps kaps is offline
Junior Member
 
Join Date: Aug 2009
Posts: 2
Default

What's up with the upgrade of this nice module ?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mark Thread As News The Equivocate Module & Modification Discussion & Requests 32 02-04-2013 04:29 PM
Paginated news + mark news by icon (vba v3.0 RC2) SecTa Modifications (version 3.x & 2.x) 12 04-04-2009 09:56 AM
Mark / Unmark thread as news. KieuTuan Modifications (version 3.x & 2.x) 9 03-11-2007 03:29 PM
Another way to mark news s0b "How Do I..." Questions 1 01-05-2007 12:28 PM
Mark Thread as News Blue Moose Aaron Add-On Modules & Modifications 142 06-13-2006 12:53 AM


All times are GMT -4. The time now is 09:51 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.