Good evening, habra people.
Today, after long weeks of torment, an insight has descended on me. I used to constantly notice that the code copied to the ICQ message very often lost some of the characters and modified the text. The insight was that starting with Infium 9044, this messenger supports BB-codes.
Googling supported codes led to the fact that a page was found with a list of all supported codes (link at the bottom of the topic), among which was
[table] (remember the old days of layout on the tables?). Below is a brief description of how to create a beautiful advertising (and not only) message for sending via QIP.
')
A bit of theory
I think that the very concept of BB-code is known to many in the forums. For those who do not know, this is a markup language, similar to HTML, used to make messages safer. The main difference is that these codes are written in square brackets (examples: [h4], [image], etc.).
Unfortunately, full-fledged markup with their help will not be possible (not supporting styles, trimmed properties), but it is still possible to create something more or less decent
Practice
We proceed directly to the “layout” of our message. Initially, you need to know that any images used in the layout should have
direct links .
For example, I will take a small text from the official QIP website and borrow their logo.
This example is quite simple, but at the same time is able to show what can be done using BB codes.
Appearance:
Code:[table border=0][tr][td][img]http://www.jabberworld.info/images/thumb/d/d3/Qip_logo_large.png/128px-Qip_logo_large.png[/img][/td][td colspan=2 valign=middle][size=36]QIP.RU[/size][/td][/tr]
[tr][td width=100 padding-left=10 padding-top=10][url="#"][/url]
[url="http://download.qip.ru/2010/qip2010.exe"][/url]
[url="#"][/url]
[/td][td colspan=2]
QIP 2010 - Build 5768
: 01 2011
[b] :[/b]
[list][*] ;
[*] ;
[*] ;
[*] .
[/list]
, , .
[/td]
[/tr][tr height=30][td colspan=3 align=right padding-top=10][b]Copyright 2011 © QIP.ru[/b][/td][/tr][/table]
Overall, not bad, is it?
True, there are some problems when using the colspan and rowspan attributes, unfortunately it was not possible to fully understand it completely (if you do not take into account crutches as extra [td] [/ td])
That's all, a brief digression into the abnormal layout is over.
And yet, yes, the decision not to read the code was decided by adding [code] [/ code]
References:
Wiki with a description of the main BB-codes