TheSaint Posted May 26, 2020 Posted May 26, 2020 (edited) Is there a way to make a demo user? I want to fix it so they can't change the password or well anything in the profile. I want to do this to just one account. Edited May 27, 2020 by TheSaint
bfarber Posted May 26, 2020 Posted May 26, 2020 No, not really - the account owner would be able to change their details, such as the password.
TheSaint Posted May 26, 2020 Author Posted May 26, 2020 1 minute ago, bfarber said: No, not really - the account owner would be able to change their details, such as the password. anyway to make an an account delete after so long?
Miss_B Posted May 26, 2020 Posted May 26, 2020 2 hours ago, TheSaint said: anyway to make an an account delete after so long? Do you mean to delete an account based on registration or last activity timeframe? Either way, this will require a custom plugin imo.
TheSaint Posted May 26, 2020 Author Posted May 26, 2020 1 hour ago, Miss_B said: Do you mean to delete an account based on registration or last activity timeframe? Either way, this will require a custom plugin imo. I need something so when the user visits my demo forum, creates and account, after so long it deletes it, or a way to have a demo account where they cant change the password. Like is there a file that I can edit to remove the whole field for the password in the userCP?
Miss_B Posted May 26, 2020 Posted May 26, 2020 9 minutes ago, TheSaint said: I need something so when the user visits my demo forum, creates and account, after so long it deletes it, or a way to have a demo account where they cant change the password. Like is there a file that I can edit to remove the whole field for the password in the userCP? What do you mean by demo forum? Also, when you say after so long, what is that long criteria based on? I can create such a plugin for you btw.
TheSaint Posted May 26, 2020 Author Posted May 26, 2020 it is a test forum for my theme, I either need the account they create to last no more then 24hrs (maybe send an email if possible when expired) or something where I can create an account that limits them access to changing anything in the UserCP. How much would you charge to make the plugin?
Morrigan Posted May 26, 2020 Posted May 26, 2020 You can technically hide the whole UCP by editing the theme. If you’re interested in that let me know and I’ll find the template that you’d edit.
Miss_B Posted May 26, 2020 Posted May 26, 2020 1 hour ago, TheSaint said: How much would you charge to make the plugin? That is something that is best discussed in private.
TheSaint Posted May 27, 2020 Author Posted May 27, 2020 17 hours ago, Morrigan said: You can technically hide the whole UCP by editing the theme. If you’re interested in that let me know and I’ll find the template that you’d edit. that would work too,
TheSaint Posted May 27, 2020 Author Posted May 27, 2020 THIS HAS BEEN RESOLVED! I found the file I need to edit to remove the password change field safely.
Morrigan Posted May 27, 2020 Posted May 27, 2020 I don't recommend file changes but for those that are curious you can do this here: core > front > system > settings Remove these lines from the template: {{if $canChangePassword}} <li> <a href='{url="app=core&module=system&controller=settings&area=password" seoTemplate="settings_password"}' id='setting_password' class='ipsType_normal ipsSideMenu_item {{if $tab === 'password'}}ipsSideMenu_itemActive{{endif}}' title="{lang="password"}" role="tab" aria-selected="{{if $tab === 'password'}}true{{else}}false{{endif}}"> <i class='fa fa-key'></i> {lang="password"} </a> </li> {{endif}} Or! just remove it all from that template. It will remove all content from the UCP altogether.
TheSaint Posted May 28, 2020 Author Posted May 28, 2020 8 hours ago, Morrigan said: I don't recommend file changes but for those that are curious you can do this here: core > front > system > settings Remove these lines from the template: {{if $canChangePassword}} <li> <a href='{url="app=core&module=system&controller=settings&area=password" seoTemplate="settings_password"}' id='setting_password' class='ipsType_normal ipsSideMenu_item {{if $tab === 'password'}}ipsSideMenu_itemActive{{endif}}' title="{lang="password"}" role="tab" aria-selected="{{if $tab === 'password'}}true{{else}}false{{endif}}"> <i class='fa fa-key'></i> {lang="password"} </a> </li> {{endif}} Or! just remove it all from that template. It will remove all content from the UCP altogether. that is what I did, I would not recommend on a normal forum but I was doing it for my test forum. Don't need any of that.
Morrigan Posted May 28, 2020 Posted May 28, 2020 Oh. I assumed you actually edited a core file, not a template. Templates are a bit different.
Recommended Posts