Провести свой собственный бот-платформа с ботом Либре предприятия бот платформы
Bugs and Features

Embedd as iframe does not work

по Gandolfos опубликовано Mar 30 2014, 23:22

it's still not working to embedd a iframe in a wordpress page. i recieve the following error: "You must first select a bot Not connected" the sourcecode looks like this: thx for support


by admin posted Mar 31 2014, 6:58
Make sure you put the correct id for your bot in the chat parameter, i.e. your bot's id is 12551.

Here is an example of an embedded bot,

http://botlibre.blogspot.ca/p/talk-with-brain-bot.html

The code to embed your bot would be:

<iframe src="http://www.botlibre.com/embedded?&chat=12551&background=fff" width="600" height="400" frameborder="0" scrolling="auto"></iframe>


Updated: Mar 31 2014, 7:02
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 709, today: 0, week: 0, month: 2


by admin posted Mar 31 2014, 7:14
Ok, I see the issue.

The issue is that you have configured your bot's access mode to 'Users', so anonymous users will not be able to connect to your bot from the iframe (only connected users). You can either set your access mode to 'Everyone', or create a guest user to connect as from your iframe.

If you go to the Embed pane it will give you the option to enter a guest user/password (but only if your bot is private right now, I will make these options show up for access restricted as well).

You can change your bot to private to generate the code, then change it back.

The code would be,

<iframe src="
http://www.botlibre.com/embedded?&chat=12551&user=guest&password=0F20EC61D288676A06B37E401E02F1F4&background=fff" width="600" height="400" frameborder="0" scrolling="auto"></iframe>

Updated: Mar 31 2014, 7:14
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 714, today: 0, week: 0, month: 2

by Gandolfos posted Mar 31 2014, 14:40
ok, thanks

it is secure to post my id and the password in this public forum?

Gandolfos

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 597, today: 0, week: 0, month: 0

by admin posted Mar 31 2014, 18:16
No, do not post your user/password in a public forum.

The guest user/password I included was an example, a generic BOT libre guest user.

The password is encrypted, but still avoid using a real password, as it will be in the html, and it is possible someone might be able to decrypt it.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 613, today: 1, week: 1, month: 3

Идентификатор: 17564
Теги: iframe, wordpress, embedd
Опубликовано: Mar 30 2014, 23:22
Ответы: 2
Вид: 838, сегодня: 1, неделю: 1, месяц: 6
Я уверен, что
Вывесить флаг как оскорбительное, или в нарушение правил сайта