Go Back   vb.org Archive > Community Discussions > Style and Graphics Requests (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2012, 06:00 AM
DAMINK DAMINK is offline
 
Join Date: Jun 2010
Location: Melbourne Australia
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 2 images for banner?

Running vb 4.1.12
May be a silly question but i was wondering is it possible to have 2 images for your banner.
One left justified and one right justified allowing the forum to change width?
I know its possible and perhaps in some themes already however i have a default theme created in the style generator and want to incorporate this.
Any advice or direction would be appreciated.

Would it be as simple as just editing the head code to something like below?

Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="300px"><div align="left"><img src="/images/left.jpg"></div></td>
    <td width="100%">&nbsp;</td>
    <td width="300px"><div align="right"><img src="/images/right.jpg"></div></td>
  </tr>
</table>
Reply With Quote
  #2  
Old 05-13-2012, 07:52 AM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tested your code to see if it works?
Reply With Quote
  #3  
Old 05-13-2012, 08:02 AM
DAMINK DAMINK is offline
 
Join Date: Jun 2010
Location: Melbourne Australia
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No i have not tried it.
I thought i would ask to see if this was the correct method or there was a more appropriate way to do it before applying changes like that.
I have not actually created the images required to do this yet.
Reply With Quote
  #4  
Old 05-13-2012, 07:22 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DAMINK View Post
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="300px"><div align="left"><img src="/images/left.jpg"></div></td>
    <td width="100%">&nbsp;</td>
    <td width="300px"><div align="right"><img src="/images/right.jpg"></div></td>
  </tr>
</table>
This would be more appropriate.
This is a basic setup, depending on the situation and placement and surrounding elements attributes may need to be changed.

Code:
<div style="width:100%;">
    <div style="float:left;">
        <img src="./images/left.png" alt="" />
    </div>
    <div style="float:right;">
        <img src="./images/right.png" alt="" />
    </div>
</div>
example

http://jsfiddle.net/3ZVjm/
Reply With Quote
  #5  
Old 05-14-2012, 02:19 AM
DAMINK DAMINK is offline
 
Join Date: Jun 2010
Location: Melbourne Australia
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked perfectly mate.
Well a few modifications to that code and to the document setup but now its just how i like it.
Thanks for your help.

--------------- Added [DATE]1336967199[/DATE] at [TIME]1336967199[/TIME] ---------------

Spoke to soon.
Seems it works perfectly in Firefox but not in Internet explorer.
In IE the right image breaks out of the max attributes set by the forum where FF does not.
I have the below settings currently.

Document Width = 90%
Document Minimum Width = 900px
Document Maximum Width = 1200px

With the below for the banner code.
Code:
<div style="width:100%;">
    <div style="float:left; width: 400px;">
        <a href="/test"><img src="./images/left.png" alt="xxx" /></a>
    </div>
    <div style="float:right; width: 200px;">
        <img src="./images/right.png" alt="xxx" />
    </div>
Any ideas on how to sort it out so IE can show it correcly?
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 12:19 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.05472 seconds
  • Memory Usage 2,200KB
  • 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
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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