vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help with a tiny bit of code please? (https://vborg.vbsupport.ru/showthread.php?t=110909)

bashy 03-20-2006 07:57 PM

Help with a tiny bit of code please?
 
Hi peeps

With this bit of code below the 2 images appear on seperate lines
I would like them to appear on the same line but with a couple of spaces
seperating them, I have tried a few ways but as i aint a coder i am struggling

Please advise?

Code:

<if condition="$post['field25']"><div class="info"><a target="_blank" href="http://feedback.ebay.co.uk/ws/eBayISAPI.dll?ViewFeedback&userid=$post[field25]">
<img border="0" src="http://www.bashys-place.com/forums/images/misc/mybay.gif" alt="View eBay Feedback"></a></div>
</if>

<if condition="$post['field26']"><div class="info"><a target="_blank" href="http://spaces.msn.com/$post[field26]">
<img border="0" src="http://www.bashys-place.com/images/msn.gif" alt="View myspace profile"></a></div>
</if>


Xenon 03-20-2006 08:21 PM

try that one:

HTML Code:

<if condition="$post['field25']"><span class="info"><a target="_blank" href="http://feedback.ebay.co.uk/ws/eBayISAPI.dll?ViewFeedback&userid=$post[field25]">
<img border="0" src="http://www.bashys-place.com/forums/images/misc/mybay.gif" alt="View eBay Feedback"></a></span>
</if>
&nbsp;&nbsp;&nbsp;
<if condition="$post['field26']"><span class="info"><a target="_blank" href="http://spaces.msn.com/$post[field26]">
<img border="0" src="http://www.bashys-place.com/images/msn.gif" alt="View myspace profile"></a></span>
</if>


bashy 03-20-2006 08:33 PM

Absolutely perfect m8, Thank you, At least i can learn a little from seeing what you have done... :)

Thanks again, that ws spot on :)

Xenon 03-20-2006 08:46 PM

you're welcome :)

Princeton 03-21-2006 11:59 AM

you many want to add the spaces (&nbsp;&nbsp;&nbsp;) within the first conditional
eg. if field25 is not available spaces are not needed

bashy 03-21-2006 03:05 PM

You had to do it didnt you...
You went straight over my head with that 1 lol :o


All times are GMT. The time now is 03:33 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.00923 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete