vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Is there a way to do this? (https://vborg.vbsupport.ru/showthread.php?t=307548)

Krusty1231 01-27-2014 12:40 AM

Is there a way to do this?
 
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 [DATE]1390787570[/DATE] at [TIME]1390787570[/TIME] ---------------

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:
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/showthrea...32#post2477132

--------------- Added [DATE]1390792269[/DATE] at [TIME]1390792269[/TIME] ---------------

Quote:

Originally Posted by ozzy47 (Post 2477123)
Is this for some sort of demo site?

--------------- Added [DATE]1390787570[/DATE] at [TIME]1390787570[/TIME] ---------------

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:
Code:

if ($vbulletin->userinfo['userid'] == 'X')
{
        print_no_permission();
}

Where X is the id of the user.

http://blind-eddie.com/forum/imageho...5cdf3781b2.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.


All times are GMT. The time now is 09:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01107 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete