vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   thumbnail images [cms] (https://vborg.vbsupport.ru/showthread.php?t=257967)

lvlehrad 01-28-2011 02:49 PM

thumbnail images [cms]
 
Hello,
In the homepage, the thumbnail images are placed on the left, and the written material on the right. But the way I want it is for the images to be centered and under the written material.
website : www.n1-music.com

Best Regards

Lynne 01-29-2011 02:35 PM

Try something like, in vbcms_content_article_preview, find and remove:
HTML Code:

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

And then under this:
HTML Code:

            <div class="cms_article_txt_content postcontainer">
            {vb:raw previewtext}
            <vb:if condition="$preview_chopped">...</vb:if>
            </div>

Add this:
HTML Code:

<p class="bottom_image">
        <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>
</p>

And add to additional.css:
HTML Code:

.bottom_image {display: block; clear: both; float: none; text-align: center;}
.cms_article_preview_image, .showpreviewonly object {float: none;}

You'll probably want to tweek it a bit to be how you want, but that's the basic idea.

lvlehrad 02-05-2011 11:33 AM

i do your changes and cms image's is center now , but my style isnt work properly so i revert any changes . i use custom style from completevb team .
https://vborg.vbsupport.ru/external/2011/02/47.jpg

Lynne 02-05-2011 03:24 PM

I can't help with a custom style. You'll have to take what I wrote and adapt it to the custom style to work.


All times are GMT. The time now is 05:27 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.01032 seconds
  • Memory Usage 1,722KB
  • 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
  • (4)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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