[support] problem on content display

bharani kumar bharanikumariyerphp at gmail.com
Tue Jun 24 12:10:28 UTC 2008


Here i have attached my printscrren of the problem..


Hi dears

I installed fckeditor module,

When i display the content with image ,

It is not displayed properly,


This is the code am using



    case 'view':
      if (user_access('access content') && $delta == 0 && arg(0)=='user') {
        $num_posts = variable_get('ptHeadlines_blog_num_posts', 5);
//        $current_user_profile = arg(1);
        $result = db_query_range("select
cn.nid,cn.title,nr.title,nr.timestamp,nr.body,nr.teaser from node as
cn,node_revisions as nr where cn.nid=nr.nid and cn.type='article'ORDER BY
nr.timestamp DESC", NULL, 0, $num_posts);

        if (db_num_rows($result)) {
          $items = array();
          while ($blog_posts = db_fetch_object($result)) {
            $items[] = "<ul>".l(ucwords($blog_posts->title), 'node/'.
$blog_posts->nid)."</ul>".substr($blog_posts->teaser, 0,
175).l("More","node/".$blog_posts->nid);

          }
          $block['subject'] = t('More Headlines');
          // Theme our array of links as an unordered list
          $block['content'] = theme('item_list', $items);
        //  if (db_num_rows($result) == $num_posts) {
       //     //$block['content'] .= '<div class="block-view-more">'.
l(t('View more'), 'blog/'. $current_user_profile, array(), NULL, NULL,
FALSE, FALSE) .'</div>';
        //  }
        }
      }
      return $block;
  }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20080624/6a91b74c/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fckimagepeoblem.JPG
Type: image/jpeg
Size: 108892 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/support/attachments/20080624/6a91b74c/attachment-0001.jpeg 


More information about the support mailing list