Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2014, 12:40 AM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
2 благодарности(ей) от:
blind-eddie, EasyEazy
  #2  
Old 01-27-2014, 12:41 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-27-2014, 02:08 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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.


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.
Reply With Quote
  #4  
Old 01-27-2014, 02:15 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So the above does what you were looking for also?
Reply With Quote
  #5  
Old 01-27-2014, 02:27 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
CAG CheechDogg
  #6  
Old 01-27-2014, 02:34 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure, add another plugin, same thing, just change the hook location from profile_editpassword_start to usercp_start
Reply With Quote
  #7  
Old 01-27-2014, 02:47 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome!
I will give that a try. Thanks again Ozzy.
Reply With Quote
  #8  
Old 01-27-2014, 03:53 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
2 благодарности(ей) от:
Krusty1231, Max Taxable
  #9  
Old 01-27-2014, 04:10 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are awesome Ozzy... I still am not able to like your post... But I like it & Thank you!

There you go Krusty....
Reply With Quote
2 благодарности(ей) от:
CAG CheechDogg, Krusty1231
  #10  
Old 01-27-2014, 06:38 AM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
CAG CheechDogg
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:47 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05665 seconds
  • Memory Usage 2,266KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (8)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete