PDA

View Full Version : Is there a way to do this?


Krusty1231
01-27-2014, 12:40 AM
I want to be able to have one guest account that allows full forum access to private areas.

I created a usergroup - changed all the permissions to fit what I needed. I then created the guest member account, and added that account to the new usergroup.

I then added the guest id to my config file to make that account unalterable. Saved and reuploaded my config file.

I then logged into the forum with the guest account.

It functions like it should except for one vital function.

The guest can change the password to the account thus locking anyone else from using it.

I can't seem to figure out if I missed something, or did it entirely wrong?

It also might not be possible to do this?

Either way, I am looking for a nudge in the right direction.

Thanks in advance for any replies.

ozzy47
01-27-2014, 12:41 AM
Is this for some sort of demo site?

--------------- Added 1390787570 at 1390787570 ---------------

Well either way do this:

Add a new plugin.

Product: vBulletin
Hook Location: profile_editpassword_start
Title: No Edit Password
Execution Order: 5
Plugin PHP Code:
if ($vbulletin->userinfo['userid'] == 'X')
{
print_no_permission();
}

Where X is the id of the user.

blind-eddie
01-27-2014, 02:08 AM
hmmmm... That's two people looking for the same thing.

https://vborg.vbsupport.ru/showthread.php?p=2477132#post2477132

--------------- Added 1390792269 at 1390792269 ---------------

Is this for some sort of demo site?

--------------- Added 1390787570 at 1390787570 ---------------

Well either way do this:

Add a new plugin.

Product: vBulletin
Hook Location: profile_editpassword_start
Title: No Edit Password
Execution Order: 5
Plugin PHP Code:
if ($vbulletin->userinfo['userid'] == 'X')
{
print_no_permission();
}

Where X is the id of the user.

http://blind-eddie.com/forum/imagehosting/152e5cdf3781b2.png

I have to like someone else's post before I can like more of yours so you have to settle for an image of it.:p

ozzy47
01-27-2014, 02:15 AM
So the above does what you were looking for also?

blind-eddie
01-27-2014, 02:27 AM
To a point yes. I have done the same thing.
But editing the config to make the guest account unalterable is only for the modcp or acp, not the front end, hence why the guest account can change the password.
That account would have to be stripped of more then just being able to edit the password.
I think I would remove the guest accounts access to the usercp all together or at least key items of it.
Can this be achieved from a plugin?

I am not trying to hijack your thread Krusty, I am after the same idea as you.

ozzy47
01-27-2014, 02:34 AM
Sure, add another plugin, same thing, just change the hook location from profile_editpassword_start to usercp_start

blind-eddie
01-27-2014, 02:47 AM
Awesome!
I will give that a try. Thanks again Ozzy.

ozzy47
01-27-2014, 03:53 AM
Actually that will only block them from the main page, I am throwing together a mod, that so far will allow you to stop a demo user, from accessing the following:

Private Messages in the usercp.
Subscriptions in the usercp.
Any of the profile settings in the usercp.
Blogs in the usercp.

You will be able to set multiple users to be demo user accounts in the settings.

blind-eddie
01-27-2014, 04:10 AM
You are awesome Ozzy... I still am not able to like your post... But I like it & Thank you!

There you go Krusty....

Krusty1231
01-27-2014, 06:38 AM
I am in your debt Ozzy.

Almost all of my forum is open to the public. I have a few sections that are member only.

Every now and then I will get a request for a Guest account so these people (mostly friends of members) can take a peek without signing up.

I know that sounds dumb, but anything to help boost my membership is always welcome.

I look forward to using your mod.

ozzy47
04-07-2014, 01:57 AM
Here is the demo account mod, https://vborg.vbsupport.ru/showthread.php?t=310264

It is also available for:
vB3.8 https://vborg.vbsupport.ru/showthread.php?t=310263
vB3.7 https://vborg.vbsupport.ru/showthread.php?t=310262
vB3.6 https://vborg.vbsupport.ru/showthread.php?t=310260