|
| Author |
Message |
~HG~
Joined: 25 Sep 2005
Posts: 423
Location: Australia
|
Posted: 1/12/2006, 2:34 pm Post subject: Relocating memberlist.php |
|
|
OK as you may have read I move my member list (link only) to the Admin section so that it complies with Australian Privacy laws to some degree.
Because the link is not publically viewable it takes away the temptation to view the list by ordinary members.
What I want to know from the phpBB experts here is what changes would I need to make to files other than memberlist.php to have it included in admin/memberlist.php ?
I am sure that some change would need to be made in page_header.php to show where that file can be found and possibly in some other .php files as well but that I am not sure of.
Also what effect would moving it to admin/ have on any updates etc as I notice quite a few updates have included the memberlist.php file? _________________ ~HG~
|| Click here to view all my phpBB Communities || |
|
| Back to top |
|
 |
Ex0dus
Joined: 26 Sep 2005
Posts: 235
Location: Zarasu, Lithuania
|
Posted: 1/12/2006, 2:45 pm Post subject: |
|
|
why not rename memberlist.php (rename it to something silly) and then put the admin only tags on a link around it (similar to how to the administration panel link works) and leave it that way. Less work and it still hides it from public view (even by typing in memberlist.php).
Saves alot of work.
Of course you can always delete memberlist.php (never really tried) and get a user list mod put into your site.
Either option would be less work and less hassle >_<
-Ex0dus |
|
| Back to top |
|
 |
~HG~
Joined: 25 Sep 2005
Posts: 423
Location: Australia
|
Posted: 1/12/2006, 2:48 pm Post subject: |
|
|
Yeah renaming it would be simple to do I guess and come to think of it, I already have a user list mod installed in the ACP.
Still I would be interested in seeing what others have to say on this one. _________________ ~HG~
|| Click here to view all my phpBB Communities || |
|
| Back to top |
|
 |
Thoul
Joined: 14 Sep 2005
Posts: 169
|
Posted: 1/12/2006, 5:23 pm Post subject: |
|
|
| Quote: |
| Also what effect would moving it to admin/ have on any updates etc as I notice quite a few updates have included the memberlist.php file? |
If you do the updates manually, no effect - just remember that you moved the file. If you do them automatically, you might have to move memberlist back out of admin/ temporarily or (if using EasyMod) change a path somewhere in the update file.
| Quote: |
| What I want to know from the phpBB experts here is what changes would I need to make to files other than memberlist.php to have it included in admin/memberlist.php ? |
I don't follow what you mean here. _________________ Phantasy Star: The Fringes of Algo | phpBB Smith |
|
| Back to top |
|
 |
Ex0dus
Joined: 26 Sep 2005
Posts: 235
Location: Zarasu, Lithuania
|
Posted: 1/12/2006, 5:55 pm Post subject: |
|
|
i think hes wondering if other files (such as anything in the includes directory) needs to be changed so that memberlist.php would work in the admin panel.
on that note, you would have to move memberlist_body.tpl to your templates/admin directory for starters =p (i know its obvious but its the kind of thing id forget)
-Ex0dus |
|
| Back to top |
|
 |
Brent
Joined: 09 Jan 2006
Posts: 42
Location: New York
|
Posted: 1/12/2006, 6:02 pm Post subject: |
|
|
So how do you do all this? _________________ Brent Kincer - AdminsCube.com Owner
E-Mail Me - brent@adminscube.com |
|
| Back to top |
|
 |
Thoul
Joined: 14 Sep 2005
Posts: 169
|
Posted: 1/12/2006, 7:07 pm Post subject: |
|
|
| Quote: |
| on that note, you would have to move memberlist_body.tpl to your templates/admin directory for starters =p (i know its obvious but its the kind of thing id forget) |
You wouldn't have to, actually. The only thing that would have to be changed is the $phpbb_root_path setting in memberlist.php itself. _________________ Phantasy Star: The Fringes of Algo | phpBB Smith |
|
| Back to top |
|
 |
~HG~
Joined: 25 Sep 2005
Posts: 423
Location: Australia
|
Posted: 1/13/2006, 3:56 am Post subject: |
|
|
Thats the sort of thing that I was referring to with other files Thoul.
The root path of the file and if it is called anywhere in the includes files that would need to be changed? _________________ ~HG~
|| Click here to view all my phpBB Communities || |
|
| Back to top |
|
 |
~HG~
Joined: 25 Sep 2005
Posts: 423
Location: Australia
|
Posted: 1/13/2006, 4:04 am Post subject: |
|
|
Just as a test I moved the memberlist.php to admin as well as the template for it into admin templates and when I try to call up the page in my browser all I get is a white page.
That means that some change would need to be made to move it permanently into admin. _________________ ~HG~
|| Click here to view all my phpBB Communities || |
|
| Back to top |
|
 |
Thoul
Joined: 14 Sep 2005
Posts: 169
|
Posted: 1/13/2006, 2:40 pm Post subject: |
|
|
You shouldn't move the template file - it needs to stay where it was originally. All you need to do is move memberlist.php and change the $phpbb_root_path setting in that file from "./" to "./../". _________________ Phantasy Star: The Fringes of Algo | phpBB Smith |
|
| Back to top |
|
 |
|