vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Widget: Latest Articles In Section (https://vborg.vbsupport.ru/showthread.php?t=232443)

kingMOB 03-13-2010 06:14 PM

This is the code that prints the title and the link to the article:

PHP Code:

$output .= "<a href='content.php?".$nodeid."-".$url."'>".$title."</a> 

You just need to leave this in the end of the widget:

PHP Code:

   if($text == ''$text substr($fulltext0,150);
    
    
$output .= "<a href='content.php?".$nodeid."-".$url."'>".$title."</a><br />";



Wild Bronco 03-15-2010 02:05 PM

This looks nice.

Could the photo be a link to the Article also?
I think most users would starte by clicking it to see more.

OcR Envy 03-24-2010 10:28 AM

Good stuff here guys. Thanks for supporting Manu and King, been a bit busy myself.

novabandit 03-25-2010 12:47 AM

I have this working on my homepage, and it's great!

However, is it possible for this to work in a forum sidebar block?

GRE 04-11-2010 08:26 PM

I removed "Publish Date" line and all text has a center alignment. How can that be fixed?

Neptun 06-01-2010 07:00 PM

i have a problem ...

i have no space between the pictures there is one directly next to the other and also with the text - there is no space between ....

thx for help

L2V 06-03-2010 04:51 PM

Maybe this will help somebody else (or me in case I made a mistake) but I like to set CMS articles to published at a future date/time and this widget code was still showing those even though they were not published yet. It checks for published but not WHEN it is published. Here is what I used to fix this:

Find:
Code:

// Set The Width of The Thumbnail Image
$width = '250';

Add below:
Code:

// Set the current day and time
$datenow = strtotime("now");

Find:
Code:

AND (".TABLE_PREFIX."cms_node.setpublish != 0)
Add below (before 'ORDER BY'):
Code:

AND (".TABLE_PREFIX."cms_node.publishdate < ($datenow))
Worked like a [S]champ[/S] boss.

monoco 07-23-2010 09:30 PM

Any way to make the image auto resize like the "cms article preview", instead of having to input the image size?

Neptun 07-25-2010 07:55 AM

is there a possiblity to link the pictures also to the articles with a hyperlink ?

thanks

monoco 07-27-2010 12:35 AM

Would like to be able to float the image to the left and have the text flow around the image like the way the primary content widget works.

Any suggestions??


All times are GMT. The time now is 11:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03158 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete