Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
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
Code
 <br />           <a href="{$config['phpurl']}/admin/edittheme.php?Cat=$Cat" target="mainFrame"> <br />           Edit theme settings <br />           </a> <br />


BELOW it add:
Code
 <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!
Attachments
67402-Configurable Userlist 1.2.zip (0 Bytes, 8 downloads)


Nikos
Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Great! Thanks.

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
No problem Josh.

Just a note: In the dev site I intentionally put up a link to the ubbt_registered.tmpl to allow you to play around with it. In the real modification this will be an admin task.

Also the password and IP address fields are always ignored.

Nikos


Nikos
Joined: Sep 1999
Posts: 339
Kahuna
Kahuna
Offline
Joined: Sep 1999
Posts: 339
Has anybody done a user profile search for V6 PHP? I did one for PERL, but haven't gone in to convert it yet.


Muhammad
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Searching the profiles is a feature of JustDave's Integrated Index Page... most of us use that, so it really hasn't been needed as a stand alone.

Sponsored Links

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
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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,833
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)