vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Widget - text under avatar (https://vborg.vbsupport.ru/showthread.php?t=271225)

romaszek 10-06-2011 05:32 AM

Yes. In additional.css I added the code:


HTML Code:

.widget_post_userinfo {
    float: left;   
    height: 40px;   
    margin-right: 40px;
}
.widget_post_comment {
    margin-left: 0;}


Lynne 10-07-2011 12:39 AM

Can we get a link to see this.

romaszek 10-07-2011 07:14 AM

OK.
The test-forum.
http://www.testowe.utwory.webd.pl/content.php

Thanks.

Lynne 10-07-2011 02:49 PM

Do this in the template instead:

Code:

    <div class="cms_widget_post_userinfo widget_post_userinfo">      all the stuff inside this div also......      </div>

<div class="cms_widget_post_comment widget_post_comment">
      <vb:if condition="$article['showtitle'] OR $article['settingsforboth'] == 2"> etc.

Then also set:
HTML Code:

.widget_post_comment {    overflow: inherit;}

romaszek 10-07-2011 05:59 PM

Sorry, bad English.
A little I don′t get the idea.
it to be so?


vbcms_widget_recentarticle_page:
HTML Code:

<div class="cms_widget">
<div class="block">
        <div class="cms_widget_header">
                <h3><img alt="" src="{vb:stylevar imgdir_cms}/widget-forum.png" /> {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_userinfo widget_post_userinfo">
                                        <div class="cms_widget_post_useravatar widget_post_useravatar">
                                                <vb:if condition="$article['showuser'] OR $article['settingsforboth'] == 2">
                                                        <vb:if condition="$article['avatar']">
                                                                <a class="comments_member_avatar_link" href="{vb:link member, {vb:raw article}}"><img alt="{vb:raw article.username}" src="{vb:raw vboptions.bburl}/{vb:raw article.avatar.0}" {vb:raw article.avatar.1} /></a>
                                                        <vb:else />
                                                                <img alt="{vb:raw article.username}" src="{vb:stylevar imgdir_misc}/unknown.gif" />
                                                        </vb:if>
                                                <vb:else />
                                                        <img alt="" src="{vb:stylevar imgdir_misc}/unknown.gif" />
                                                </vb:if>
                                        </div>
                                </div>
                                <div class="cms_widget_post_comment widget_post_comment">
                                        <vb:if condition="$article['showtitle'] OR $article['settingsforboth'] == 2">
                                                <h4 class="cms_widget_post_header widget_post_header"><a href="{vb:raw article.page_url}">{vb:raw article.title}</a></h4>
                                        </vb:if>
                                        <div class="cms_widget_post_content widget_post_content">{vb:raw article.previewtext}... <a href="{vb:raw article.page_url}">{vb:rawphrase read_more}</a></div>
                                        <vb:if condition="$article['showuser'] OR $article['settingsforboth'] == 2">
                                                <a href="{vb:link member, {vb:raw article}}" class="username">{vb:raw article.username}</a>
                                        </vb:if>
                                        <a href="{vb:raw article.page_url}" class="lastpostdate understate" title="{vb:rawphrase go_to_last_post}"><vb:if condition="$article['showpublishdate'] OR $article['settingsforboth'] == 2">{vb:date {vb:raw article.publishdate}, {vb:raw vboptions.dateformat}}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:date {vb:raw article.publishdate} {vb:raw vboptions.timeformat}}</span></vb:if></vb:if></a>
                                          <vb:comment>
                                                        <div class="searchcat">
                                                                <h4 class="searchlastpostlabel understate">{vb:rawphrase content} :</h4>
                                                                <span class="understate">{vb:rawphrase article}</span>
                                                        </div>
                                          </vb:comment>

                                                <vb:if condition="$article['categories']">
                                                        <div class="searchstats">
                                                                <h4 class="searchlastpostlabel">{vb:rawphrase categories}: </h4>
                                                                <vb:each from="article['categories']" key="categoryid" value="category">
                                                                        <a href="{vb:raw category.category_url}">{vb:raw category.category}</a>&nbsp;
                                                                </vb:each>
                                                        </div>
                                                </vb:if>

                                                <vb:if condition="$article['tags']">
                                                        <div class="searchstats">
                                                                <dt>{vb:rawphrase tags}: </dt>
                                                                <vb:each from="article['tags']" key="tagid" value="tagtext">
                                                                        <dd><a href="{vb:raw vboptions.bburl}/tags.php?tagid={vb:raw tagid}">{vb:raw tagtext}</a></dd>
                                                                </vb:each>
                                                        </div>
                                                </vb:if>
                                </div>

                        </div>
                </vb:each>
        </div>
</div>
</div>


additional.css
HTML Code:

.widget_post_userinfo {
    float: left;   
    height: 40px;   
    margin-right: 40px;
}
.widget_post_comment {
    margin-left: 0;}
.widget_post_comment {    overflow: inherit;}

So I made.
Does not work.
Works from left when I roll up Firefox left.

Lynne 10-07-2011 07:20 PM

Whoops, too quick on the copy/paste:
Change:
HTML Code:

.widget_post_comment {    overflow: inherit;}
To:
HTML Code:

.widget_post_comment .widget_post_content {    overflow: inherit;}

romaszek 10-08-2011 06:47 AM

Works superbly :up:
This should be built-in in vBulletin.
Very to thank Lynne. You are great.

Thanks :)


All times are GMT. The time now is 09:41 PM.

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.01917 seconds
  • Memory Usage 1,763KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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