[SOLVED] Vertical Sig Spacing »  Show posts from    to     

Icy Phoenix


Old Support Topics - [SOLVED] Vertical Sig Spacing



Press 22 [ Mon 05 May, 2008 05:46 ]
Post subject: [SOLVED] Vertical Sig Spacing
untitled_2

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


Lopalong [ Mon 05 May, 2008 10:48 ]
Post subject: Re: Sig Spacing
Use a graphics editor and make them one image. ;)


Chaotic [ Mon 05 May, 2008 11:58 ]
Post subject: 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 ]
Post subject: Re: Sig Spacing
Does this help? :mricy:

untitled_5


Press 22 [ Mon 05 May, 2008 14:43 ]
Post subject: 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 ]
Post subject: 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 ]
Post subject: Re: Sig Spacing
Oh... you mean the vertical spacing. Well you can do the following.

Code: [Hide]
  1. #  
  2. #-----[ OPEN ]------------------------------------------  
  3. #  
  4.  
  5. includes/bbcode.php  
  6.  
  7. #  
  8. #-----[ FIND ]------------------------------------------  
  9. #  
  10.  
  11. var $self_closing_tags = array('[*]', '[hr]', '[url=docs/readme_english.html#license]Readme[/url]', '[url=docs/readme_english.html#license]Readme[/url]', '[url=docs/readme_english.html#license]Readme[/url]', '[url=docs/readme_english.html#overview]Readme[/url]', '[url=docs/readme_english.html#license]Readme[/url]', '[url=docs/readme_english.html#requirements]Readme[/url]', '[url=docs/readme_english.html#fresh_installation]Readme[/url]', '[url=docs/readme_english.html#upgrade_phpbb]Readme[/url]', '[url=docs/readme_english.html#upgrade_phpbb]Readme[/url]', '[url=docs/readme_english.html#upgrade_xs]Readme[/url]', '[url=docs/readme_english.html#upgrade_ip]Readme[/url]');  
  12.  
  13. #  
  14. #-----[ REPLACE WITH ]------------------------------------------  
  15. #  
  16.  
  17. var $self_closing_tags = array('[*]', '[hr]', '[br]', '[url=docs/readme_english.html#license]Readme[/url]', '[url=docs/readme_english.html#license]Readme[/url]', '[url=docs/readme_english.html#license]Readme[/url]', '[url=docs/readme_english.html#overview]Readme[/url]', '[url=docs/readme_english.html#license]Readme[/url]', '[url=docs/readme_english.html#requirements]Readme[/url]', '[url=docs/readme_english.html#fresh_installation]Readme[/url]', '[url=docs/readme_english.html#upgrade_phpbb]Readme[/url]', '[url=docs/readme_english.html#upgrade_phpbb]Readme[/url]', '[url=docs/readme_english.html#upgrade_xs]Readme[/url]', '[url=docs/readme_english.html#upgrade_ip]Readme[/url]');  
  18.  
  19. #  
  20. #-----[ FIND ]------------------------------------------  
  21. #  
  22.  
  23. 'hr' => array(  
  24. 'nested' => true,  
  25. 'inurl' => true,  
  26. 'allow_empty' => true,  
  27. ),  
  28.  
  29. #  
  30. #-----[ AFTER, ADD ]------------------------------------------  
  31. #  
  32.  
  33. 'br' => array(  
  34. 'nested' => true,  
  35. 'inurl' => true,  
  36. 'allow_empty' => true,  
  37. ),  
  38.  
  39. #  
  40. #-----[ FIND ]------------------------------------------  
  41. #  
  42.  
  43. 'hr' => array(  
  44. 'nested' => true,  
  45. 'inurl' => true,  
  46. 'allow_empty' => false,  
  47.  
  48. #  
  49. #-----[ AFTER, ADD ]------------------------------------------  
  50. #  
  51.  
  52. 'br' => array(  
  53. 'nested' => true,  
  54. 'inurl' => true,  
  55. 'allow_empty' => false,  
  56. ),  
  57.  
  58. #  
  59. #-----[ FIND ]------------------------------------------  
  60. #  
  61.  
  62. // Single tags: HR  
  63. if($tag === 'hr')  
  64. {  
  65. if($this->is_sig)  
  66. {  
  67. return $error;  
  68. }  
  69. $extras = $this->allow_styling ? array('style', 'class') : array();  
  70. if(isset($item['params']['param']))  
  71. {  
  72. $color = $item['params']['param'];  
  73. }  
  74. elseif(isset($item['params']['color']))  
  75. {  
  76. $color = $item['params']['color'];  
  77. }  
  78. $color = $this->valid_color($color);  
  79. if($color === false)  
  80. {  
  81. $html = '<' . $tag . ' />';  
  82. }  
  83. else  
  84. {  
  85. $html = '<' . $tag . ' color="' . $color . '" />';  
  86. }  
  87. return array(  
  88. 'valid' => true,  
  89. 'html' => $html  
  90. );  
  91. }  
  92.  
  93. #  
  94. #-----[ AFTER, ADD ]------------------------------------------  
  95. #  
  96.  
  97. // Single tags: BR  
  98. if($tag === 'br')  
  99. {  
  100. if($this->is_sig)  
  101. {  
  102. return $error;  
  103. }  
  104. $html = '<br />';  
  105. return array(  
  106. 'valid' => true,  
  107. 'html' => $html  
  108. );  


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


andrea75 [ Mon 05 May, 2008 17:56 ]
Post subject: Re: Sig Spacing
Press 22, try to use this code

Code: [Hide] [Select]
[img align=left]1.png[/img][img]1.png[/img]


This should work as you can see:

127871573345a11f61c2e49127871573345a11f61c2e49


andrea75 [ Mon 05 May, 2008 18:18 ]
Post subject: Re: Sig Spacing
Another example:

Code: [Hide] [Select]
[img]1.png[/img][img align=left]1.png[/img]


127871573345a11f61c2e49127871573345a11f61c2e49


hal9000 [ Mon 05 May, 2008 18:52 ]
Post subject: 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 ]
Post subject: Re: Sig Spacing
hal9000 wrote: [View Post]
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.


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


hal9000 [ Mon 05 May, 2008 19:31 ]
Post subject: Re: Sig Spacing
andrea75 wrote: [View Post]
hal9000 wrote: [View Post]
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.


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

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 ]
Post subject: Re: Sig Spacing
Thanks :)


Mighty Gorgon [ Sun 18 May, 2008 21:59 ]
Post subject: Re: Sig Spacing
hal9000 wrote: [View Post]
Yes... it seems like he is not willing to edit more code than he already edit for other reasons. :twisted:

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 ]
Post subject: 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 ]
Post subject: 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 ]
Post subject: 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 ]
Post subject: Re: Sig Spacing
[br] will make it space a whole line rather than 1 or 2 pixels.


hal9000 [ Mon 19 May, 2008 02:14 ]
Post subject: Re: Sig Spacing
I think you're using it the wrong way. You shouldn't write:
Code: [Hide]
  1. [img]img1url[/img]  
  2. [br]  
  3. [img]img2url[/img] 


You should write all concatenated:
Code: [Hide]
  1. [img]img1url[/img][br][img]img2url[/img] 


I used it that way and it worked fine.


Press 22 [ Mon 19 May, 2008 02:31 ]
Post subject: Re: Sig Spacing
Ahh okay it works now. :mrviolet:




Powered by Icy Phoenix