![]() |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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))) .
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
Same thing for me. Everything works, except PAGINATION.
SOLVED: go to News Archive and set Number of Archived News Posts to Display to 0 !
|
|
#5
|
|||
|
|||
|
Thanks for sharing. Installed and works great!
|
|
#6
|
|||
|
|||
|
do you have for 3.8.1
|
|
#7
|
|||
|
|||
|
Any solution for v3.2.0 ?
|
|
#8
|
|||
|
|||
|
Last edited by zi5; 08-31-2009 at 02:07 AM. |
|
#9
|
|||
|
|||
|
Secta you don't want to update as with new version ?
Thanks , Zi5 |
|
#10
|
|||
|
|||
|
Please
I have Vbulletin V3.8.3 That Modification want not to install I have this message to vBadvanced CMPS Install Quote:
|
|
#11
|
|||
|
|||
|
What's up with the upgrade of this nice module ?
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |