User Control Panel
Advertisements

HELP US, HELP YOU!

AIM Inverted colors? how

 
Post new topic   Reply to topic    Bot Depot Forum Index -> AIM Protocol & questions
View unanswered posts
Author Message
henry_nyc
Newbie
Newbie


Joined: 23 Mar 2005
Posts: 19

Reputation: 14

PostPosted: Tue May 03, 2005 2:30 pm    Post subject: Reply with quote

Hi all- anyone know how to format for AIM to get the inverted colors you can do from the official client?? have been trying but cant figure it out! Also wondered if there is a way to get the 'raw' messg from the network-- Oscar seems to do some translating on its own. Thanks! the info here is really good.
Regards
Henry
Back to top
malefactor
Member
Member


Joined: 27 Jan 2005
Posts: 109
Location: Lewiston, ME
Reputation: 17.7Reputation: 17.7

PostPosted: Tue May 03, 2005 4:21 pm    Post subject: Reply with quote

which official AIM client are you using? I can't seem to find anything about inverse colors on mine.

If you want to view the html in the messages just comment out the lines that take it out - look for something like
Code:
#Format the message the way you (should) want it, without HTML.<br />$msg =~ s/<(.|\n)+?>//g;<br />

that's how my bot does it
Back to top
henry_nyc
Newbie
Newbie


Joined: 23 Mar 2005
Posts: 19

Reputation: 14

PostPosted: Tue May 03, 2005 4:28 pm    Post subject: Reply with quote

Sorry- it's not inverse color, it's background color.
Back to top
malefactor
Member
Member


Joined: 27 Jan 2005
Posts: 109
Location: Lewiston, ME
Reputation: 17.7Reputation: 17.7

PostPosted: Tue May 03, 2005 4:31 pm    Post subject: Reply with quote

ah in that case you just need to learn a little html
Bot's message here
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Tue May 03, 2005 5:47 pm    Post subject: Reply with quote

Don't ever do that again. Learn HTML yourself before giving it out to others.
Code:
<html><body bgcolor="black"><font color="white">Bot's message here</font></body></html>

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
malefactor
Member
Member


Joined: 27 Jan 2005
Posts: 109
Location: Lewiston, ME
Reputation: 17.7Reputation: 17.7

PostPosted: Tue May 03, 2005 6:02 pm    Post subject: Reply with quote

silly monkey

The quotes are completely unnessecary. If he puts that into his script and does something like
Code:
$reply = "<html><body bgcolor="black"><font color="white">Bot's message here</font></body></html>";

its going to cause a syntax error
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Tue May 03, 2005 6:41 pm    Post subject: Reply with quote

malefactor: It's generally HTML standard to always quote attribute values, even if they are plain alphanumeric and don't need them. Most browsers (including AIM's internal browser) are tolerant of missing quotes but you should still use them.

darkmonkey was explaining how the HTML code should look for what you posted. And darkmonkey's example would work perfectly fine if you apply some common sense or put the whole thing in apostrophes:

Code:
# Escape the quotes<br />$reply = "<html><body bgcolor=\"black\"><font color=\"white\">Bot's message here</font></body></html>";<br /><br /># Apostrophes<br />$reply = '<html><body bgcolor="black"><font color="white">Bot's message here</font></body></html>';<br /><br /># Or even apostrophes + a variable!<br />$reply = '<html><body bgcolor="black"><font color="white">' . $someVariable . '</font></body></html>';


And he's right, know what you're posting about before you post it.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
brother
Senior Member
Senior Member


Joined: 06 Aug 2004
Posts: 156
Location: Belgium
Reputation: 24.5Reputation: 24.5

PostPosted: Tue May 03, 2005 7:12 pm    Post subject: Reply with quote

Many webdesigners 'optimize' loading times by ripping out the quotes to make filesize smaller.
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Tue May 03, 2005 8:24 pm    Post subject: Reply with quote

Quote:
The quotes are completely unnessecary.


Please don't spread bad advice on this website. If you want to create poor html or code, do it on your own time.

Using quotes for attributes is part of the standard. Deviating from the standard is bad form, especially if you are doing work for clients who expect their sites to conform to standards.

As for optimizing, I suppose if you have a page with a couple thousand attributes and you want to save a millisecond of download time, you could skip the quotes. Razz
Back to top
henry_nyc
Newbie
Newbie


Joined: 23 Mar 2005
Posts: 19

Reputation: 14

PostPosted: Tue May 03, 2005 8:37 pm    Post subject: Reply with quote

Using the BODY tag doesn't seem to work, but we figured out the correct html by
dumping the raw message that OSCAR receives with an incoming IM from the AOL client.

Using produces the desired effect. Not sure if this is proper
html, earlier I had tried to no effect.

Thanks for your help everyone.
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Tue May 03, 2005 8:48 pm    Post subject: Reply with quote

QUOTE(henry_nyc @ May 3 2005, 04:37 PM)
Using the BODY tag doesn't seem to work, but we figured out the correct html by
dumping the raw message that OSCAR receives with an incoming IM from the AOL client.

Using produces the desired effect.  Not sure if this is proper
html, earlier I had tried to no effect.

Thanks for your help everyone.
[right][snapback]48173[/snapback][/right]


Yeah, isn't real HTML, it's something AIM added.

The difference between and is the amount of space that the background color applies to. For example, if you use the standard AIM client from AIM.com, more of your buddies have than have .

With the tag, the background color completely covers the space of their message, from side to side. But only highlights behind their text (if you talk to a Trillian user, Trillian only uses ).

Anyway, just in my opinion looks nicer than , but if the tag doesn't work for some reason you could always just use both of them. Smile So then AIM clients that support will see it like the tag was meant to be seen, but users of lesser clients will still see the background just behind the text:

Code:
<body bgcolor="#000000"><font color="#FFFFFF" back="#000000">message text</font></body>


^^ Something else that's cool with is that you can even define "link" and "vlink" (I think only the standard AIM client supports this). So for example, any time my bot sends a hyperlink, it appears in red text instead of blue. Very Happy

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
malefactor
Member
Member


Joined: 27 Jan 2005
Posts: 109
Location: Lewiston, ME
Reputation: 17.7Reputation: 17.7

PostPosted: Tue May 03, 2005 9:07 pm    Post subject: Reply with quote

QUOTE(Cer @ May 3 2005, 12:48 PM)
Yeah, isn't real HTML, it's something AIM added.


If you knew that all along then why didn't you post that in your firest message, rather than picking over irrelevelant details?
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Tue May 03, 2005 11:50 pm    Post subject: Reply with quote

QUOTE(malefactor @ May 3 2005, 05:07 PM)
QUOTE(Cer @ May 3 2005, 12:48 PM)
Yeah, isn't real HTML, it's something AIM added.


If you knew that all along then why didn't you post that in your firest message, rather than picking over irrelevelant details?
[right][snapback]48176[/snapback][/right]


Maybe because ALL clients should support that. Even Trillian does. Trillian takes and converts it to and displays it just as it would if you had used to begin with.

The only clients that wouldn't support would be some third rate open-source AIM client that's at version 0.1.001 and the creators don't know a bit of HTML to begin with besides , , , and .

And if you're not using a third-rate client and your official AIM client doesn't support , your computer either sucks or you're on AIM 1.0 and AOL never invented the tag way back then or something.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
malefactor
Member
Member


Joined: 27 Jan 2005
Posts: 109
Location: Lewiston, ME
Reputation: 17.7Reputation: 17.7

PostPosted: Wed May 04, 2005 12:34 am    Post subject: Reply with quote

or maybe your using that portable aim thingy?
Back to top
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Wed May 04, 2005 7:37 am    Post subject: Reply with quote

QUOTE(brother @ May 3 2005, 11:12 AM)
Many webdesigners 'optimize' loading times by ripping out the quotes to make filesize smaller.
[right][snapback]48171[/snapback][/right]



In many browsers tolerating poor html actually makes them run slower because the browser has to try to figure out what the html "should" say.

another way to optimize is like Google and remove any tab formatting or extra line returns. This makes for poor readability, but smaller code :S

_________________
[ matt ]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> AIM Protocol & questions All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group