Mod Name / Version Configurable User List 1.2
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.2
Any pre-requisites None
Author(s) dimopoulos
Credits ubbdev.com who taught me how to do things in php and ubb threads
Demo http://dev.niden.net 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.
Revision History 1.0 Initial Release
1.1 Altered the confiruration file to be an array based one
Created confiruration screen using the Admin Control Panel
1.2 Altered scripts to work with UBBThreads 6.2
INSTALL
Step 1
Open the file admin/menu.php
Step 1.1: Find
<br /> <a href="{$config['phpurl']}/admin/edittheme.php?Cat=$Cat" target="mainFrame"> <br /> Edit theme settings <br /> </a> <br />
BELOW it add:
<br /> <br> <br /> <a href="{$config['phpurl']}/admin/editconfigcul.php?Cat=$Cat" target="mainFrame"> <br /> Edit Configurable User List settings <br /> </a> <br />
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)
Status Shows the user status
Number Translates a number to a number with the thousands separated by commas
String Leaves the field value as it is
Enjoy!