I am creating a new local plugin on moodle that nedd to be accessed by users that are not admin, i tried to create a new item on the left navigation bar but didn't get and i was told to not do it, i was able to create a link in the site administration but the user intended to use the plugin has no access to the site administration, so i need to create a way to access the plugin without using the plugin link(preferably by the interface):
my settings.php file
<?php
$ADMIN->add('localplugins', new admin_externalpage('local_myplugin', 'myplugin', $CFG->wwwroot.'/local/myplugin/manage.php'));
Related
I am new Vuestorefront, I am trying to change product catalog
for that, everywhere is returning to go admin panel but can anyone tell me how to get the user name and PWD of demo admin panel
http://demo-magento2.vuestorefront.io/admin
reference page https://docs.vuestorefront.io/guide/cookbook/data-import.html#_2-1-recipe-a-using-demo
thanks in advance
The Magento demo is purely for demo purposes. If you intend to begin working in Magento on catalog and orders you will need to spin up your own instance of Magento (or desired backend).
My purpose is simply being able to retrieve basic user info (id, username, lastname, firstname) in javascript on ANY moodle page WITHOUT having to create a plugin.
I've seen that there is a javascript global variable in Moodle : M but no user info in there.
Is there a way to access user info (id at least) from a logged in user on any page only in javascript another way ?
I've tried the generico filter to create a block i would be able to retrieve information from
<span data-firstname="##USER:firstname##" data-lastname="##USER:lastname##" data-userid="##USER:id##" id="useriddata"></span>
But since i want it on any page, i've tried on the Moodle > Extra HTML textarea. Sadly it doesn't work since the HTML seems not to be filtered there.
Creating a plugin for such a small information seems wrong. What can i do ?
You may request user info via Web Services using ajax, e.g. core_user_get_users_by_field. You should, however, determine userid first, which can probably be retrieved from top menu links after signin (profile link etc.). But I would recommend to develop the plugin anyway
I need to add a button for each user in admin's user list (admin/user.php).
is it possible to do it from my local plugin? if yes how?
Or I need to edit the user modules manually?
The only way to do this without a core code modification, would be to use the theme (or possibly a local plugin) to inject some javascript into the page to add the button after the page has loaded.
The page itself is quite old, so it doesn't use a renderer, so overriding the generated HTML via the theme is not an option. The user actions aren't designed to be pluginable either.
Depending on what you are wanting to do, you could, of course, create a local plugin that adds a new link to the 'Site administration' tree. On the page this links to, you could add your own list of users, with whatever buttons you wanted on them.
I want to use custom domain to access my bluemix application directly by registered own domain. So godaddy requires the name server of bluemix so how can i find it or can you know
the another way to access it directly by registered domain
Here is an alternate way by which you can route your app to your webpage :
1 : Below your app name you would see the "Routes" with your bluemix url. At the end you have the option to edit the routes. Click that.
2: A popup would appear with one option as "Manage Domains". Click that. Alternate you can also reach to that page by clicking "Manage organization".
3: On the landing page you have the option to add a new domain. Add your website name here.
4: Now again go to edit routes. And add new route. You would see your website's name appearing . Add a name to your app. suppose you gave "myapp" as the name and your webpage name is "mywebsite.com" then your app would be redirected to your subdomain named "myapp.mywebsite.com". On save you can see this new route appearing additional to your existing routes for your app.
This is the first part. Now go to your domain provider and add create new alis with the app name. "myapp.mywebsite.com" and pass the alis name as the actual route provided by bluemix to you. Once done your app would be visible at your website.
You could follow what suggested by #Manish but instead of creating an alias CNAME on your DNS configuration you could create an A record pointing one of the following IP
US-SOUTH: 75.126.81.68
EU-GB: 5.10.124.142
AU-SYD: 168.1.35.169
according to the region your application is running on.
I would like to create a login screen for registered members on front page of the site without using members module. As I can see I can create a member and assign login credentials at back-end ( I don't have member module). Basically the idea is:
visiting: www.domain.com will give you login screen. When logged in it will redirect you or open new page.
I'm not looking to buy a module or extension. If something already exist I will be happy to use it.
Can anyone help?
You "don't have the members module"? How is that possible - it comes with the default install! So, something does already exist - it's called the Login Form tag.
So is the question how to create a login form on the front end of the site, or how to keep non-logged in users from viewing a specific template?
If it's the latter you can set access privileges at the template level. Look for the "Access" link by each template in the Template Manager, click that and you'll see your member groups and an option for what template to display if they aren't logged in. Typically that's a login template using the Login Form tags mentioned earlier.