The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
The default is showing a thumbnail of 150px and the intro to the article starting to the right of the thumbnail.
I would like to show the first full image of the article (usually 640px on our site) and the text starting below the picture on the CMS home page. Something similar as they have on Autoblog.com. I know how to adjust the size of the thumbnail to a larger size but how to make the text start below the image? |
#2
|
||||
|
||||
![]()
There is an option in CMS to show full images instead of thumbnails.. should be in content management settings
|
#3
|
|||
|
|||
![]()
Thanks for the response. I already have it set to No:
Quote:
Quote:
|
#4
|
||||
|
||||
![]()
That is true...
Code:
.cms_article_preview_image { max-height:{vb:stylevar attachment_image_thumbnail_max}; max-width:{vb:stylevar attachment_image_thumbnail_max} !important; } vbcms.css |
#5
|
|||
|
|||
![]()
That is possible but that's the same as changing the value in the stylevar. And I still need the preview text to start below the image, not to the side.
|
#6
|
||||
|
||||
![]() Quote:
Code:
<img class="cms_article_preview_image" src="{vb:raw previewimage}" alt="<vb:if condition="$attachment_settings['alt']">{vb:raw attachment_settings['alt']}<vb:else />{vb:rawphrase article_preview}</vb:if>" <vb:if condition="$attachment_settings['title']">title="{vb:raw attachment_settings['title']}"</vb:if> /></a> to this... <img src="{vb:raw previewimage}" width="650" alt="<vb:if condition="$attachment_settings['alt']">{vb:raw attachment_settings['alt']}<vb:else />{vb:rawphrase article_preview}</vb:if>" <vb:if condition="$attachment_settings['title']">title="{vb:raw attachment_settings['title']}"</vb:if> /></a> <br /> |
#7
|
|||
|
|||
![]()
Brilliant, that is perfect and looks great. http://saabworld.net/content/
Some articles do have smaller pictures so those are being stretched out to 650px. Is there a way to set it so smaller images than the specified width (650px here) will display their original size? |
#8
|
||||
|
||||
![]()
Looked at your site...
How big do your images get? You could take the width out, but this could have a negative impact if your users have a high res screen. Have you ever thought about going fixed width just for the CMS portion? (example is my site) You could add something like this to vbcms.css or additional.css if you have that plugin... Code:
.myarticlepreview { max-height: 450px; max-width: 650px !important; display: block; margin-left: auto; margin-right: auto; margin-top:15px; } Code:
<img class="myarticlepreview" src="{vb:raw previewimage}" alt="<vb:if condition="$attachment_settings['alt']">{vb:raw attachment_settings['alt']}<vb:else />{vb:rawphrase article_preview}</vb:if>" <vb:if condition="$attachment_settings['title']">title="{vb:raw attachment_settings['title']}"</vb:if> /></a> <br /> Code:
.cms_article_preview_image, .showpreviewonly object, .showpreviewonly iframe { border:{vb:stylevar vbcms_article_preview_image_border}; outline: {vb:stylevar vbcms_article_preview_image_outline}; /* float:{vb:stylevar left}; */ margin:{vb:stylevar vbcms_article_preview_image_margin}; } vbcms_article_preview_object_size (stylevar) - Change to whatever sizes you want. I tried to center up the video, but unless I used <center></center> it didn't work (that has been depreciated and most people will say don't use it... however I think there is going to be compatibility for a long time). I have a fixed width CMS so it won't affect me as much. Your video will probably show up aligned to the left though. Good luck. |
#9
|
||||
|
||||
![]()
Is all of this still necessary in 4.2 ?
|
#10
|
||||
|
||||
![]() I have a mate that swore black and blue you had to hard code to get results, most can be done through the Stylevars for me, just recently'getting' it, when you do it is a piece of cake |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|