Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-21 08:47:03

FatalCure
New Member
Registered: 2007-11-08
Posts: 4

[request] User profile pages

I can’t believe there isn’t a plugin for this already, I’m sure alot of sites would like to display biography’s for their writers, I know it is possible to do with a modified mem_self register but I don’t have the skills to do that.

I want to be able to list all registered users on a page, when there name is clicked it takes you to there profile page which displays a variety of custom forms, name, about me, etc which can be set up in registration with mem_self register aswell as through the admin>user page.

Example: http://www.uproar-n-rattle.biz/users/?q=FatalCure

I’ve been searching for weeks, haven’t turned up anything except above which is perfect however there doesnt seem to be any plugin that does this specifically, they had to mod a couple of plugins to get it to work, I don’t have the skills to do that so if anyone is interested in making something like this or similar I would appreciate it.

Cheers

Offline

#2 2007-11-21 09:54:51

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [request] User profile pages

You don’t really need a plugin. Just create a section for authors, let each author write his/her own profile in an article and set the section to your ‘author section’.

Offline

#3 2007-11-21 11:41:16

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [request] User profile pages

FatalCure, as I pointed out you earlier, I haven’t moded anything so specially. So how it shows the profiles?

  • mem_self_register makes the information of the profiles to ign_users-table in database.
  • then textpattern gps-function searches the profiles debending the value.

In the template:

<txp:php>
	echo mem_profile(
	array(
		'user' => gps('q'), // Name of the row inside ign_user-table
		'form' => 'userprofile', // The form
	));
</txp:php>

In the userprofile-form:

Username: <txp:mem_profile var="user_id" /> 
Real name: <txp:mem_profile var="RealName" />

So, you don’t even need a plugin if it’s only author – because they won’t need registeration form. So what I have modded? Well, how the profiles are outputed, extra rows and tables inside database and how it treats userprofiles. I can’t just find it, how you can’t make it work, even when mem_self_register-plugins documention descripes how to do profiles

But by default there ain’t any extra fields, those you have to do by yourself to the database.

PS. You have to use alternative ign_user-table instead of the default user-table, in ign_password_protect’s and mem_self_registeration’s options.

Cheers!

Last edited by Gocom (2007-11-21 11:45:31)

Offline

Board footer

Powered by FluxBB