The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||||
Latest Articles In Section 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 section. Change Log: 1.0 - Initial Release 1.1 - Updated to allow more than one section & 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 show unpublished articles. 1.5 - Updated read more link to look more vBulletin related. 1.6 - Small change to fix 4.0.2 [ATTACH] showing in text. Installation:
When clicking on your section you should see something like this: The number after ? in this case 11 is your section id. Can I enter more than one section id? Yes simply change $section = '11' to something like $section='11, 12, 13' Code to copy(make sure you change $section and $limit!) PHP Code:
For Category Mod See Here: https://vborg.vbsupport.ru/showthread.php?t=232440 Screenshots
Show Your Support
|
3 благодарности(ей) от: | ||
case-dk, Oxylis, Toorak Times |
Comments |
#72
|
|||
|
|||
![]()
hello all,
i need some help... i inserted the code but the widget is empty. i tried to create a new widget by default "Recent articles" and this is not displayed too. is there any parameter that i have to edit in order to display the widget content? i created another one (media library) succesfully but this is still empty. thank you |
#73
|
||||
|
||||
![]()
Hello,
This widget is exactly what I need, can someone PLEASE help me with exact code needed just to show article title, link and preview image and NOTHING else. Also I have sections with just video, if I use it in those sections with above requirements will it work??? All help greatly appreciated I am very technically challenged and need serious HELP PLEASE |
#74
|
||||
|
||||
![]()
hello,
I have manageed to remove some of the stuff I didnot want (publish date etc) how do I remove the "read more" image and text from what is left below. I seem to get errors with everything I try $output .= "<a href='content.php?".$nodeid."-".$url."'>".$title."</a><br /></br></center><p>".$text." <a href='content.php?".$nodeid."-".$url."'> <img alt='Read More' src='images/cms/read_more-right.png' title='Read More' border='0'></a></p><br />"; } |
#75
|
||||
|
||||
![]()
[QUOTE=OcR Envy;1978198]Find:
PHP Code:
PHP Code:
I also only want picture and title to show, everything else removed including read more HELP PLEASE ANYONE |
#76
|
||||
|
||||
![]()
Will seriously pay someone to help me get this working how I want
ANYONE PLEASE!! |
#77
|
|||
|
|||
![]()
How do/did you remove publish date?
|
#78
|
||||
|
||||
![]()
This is the code I used which removes everything but the title and the picture
// Set Your Section ID Here $section = '1'; // Set The Number of Articles To Display $limit = '5'; // Set The Height of The Thumbnail Image $height = '100'; // Set The Width of The Thumbnail Image $width = '150'; $articlegrab = vB::$db->query_read(" SELECT ".TABLE_PREFIX."cms_nodeinfo.nodeid , ".TABLE_PREFIX."cms_nodeinfo.title , ".TABLE_PREFIX."cms_article.previewimage , ".TABLE_PREFIX."cms_article.contentid , ".TABLE_PREFIX."cms_node.nodeid , ".TABLE_PREFIX."cms_node.parentnode , ".TABLE_PREFIX."cms_node.contentid , ".TABLE_PREFIX."cms_node.url , ".TABLE_PREFIX."cms_node.setpublish FROM ".TABLE_PREFIX."cms_article , ".TABLE_PREFIX."cms_nodeinfo , ".TABLE_PREFIX."cms_node WHERE (".TABLE_PREFIX."cms_nodeinfo.nodeid = ".TABLE_PREFIX."cms_node.nodeid) AND (".TABLE_PREFIX."cms_article.contentid = ".TABLE_PREFIX."cms_node.contentid) AND (".TABLE_PREFIX."cms_node.parentnode IN ($section)) AND (".TABLE_PREFIX."cms_node.setpublish != 0) ORDER BY ".TABLE_PREFIX."cms_node.publishdate DESC LIMIT $limit "); while($articleinfo = vB::$db->fetch_array($articlegrab)) { $title = $articleinfo['title']; $image = $articleinfo['previewimage']; $nodeid = $articleinfo['nodeid']; $url = $articleinfo['url']; $fulltext = strip_bbcode($fulltext); $text = preg_replace('/\[ATTACH\=CONFIG\]\d\d\[\/ATTACH\]/', '', $text); $text = strip_bbcode($text); if($text == '') $text = substr($fulltext, 0,150); $output .= '<center>'; if($image != '') $output .= "<img src='".$image."' width='".$width."px' height='".$height."px' /><br />"; $output .= "<a href='content.php?".$nodeid."-".$url."'>".$title."</a><br /></br></center><p>".$text." </p><br />"; } |
#79
|
|||
|
|||
![]()
Thanks Mark, worked great. Just what I've been looking for.
|
#80
|
||||
|
||||
![]()
perfect glad I could actually help someone
|
#81
|
||||
|
||||
![]()
Hello,
I have this mod install using above code that I changed a bit to remove everything but thumbnail and title, works fantastically, thanks to orignal coder. Can anyone tell me how to get the pictures on the left and title on the right using same modified code above PLEASE |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|