[SOLVED] Vertical Sig Spacing


Goto page 1, 2  Next

Subject: [SOLVED] Vertical Sig Spacing
untitled_2

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

Last edited by Press 22 on Mon 19 May, 2008 02:39; edited 2 times in total
Inactive User
Subject: Re: Sig Spacing
Use a graphics editor and make them one image. ;)

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.

Inactive User
Subject: Re: Sig Spacing
Does this help? :mricy:


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.

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

Profile PM  
Subject: Re: Sig Spacing
Oh... you mean the vertical spacing. Well you can do the following.

Code: [Download] [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: [Download] [Hide]
  1. [img]image1.jpg[/img][br][img]image2.jpg[/img] 

Profile PM  
Subject: Re: Sig Spacing
Press 22, try to use this code

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


This should work as you can see:

127871573345a11f61c2e49127871573345a11f61c2e49

Subject: Re: Sig Spacing
Another example:

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


127871573345a11f61c2e49127871573345a11f61c2e49

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.

Profile PM  
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:

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:

Profile PM  
Subject: Re: Sig Spacing
Thanks :)

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

Subject: Re: Sig Spacing
xDD

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

Profile PM  
Goto page 1, 2  Next

Page 1 of 2


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.2024s (PHP: 11% SQL: 89%)
SQL queries: 11 - Debug Off - GZIP Enabled