Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-01-2011, 07:56 AM
romaszek romaszek is offline
 
Join Date: Dec 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Widget - text under avatar

Hey.
Sorry bad English.
As to add the text under avatar ?

Thanks.
Attached Images
File Type: jpg widget_avatar.jpg (26.7 KB, 0 views)
Reply With Quote
  #2  
Old 10-01-2011, 10:41 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to move the userinfo div inside the widget_post_bit div. Then add to the additional.css some css to float it right and add a margin-right and a height. Then, get rid of the margin-right for the widget_post_bit.
Reply With Quote
2 благодарности(ей) от:
car20, romaszek
  #3  
Old 10-02-2011, 07:34 AM
romaszek romaszek is offline
 
Join Date: Dec 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very to thank
Reply With Quote
  #4  
Old 10-03-2011, 07:53 PM
romaszek romaszek is offline
 
Join Date: Dec 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You need to move the userinfo div inside the widget_post_bit div. Then add to the additional.css some css to float it right and add a margin-right and a height. Then, get rid of the margin-right for the widget_post_bit.
I tried. Sorry. I cannot make.
Can I ask for the guide?

Thanks.
Reply With Quote
  #5  
Old 10-04-2011, 01:34 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post the template code you tried so I can see what went wrong and also post the css you added to the additional.css template for this. Please put code tags around it.
Reply With Quote
  #6  
Old 10-04-2011, 07:06 AM
romaszek romaszek is offline
 
Join Date: Dec 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Post the template code you tried so I can see what went wrong and also post the css you added to the additional.css template for this. Please put code tags around it.
I added div but this surely not is good. I do not know php and I do intuitionally.

vbcms_widget_recentarticle_page
PHP 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>




                    <
div class="cms_widget_post_useravatar widget_post_useravatar">
                        <
vb:if condition="$article['showuser'] OR $article['settingsforboth'] == 2">
                            <
vb:if condition="$article['avatar']">
                                <
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
Reply With Quote
  #7  
Old 10-04-2011, 04:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You forgot the surrounding <divs> for the widget_post_userinfo. That whole div needs to be moved inside the other div. You should have something like:

HTML Code:
<div class="cms_widget_post_comment widget_post_comment">
     <div class="cms_widget_post_userinfo widget_post_userinfo">
     all the stuff inside this div also......
     </div>
     <vb:if condition="$article['showtitle'] OR $article['settingsforboth'] == 2">
etc.
Then in additional.css:

HTML Code:
.widget_post_userinfo {
    float: left;    height: 40px;    margin-right: 40px;
}
.widget_post_comment {
    margin-left: 0;}
Reply With Quote
  #8  
Old 10-04-2011, 06:10 PM
romaszek romaszek is offline
 
Join Date: Dec 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very to thank for the help.
Now is so.


vbcms_widget_recentarticle_page
PHP 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_comment widget_post_comment">
                
                                
                
        <
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']">
                                <
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>        
                
                
                
                
                                
                
                
                    <
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
Quote:
Originally Posted by Lynne View Post
Then, get rid of the margin-right for the widget_post_bit.
As to get rid of the margin?

Thanks.
Reply With Quote
  #9  
Old 10-05-2011, 07:43 PM
romaszek romaszek is offline
 
Join Date: Dec 2007
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello.
On left hand is OK.
The right has a margin.
What one can with this make?

Thanks.
Attached Images
File Type: jpg article_left.jpg (27.0 KB, 0 views)
File Type: jpg article_right.jpg (27.8 KB, 0 views)
Reply With Quote
  #10  
Old 10-05-2011, 10:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you try the css I posted?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:27 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.05963 seconds
  • Memory Usage 2,391KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete