Announcement

Collapse
No announcement yet.

Thumbnail Images

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [CMS] Thumbnail Images

    Ok so i have a widget called featured content and i have copied the template code from vbcms_widget_recentarticle_page and created a new template called vbcms_widget_recentarticle_page_featured and pointed my featured content widget at it.

    You can see it in action at the top of the page on www.eteknix.com

    This is the code for it:

    Code:
    <div class="cms_widget">
    <div class="block">
    	<div class="cms_widget_header">
      <h3>{vb:raw widget_title}</h3>
    	</div>
    	<div class="cms_widget_content widget_content">
      <vb:each from="articles" key="contentid" value="article">
       <div class="cms_widget_post_bit widget_post_bit">
         <div class="cms_widget_post_comment widget_post_comment">
                    <h4 style="margin-left: -35px;" class="cms_widget_post_header widget_post_header"><a href="{vb:raw article.page_url}">{vb:raw article.title}</a></h4>
                    
                    <vb:if condition="$article['tags']"></vb:if>
                  </div>
              </div>
            </vb:each>
    </div>
    </div>
    What i want to do now is to have a thumbnail to go with each article but i can't for the life of me work out the code needed.

    Also i would much prefer a horizontal list as opposed to the vertical list of articles as it's currently set out.

    Any ideas?

    Thanks,

    Andy
    http://www.eteknix.com/images/misc/vbulletin4_logo.png
    eTeknix.com - http://www.eteknix.com
    eTeknix Forums - http://forums.eteknix.com

  • #2
    You can't just add some variable name into the template for the thumbnail image, you need to actually make sure you are querying the database for the thumbnail image and then use that field name in the template to show the thumbnail image.

    If you need further help with this, you should be posting over on vbulletin.org, the modification site.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment


    • #3
      The only problem with that Lynne is that no one uses vbulletin.org and the site is dying a painful death.

      I've asked for help over there before and never got a response and the one time i did was from you telling me to go there and you was the one who helped me funnily enough lol.

      So can you help? lol

      Thanks,

      Andy
      http://www.eteknix.com/images/misc/vbulletin4_logo.png
      eTeknix.com - http://www.eteknix.com
      eTeknix Forums - http://forums.eteknix.com

      Comment


      • #4
        This isn't the site to help with custom code. And, the best way to get help over on vbulletin.org with code, is to actually post your code and post a link to the results. You really need to post the code for your custom "featured content" widget in order for anyone to help you with getting the thumbnail images.

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools &lt;- awesome site for html/css help

        Comment


        • #5
          Originally posted by Lynne View Post
          This isn't the site to help with custom code. And, the best way to get help over on vbulletin.org with code, is to actually post your code and post a link to the results. You really need to post the code for your custom "featured content" widget in order for anyone to help you with getting the thumbnail images.
          See the problem with that Lynne is that vb.org id pretty much a dead site as shown in my example here - http://www.vbulletin.org/forum/showthread.php?t=266850

          T
          hink vb seriously need to shake up something to get the development side of things back again.

          You say this isn't the site to help with custom code, but it seems neither is vbulletin.org

          Andy
          http://www.eteknix.com/images/misc/vbulletin4_logo.png
          eTeknix.com - http://www.eteknix.com
          eTeknix Forums - http://forums.eteknix.com

          Comment

          Related Topics

          Collapse

          Working...
          X