Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-09-2011, 04:21 PM
clayton47 clayton47 is offline
 
Join Date: Oct 2011
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 12-09-2011, 05:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 12-09-2011, 05:57 PM
clayton47 clayton47 is offline
 
Join Date: Oct 2011
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 12-09-2011, 08:01 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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*/
}
Reply With Quote
  #5  
Old 12-09-2011, 08:22 PM
clayton47 clayton47 is offline
 
Join Date: Oct 2011
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 12-13-2011, 05:24 PM
clayton47 clayton47 is offline
 
Join Date: Oct 2011
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #7  
Old 12-13-2011, 09:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Totally replacing the template for one section? The only part I know you may easily replace is the grid via the layout.
Reply With Quote
  #8  
Old 12-13-2011, 10:02 PM
clayton47 clayton47 is offline
 
Join Date: Oct 2011
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, how can you use a custom template then. If I select a template this is what is shown
Quote:
vbcms_content_article_preview:

This template has not been customized in this style or any of its parent styles.

Double-click the template name or click the 'Customize' button to add a customized version of this template to the current style and its child sets.

Last edited June 28 2011 at 16:09 by michael.lavaveshkul
So If you create a new vbcms_content_article_preview template named "vbcms_content_article_custom_preview" how would you use it?
Reply With Quote
  #9  
Old 12-14-2011, 01:04 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 12-14-2011, 02:49 AM
clayton47 clayton47 is offline
 
Join Date: Oct 2011
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


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 09:59 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.04636 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
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
  • (1)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
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete