Jump to content

[RESOLVED] Demo user

Featured Replies

Posted

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.

No, not really - the account owner would be able to change their details, such as the password.

  • Author
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?

  • Community Expert
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.

  • Author
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?

  • Community Expert
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. 

  • Author

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?

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.

  • Community Expert
1 hour ago, TheSaint said:

How much would you charge to make the plugin?

That is something that is best discussed in private. 

  • Author
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,

  • Author

THIS HAS BEEN RESOLVED! I found the file I need to edit to remove the password change field safely.

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.

  • Author
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.

Oh. I assumed you actually edited a core file, not a template. Templates are a bit different.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.