vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Help me remove User CP, Profiles & Login (https://vborg.vbsupport.ru/showthread.php?t=182824)

chrisjacob 06-18-2008 04:56 AM

Help me remove User CP, Profiles & Login
 
How would you go about:
1. Removing ALL links to User Control Panel?
2. Remove ALL links to User Profiles?
3. Redirect ALL links to User Login to a custom page outside of /forum/? (I have my own User Login which I want to force people to use... )

Locking down these features is a requirement of the project I'm working on.

Thanks for helping!

TheInsaneManiac 06-18-2008 05:24 AM

Quote:

Originally Posted by chrisjacob (Post 1552295)
How would you go about:
1. Removing ALL links to User Control Panel?
2. Remove ALL links to User Profiles?
3. Redirect ALL links to User Login to a custom page outside of /forum/? (I have my own User Login which I want to force people to use... )

Locking down these features is a requirement of the project I'm working on.

Thanks for helping!

There's no easy way to do it as far as I know, but I would be more than happy to take you in as a client and do the work for you.

chrisjacob 06-18-2008 05:30 AM

Thanks T.I.M but I would like to work through this one inhouse. If you have any suggests please let me know.

- Cheers

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

A3 - looking at changing the VBulletin Template for it's "login" page to display a message "We are re-directing you to the real login page" and use a javascript redirect to send them over to the login page i want them to use....

TheInsaneManiac 06-18-2008 06:50 AM

Well for certain advanced things I would rather do it myself in which I would charge you. To simplify everything I could help you do the basics and get started.

1.) Code your usercp.php to give a permission error to block all members from accessing it or use option in number 3.

2.) In your template editor do a Find and Replace for "member.php?$session[sessionurl]u=$newuserid"

3.) Add this to your .htaccess:
Code:

Redirect /member.php http://yoursite.com/yournewprofileareahere
Note that your number 2 and number 3 counteract each other. You can't redirect something if you remove it.

chrisjacob 06-19-2008 01:22 AM

My progress so far has been to create a new product called "Lock Down VB" with the following plugins:

note: each plugin contains 1 line:
print_no_permission();

No Access to Album pages - precheck
album_start_precheck

No Access to Calendar pages
calendar_start

No Access to Calendar pages - second start hook
calendar_start2

No Access to Group pages - precheck
group_start_precheck

No Access to Member pages
member_start

No Access to Moderation pages - for admins from UserCP
moderation_start

No Access to Private pages
private_start

No Access to Profile pages
profile_start

No Access to Subscription pages
usersub_start

No Access to User CP
usercp_start

TheInsaneManiac 06-19-2008 09:32 AM

You're weird. Why would you want to disable all of those.

tazzarkin 06-28-2008 11:40 AM

actually, this would be pretty useful. can you set it to add more non vb pages to the lockdown as well?

what I think would be great is if you could have an external lock/unlock php file (that you could run from a cron job) that would be able to lock/unlock down various portions of vbulletin. you can already do it for the entire forum, but it would be cool to do this for the individual features of vb.


All times are GMT. The time now is 12:55 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.01006 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete