PDA

View Full Version : [mini-hack] Hidden profile fields viewable by admins & mods IN profile.


EvilLS1
04-17-2003, 10:00 PM
I decided to add a couple of custom profile fields that I'd like to keep hidden from regular members.

When adding a new field in the admin control panel it says:

Field hidden on Profile? - Field only viewable by admins and mods


But I've found that it doesn't work as expected. The hidden field still can't be viewed by admins & mods when they click on someones profile.. To view the field you have to click on user options and then login to the control panel, which is more trouble than its worth IMO.

This mini-hack will fix that. It will allow admins, mods and supermods to view the hidden fields IN the profile. The fields will remain hidden for regular users.

Very simple hack (1 file edit).

Logik
04-18-2003, 05:28 AM
What would be the point of this hack??

EvilLS1
04-18-2003, 05:31 AM
Today at 06:28 AM Logik said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=383670#post383670)
What would be the point of this hack??

To make hidden profile fields viewable by admins and mods IN the profile itself. It saves you from having to click user options and logging in to the admin control panel to view the field. ;)

joeboo
04-18-2003, 05:56 AM
Today at 06:28 AM Logik said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=383670#post383670)
What would be the point of this hack??

Whats the point of over 100 un-useful hacks around here? Every hack will be useful to at least one person. Anyhow, thanks for sharing Evil :)

EvilLS1
04-18-2003, 06:02 AM
n/p joeboo . :)

I'm sure that everyone who has added hidden profile fields will know the exact purpose of this hack. ;)

Logik
04-18-2003, 06:40 AM
All i did was just ask a question. No need to get hostal on me. Ok?

Logik
04-18-2003, 06:40 AM
I was askin to see if i had any use for it.

Intex
04-18-2003, 08:18 AM
What would be the point in living? One mans rubbish is another mans gold to coin a phrase. I can personally think of loads of reasons for having these hidden fields.

Good hack Evil :cool:.


Today at 06:28 AM Logik said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=383670#post383670)
What would be the point of this hack??

sphinx
04-18-2003, 09:21 AM
looks good to me m8 thanks

Logik
04-18-2003, 08:52 PM
Hmm. I dont appreciate getting jumped at just for askin a simple question. To see if i had any use for it..

ArN
04-20-2003, 08:06 PM
This would come in handy for admin/mods to add notes to peoples profiles such as who have warned this user before, dates he was banned/unbanned, etc...nice hack!

almightyone
04-21-2003, 05:26 AM
logik it is explained to exact reason when they posted it you have common sense? use it

thanx for hack i myself have use for it as well :)

Logik
04-21-2003, 06:21 AM
Dont get no attitude. Thanks :).. I asked a simple question, and i wanted a simple answer. As easy as that. Dont come on here and get an attitude. thanks :)

Doubledoom
04-21-2003, 10:50 AM
Great hack thank you.

This works well with staff notes. This is something i have put on my board which allows mods/smods and admins to type notes into a profile field (which has been changed into a text area rather than a short line). The staff notes act as a record of members bad behaviour or when a mod has needed to record something about a member which we dont want the member or other members to see.

Previously, it was kept purely to the control panel but with this hack, it is now available to be seen in the profiles but the staff.

Thank you.

Snapperhaed
04-21-2003, 10:45 PM
Thanks!

EvilLS1
04-22-2003, 02:11 PM
Y/W fellas. Glad to see a few of you found it useful. :)

Tungsten
04-23-2003, 01:25 AM
Yesterday at 01:21 AM Logik said this in Post #13 (https://vborg.vbsupport.ru/showthread.php?postid=385012#post385012)
Dont get no attitude. Thanks :).. I asked a simple question, and i wanted a simple answer. As easy as that. Dont come on here and get an attitude. thanks :)


Dude... calm down. No one was giving you any attitude from what I've seen of this thread so far. People just answered your question. :rolleyes:

I think this hack is excellent. I'll definitely be putting it on my vB installation. :)

floridaideal
04-25-2003, 11:18 AM
Thank you so much this has saved me a lot of time.

Each user on my forum has registered using there address now I don't have to keep logging into CP now, just one click.

Thanks again

Stu

EvilLS1
04-26-2003, 02:51 AM
y/w. glad I could help.

floridaideal
04-26-2003, 08:46 AM
Evil

Thanks again for this wonderful hack, but may I please ask if you can stop moderators being able to read the hidden profiles? Its just the hidden information I have should only be read by the admin of the forum (2 people) and no others as its quite sensitive.

Would really appricate if there is as this is a wonderful time saving hack....at the moment I could do with saving as much time as possible :)

Thank you

Stuart

EvilLS1
04-26-2003, 09:20 AM
Stuart,

In the first line of code (from the hack)

Replace this:

if (($bbuserinfo[usergroupid] ==5) || ($bbuserinfo[usergroupid] ==6) || ($bbuserinfo[usergroupid] ==7)) {


With this:

if ($bbuserinfo[usergroupid] ==6) {


That will do it.

floridaideal
04-26-2003, 03:08 PM
Thank you again thats wonderful.

Stuart

EvilLS1
04-27-2003, 05:54 AM
You're welcome. :)

Crank
01-26-2004, 11:56 AM
*clicks Install*
just what i was looking for.
also im setting this up to be used for refference feilds.
is there a way to make it so they cannot use the same name for a refference in the fileds
i will be having 3 refferences required.
this hack will be gr8 for allowing the staff to keep track of who was ref'd by who

EvilLS1
01-27-2004, 06:46 PM
Thank you. Not sure about the reference fields b/c I don't use those on my site.