We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Custom HTML block for profile | Forum

Alex Philipp
Alex Philipp Jan 9 '13
I try to develop my own widget for user profile page. Its core consists of 1 php file with code for example:

<?php

$Time1 = mktime(hh, mm, ss, dd, mm, yyyy);

$Time2 = mktime(hh, mm, ss, dd, mm, yyyy); {

echo "Here user should paste every HTML code like:  <img style=\"border: none;\" src=\"http://yoursite.com/3sethb.jpg\" />"; }

?>

So the main question is how we can make fields for users that should write:

their own time and date

their own code

And  how file.php should be listed to  execute custom HTML code?

Hope its not difficult for developers and programmers..

Alex Philipp
Alex Philipp Jan 9 '13
Got tips from Purus about widget creation and link http://docs.oxwall.org/dev:widget

But the main question is how to connect file.php with widget and make 2 fields for custom date and time only

Michael I.
Michael I. Jan 10 '13
Could you specify in more details what you want? How should your widget work? What should it do?
Alex Philipp
Alex Philipp Jan 10 '13
I`d like to add fields for start+finish dates and time (not required) for custom html widget..So users should get the ability to execute their own code (html/embed) with timer..

Is that difficult for Oxwall team?

Purusothaman Ramanujam
User "DateField" as the form element in your component.
Alex Philipp
Alex Philipp Jan 10 '13
Quote from Purusothaman Ramanujam User "DateField" as the form element in your component.

Yes, but how this should be connected with form for html code to execute it?
Purusothaman Ramanujam
Please have a look on the tutorial page where this is explained.
Alex Philipp
Alex Philipp Jan 10 '13
It doesn`t seem to be clearly explained((