Topic: How to embed an iframe in a page?

 

goG

User
Gravatar
Joined: 2011-02-03
Posts: 27
Could anyone please tell me how to embed an iframe with in a page. If i do so, then it simply renders the code as such. If i need to create a widget, please tell me how to do this?
 
 
Admin
Gravatar
Joined: 2009-07-16
Posts: 823
XSS filtering was enabled for all modules, but should have been left off for Pages. Open up the modules db table and set pages skip_xss to 0, then:

sudo rm -rf system/pyrocms/cache/module_m/


This will be done and fixed in v1.1.
 
 

goG

User
Gravatar
Joined: 2011-02-03
Posts: 27

Phil Sturgeon - 02/15/11 8:18 pm

XSS filtering was enabled for all modules, but should have been left off for Pages. Open up the modules db table and set pages skip_xss to 0, then:

sudo rm -rf system/pyrocms/cache/module_m/


This will be done and fixed in v1.1.



Awesome.. thanks Phil...
when can we expect v1.1... coz i really love pyro!!! smile
 
 
User
Gravatar
Joined: 2011-03-05
Posts: 1
Just FYI, this will need to be done for other modules (i.e. widgets) if you intend to add something like a Google Map IFRAME as a widget, for example. Took a day or two to figure this out.
 
 
User
Gravatar
Joined: 2011-03-08
Posts: 1

Phil Sturgeon - 2011-02-15

XSS filtering was enabled for all modules, but should have been left off for Pages. Open up the modules db table and set pages skip_xss to 0, then:

sudo rm -rf system/pyrocms/cache/module_m/


This will be done and fixed in v1.1.


I am a new user in pyro. Can "sudo rm -rf system/pyrocms/cache/module_m/" use on share hosting? thanks
 
 
Admin
Gravatar
Joined: 2010-07-03
Posts: 752
If you have shell access then you can. And I'm guessing you don't or you wouldn't be asking smile Just use your cpanel file manager or ftp to delete the system/pyrocms/cache/module_m folder. It's the same thing.
 
 
User
Gravatar
Joined: 2011-03-15
Posts: 2
I am using 1.1 but still widgets are getting filtered. I have been trying to embed Google Earth within a page using a html widget but it keeps coming out as < :/ I have set skip_xss to 0. Does anyone have any ideas where I'm going wrong?

PS. love CodeIgniter, love PyroCMS!
 
 
Admin
Gravatar
Joined: 2010-07-03
Posts: 752
skip_xss needs to be set to 1 in the widgets record of the modules table. It works here if it's set to 1.

Remember you'll have to paste your google maps code again as the xss filtering is done on database insertion
 
 
User
Gravatar
Joined: 2011-03-15
Posts: 2
Thanks Jerel! Working perfectly now!
 
 
User
Gravatar
Joined: 2011-08-21
Posts: 10

Phil Sturgeon - 2011-02-15

XSS filtering was enabled for all modules, but should have been left off for Pages. Open up the modules db table and set pages skip_xss to 0, then:

sudo rm -rf system/pyrocms/cache/module_m/


This will be done and fixed in v1.1.



I don't know about being fixed in v1.1 - I am using v1.3.2 and my widgets would not properly display html until about 20 seconds ago when I manually edited the mySQL database... to skip_xss = 1 (for widgets)