Upgrade to our Platinum service and get your own custom designed 3D avatar
Bugs and Features

Embedd as iframe does not work

by Gandolfos posted 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: 2002, today: 1, week: 1, month: 32


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: 2106, today: 1, week: 1, month: 32

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: 1898, today: 1, week: 1, month: 30

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: 1908, today: 1, week: 1, month: 33

Id: 17564
Tags: iframe, wordpress, embedd
Posted: Mar 30 2014, 23:22
Replies: 2
Views: 2236, today: 2, week: 2, month: 41
0 0 0.0/5