The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom Thumbnail Size For Section
How would I go about doing this? I tried just changing it up with some css, but the thumbnail settings over ride anything with the important rule that is attached by default. I want to keep thumbnails the same everywhere buy my home page of my cms.
Any help on this would be greatly appreciated. I have been banging my head for weeks. Found nothing on the forums, or googling. Thanks, Clayton |
#2
|
||||
|
||||
What do you have set for AdminCP > Settings > Options > content management > Use Thumbnails in Preview ? If you have that set to No, then it will use regular CSS to size the images and then you could write some custom CSS for your Home page to change it just there.
|
#3
|
|||
|
|||
It is set to no. I cleared cache, rebuilt thumbnails. and tried adding new posts and new thumbnails and it still automatically resized them.
Do I need to double click the image and select the size? It only gives me thumnail, med, large, fullsize. Or do I need to select anything if I set my css for the image size? --------------- Added [DATE]1323457565[/DATE] at [TIME]1323457565[/TIME] --------------- the default template is "vbcms_content_section_page" if I want to create my own and use it how do I select it or activate it? So pages that I want to use a certain size thumbnail I can, and others that I want to use the default they will. If I address the css for the default template it obviously affects it everywhere. |
#4
|
||||
|
||||
It will resize them via this CSS:
.cms_article_preview_image { max-height:{vb:stylevar image_thumbnail_max}; max-width:{vb:stylevar image_thumbnail_max} !important; _width:{vb:stylevar image_thumbnail_max}; /*IE6*/ } |
#5
|
|||
|
|||
I had already targeted .cms_article_preview_image, but why you include {vb:stylevar image_thumbnail_max}?
Back to my template question, I found the template - vbcms_content_article_preview Can I create a duplicate of it with a different name, rename some of elements and select where to show this template? If I only want my home page section to show thumbnails a certain way could I do it that way? I dont know how to activate or utilize creating a custom template. Please clarify how I can do that, I would be able to do some really nice stuff If I could only find how to implement the custom templates. |
#6
|
|||
|
|||
Lynne could you answer my question on how to use the custom templates. I have found no solid answer anywhere on how to use it once created. *only have found info for when creating a static page. But what about using it for a specific section. And then letting all the other sections use the standard templates.
I would greatly appreciate any help on this! |
#7
|
||||
|
||||
Totally replacing the template for one section? The only part I know you may easily replace is the grid via the layout.
|
#8
|
|||
|
|||
Ok, how can you use a custom template then. If I select a template this is what is shown
Quote:
|
#9
|
||||
|
||||
You would need to modify the code, or write some plugin (not sure you can do it via plugin), to render the new template, if in that specific section, which is not as easy as it sounds.
|
#10
|
|||
|
|||
I know its not easy as it sounds. Thats why I am here asking this specific question. I just dont know why its made so conveniently easy to "create a custom template" for the vbulletin template structure and no way to conveniently use it.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|