Social Engine: How to write PHP code in HTML Block? - socialengine

I have created a new page using Layout Editor. I found the options to add the HTML codes using HTML Block. I would like to add PHP code in that HTML block section. How can I do? Please advice me. I spend more than 2 hours for the solution. But nothing works.

Sorry, you cant include PHP code into HTML blocks
Try this widget I4US PHP Block: from integration4us.com (site closed?) This is old plugin, but still best solution for you request, using it on my 2 SE4 sites.
This widget was absolutely free, you can download it here.

Related

How to inject css file from a html file while working in django?

I'm currently working on a django course which probably has older version of Django. My html file contains one css link, which needs to be injected into my code.
My code works fine in browser and I have no errors, but my webpage has no styling in it.
Also I looked up into various answers here and I followed the steps very carefully, but still I'm not able to figure out what I lack.
I would like to know other methodologies for injecting css as I mentioned above.

Revolution slider with php (laravel)

I want to use Revolution Slider within my html template.
Main issue is I have no any idea how to integrate it to my database and PHP codes.
Can anybody help me?
The core concept of visual editor is to use it as standalone slider builder tool which spits out a full html code with all links, markups etc without the needs to understand html/css/slider functions at all for your sliders. And have ability to export it in html or include it using php functions.
Full integration include user authorization, fixing possible code conflicts, other possible caveats.
The most easiest way to integrate is to add an option to specify slider alias and pass it to render functions. And keep editor as separate application.
If you add more details about how exactly you want to integrate it i would try to give you better answer.

Cannot edit or udate content with TinyMCE in Webmatrix2

If anyone can help me that would be great. I'm trying to submit any changes without getting the...
"A potentially dangerous Request.Form value was detected from the client.
I'm using tinyMCE with my project and if I enter any content that has any HTML characters I get the above message
I have tried various solutions here on Stackoverflow and elsewhere but they didn't work for me. The last solution I tried was here
Another site that looked promosing but without luck...
I haven't done any development for a while so I'm a tad rusty and not sure what you'll need until you ask.
Thank you
Use Request.Unvalidated to reference your textarea in your code block:
var html = Request.Unvalidated("myTextArea");
If you want to output whatever the user submitted, and you wanted the browser to respect the HTML markup that is included, you need to use Html.Raw:
You entered: #Html.Raw(html)

display html in xaml

I wasted few hours for looking the answer and I'm very sad cause I didn't find anything usefull. I have a CMS in cloud and it provides content for diffrent devices like www site and my new windows store application.
I want to use html formating. I've already created app in c# and xaml and I'm wondering how can I display html
I was happy cause I found http://nuget.org/packages/RichTextBlock.Html2Xaml but I can't make it work. I get blank page. No text, no error, no nothing.
Can someone pls tell me how can I display html in my app ?
Use a WebView/WebViewBrush or use HTML Agility Pack and implement the styles/rendering yourself.
In WinRt app you can display html code by some ways:
Using WebView with it's NavigateToString("html content")
Using WebViewBrush and displaying it in rectangle
If you had your .html file local - you can open it with myWebview.Navigate(new Uri("ms-appx-web:///" + myPath));
You can make a screenshot of webpage by the method wich I describe here and open it as a picture.
For more info, see the WebView control sample

Creating ajax application without rendering JSON

Sorry for my English - I am from Russia.
I am a beginner Ruby on Rails 3 developer. I have to make ajax in my application, updating only part of html content. I can't use jQuery load function with neсessary element, because server generates content of all page and I need only part. Now I render json and generate html from it on the client using jQuery, but it is dirty and wrong. Creating pages with bit of HTML only for ajax in my opinion is dirty too. How can I solve my problem more beautiful? Thanks.
Hope this help
http://ruby-on-rails-tutorials.blogspot.com/2010/11/rails3-ajax-tricks-with-javascript-erb.html