-
Posts
93 -
Joined
-
Last visited
monchu's Achievements
![Rank: Full Member (4/6) Full Member](http://processwire-forums.s3.us-west-2.amazonaws.com/set_resources_6/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png)
Full Member (4/6)
87
Reputation
-
Try localhost only first without port number, http://localhost/ Is it working?
-
Yes you can create a new file ready.php so you can put the hook snippet there https://github.com/processwire/processwire/blob/master/site-default/ready.php
-
Hi Marvin, Apa kabar? You can add roles using hook in your ready.php $this->addHookAfter('Session::loginSuccess', null, function($event) { $user = $event->wire('user'); if (($this->wire('user')->notes) == '') $note = "Data belum lengkap"; if ((($this->wire('user')->notes) != '') && (!$this->wire('user')->hasRole('new-role'))) { $user->of(false); $user->addRole('new-role'); $user->save(); $user->of(true); } });
-
Membership app, Processwire limitations on unique records?
monchu replied to Kiwi Chris's topic in General Support
In my case to solve duplicate user name, I used a name page with this format: Y-m-d-page->id-userfname-userlname With this format, I can get both, User Account ID and Registration Date. -
I'm using DO with basic setup, and it's easy to manage. One droplet for web and one for the database. To manage the database, I use Heidi SQL and PuttY for the app.
-
46 you're still young Ryan ? I'm 66 this year and active as a martial arts instructor, and I still want to do it for the next 20 years hopefully. So you can maintain PW for the next 40 yrs. ?
-
Very easy using css grid no need flex to do that. Use z index bigger for div two and use grid-area to locate div one and div two.
-
Weekly update: Combo now released! 18 Dec 2020
monchu replied to ryan's topic in News & Announcements
I want to share in my use case using FormBuilder, Textareas and Combo. I manage a martial arts association website in Australia. We produce certification for jury and athletes. I use Textareas field to store the integers and manipulate those values in Hanna Code and use that code in FormBuilder markup field for the quiz certification. Since we have a lot of user types from students, instructors, martial arts schools etc.; this is where Combo field suit to store all members data separated from their user's profile account. Doing this way, the user profile data only consists of essential data such as user name, first/last name, email and password etc. Then I can re-use that Combo field in any project as well. So in my use case, the combination of FormBuilder, Textareas and Combo are beneficial. -
Maybe try the basic format first <?=date('%A, %e. %B %Y', $item->date_start)?>
-
Hi Greg, I'm not too sure what you meant by page-template. In PW it's quite a bit confusing because a page and a template is a different thing. You have to put Hanna tag in your Blog page, not in the template file. You assigned the Hanna Code Text Formatter in your Body field.
- 3 replies
-
- hannacode
- config error
-
(and 1 more)
Tagged with:
-
I have installed the SSL in localhost (xampp in Win10) following the steps from this url: https://shellcreeper.com/how-to-create-valid-ssl-in-localhost-for-xampp/
-
To hide breadcrumb, I used this hook in ready.php $this->addHookBefore('Process::breadcrumb', function(HookEvent $event) { $Process = $event->object; $Process->wire('breadcrumbs')->removeAll(); });
-
Role with view permission only to pages of specific template
monchu replied to ottogal's topic in General Support
Why not use $user->isLoggedin() for the new role in your template -
You only need to create a hidden page with blank template let say settings, then put all settings in that page: $page->rootParent()->child('template=settings, include=hidden'); or put it in _init.php: $mySettings = $page->rootParent()->child('template=settings, include=hidden');
-
Dashboard Tasks MD COLLABS, MaxDev Collaboration & Sharing Tool is a simple management task module; a plugin runs on Processwire CMF Framework. Available here at https://github.com/sjahrazad/DashboardTasks This module allows you to track interactions in your team through your Email application; furthermore, you can collaborate and share your task instantly from the web site. This module modified from Kongondo Dashboard Notes at https://processwire.com/talk/topic/20980-dashboard-notes/ Install 1. Place the module files in /site/modules/DashboardTasks/ 2. In your admin, click Modules > Check for new modules 3. There are two modules, the main module is DashboardTasks, and the other one DashboardDocs is an optional module in case you want the users to attach files to their task. 4. Install DashboardDocs to use both modules, or install DashboardTasks only without the document attachment. User Roles There are three roles for this module, task-user (co-worker), task-owner (task creator) and task-manager. Demo Users The installer created five demo users, task-manager, task-owner and three task-coworkers. For the first time log-in user, before using the module, a task manager role required to configure the Global Settings. user name: task-manager, password: task-manager, email: task-manager@yourdomainname user name: task-owner password: task-owner, email: task-owner@yourdomainname user name: task-coworker1 password: task-coworker1, email: task-coworker1@yourdomainname user name: task-coworker2 password: task-coworker2, email: task-coworker2@yourdomainname user name: task-coworker3 password: task-coworker3, email: task-coworker3@yourdomainname Change those emails with your test emails. Task Types There are three types available for the new task creation. First, is the Notes type. Use this type if you want to share your notes or collaborate the ideas to your members. The second type is the core of this module, a Task Scheduler type with start date and due date of the task. If you click the Required Job Acceptance from your task settings, then this task type will become an enquiry or job offer task type. The third type is the Reports or Private Notes type. Use this type for your private record or might be you share it to the selected members in your team. Usage Scenario You can use this module for numerous tasks management purposes, from just a shared idea up to enquiry request type. Email or SMS is the primary interface for the user in this module. The user can decide either respond to that email request and log in to the system or just read it in their mailbox. If there is no action required from the recipient, then it is not compulsory to log in to the system as well. Responses to the submitted task also will be sent out to the task creator email as well. For example, your company use a Call Centre service to capture your customer's enquiries, where the messages will be sent out to your contractors or service providers. In this case, your role here is the Task Manager, the call centre agent's role become the Task Owner, someone who created the task and your contractors or service providers are the Task Users. Once a contractor received the request and accepted the enquiry's offer, this contractor assigned as the job provider for that task. The other scenario usage, for example, you're a property manager who will process your tenant request for fault enquiry to your tradesperson group. Or, a lecturer who wants to arrange a research group with some students.. the list goes on ... CSS CSS Grid doesn't work in some old browsers. You need to adjust the CSS under Less folder if you want to use this module for old browsers. <details> tag is not working in IE or Edge browser. SMS If you want the output sent to SMS and Email, you have to add your SMS Provider API to the ProcessDashboardTasks.module. And add your mobile users' array to the SaveTask and SaveTaskReply function.