vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Article preview help (https://vborg.vbsupport.ru/showthread.php?t=243864)

ashley76 06-03-2010 11:24 AM

Article preview help
 
Okay here is my code...

Code:

{vb:raw css}

<div class="article_preview">
        <div class="title">
                <h3 class="article_preview">
                <vb:if condition="$showtitle">
                        <a href="{vb:raw page_url}"><span>{vb:raw title}</span></a>&nbsp;
                </vb:if>
                </h3> 
        </div>
<vb:comment>
        <!--  Display Section Location -->
        <div class="cms_article_section_location">
                {vb:rawphrase section}: <a href="{vb:raw section_url}">{vb:var parenttitle}</a>
        </div>
</vb:comment>

        <div class="fullwidth article_preview_contents<vb:if condition="$showpreviewonly"> showpreviewonly</vb:if> restore">
                <vb:if condition="$showpreviewonly">
                        <vb:if condition="$previewvideo">
                                {vb:raw previewvideo}                       
                        <vb:elseif condition="$previewimage" />
                                <a href="{vb:raw page_url}">
                                <img class="cms_article_preview_image" src="{vb:raw previewimage}" alt="{vb:rawphrase article_preview}" /></a>
                        </vb:if>
                </vb:if>
                <div>
                        <br />
                        <div class="cms_article_txt_content postcontainer">
                        {vb:raw previewtext}
                        <vb:if condition="$preview_chopped">...</vb:if>
                        </div>
                </div>
        </div>

        <div class="fullwidth">

                <vb:if condition="$preview_chopped">
                       
                </vb:if>

               
        </div>
</div>

I have a cell/gap whatever you want to call it in-between {vbraw: title} and {vb:rawphrase section}

you can visit http://www.bzzurkk.com and look at the article previews to see a big gap between the article title and image/preview to see what I am talking about.

Anyone know how to get rid of that?

Xencored 06-03-2010 12:14 PM

Can you show me a image of your problem because on chrome it looks fine
I cant see any "big gaps"

ashley76 06-03-2010 12:19 PM

1 Attachment(s)
Here you go... I circles the gaps...

Xencored 06-03-2010 12:23 PM

Code:

{vb:raw css}

<div class="article_preview">
        <div class="title">
                <h3 class="article_preview">
                <vb:if condition="$showtitle">
                        <a href="{vb:raw page_url}"><span>{vb:raw title}</span></a>&nbsp;
                </vb:if>
                </h3> 
        </div>
<vb:comment>
        <!--  Display Section Location -->
        <div class="cms_article_section_location">
                {vb:rawphrase section}: <a href="{vb:raw section_url}">{vb:var parenttitle}</a>
        </div>
</vb:comment>

        <div class="fullwidth article_preview_contents<vb:if condition="$showpreviewonly"> showpreviewonly</vb:if> restore">
                <vb:if condition="$showpreviewonly">
                        <vb:if condition="$previewvideo">
                                {vb:raw previewvideo}                       
                        <vb:elseif condition="$previewimage" />
                                <a href="{vb:raw page_url}">
                                <img class="cms_article_preview_image" src="{vb:raw previewimage}" alt="{vb:rawphrase article_preview}" /></a>
                        </vb:if>
                </vb:if>
                <div>
                        <div class="cms_article_txt_content postcontainer">
                        {vb:raw previewtext}
                        <vb:if condition="$preview_chopped">...</vb:if>
                        </div>
                </div>
        </div>

        <div class="fullwidth">

                <vb:if condition="$preview_chopped">
                       
                </vb:if>

               
        </div>
</div>


ashley76 06-03-2010 12:30 PM

1 Attachment(s)
Thanks for the help. That leaves a gap too though...

Xencored 06-03-2010 12:45 PM

Quote:

Originally Posted by ashley76 (Post 2047609)
Thanks for the help. That leaves a gap too though...

Can you re-add the code above so i can see where the next problem is

ashley76 06-03-2010 12:47 PM

done

Xencored 06-03-2010 12:53 PM

Quote:

Originally Posted by ashley76 (Post 2047621)
done

You need to find edit the Variable "vbcms_article_preview_image_margin"

Change the "Top" from 20 to 0

edit = oh and still use the code i give you above

ashley76 06-03-2010 01:10 PM

That did it! Thanks a ton Mike! You are the man!

Xencored 06-03-2010 01:23 PM

Quote:

Originally Posted by ashley76 (Post 2047635)
That did it! Thanks a ton Mike! You are the man!

Your welcome;)


All times are GMT. The time now is 02:10 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.01150 seconds
  • Memory Usage 1,744KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete