Hello
Wondering if anyone could help with an issue which popped up for some of our users (just students by the looks of it), seemly out of nowhere with no known changes to permissions, policy settings, etc.
Student users are having the error, screenshot attached, "You do not have the required access to open menu.docs.network_drive.user_drive.default.". When navigating to a page with the Network Files widget to their Home folder. Or in FrogDrive > Home Drive.
I've checked the policy permissions for FrogDrive and Network Files apps/widgets, file paths in Users is correct, permissions of the folder on the file server. Nothing out of place as far as I can see.
What setting am I missing to check?
I am going to ask a few questions regarding widget development:
what DB software do you use (mogo, mysql, plaintext)?
what npm module is used to manage this database?
with out using any thing like frog forms, frog data viewer, csv files, frog documents of any kind. Could I please get access to give my widgets an actual database table?
Can we get the ability to read console print outs from the server side code execution of widgets?
Can we please get some form of API access for the server side part of EJS templates, mainly for use with databases.
Essentially as somebody who has limited experience developing web apps, I find that the current widget system of having to hack in things from locally hosted files, or using the client to connect to a Document based database hosted on 365 is too janky. Client side access for rendering inside an EJS template is exactly what I want but I don't have the tools available to do the really cool stuff I want to do.
In a nut shell you can't watch Doctor Who on BBC one if you have a Television, but no TV channels. EJS is our television but right now we have no decent channels to watch.
I know, I make a post about this every year but, Frog Code seriously needs to start being worked on again, right now we can not even delete our demo widget projects. I think Frog Code needs a road map and a clear plan, or it needs to be removed if you have no plans on finishing this feature.
Sorry to sound like a brat, but I feel this is a seriously huge missed opportunity.
The brilliant @Simon Law has built a new widget which adds a site's menu to a page, to save us all from having to do this manually using text widgets.
You can download this from the showcase page:
https://www.frogeducation.com/community/frogcode/frogcode-showcase/navigation
When I posted the snippet to allow you to restyle of My Notes, I hadn't thought that it wasn't as straight forward to change the title of Phrase of the Day. This bit of CSS is the easiest way I've found of changing all Phrases of the Day, although if you combine it with the the technique(?) mentioned in the restyling My Notes, you can restyle individual widgets in the same way.
<style>
.widget_phrase-wrap .header {
height:50px;
overflow:hidden;
}
.widget_phrase-wrap .header h2::before {
content: 'My own title \a';
white-space: pre;
}
</style>
Hi, I am trying to create a widget that is able to pull the Total Positive Behaviour Points into a variable, the end result is we will use an if statement to display a specific image depending on a number of points the student has.
I have started by testing with the HTML widget. using the below code to see if I can use the behaviour.getBehaviourTotals API to get the total points this year for the user, however, it is not working.
<script>
var $ap,user;
//Create a div, and give it a unique ID
$ap = $("div", {
id: Frog.Utilities.generateSimpleID()
}
);
$ap.html(
'<b>Your House Points:</b>'+
'<table clase="table" id="your_points">'+
'<tr>'+
"<th>This Year</th>"+
'</tr>'+
'</table>'
);
// Use Frog's API to get the logged in student
user = FrogOS.getUser();
// Use Frog's API to get Behaviour points
Frog.Model
.api('behaviour.getBehaviourTotals',{
Student_uuid: user.uuid,
}).done(function(behaviourResponse){
behaviourResponse.data.pos.year(function(work){
$ap.find('tbody')
.append(
'<tr>'+
'<td>'+
data.pos.year+
'</td>'+
'</tr>'
);
});
});
arguments[0].append($ap);
</script>
any advice appreciated.
Phil