Custom Profile Field edit only by Admin/Moderator

MODs, Hacks, tips and tricks for memberlist, profiles, group members, and team members.
Custom Profile fields Hacks and MODs are also included

Custom Profile Field edit only by Admin/Moderator

Postby Semi_Deus » 21 May 2007, 15:33

Classification: Add-on
phpBB Part: UCP

MOD Name: Custom Profile Field edit only by Admin/Moderator
MOD Version: 1.0
Author: Semi_Deus
MOD :Very simple mod to make the custom profile fields admin/moderator configurable only.
I needed a small medalling system, so i made 3 custom profile fields, gold medal, silver medal, bronze medal.
But i needed those to not be editted by the user himself, so i came up with this..

Works with:
  • phpBB 3.0.0


Language: English

Licence: GNU General Public License v2

Screenshots:
mod.JPG
Admin view when editting user profile

mod2.JPG
User view when editting user profile


Installation Level: Easy
Installation Time: 1 Minutes
Format: MOD

Spoiler:
Go to your admin panel.
open: ucp_profile_profile_info.html
find:
Code: Select all
<!-- BEGIN profile_fields -->

add before
Code: Select all
<!-- IF U_ACP -->


find:
Code: Select all
<!-- END profile_fields -->


add after:
Code: Select all
<!-- ENDIF -->


if you want it to be Moderator configurable also, replace all new U_ACP by U_MCP

as simple as that!
Last edited by Semi_Deus on 29 Oct 2007, 16:02, edited 2 times in total.
Former Moderator & Styles team member
Image
User avatar
Semi_Deus
Admiral
Admiral
 
Posts: 2479
Joined: 13 Feb 2007, 13:53
Location: Netherlands
Favorite Team: Ajax
Gender: Male
phpBB Knowledge: 8




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: Custom Profile Field edit only by Admin/Moderator [RC1]

Postby Semi_Deus » 29 May 2007, 17:23

here screenshots in RC1 on my new style with the feature added(so it works in RC1):

< admin is editting user Profile
< user is editting user Profile
< post made by user, but hey!? he has an custom profile field? He didnt put it there.. :grin:
Former Moderator & Styles team member
Image
User avatar
Semi_Deus
Admiral
Admiral
 
Posts: 2479
Joined: 13 Feb 2007, 13:53
Location: Netherlands
Favorite Team: Ajax
Gender: Male
phpBB Knowledge: 8

Re: Custom Profile Field edit only by Admin/Moderator [RC1]

Postby eFantasy » 30 May 2007, 08:09

Nice MOD, but when I click the above links I get this:

Not Found

The requested URL /fileupload/uploads/213_voila.bmp was not found on this server.
Dark Blitz - A graphics community
Styles: proFantasy
New ranks: Blue Blitz ranks
Topic icons: More prosilver topic icons
Image
User avatar
eFantasy    
Style Author
Style Author
 
Posts: 528
Joined: 26 Apr 2007, 09:53
Location: Netherlands
Gender: Male
phpBB Knowledge: 5

Re: Custom Profile Field edit only by Admin/Moderator [RC1]

Postby Semi_Deus » 30 May 2007, 16:26

hmm the snapshots are working, but the link isnt..
ill attach them..
Former Moderator & Styles team member
Image
User avatar
Semi_Deus
Admiral
Admiral
 
Posts: 2479
Joined: 13 Feb 2007, 13:53
Location: Netherlands
Favorite Team: Ajax
Gender: Male
phpBB Knowledge: 8

Re: Custom Profile Field edit only by Admin/Moderator [RC1]

Postby eFantasy » 31 May 2007, 09:45

Thx :D
Dark Blitz - A graphics community
Styles: proFantasy
New ranks: Blue Blitz ranks
Topic icons: More prosilver topic icons
Image
User avatar
eFantasy    
Style Author
Style Author
 
Posts: 528
Joined: 26 Apr 2007, 09:53
Location: Netherlands
Gender: Male
phpBB Knowledge: 5

Re: Custom Profile Field edit only by Admin/Moderator [RC1]

Postby Semi_Deus » 03 Jun 2007, 09:22

do'h, cant find the images anymore..
well, i looks the same as the images in my first posts..
only that it is in RC1.. :thumbsup:
Former Moderator & Styles team member
Image
User avatar
Semi_Deus
Admiral
Admiral
 
Posts: 2479
Joined: 13 Feb 2007, 13:53
Location: Netherlands
Favorite Team: Ajax
Gender: Male
phpBB Knowledge: 8

Re: Custom Profile Field edit only by Admin/Moderator [RC1]

Postby Drewsifer » 22 Jun 2007, 15:12

Looks great, except if you run it this way, it doesn't look like you can have custom profile fields that are user editable alongside ones that aren't. I'm sure the edit is probably right in about the same place, but sadly, I don't know the workings of PHPBB well enough to monkey with it. Any ideas?
Drewsifer
Crewman
Crewman
 
Posts: 1
Joined: 22 Jun 2007, 15:08
Gender: Male

Re: Custom Profile Field edit only by Admin/Moderator [RC1]

Postby Semi_Deus » 13 Jul 2007, 08:45

Drewsifer wrote:Looks great, except if you run it this way, it doesn't look like you can have custom profile fields that are user editable alongside ones that aren't
thats totaly correct, because i have no knowledge of php i couldnt make this.
Former Moderator & Styles team member
Image
User avatar
Semi_Deus
Admiral
Admiral
 
Posts: 2479
Joined: 13 Feb 2007, 13:53
Location: Netherlands
Favorite Team: Ajax
Gender: Male
phpBB Knowledge: 8

Re: Custom Profile Field edit only by Admin/Moderator [RC1]

Postby cotp » 07 Sep 2007, 22:47

Semi_Deus wrote:
Drewsifer wrote:Looks great, except if you run it this way, it doesn't look like you can have custom profile fields that are user editable alongside ones that aren't
thats totaly correct, because i have no knowledge of php i couldnt make this.


I tried another mod that did that at phpbb but could'nt get it to work.

Another problem with your solution is when the field is obligatory at registration. Then when a user go to edit his porfile, it will keep looking for it !!!

I am still looking for a solution on how to

1) Have several obligatory and several non obligatory fields at registration
2) Choose which fields you want to display or not on a user profile

If someone has an idea on how to achieve this ?

Cotp
Cotp is the admin of a forum cinema
______
creation of site wordpress
User avatar
cotp
Translator
Translator
 
Posts: 135
Joined: 21 May 2007, 12:39
Location: Paris
Gender: Male

Re: Custom Profile Field edit only by Admin/Moderator [RC4]

Postby Drakeo » 10 Sep 2007, 02:21

I was thinking about this and say you have a group which you want to have extra fields.

Would you beable to set this so its just that group that has extra fields and that they can edit?
Drakeo
Crewman
Crewman
 
Posts: 1
Joined: 05 Sep 2007, 14:46
Gender: Male

Next

Return to Memberlist and Profiles

Who is online

Users browsing this forum: Tbot [Bot] and 3 guests