Welcome, Guest. Please Login or Register.
August 26, 2025, 10:54:29 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Help me get rid of the <br><br> in sigs! « previous next »
Pages: 1 [2] Reply Ignore Print
Author Topic: Help me get rid of the <br><br> in sigs!  (Read 629 times)
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:Help me get rid of the <br><br> in sigs!
« Reply #15 on: March 17, 2002, 11:25:19 PM »
Reply with quote

Here's what I did...I dunno if it's proper, but look at my signature on my test board

http://www.nextcelica.net/yabbse

<open file>
Load.php
</open file>

<search for>
/* load the signature, replace the breaks in it */
   $breaks = array("\n\r","\r\n","\n","\r");
   $userprofile[$user]['signature'] = str_replace($breaks,"<br>",$userprofile[$user]['signature']);
   $userprofile[$user]['signature'] = (($userprofile[$user]['signature'] != "") ? "<hr width='100%' size=1 class='windowbg3'><font size=1>".$userprofile[$user]['signature']."</font>" : "");
</search for>


<replace>
   /* load the signature, replace the breaks in it */
   $breaks = array("\r");
   $userprofile[$user]['signature'] = str_replace($breaks,"",$userprofile[$user]['signature']);
   $userprofile[$user]['signature'] = (($userprofile[$user]['signature'] != "") ? "<hr width='100%' size=1 class='windowbg3'><font size=1>".$userprofile[$user]['signature']."</font>" : "");
</replace>


« Last Edit: March 17, 2002, 11:28:45 PM by Shaun » Logged

This guy uses objects like women man!
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Help me get rid of the <br><br> in sigs!
« Reply #16 on: March 17, 2002, 11:33:39 PM »
Reply with quote

u cuda just left out the making of the array :)
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:Help me get rid of the <br><br> in sigs!
« Reply #17 on: March 17, 2002, 11:43:43 PM »
Reply with quote

It doesn't work without the array or if you delete the whole "block".
Logged

This guy uses objects like women man!
Pages: 1 [2] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Help me get rid of the <br><br> in sigs! « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.097 seconds with 21 queries.