https://www.icyphoenix.com/viewtopic.php?f=35&t=4162
-----------------------------------
Press 22
Mon 05 May, 2008 05:46

[SOLVED] Vertical Sig Spacing
-----------------------------------
[img]http://www.icyphoenix.com/files/images/1980/untitled_2.png[/img]

How do I make the spacing between them go away so that they look like one image?


-----------------------------------
Lopalong
Mon 05 May, 2008 10:48

Re: Sig Spacing
-----------------------------------
Use a graphics editor and make them one image. ;)


-----------------------------------
Chaotic
Mon 05 May, 2008 11:58

Re: Sig Spacing
-----------------------------------
^ lol

I'd like to know how to do this as well.  It looks a lot cleaner when looking at people's sigs.


-----------------------------------
Lopalong
Mon 05 May, 2008 12:43

Re: Sig Spacing
-----------------------------------
Does this help?   :mricy: 

[img]http://www.icyphoenix.com/files/images/3531/untitled_5.png[/img]


-----------------------------------
Press 22
Mon 05 May, 2008 14:43

Re: Sig Spacing
-----------------------------------
Lol Lopalong.
but no its just the spacing i need figured out, a lot of my members have asked to fix it.


-----------------------------------
hal9000
Mon 05 May, 2008 15:29

Re: Sig Spacing
-----------------------------------
If you don't mean what Lopalong did, I don't get what you mean... :?


-----------------------------------
hal9000
Mon 05 May, 2008 16:38

Re: Sig Spacing
-----------------------------------
Oh... you mean the vertical spacing. Well you can do the following.

[code]#  
#-----[ OPEN ]------------------------------------------  
#  
 
includes/bbcode.php

#  
#-----[ FIND ]------------------------------------------  
# 

	var $self_closing_tags = array('[*]', '[hr]', '[url=docs/readme_english.html#license]Readme', '[url=docs/readme_english.html#license]Readme', '[url=docs/readme_english.html#license]Readme', '[url=docs/readme_english.html#overview]Readme', '[url=docs/readme_english.html#license]Readme', '[url=docs/readme_english.html#requirements]Readme', '[url=docs/readme_english.html#fresh_installation]Readme', '[url=docs/readme_english.html#upgrade_phpbb]Readme', '[url=docs/readme_english.html#upgrade_phpbb]Readme', '[url=docs/readme_english.html#upgrade_xs]Readme', '[url=docs/readme_english.html#upgrade_ip]Readme');

#  
#-----[ REPLACE WITH ]------------------------------------------  
# 

	var $self_closing_tags = array('[*]', '[hr]', '[br]', '[url=docs/readme_english.html#license]Readme', '[url=docs/readme_english.html#license]Readme', '[url=docs/readme_english.html#license]Readme', '[url=docs/readme_english.html#overview]Readme', '[url=docs/readme_english.html#license]Readme', '[url=docs/readme_english.html#requirements]Readme', '[url=docs/readme_english.html#fresh_installation]Readme', '[url=docs/readme_english.html#upgrade_phpbb]Readme', '[url=docs/readme_english.html#upgrade_phpbb]Readme', '[url=docs/readme_english.html#upgrade_xs]Readme', '[url=docs/readme_english.html#upgrade_ip]Readme');

#  
#-----[ FIND ]------------------------------------------  
# 

			'hr' => array(
					'nested' => true,
					'inurl' => true,
					'allow_empty' => true,
					),

#  
#-----[ AFTER, ADD ]------------------------------------------  
#  

			'br' => array(
					'nested' => true,
					'inurl' => true,
					'allow_empty' => true,
					),

#  
#-----[ FIND ]------------------------------------------  
# 

			'hr' => array(
					'nested' => true,
					'inurl' => true,
					'allow_empty' => false,

#  
#-----[ AFTER, ADD ]------------------------------------------  
#  

			'br' => array(
					'nested' => true,
					'inurl' => true,
					'allow_empty' => false,
					),

#  
#-----[ FIND ]------------------------------------------  
# 

		// Single tags: HR
		if($tag === 'hr')
		{
			if($this->is_sig)
			{
				return $error;
			}
			$extras = $this->allow_styling ? array('style', 'class') : array();
			if(isset($item['params']['param']))
			{
				$color = $item['params']['param'];
			}
			elseif(isset($item['params']['color']))
			{
				$color = $item['params']['color'];
			}
			$color = $this->valid_color($color);
			if($color === false)
			{
				$html = '<' . $tag . ' />';
			}
			else
			{
				$html = '<' . $tag . ' color="' . $color . '" />';
			}
			return array(
				'valid' => true,
				'html' => $html
			);
		}

#  
#-----[ AFTER, ADD ]------------------------------------------  
#  

		// Single tags: BR
		if($tag === 'br')
		{
			if($this->is_sig)
			{
				return $error;
			}
			$html = '<br />';			
			return array(
				'valid' => true,
				'html' => $html
			);
		}[/code]

Now you can make the two images appear together this way:
[code][img]image1.jpg[/img][br][img]image2.jpg[/img][/code]


-----------------------------------
andrea75
Mon 05 May, 2008 17:56

Re: Sig Spacing
-----------------------------------
[b]Press 22[/b], try to use this code

[code linenumbers=false][img align=left]1.png[/img][img]1.png[/img][/code]

This should work as you can see:

[img align=left]http://www.icyphoenix.com/images/avatars/127871573345a11f61c2e49.gif[/img][img]http://www.icyphoenix.com/images/avatars/127871573345a11f61c2e49.gif[/img]


-----------------------------------
andrea75
Mon 05 May, 2008 18:18

Re: Sig Spacing
-----------------------------------
Another example:

[code linenumbers=false][img]1.png[/img][img align=left]1.png[/img][/code]

[img]http://www.icyphoenix.com/images/avatars/127871573345a11f61c2e49.gif[/img][img align=left]http://www.icyphoenix.com/images/avatars/127871573345a11f61c2e49.gif[/img]


-----------------------------------
hal9000
Mon 05 May, 2008 18:52

Re: Sig Spacing
-----------------------------------
Good point, Andrea75.  I thought of it but didn't try because I started thinking in a more generic way and I guess that using "align" will not work if you want to have the images centered, or if you want to add text beside it without wrapping arround. May be I'm wrong, because I have not tried, I'm only speaking about what I think it would happen in these cases.


-----------------------------------
andrea75
Mon 05 May, 2008 19:17

Re: Sig Spacing
-----------------------------------
[quote user="hal9000" post="28269"]Good point, Andrea75.  I thought of it but didn't try because I started thinking in a more generic way and I guess that using "align" will not work if you want to have the images centered, or if you want to add text beside it without wrapping arround. May be I'm wrong, because I have not tried, I'm only speaking about what I think it would happen in these cases.[/quote]

Say thanks to MG, that suggest me this solution... :mricy:


-----------------------------------
hal9000
Mon 05 May, 2008 19:31

Re: Sig Spacing
-----------------------------------
[quote user="andrea75" post="28270"][quote user="hal9000" post="28269"]Good point, Andrea75.  I thought of it but didn't try because I started thinking in a more generic way and I guess that using "align" will not work if you want to have the images centered, or if you want to add text beside it without wrapping arround. May be I'm wrong, because I have not tried, I'm only speaking about what I think it would happen in these cases.[/quote]

Say thanks to MG, that suggest me this solution... :mricy:[/quote]
Yes... it seems like he is not willing to edit more code than he already edit for other reasons. :twisted:


-----------------------------------
Press 22
Mon 05 May, 2008 23:26

Re: Sig Spacing
-----------------------------------
Thanks :)


-----------------------------------
Mighty Gorgon
Sun 18 May, 2008 21:59

Re: Sig Spacing
-----------------------------------
[quote user="hal9000" post="28271"]Yes... it seems like he is not willing to edit more code than he already edit for other reasons. :twisted:[/quote]
Yes... even because there are many hidden features in BBCode which may helps to achieve what needed without coding other specifics things. :P


-----------------------------------
hal9000
Sun 18 May, 2008 22:35

Re: Sig Spacing
-----------------------------------
xDD

Yes, I'm sure. But would the solution you suggested  to andrea75 work for centered images?


-----------------------------------
Press 22
Mon 19 May, 2008 01:58

Re: Sig Spacing
-----------------------------------
No it doesn't work for centered, I need it for left, center, and right.
:/


-----------------------------------
hal9000
Mon 19 May, 2008 02:06

Re: Sig Spacing
-----------------------------------
Did you try the [br] modification? Or is the [br] what you're saying doesn't work?


-----------------------------------
Press 22
Mon 19 May, 2008 02:11

Re: Sig Spacing
-----------------------------------
[br] will make it space a whole line rather than 1 or 2 pixels.


-----------------------------------
hal9000
Mon 19 May, 2008 02:14

Re: Sig Spacing
-----------------------------------
I think you're using it the wrong way. You shouldn't write:
[code][img]img1url[/img]
[br]
[img]img2url[/img][/code]

You should write all concatenated:
[code][img]img1url[/img][br][img]img2url[/img][/code]

I used it that way and it worked fine.


-----------------------------------
Press 22
Mon 19 May, 2008 02:31

Re: Sig Spacing
-----------------------------------
Ahh okay it works now.  :mrviolet:


