PDA

View Full Version : frustrated?


DeadlySin3
11-08-2002, 03:00 AM
Yes I am, thanks for asking! ;)

I'm working on a tagboard / shoutbox - everything was seeming to be going smooth until about an hour ago.

I'm trying to host some smiley images on one domain, and let a tagboard on another domain use them. I first installed it on http://www.deadlysin3.net/tag - the same domain that the smileys are being hosted from, everything seems to work just fine there. I installed the exact same scripts to http://www.phpkit.net/TAG and tried the board out - it seems that some of the images show up as they should when you make a post, however, some of them do not. I looked at the code for some time and I can't find anything i'm doing wrong :/ but then again i'm tired and well, people make mistakes. heh.

I'm hoping that I can get one of you to glance at the source code & see if you can catch what i'm missing. Heres the code i'm using to get the smilies - http://www.phpkit.net/TAG/smileys.txt - right click & view source for a cleaner view of the code itself.

Thanks!

roninblade
11-08-2002, 05:23 AM
you should check the source of the document there's something wrong with how the message is being printed. i found this in your page. (check out the part in bold)

<div id="tooltip" style="position:absolute;visibility:hidden"></div> Paul (http://visual.deadlysin3.net): <font style="font-size:8pt" face="Courier New, Courier, mono">The image below thats not showing up is the very first one of them all. - greenbiggrin.gif -</font>

Paul (http://): <font style="font-size:8pt" face="Courier New, Courier, mono"><img src=http<img src=http://visual.deadlysin3.net/smileys/green/greenupset.gif>/visual.deadlysin3.net/smileys/green/greenbiggrin.gif></font>

Paul (http://): <font style="font-size:8pt" face="Courier New, Courier, mono"><img src=http://visual.deadlysin3.net/smileys/green/pissed.gif></font>

Paul (http://): <font style="font-size:8pt" face="Courier New, Courier, mono"><img src=http://visual.deadlysin3.net/smileys/green/blip.gif></font>

Paul (http://): <font style="font-size:8pt" face="Courier New, Courier, mono">Hm. I can't find the trouble in the smiley code. <img src=http://visual.deadlysin3.net/smileys/green/frown.gif></font>

see how the two image tags overlap?

DeadlySin3
11-08-2002, 02:18 PM
Yeah, I noticed that last night too. I use the same code to print the html on the smileys that work though. So, the way I see it, it should print out just fine, but it prints the way you see it in bold above for some smileys, where as for others it works just fine.


Example of code that prints weird crap -
$smile_array[':D'] = '<img src=http://visual.deadlysin3.net/smileys/green/greenbiggrin.gif>';

Example of code that prints smileys correctly -
$smile_array[':blip:'] = '<img src=http://visual.deadlysin3.net/smileys/green/blip.gif>';

Thats what stumps me

DeadlySin3
11-08-2002, 07:25 PM
:D

Alright - I think I got it. The screw ups were mainly in the green smiley set, and the ascii code I was using to call the smiley for most of those began with ":" .. whereas the ones that worked began with ":" and also ended with it. So I broke down and changed the code to call the smiley, .. low and behold, it works!

Kind of sux though, I wanted to be able to call a few smileys with codes like : D or : P .. either way, it works now. Thats what matters. Thanks for the help!