By Dan Cote on Tuesday, 22 March 2016
Posted in Technical Issues
Replies 14
Likes 0
Views 505
Votes 0
I am using the widget factory add-on in Jreviews and it gives you javascript code to embed on websites and blogs. But Easyblog strips out javascript from the html editor that is built into Easyblog's composer. Is there any way to disable the stripping of javascript from blog posts? Even if I need to modify the Easyblog code?
Hey Dan,

I strongly advise users to not allow this but if you are using the WYSIWYG editor, you need to configure the editor plugin (depending on which editor you configured EasyBlog to use) to allow "script" tags.

Then, under the ACL section of EasyBlog, click on the user group that you would like to allow and remove "script" from the disallowed html tags .

The reason that this has been disabled for normal users is to prevent xss attacks. If any tom dick and harry can embed scripts on your page, your site would get hacked in no time
·
Tuesday, 22 March 2016 21:58
·
0 Likes
·
0 Votes
·
0 Comments
·
There are no disallowed html tags in the ACL section for Super Users. It is showing blank.
·
Tuesday, 22 March 2016 22:03
·
0 Likes
·
0 Votes
·
0 Comments
·
What editor did you configure EasyBlog to use?
·
Tuesday, 22 March 2016 22:04
·
0 Likes
·
0 Votes
·
0 Comments
·
I've set it to the Easyblog builtin composer editor....because I would like to use all of the features of Easyblog.
·
Tuesday, 22 March 2016 22:07
·
0 Likes
·
0 Votes
·
0 Comments
·
I am assuming that you are using the "HTML" block correct? Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?

To add your access, simply edit your first post above or head on to http://stackideas.com/dashboard/site to insert your site access once only.

Also, please upload a text file of the code that you are trying to embed.
·
Tuesday, 22 March 2016 22:13
·
0 Likes
·
0 Votes
·
0 Comments
·
I've been unable to use the HTML block. For some reason I'm not see the Blocks tab in the Composer. I've entered site access details as suggested.

Attached is some sample embed code.
·
Tuesday, 22 March 2016 22:32
·
0 Likes
·
0 Votes
·
0 Comments
·
FYI...Easyblog is found on the News tab in the navigation menu.
·
Tuesday, 22 March 2016 22:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Another update. I got the HTML block working but it doesn't save the javascript code.
·
Tuesday, 22 March 2016 22:47
·
0 Likes
·
0 Votes
·
0 Comments
·
I have figured out the problem. First I set the System Environment setting to Optimized. I had it on Static. I have multiple StackIdeas components and that might of been a problem.

I also fixed my expired Facebook token issue.

And I got the HTML block to finally accept the javascript code. I didn't realize that I had to place the code within the paragraph tags, i was overwriting all code in that block previously.

Thank you for your time.
·
Tuesday, 22 March 2016 23:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Dan,

I have just tested this and it works fine, http://dev.rvpoints.com/2013-08-20-17-02-14/entry/test-jreview-embed . I have inserted the html block and pasted the contents which you entered on the right pane.
·
Tuesday, 22 March 2016 23:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Well I thought everything was working. But for some reason every block is editable except the HTML block. When you click on that section of content it doesn't show the html block code. When you click on a heading or another type of block...the blocks section then shows options to edit. This isn't working for the HTML block.
·
Wednesday, 23 March 2016 00:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Well, I guess I spoke to soon, I couldn't click directly on the html block, I had to click on the very edge of the html block that was visible and then I could edit the block. That should be improved, it took me a long time to figure out how to choose the block.
·
Wednesday, 23 March 2016 00:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Is there a way to change the frontpage of the blog to show the full blog posts? Because right now the templated blog post is showing very strangely for the excerpt that is created.

See attached image.
·
Wednesday, 23 March 2016 00:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Dan,

I am sorry for the delay of this reply,


Well I thought everything was working. But for some reason every block is editable except the HTML block. When you click on that section of content it doesn't show the html block code. When you click on a heading or another type of block...the blocks section then shows options to edit. This isn't working for the HTML block.

Well, I guess I spoke to soon, I couldn't click directly on the html block, I had to click on the very edge of the html block that was visible and then I could edit the block. That should be improved, it took me a long time to figure out how to choose the block.


Currently you have to click on another block which exist in the blog content then click on the 'Block' tab from the right panel and select "Show all block" > select 'HTML block'

Is there a way to change the frontpage of the blog to show the full blog posts? Because right now the templated blog post is showing very strangely for the excerpt that is created.

Yes, because that frontpage listing is already truncated that blog content, to fix this you can try following 2 method :
1. I already help you added 'Read more' block into that blog content, you can refer on my attached screenshot below.

2. You can turn off this truncation setting from backend > Easyblog > settings> layout > truncation tab
·
Wednesday, 23 March 2016 12:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post