Text formatting syntax in Live Helper Chat - BBCode tags
These are all possible combinations you can use in Live Helper Chat BBCode. You can these tags everywhere where message is send to a visitor.
Bold the text
[b]Bold[/b]
OR
**Bold**
Italic and bold at the same time
___bold and italic___
Headers
##
till######
Italic text
[i]Italic[/i]
Underline
[u]Italic[/u]
Quote
[quote]Quote[/quote]
Code
[quote]code your here[/quote]
or ``or
for inline code
Strike-through
[s]Strike-through[/s]
HTML Code. This tag is supported only by operators!
[html]your custom html goes here[/html]
By default we ignore clicks on elements for the visitor. To enable click process add a class process-click
to an element.
Operators require this permission to use this bbcode
lhchat
,htmlbbcodeenabled
This tag also supports plain JS code. This can lead so some security concerns. As operator can execute JS directly on visitor side. That's why it requires special permission to use.
Change font size. Font size can be to whatever value you want, actually.
[fs12]Font size 12[/fs]
Mark text button
[mark]mark text syntax[/mark]
=><mark>mark text syntax</mark>
Paypal donate button
[paypal]remdex@gmail.com[/paypal]
Change color
[color=FF0000]Custom color text[/color]
Location google maps
[loc]55.9314582,23.2975904[/loc]
File or Image
[file=639_f2f84b4d09a2e5bb492efa189b8ebad4]
Link to file with your own link title
[url=[baseurl]file/downloadfile/639/f2f84b4d09a2e5bb492efa189b8ebad4[/baseurl]] Click to download an invoice [/url]
Image with a link to some URL
[file=639_f2f84b4d09a2e5bb492efa189b8ebad4_img link=http://google.com]
Embedded image with a link to an image. Quick way to download image for a visitor.
[file=639_f2f84b4d09a2e5bb492efa189b8ebad4_img link]
External image
[img]https://livehelperchat.com/design/frontendnew/images/lhc.png[/img]
Link
[url=http://google.com]Live Helper Chat[/url]
Markdown link
[example](https://example.com)
Youtube video
[youtube]https://www.youtube.com/watch?v=TFJAW5bepLM&feature=youtu.be[/youtube]
Upload a file link. Files upload has to be enabled. This code is usefull with !files command.
[fupload]Upload a file[/fupload]
Base URL. This will render URL as internal URL.
[baseurl]user/login[/baseurl]
Renders link to view survey results for the admin
[survey="?(.*?)"?\]
Renders button. Chat should have assigned bot
[button_action="?(.*?)"?\](.*?)\[/button_action]
Plain text. This would avoid content to be parsed for BBCode tags.
[plain]info@exmaple.com[/plain]
would avoid rendering text as a link.
Date format.
[dateformat=Y.m.d H:i:s]{args.chat.time}[/dateformat]
Would print chat creation date in your preferred format.[dateformat=m/d/Y]{lhc.var.remind_dob}[/dateformat]
Would print chat variable in date format where unix timestamp is stored.[dateformat=Y/m/d, H:i:s]{current_time_ts}[/dateformat]
{current_time_ts} - if this variables is not printed, means in that place it's not supported
Ordered list
[list]
[*] First
[*] Second
[/list]
Numbered list. Number indicates starting point.
[list=1]
[*] First
[*] Second
[/list]
Text with css class
[level=bg-warning]css class[/level]
Generate button clicks
To return to main menu click [link_trigger=1355]here[/link_trigger]
How you hide BB Code button in the visitor widget you can read here
You can also control which bbcode tags is supported at System configuration -> Live help configuration -> BBCode configuration