Actualización a nuestro Platinum servicio y vamos a construir el robot para usted
Bugs and Features

Embedd as iframe does not work

por Gandolfos publicado 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: 1838, today: 0, week: 3, month: 8


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: 1894, today: 0, week: 2, month: 6

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: 1721, today: 0, week: 1, month: 4

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: 1731, today: 0, week: 2, month: 7

Id: 17564
Etiquetas: iframe, wordpress, embedd
Publicado: Mar 30 2014, 23:22
Respuestas: 2
Vistas: 2039, hoy: 1, la semana: 1, mes: 4
0 0 0.0/5