Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2003
Posts: 160
ST
Offline
Junior Member
Junior Member
Offline
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?

Sponsored Links
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
ST
Offline
Junior Member
Junior Member
Offline
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
ST
Offline
Junior Member
Junior Member
Offline
Joined: Aug 2003
Posts: 160
so I can do this??

Code
<br />      $postrow[$i]['Registered'] = "";<br />      $postrow[$i]['Location'] = "";<br />      $postrow[$i]['filelink'] = "";<br />      $postrow[$i]['Rating'] = "";<br />      $postrow[$i]['UserStatus'] = "";<br />

To this:
Code
<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 />


Sponsored Links
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
ST
Offline
Junior Member
Junior Member
Offline
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.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)