PDA

View Full Version : pesky smilies space?


TECK
03-12-2002, 01:59 AM
i cant seem to find the answer. i looked everywhere.
i want to remove that space in between smilies.. and i cant see it. is in a .php script, not in templates. anyone not as lazy as me that could answer to this? ;)

here, at vB.org, you see that space even better when you post a reply or a new thread. it bugs me!!! hehe..
a picture is worth 1000 words? there you go...

btw, thanks for taking the time to read this post.

Admin
03-12-2002, 04:17 AM
Don't think you can remove that, it's just part of the table. Try making the cellpadding/spacing (whatever it's called) lower in the template of these smilies.

TECK
03-12-2002, 04:26 AM
if i look at the html code, there is a & nbsp; html code added there. is gotta be somewhere firefly. i looked all over the places, i could not find it.
here it is the code here at vB.org:<td><a href="javascript:smilie(':sleep:')"><img src="images/newsm/sleeping.gif" alt="Sleeping" border="0"></a>& nbsp;</td>

Admin
03-12-2002, 09:22 AM
I think I know how to fix this... I think, not sure.

Freddie Bingham
03-12-2002, 02:06 PM
eh? It's in the getclickysmilies() function in functions.php$smiliebits .= "<td>".$smilieArray[$count++]."&nbsp;</td>\n";change it to $space = iif($j==($smcolumns-1), '', '&nbsp;');
$smiliebits .= "<td>".$smilieArray[$count++]."$space</td>\n";Now be nicer to the others who ask for help :)

Admin
03-12-2002, 02:11 PM
Yeah that, replace that with this:
$smiliebits .= "<td>".$smilieArray[$count++].iif($smcolumns==$j+1, "", "&nbsp;")."</td>\n";

TECK
03-12-2002, 03:26 PM
thank you thank you thank you..... :D
freddie, pm me about the "nicer" thing.. curious.. i'm always nice to people..

Xube
09-13-2003, 02:58 AM
Ok, I'd likd to do something similar only my problem is the clickable smilies display with NO space preceding their insertion. In other words

test text:) space after the smilie but not before it.


I tried doing this:

"&nbsp; <td>".$smilieArray

IE: inserting an &nbsp; in front of the <td> bracket similar to the way the actual code has an &nbsp; next to the </td> but unfortunately I didn't get the results I was looking for.

What code do I have to insert so that when a user clicks on a clickable smilie that the smilie is posted into the thread with a space IN FRONT OF the smilie (there by seperating it from the word preceding it). I'm hoping this will be something basic & simple. Thanks.

Xube
09-17-2003, 06:28 PM
Anybody? :(