Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-31-2007, 09:38 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Image in top right corner of first post

This is a question for some of you design guru's. I want to place a small image (say 75x75) in the top right hand corner of the first post, in the post itself. I can work out the condition I just need to know the formatting, any help would be great.
Reply With Quote
  #2  
Old 12-31-2007, 10:16 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know you've stated you can work out the condition but to save you time:

Code:
<if condition="$post[postcount]==1">
image code here...
</if>

As for your image what postbit template will it be for? If it's for Legacy, do you want the text to wrap around the image?
Reply With Quote
  #3  
Old 12-31-2007, 10:33 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Freesteyelz View Post
I know you've stated you can work out the condition but to save you time:

Code:
<if condition="$post[postcount]==1">
image code here...
</if>

As for your image what postbit template will it be for? If it's for Legacy, do you want the text to wrap around the image?
Yes, it's for the legacy postbit and it would be ideal if the text would wrap it if necessary.
Reply With Quote
  #4  
Old 12-31-2007, 11:15 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've added the code just below the title but within the message element. It'll be in form of a background rather than an image. Try:

Find:

Code:
  <!-- message -->
  <div id="post_message_$post[postid]">

Add after:
Code:
  <div class="postbitimg"></div>

Main CSS in Additional CSS Definitions add:

Code:
.postbitimg {
  float:right;
  display:block;
  width:100px;
  height:30px;
  margin:0 0 10px 10px;
  padding:3px;
  border:1px solid #000000;
  background:#ffffff url(/img/path) no-repeat top left;
  }

It's important to define the width and height settings for float blocks. Edit out the variables you don't want and change the values for each to suit your needs. The padding applies inside the element while the margin applies outside it.

I hope this is workable for you. If not just holler me back. Though, I may respond tomorrow since it's about to be party time!
Reply With Quote
  #5  
Old 12-31-2007, 11:42 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the details, you've been helpful. I should have probably specified that I need javascript to to into this slot, the javascript puts the image with embedded data in it (from digg). Sorry for not being more clear, I don't believe I can use javascript in css from what I can tell.
Reply With Quote
  #6  
Old 01-01-2008, 02:48 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not in CSS but you can add Javascript within the <div></div> tags.
Reply With Quote
  #7  
Old 01-01-2008, 03:51 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried that and it puts it to the right but more on to the middle bottom, how would I tweak it to top? Ideally as high as the post title.
Reply With Quote
  #8  
Old 01-01-2008, 09:08 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you add the CSS in Additional CSS Definitions? If not, then add that bit; when you do you may need to adjust the width and height values. If yes, then the alignment is due to the Javascript code.
Reply With Quote
  #9  
Old 01-01-2008, 09:30 PM
valdet's Avatar
valdet valdet is offline
 
Join Date: Feb 2007
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Although this brings the same effects as Freesteyelz is suggesting, try the code from this mod..
https://vborg.vbsupport.ru/showthread.php?p=1402471

Regards,
Val.
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:19 AM.


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.06562 seconds
  • Memory Usage 2,240KB
  • 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
  • (5)bbcode_code
  • (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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete