![]() |
Widget: Latest Articles In Category
1 Attachment(s)
Latest Articles In Category What is does: vBCMS only has one option for latest articles and that is all sections and categories. This widget will allow you to display the latest articles in a specific category. Change Log: 1.0 - Initial Release 1.1 - Updated to allow more than one category & display published date. 1.2 - Small update, no need to update unless you are using a table prefix. 1.3 - Added full page text if no previewtext row exists. 1.4 - Updated to not display unpublished articles. 1.5 - Updated read more link to be more vBulletin like. 1.6 - Small change to fix 4.0.2 [ATTACH] showing in text. Installation:
When in your article you should see something like this: The number after / in this case 11 is your category id. Can I enter more than one category id? Yes simply change $category = '11' to something like $category='11, 12, 13' Code to copy(make sure you change $category and $limit!) PHP Code:
https://vborg.vbsupport.ru/attachmen...1&d=1265896837 For Section Mod See Here: https://vborg.vbsupport.ru/showthread.php?p=1949493 |
Thank you very much OcR Envy, this should be a default widget for VB4.
I'm changing the output layout, how can I put the publishing date of the article? Can more than one category be used in on single widget? The widget could be modified to work with sections and sub-sections? |
There ya go king update to allow for published date & more than one category :)
For sections see my other mod here: https://vborg.vbsupport.ru/showthread.php?t=232443 1.2 Updated - Small update for users who have a table prefix should resolve any database errors. No need to update otherwise. |
good widget. can we do this?
i have a Section named Columnist. And there are a lot of Categories. how can i display "Only first article" from every categories?. i mean only one (Latest) article must listed from every cats i specified? if there are 10 categories widget must display 10 articles from each categories. |
Sayram,
It isn't setup like that currently. You could try modifying the code a bit yourself but I don't think many people would use something like that. |
1 Attachment(s)
Hi,
I took the whole code you said just removed the align center and the hight and width of the image but still no preview text :( I am using vb 4.0.1 |
Quote:
|
you got mail :)
|
Updated to 1.3 no need to update unless previewtext was not appearing for you.
For some reason Daten(and I assume others) had no previewtext row in some articles. The update will pull from the full text, strip bbcode and then limit the text to 150 characters. |
possible to add the number of comments given? ^^ like:
Comments: (1) while the (1) is a link to the comments |
All times are GMT. The time now is 11:03 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|