|
|
Joined: Aug 2003
Posts: 160
Junior Member
|
Junior Member
Joined: Aug 2003
Posts: 160 |
I would like to make this happen. I want the user profiles only editable by admin, like in classic.
I have a few things on the profile that I dont want the users to be able to change.
Is there a mod for this?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
That'd be tough.... as it would prohibit them from being able to edit their password. The stuff you don't want them to change you'd have to move into a hidden field in the template so that they couldn't change it.
|
|
|
|
Joined: Aug 2003
Posts: 160
Junior Member
|
Junior Member
Joined: Aug 2003
Posts: 160 |
Oooh hidden field.... sounds neato.
How do I make things hidden?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
in HTML.... instead of like a text box or select box - use a hidden field.
<input type="hidden" name="whateverthefieldis" value="$WhateverValue" />
But there are several different types of fields there, including their avatar upload and privacy settings for who's online and PMs. so it really depends on what you are trying to hide or keep them from editing.
But that's probably the best way to go about it.
|
|
|
|
Joined: Aug 2003
Posts: 160
Junior Member
|
Junior Member
Joined: Aug 2003
Posts: 160 |
so I can do this?? <br /> $postrow[$i]['Registered'] = "";<br /> $postrow[$i]['Location'] = "";<br /> $postrow[$i]['filelink'] = "";<br /> $postrow[$i]['Rating'] = "";<br /> $postrow[$i]['UserStatus'] = "";<br /> To this: <br /> <input type="hidden" name=$postrow[$i]['Registered'] = "";<br /> $postrow[$i]['Location'] = "";<br /> $postrow[$i]['filelink'] = "";<br /> $postrow[$i]['Rating'] = "";<br /> $postrow[$i]['UserStatus'] = "";<br />/><br />
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
No - where are you finding that code.
I assumed you were talking about editing someone's profile
editbasic.tmpl
|
|
|
|
Joined: Aug 2003
Posts: 160
Junior Member
|
Junior Member
Joined: Aug 2003
Posts: 160 |
I was just guessing to be honest. The code was from showflat.template
I want the fields to remain displayed under their avatar, but not editable by the users.
I guess i'll keep fiddling with it... Thanks
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Edit in /templates/default/editbasic.tmpl Convert the fields that you don't want them to edit to hidden fields. It's standard HTML in there so it should be easier to edit. 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 5,834
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|