Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-11-25 21:39:01

petervcook
New Member
Registered: 2008-11-25
Posts: 5
Website

pvc_users_info - User Profile and Contact Info Plugin

pvc_users_info provides the ability to create a profile for each author on your site. These includes assigning a job title, personal web site address (uri/url), nickname, slogan, bio, phone and fax numbers, start date and image for each user. All of this information is stored safely in the database and can be called by adding the following tags to forms:

<txp:pvc_author_articles />
<txp:pvc_author_bio />
<txp:pvc_author_cell />
<txp:pvc_author_date />
<txp:pvc_author_email />
<txp:pvc_author_fax />
<txp:pvc_author_firstname />
<txp:pvc_author_image />
<txp:pvc_author_lastname />
<txp:pvc_author_nickname />
<txp:pvc_author_phone />
<txp:pvc_author_slogan />
<txp:pvc_author_title />
<txp:pvc_author_web /> <txp:if_pvc_author_web />

Tag attributes are outlined in the help

This plugin used heavily on Cre8tiveGroup.com. It powers the staff pages as well as the bylines at the bottom of articles.
Version History

Version 1.3 – 10/20/2008 – Allowed TXP tags in bio and added pvc_if_author_web – (User contributed from Charlie)
Version 1.2 – 09/05/2008 – Fixed SQL errors and pvc_users_email
Version 1.1 – 07/14/2008 – Added pvc_users_firstname and pvc_users_lastname
Version 1.0 – 04/06/2008 – First Release

Download: http://www.petervcook.com/cmsplugins/pvc_users_info-1.3.zip

Offline

#2 2008-11-25 22:20:06

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: pvc_users_info - User Profile and Contact Info Plugin

After installing the plugin shows in the plugins tab with the name compile_pvc_users is this correct?

Accessing the User Profiles tab gives errors in Textpattern version 4.0.6 (r2969).

Warning: Unknown table 'txp_pvc_users_info' in field list update mytxp_txp_pvc_users_info set txp_pvc_users_info.name = "matt" where user_id = "1" in /home/myaccount/public_html/mysite/textpattern/lib/txplib_db.php on line 81

Warning: Unknown table 'txp_pvc_users_info' in field list insert into mytxp_txp_pvc_users_info set user_id = "1", txp_pvc_users_info.name = "matt" in /home/myaccount/public_html/mysite/textpattern/lib/txplib_db.php on line 81

Notice: Undefined index: date in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 176

Notice: Undefined index: name in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 185

Notice: Undefined index: imageid in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 197

Notice: Undefined index: email in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 203

Notice: Undefined index: phone in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 205

Notice: Undefined index: fax in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 208

Notice: Undefined index: cell in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 211

Notice: Undefined index: RealName in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 216

Notice: Undefined index: name in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 216

Notice: Undefined index: title in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 218

Notice: Undefined index: bio in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 222

Notice: Undefined index: web_title in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 232

Notice: Undefined index: web_uri in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 236

Notice: Undefined index: nickname in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 244

Notice: Undefined index: slogan in /home/myaccount/public_html/mysite/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 248

Last edited by MattD (2008-11-25 22:23:34)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2008-11-25 23:10:09

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

Re: pvc_users_info - User Profile and Contact Info Plugin

Why is the plugin text file inside zip? It’s just small text-file, so why?

Edit: Bugged it for 1 minutes. Some bugs to report:

  • Many double doSlash(es) (using doslash inside fetch(); it already uses it). This will cause unwanted results if strings includes escaped characters.
  • Config file isn’t exactly used anymore so much anymore, so you should use txp_prefs table instead $txpcfg array.
  • Some db checks are nice, but kinda unessasery. They do add backwards compatiblity, but server’s defaults are usually correct by default.

Nice job with the plugin. Keep it up :)

Last edited by Gocom (2008-11-26 12:19:49)

Offline

#4 2008-11-26 19:29:27

petervcook
New Member
Registered: 2008-11-25
Posts: 5
Website

Re: pvc_users_info - User Profile and Contact Info Plugin

@MattD It should actually be pvc_users_info That was due to an error in my recently upload. Try redownloading the problem has been fixed.

@Gocom It is zipped so that the link is download as opposed to just opening it in your browser window.

Offline

#5 2008-11-26 21:16:09

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: pvc_users_info - User Profile and Contact Info Plugin

Peter, I still get the errors above. It looks like it creates the new table with my table prefix (mytxp_txp_pvc_users_info) but then doesn’t use the table prefix later on.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#6 2008-12-05 02:16:46

petervcook
New Member
Registered: 2008-11-25
Posts: 5
Website

Re: pvc_users_info - User Profile and Contact Info Plugin

@MattD sorry about that. I’ll probably have to do some pretty major updates to make sure everything is working in 4.0.7. I’ll address the DB error problems at that time.

Offline

#7 2009-01-16 13:17:58

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: pvc_users_info - User Profile and Contact Info Plugin

Hello,

a maybe not so important security issue.
A normal user can see and edit all other user profiles, the means also the administrators profile.
Is this intended?
Textpattern-Version: 4.0.7 (r3033)

Perhaps for a future release, it would be nice to integrate the zem_contact_reborn plugin, instead of showing email addresses directly.

Andreas

Last edited by whocarez (2009-01-16 13:26:33)

Offline

#8 2009-02-02 11:48:41

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: pvc_users_info - User Profile and Contact Info Plugin

This plugin is fantastic, but it would be better if it were more tightly integrated in with the default user panel, I mean you already have email address and username, would be possible to add to the standard user panel, instead of creating a new one?

Also what about being able to choose fields? So you create a new field, say called Favorite Game, and the tage would be:

<txp:pvc_author field=“favorite_game” />

Would allow us to have loads of different fields, that are more customed towards our own sites. x

Last edited by driz (2009-02-02 11:58:42)


~ Cameron

Offline

#9 2009-02-03 09:51:02

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: pvc_users_info - User Profile and Contact Info Plugin

@driz: This is a more flexible solution.

Offline

#10 2010-06-04 08:00:40

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: pvc_users_info - User Profile and Contact Info Plugin

guys, can someone show an example, how to use this plugin?
I created an article form , inserted tags, and how to show this form in a page?
with output_form or how?
thanks!

Last edited by Katalonian (2010-06-04 08:01:04)


<txp:txp_me />

Offline

#11 2010-06-06 18:43:28

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: pvc_users_info - User Profile and Contact Info Plugin

help pls…


<txp:txp_me />

Offline

#12 2010-06-06 20:05:19

petervcook
New Member
Registered: 2008-11-25
Posts: 5
Website

Re: pvc_users_info - User Profile and Contact Info Plugin

@Katalonian

Be sure to set up the profiles under Admin > User Profiles

Then just use the template tags like any other. See the help file for the full list of tags.

Offline

Board footer

Powered by FluxBB