Welcome to WebmasterWorld Guest from 23.22.46.195

Forum Moderators: coopster & jatar k

Articles widget design

I just need to add a bullet in front of each article displayed in the widge

   
7:50 pm on Dec 11, 2011 (gmt 0)

5+ Year Member



Hi ,
I have a Vbulletin forum and there's a "Week Most Viewed" widget .
Problem is the content looks bad ...

I just need to add a bullet in front of each article displayed in the widget ...

Can i do that ?



ob_start();
// Current Week Most Viewed
$mostpopularweekget = vB::$db->query_read("
select ".TABLE_PREFIX."cms_node.nodeid as nodeid, ".TABLE_PREFIX."cms_nodeinfo.title as title FROM ".TABLE_PREFIX."cms_node, ".TABLE_PREFIX."cms_nodeinfo where ".TABLE_PREFIX."cms_node.nodeid = ".TABLE_PREFIX."cms_nodeinfo.nodeid AND ".TABLE_PREFIX."cms_node.setpublish = 1 AND ".TABLE_PREFIX."cms_node.publishdate >'".$starttime."' ORDER BY ".TABLE_PREFIX."cms_nodeinfo.viewcount desc LIMIT 10;
");
$outputbits = '';
while($article = vB::$db->fetch_array($mostpopularweekget))
{

$outputbits .='<div class = "cms_widget_post_bit"><h4 class = "cms_widget_post_header">
<a rel="nofollow" href="content.php?r='.$article[nodeid].'">'.$article[title].'</a> </h4> </div>';
}
$output = $outputbits;
ob_end_clean();



Thank you !
5:13 am on Dec 12, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Best done by editing the CSS file. Look for this : cms_widget_post_header

As a quick solution on the page though, add <li> before <a and </li> after </a> as shown below:

<li><a ..... </a> </li>
6:05 pm on Dec 12, 2011 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Agreed, lose the div (itis) and h4, style those li's, you're set.
11:11 am on Dec 14, 2011 (gmt 0)

5+ Year Member



I have searched in templates and i could not find the cms_widget_post_header , can i add some changes directly to the code above ?

Thanks Habtom and rocknbil !
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month