Być bot-dostawcy z bot bot Libre platformy chmurowej
Bugs and Features

Embedd as iframe does not work

w Gandolfos wysłany 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: 2009, today: 2, week: 8, month: 39


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: 2110, today: 1, week: 5, month: 36

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: 1903, today: 0, week: 6, month: 35

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: 1911, today: 1, week: 4, month: 36

Identyfikator: 17564
Tagi: iframe, wordpress, embedd
Wysłany: Mar 30 2014, 23:22
Odpowiedzi: 2
Widok: 2239, dziś: 1, tydzień: 5, miesiąc: 44
0 0 0.0/5