Previous Thread
Next Thread
Print Thread
Rate Thread
#228636 12/02/2002 4:57 PM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Mod Name / Version Configurable User List 1.1
Description Allows you to show the fields you want in the Userlist. Configuration is available from the admin section and the configuration file is created in your threads path.
Working under UBB.threads 6.1
Any pre-requisites None
Author(s) dimopoulos
Credits ubbdev.com who taught me how to do things in php and ubb threads
Demo None.
Files Altered admin/menu.php
Database Altered No
New Files configcul.inc.php, showmembers.php, templates/default/showmembers.tmpl, admin/editconfigcul.php, admin/doeditconfigcul.php, templates/default/editconfigcul.php
Any other info Please report any problems you might have and I'll try to fix them as soon as possible.


INSTALL
Step 1
Open the file admin/menu.php

Step 1.1: Find
code:

<a href="{$config['phpurl']}/admin/edittheme.php?Cat=$Cat" target="mainFrame">
Edit theme settings
</a>



BELOW it add:
code:

<br>
<a href="{$config['phpurl']}/admin/editconfigcul.php?Cat=$Cat" target="mainFrame">
Edit Configurable User List settings
</a>



Step 2: Backup your showmembers.php, templates/default/showmembers.tmpl files
Step 3: Upload the doeditconfigcul.php and editconfigcul.php in your admin folder
Step 4: Upload the configcul.tmpl and showmembers.tmpl in your templates/default folder
Step 5: Upload the configcul.inc.php and showmembers.php in your threads folder
Step 6: Give write permissions to the configcul.inc.php file

That's it.

If you need to show/hide fields, all you have to do is to go to the admin section and click the Edit Configurable List Settings link.

The configuration allows you to specify a string for the column header, its width, alignment and its type. The types are:

Profile Links the value of the field passed to the showprofile.php script
Mail Translates the value of the field to a mailto hyperlink
URL Translates the value of the field to a URL hyperlink
ICQ Translates the value of the field to an ICQ hyperlink (picture) provided that it is selected in the main configuration file
Date Translates a number from the database to a valid date (unixdate to string)
Number Translates a number to a number with the thousands separated by commas
String Leaves the field value as it is

Enjoy!

Edit New version of the modification with better configuration script
Attachments
61366-Configurable Userlist 1.1.zip (0 Bytes, 21 downloads)

Last edited by dimopoulos; 12/09/2002 8:10 PM.

Nikos
Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Thank you for this mod, I'll install it for sure as soon as I get the time.

Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
dimopoulos,

Thanks! This will come in handy. I previously removed the showmembers, since I did not want to provide a way to harvest the information in bulk. Now with limited display, I feel better about having the option available to Users.

Once installed the config.inc.php gave me an error at the top of each page

$config['memberlistsort'] = "U_Username-Username-U-10|U_Status-Status-U-5|U_Homepage-Homepage-U-10|U_TotalPosts-Total Posts-U-5|U_Extra1-ICQ Number-U-5|U_Registered-Registered On-U-10";

Any ideas? I do have some special fields in the members profile, would this throw it off?

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Damn! I knew I forgot something!

The error is possibly occurring because there is no sort defined in your configuration variable. If you change the
code:

U_Username-Username-U-10|


to
code:

U_Username-Username-A-10|


it should work. I will add a new check to ensure that if there is no sort, the first field will always allow the sorts.

I am working on an updated version since (now that I am fully awake ) I haven't put checks if the Username exists in the configuration script, which is essential for the Userlist Sort modification.

I have updated the files on the first post.

Warm regards

Nikos


Nikos
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Just to let everyone know once more that I have updated the top post with the new version of this modification.

The configuration array is stored in a new file and it is set from the Admin area.

Please report any bugs or if I forgot anything.

Warm regards

Nikos


Nikos
Sponsored Links
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Some screenshots of the new version.

cul1.jpg is the admin area - configuring the user list
cul2.jpg is the output.

Warm regards

Nikos
Attachments
61768-culscreenshots.zip (0 Bytes, 29 downloads)


Nikos

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:
Shock Hosting
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,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1336
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 3
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)