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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-16-2011, 01:47 PM
Schoelle Schoelle is offline
 
Join Date: Feb 2011
Location: Germany
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Post icons in own column?

Is it possibly to change the forumdisplay to show the post icons in a seperate column?
See picture on the left.

I have tried to put an empty posticon as standard icon. This works but also does not look nice.
See picture on the right.

This would help so much. Miss this feature that wbb2 has!

Thanks for any idea how to do this!

regards,
Matthias
Attached Images
File Type: png posticons.png (6.5 KB, 0 views)
File Type: png posticons2.png (4.9 KB, 0 views)
Reply With Quote
  #2  
Old 02-16-2011, 04:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are going to have to modify the threadbit template and move the image out of the class "inner" div and then apply some CSS to it. You'll also have to insert a blank image/space for when there is no icon.
Reply With Quote
  #3  
Old 02-16-2011, 08:50 PM
Schoelle Schoelle is offline
 
Join Date: Feb 2011
Location: Germany
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not really sure how to do that, but as a first try i did the following.

- set up an empty post icon image as default post icon.
- changed threadbit template:

before
PHP Code:
<vb:if condition="!$show['detailedtime']"
I have placed
PHP Code:
<img src="images/icons/iconempty.png" alt="" border="0" /> 
This did the trick but is maybe not the best way to achieve this.

Con: Because in showthread also the post icon is used, i now have an empty space there if there is no real post icon set. So i'll need to change showthread to not show the post icon.


Maybe someone can enlighten me on how to do this better!

thanks,
Matthias
Attached Images
File Type: png posticontest.png (9.4 KB, 0 views)
Reply With Quote
  #4  
Old 02-16-2011, 10:33 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 want to show if there is no post icon? If you had a separate column, then it would be empty also.
Reply With Quote
  #5  
Old 02-17-2011, 03:57 PM
Schoelle Schoelle is offline
 
Join Date: Feb 2011
Location: Germany
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
What do you want to show if there is no post icon? If you had a separate column, then it would be empty also.
Sorry, i mean when you look at a post. On 'showthread' not on 'forumdisplay'
There you also have the post icon in front of the threadtitle.
As i have created

This is caused by the standard post icon (the transparent icon i've created)
If there would be a real separate column to show these icon this would be better!
Then there would be no need for a transparent standard post icon!

The solution i have now is 'ok' and works. I'll see if i just remove the post icon from the showthread template. No need for it there anyways
Reply With Quote
  #6  
Old 02-17-2011, 04:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why don't you just use a condition in your postbit templates to show nothing instead of the default icon then?
Reply With Quote
  #7  
Old 02-18-2011, 02:59 PM
Schoelle Schoelle is offline
 
Join Date: Feb 2011
Location: Germany
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne: Because i've bought vb 1 week ago and i only know very little how things work

Why does the webmaster of this site don't tell us how he did it, because we have it now here!
Reply With Quote
  #8  
Old 02-18-2011, 03:35 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This site is running vB3 and everything uses tables. vB4 uses divs so that you may control the look of your site via CSS.

You could try something like this in your postbit/postbit_legacy template:
HTML Code:
        <h2 class="posttitle icon">
            <vb:if condition="$show['messageicon'] AND $post['icontitle'] != 'Default' "><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
        </h2>
See if that works.
Reply With Quote
  #9  
Old 02-20-2011, 11:46 AM
Schoelle Schoelle is offline
 
Join Date: Feb 2011
Location: Germany
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne, that worked! Thank you very much. Now it looks like it should

Slowly learning about the conditionals and how to use them....
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 02:09 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.04146 seconds
  • Memory Usage 2,268KB
  • Queries Executed 12 (?)
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_html
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete