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 10-13-2010, 04:19 PM
ashley76 ashley76 is offline
 
Join Date: Jan 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Article Preview Question

How can I get my article previews to look like this guys?

http://www.maxconsole.net/

They are pretty slick and I would love to have it look similar on my site...
Reply With Quote
  #2  
Old 10-15-2010, 02:10 PM
ashley76 ashley76 is offline
 
Join Date: Jan 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now I basically interested in how they achieved the section header portion of the article preview if anyone can help with that?

The part that has a different colored logo for each section on the left with the posted by and date information on the right...
Reply With Quote
  #3  
Old 01-18-2011, 05:25 AM
GamerPerfection's Avatar
GamerPerfection GamerPerfection is offline
 
Join Date: Feb 2006
Posts: 389
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No-one know how this is done?
Reply With Quote
  #4  
Old 04-23-2011, 02:34 PM
ashley76 ashley76 is offline
 
Join Date: Jan 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just bumping to see if anyone could help out...
Reply With Quote
  #5  
Old 04-23-2011, 04:10 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you need to get the parentnode for the article (which would be the sectionid - and it's in the cms_node table) and then do a condition based on that which would change the header.

This is the programming help section, so it would help if you could post what you have done already and what error you are getting.
Reply With Quote
  #6  
Old 04-23-2011, 04:12 PM
ashley76 ashley76 is offline
 
Join Date: Jan 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess, I should be in a different section then. I know very little (enough to screw something up) and was wondering if someone had a plan laid out to do this...

thanks for the first bit of information though
Reply With Quote
  #7  
Old 07-03-2011, 06:53 AM
brad_irc's Avatar
brad_irc brad_irc is offline
 
Join Date: Aug 2005
Location: Canada
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey guys, i am the creator of the maxconsole skin. decided to search my url on here, and this thread is not too old.

both your questions are about 'vbcms_content_article_preview' template

first is how I have the article preview thumbnails. i used the thumbnail setting in vbulletin options, and set it to 150px. if you change this option now, you must rebuild your attachments. here is my code snippet and how it works:

Code:
	  <vb:if condition="$previewimage">
	    <div>
	   	<a href="{vb:raw page_url}"><img class="cms_article_preview_image" src="{vb:raw previewimage}&thumb=1" alt="{vb:rawphrase article_preview}" /></a>
	    </div>
	  </vb:if>
you can see how i used &thumb=1 to request the thumbnail. i only discovered that little hack about a month ago, saving lots of bandwidth. previously was just using css to set the image width smaller (eww)

css edit to .cms_article_preview_image

Code:
max-height: 150px;
max-width: 150px !important;

custom image titles for article category -- you can see how i used vb code to find the parent id; you just have to create each image and name them with the numeric id of each category. the layout of the user name and date are just template editing. firebug is a great tool

Code:
<img src="maxcon_assets/box_hdr_{vb:var parentid}.gif" width="90" height="26" class="article_hdr_icon" />
Reply With Quote
Благодарность от:
daveaite
  #8  
Old 07-03-2011, 04:10 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, Brad. That is a great skin!
Reply With Quote
  #9  
Old 07-04-2011, 10:41 PM
brad_irc's Avatar
brad_irc brad_irc is offline
 
Join Date: Aug 2005
Location: Canada
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your kind words Lynne, it means a lot. I noticed you've mentioned my skin a few times when people ask for examples
Reply With Quote
  #10  
Old 07-04-2011, 11:37 PM
ashley76 ashley76 is offline
 
Join Date: Jan 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AWESOME! Thanks Brad!
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 05:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09129 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete