vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Sidebar Block CMS Article - Image instead of avatar (https://vborg.vbsupport.ru/showthread.php?t=273444)

johnnymc7 06-25-2012 06:05 PM

This is what I got when I did that Lynne

Quote:

<!-- BEGIN TEMPLATE: vbcms_widget_recentarticle_page -->
<div class="cms_widget">
<div class="block">
<div class="cms_widget_header">
<h3><img alt="" src="images/cms/widget-forum.png" /> Recent Articles</h3>
</div>
<div class="cms_widget_content widget_content">

<div class="cms_widget_post_bit widget_post_bit">
<div class="cms_widget_post_userinfo widget_post_userinfo">
<div class="cms_widget_post_useravatar widget_post_useravatar">

<img alt="" src="images/misc/unknown.gif" />

</div>
</div>
<div class="cms_widget_post_comment widget_post_comment">

<h4 class="cms_widget_post_header widget_post_header"><a href="http://www.irishdrumandbass.com/content.php?125-Pessimist">Hertz-U Presents Pessimist 29/06/12</a></h4>

<div class="cms_widget_post_content widget_post_content"><br />
<br />
Hertz-U Soundsystem are back after a brilliant night at Fierce in April and after upsetting the neighbours... <a href="http://www.irishdrumandbass.com/content.php?125-Pessimist">read more</a></div>

<a href="http://www.irishdrumandbass.com/content.php?125-Pessimist" class="lastpostdate understate" title="Go to last post"></a>



<div class="searchstats">
<h4 class="searchlastpostlabel">Categories: </h4>

<a href="http://www.irishdrumandbass.com/list.php?category/43-News">News</a>&nbsp;

</div>



</div>

</div>

</div>
</div>
</div>
<!-- END TEMPLATE: vbcms_widget_recentarticle_page --></li>

<!-- END TEMPLATE: vbcms_widget_column --></ul>
Thanks for all the help!

Lynne 06-25-2012 10:59 PM

Then this is the template you needed to modify - vbcms_widget_recentarticle_page . Your's is a cms widget. This thread started out talking about forum blocks. So, you will need to make the appropriate changes to the widget code and widget templates, not the block code and block templates.

johnnymc7 06-26-2012 05:12 PM

Hi Lynne sorry I took this up wrong. I found code that Dead Eddie put up and it was exactly what I was looking for. Thanks for all your help :-)

schneberger 11-01-2014 12:49 AM

i can see there is a typ in the first post.

the width option is written as with instead of width.

and also if you put in the variables width="100%" and leave out the height option. then your images fits perfectly in the sidebar

like this.

http://motorcyclebuilders.net/forum.php

tbworld 11-01-2014 01:02 AM

Quote:

Originally Posted by johnnymc7 (Post 2343102)
Hi Lynne sorry I took this up wrong. I found code that Dead Eddie put up and it was exactly what I was looking for. Thanks for all your help :-)

Please post a link to the post you found from @Dead_Eddie, as this may be useful to others that are following this thread. Thank You, :)


All times are GMT. The time now is 12:29 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.01216 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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