create new tag
, view all tags

PersonalInfoAddOnDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on PersonalInfoAddOn contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Feedback on PersonalInfoAddOn

-- ArthurClemens - 04 Mar 2007

Thanks Arthur for sharing this add-on!

-- PeterThoeny - 05 Mar 2007

Thanks for this very nice add-on!

After installation, the link in the add-on topic to _PersonalInfoAddOn/PersonalInfoHome doesn't work ("This web does not exist"). Am I doing something wrong?

Also I have a problem with adding/changing a user picture. That problem is decribed in PersonalInfoAddOnChangePictureProble. I hope someone can help me out!

-- JosMaccabiani - 07 May 2007

Although it's not too difficult, I'll document how to use the PersonalInfoAddOn when you're using Ldap authentication: PersonalInfoWithLdap

-- JosMaccabiani - 01 Jun 2007

Thanks Jos for this contribution!

-- ArthurClemens - 01 Jun 2007

Just as a suggestion Arthur, we have a bunch of people who essentially WikiWord names. Things like McArthur. I noticed it autolinking on the personal user page in the PersonalUserInfo block that gets included.

I made the following two changes to take care of it. First in the PersonalInfoModules page I added to the DataRow else clause:

%STARTSECTION{"personalInfoDataRow" fieldName=%FIELDNAME% label=%LABEL%}%<tr>
<th> %label% </th><td> %IF{"defined editUserData" then="<input type='text' name='%fieldName%' id='%fieldName%' class='twikiInputField' size='40' value='%FORMFIELD{"%fieldName%" topic="%BASETOPIC%" format="<nop>$value"}%' />" else="%FORMFIELD{"%fieldName%" topic="%BASETOPIC%" format="<nop>$value"}%" }% </td>

Then in the PersonalInfo section I added formatting to the name fields in the heading:

%STARTSECTION{"personalInfo"}%%INCLUDE{"PersonalInfo" section="personalInfoStyle"}%<div class="pIparagraphFrame personalInfo">
---+!! %FORMFIELD{"FirstName" topic="%BASETOPIC%" format="<nop>$value"}% %FORMFIELD{"LastName" topic="%BASETOPIC%" format="<nop>$value"}%

-- JasonJystad - 09 Aug 2007

I have just a few quick questions. I am interested in using the add-on as a type of external contact database for my organization's site, but I have no use for the contact images. Can this be deployed without them? Also, are there any limits to the fields that can be added for each contact? Lastly, are all the fields searchable? Thanks in advance!

-- NyChojin - 22 Aug 2007

Yes, you can use it without images. You are able to change the display of a user block, so you simply omit the image parts. Which fields are used is also configurable. To have new fields searchable will cost you a bit of digging through the code.

-- ArthurClemens - 22 Aug 2007

Hi, we had a small problem with the AddOn. Some people who were registered a long time ago didn't have an e-mail address defined in .htpasswd file. The e-mails were defined in user topic metadata fieldname Email. When we start using PerlsonalInfoAddOn there was no more Email field in metadata which was replaced by WorkEmail. The result was that TWiki lost info about the user email and e.g. failed with mail notifications. To fix this I've translated all WorkEmail back to Email in Main web and all seems to work as expected now smile

-- JacekZapotoczny - 09 Nov 2007

In the PersonalInfoHome.txt bundled in the Distribution Archive, the options described for setting the view template include setting through web interface in the topic preferences. The docs direct the admin to use SET, but it should be Local, i.e Local VIEW_TEMPLATE = PersonalInfoUserView. Otherwise your PersonalInfo block will try to display on every page in the Main Web.

-- BryanEllsaesser - 13 Nov 2007

Thanks for the note, I will update the docs.

-- ArthurClemens - 13 Nov 2007

Hi, thanks for the add-on... but I do have a problem. When using Change Picture and uploading a file, the filename was somehow set to %FILENAME% and then sanitised to FILENAME. I tracked the problem to use of view rather than attach on the Upload a New Picture link in PersonInfoPictureViewTemplate. I changed:

href="%SCRIPTURL{view}%/%BASEWEB%/%BASETOPIC%?template=PersonalInfoPictureUploadView">%MAKETEXT{"Upload a new one"}%</a></div><!--/piUploadNew-->%TMPL:END%
href="%SCRIPTURL{attach}%/%BASEWEB%/%BASETOPIC%?template=PersonalInfoPictureUploadView">%MAKETEXT{"Upload a new one"}%</a></div><!--/piUploadNew-->%TMPL:END%

but Attach.pm did not notice the template parameter. I made a trial fix, changing

        $tmpl = $session->templates->readTemplate( 'attachnew', $skin );
        $tmpl = $session->templates->readTemplate($query->param( 'template' ) ||  'attachnew', $skin );
It worked, but I't's not a complete fix and I don't know whether attach should honour template parameters.

-- JohnMurphy - 14 Nov 2007

I am experiencing the FILENAME problem described by JohnMurphy above trying to get the Plugin to work on TWiki 4.0.5.

-- MarcoPoli - 15 Nov 2007

Hi Arthur, I'm using your add on with NatSkin and I can't change or add user pictures as there's no save button available. Any thoughts?

Another big problem I'm facing is the email field. Once I got an @ in it the whole layout is messed up. Really weird.

-- CarloSchulz - 23 Nov 2007

Which version do you use? In any case I have never tested it on nat skin.

-- ArthurClemens - 23 Nov 2007

The one for 4.1. I will try with the 4.2 version and see what happens...

-- CarloSchulz - 24 Nov 2007

The one for 4.1 is specific to pattern skin. The 4.2 version is more generic and should work with other skins. But you'll need TWiki 4.2 of course.

-- ArthurClemens - 24 Nov 2007

Ok, the 4.2 version works slightly better but still not good enough. Seem as by now it doesn't work using NatSkin.

-- CarloSchulz - 25 Nov 2007

Using TWiki 4.2 RC1, found the same problem described by John. To fix I did this:

Add the following lines to file PersonalInfoPictureUploadViewTemplate :

  <td align="right">
   %MAKETEXT{"Attach new file"}%
   <input type="hidden" name="filename" value="" />
   <input type="file" name="filepath" value="" size="50" />

-- CarlinhosCecconi - 30 Nov 2007

I have fixed the issue with the picture upload (version TWiki 4.2).

-- ArthurClemens - 30 Jan 2008

I'm using the 4.2 configuration of the latest PersonalInfoAddOn release. I also have the ImagePlugin installed. I have been having problems with the image.css file included in the ImagePlugin overriding the defaul settings of what I assume is the PersonalInfoLayoutModules style settings. My picture and data block is floating off to the right off of the page. If I remove image.css as attached to the ImagePlugin then everything is as I would expect. However, then the image gallary search function (facebook) doesn't render correctly as all of the pictures are very small. I have done some searching for help on twiki.org, but I haven't seen what modifications to image.css may be needed to play nice with PersonalInfo?

-- BryanEllsaesser - 08 Feb 2008

I came across this just yesterday. In topic PersonalAddOnStyles PersonalInfoLayoutModules I have added the IMAGE parameter align="none" (2 places).

-- ArthurClemens - 08 Feb 2008

Okay, I'll give that a try. Just deleting image.css attached to ImagePlugin ultimately fixed my problem, but I may need that style information for other uses of images outside of PersonalInfoAddon Disregard my 2nd point about the facebook searching rendering small pictures. That was due to an error in my config and had nothing to do with the css conflicts.

This is a great addon by the way. My users really like it now that I have worked it in with LdapContrib and NewUserPlugin.

-- BryanEllsaesser - 08 Feb 2008

Arthur, can you be more explicit about how to fix the floating picture and data block? I have the same problem that Bryan describes, but the fix is unclear to me.

-- DeanSpicer - 08 Feb 2008

I am not surprised as I got the topic name wrong (corrected above) smile

In topic PersonalInfoLayoutModules, replace section imagePluginImage with:

%STARTSECTION{"imagePluginImage"}%%IMAGE{"%IF{"defined imgName and '%imgName%'!=''" then="%imgName%" else="silhouette.gif"}%" warn="off" align="none" topic="%IF{"defined imgName and '%imgName%'!=''" then="%imgTopic%" else="PersonalInfoAddOn"}%" web="%IF{"defined imgName and '%imgName%'!=''" then="%imgWeb%" else="%TWIKIWEB%"}%" size="%IF{"defined imgWidth" then="%imgWidth%"}%x%IF{"defined imgHeight" then="%imgHeight%"}%" %IF{"$imgType='nolink'" then="format=\"<img border=\\"0\\" align=\\"middle\\" src=\\"$src\\" alt=\\"$alt\\" width=\\"$width\\" height=\\"$height\\" longdesc=\\"$desc\\" title=\\"$title\\" />\" "}% title="%IF{"defined imgTitle" then='%imgTitle%' else='"%MAKETEXT{"Enlarge"}%"'}%" }%%ENDSECTION{"imagePluginImage"}%

I have added a parameter align="none" in there.

-- ArthurClemens - 08 Feb 2008

I have updated the add-on with above code.

-- ArthurClemens - 08 Feb 2008

I'm using TWiki 4.2 with this plugin and NatSkin. I experience issues in uploading pictures, the same FILENAME woes and blank upload page issues described above. I also get a blank page when attempting to choose a picture. I worked around it by swapping skin back to pattern, changing the picture, and then swapping back to nat.

-- JonathanManning - 23 Apr 2008

I am also unable to alter personal data- whatever the skin is set to

-- JonathanManning - 23 Apr 2008

Can somebody tell me how to use this AddOn, i could not find any HowTo or examples of usage (only nice pictures). Thanks

-- RomanTsubin - 08 Jul 2008

See the installation instructions. Then after installing, go to the web you copied the files to, and look at the topic PersonalInfoHome.

-- ArthurClemens - 08 Jul 2008

By some strange reason, i don't have PersonalInfoHome installed. Thanks anyway, i found instructions using google.

-- RomanTsubin - 09 Jul 2008

Hi there,

I encountered a lot of problems with this AddOn on my current setup, several comments above seem familiar though (TWiki 4.2 + natskin, all necessary plugins, dependencies):

After installing, I ran through PersonalInfoHome and added the %META:PREFERENCE{}% for existing/new users. If I understand correctly, this should automatically display the extended UserForm? I can only get/(force) that to appear by adding %INCLUDE{"PersonalInfo" section="personalInfo"}% to my userTopic. I can then edit the data and select existing images, but modifications are not saved. When uploading a new image (there is no upload/save button btw, so I hit return) I also get the FILENAME error (JohnMurphy).

Any pointers are most welcome! Thanks, P.

-- PlivusMassi - 01 Aug 2008

Hello, I have an empty picture shown on PersonalInfoFaceBook, belonging to the Main.NewUserTemplate. It was recommended by the documentation to move this template to the Mainweb in order to prevent it from beeing replaced during an update. Is there a solution to hide this Template-Picture?

-- JensHofmann - 02 Oct 2008

Update: Meanwhile I found a workaround for the above issue: I added NewUserTemplate to all exclude= in PersonalInfoModules. I know that this is not the right place for customisations, but it works.

-- JensHofmann - 08 Oct 2008

This is a great addon but I have one issue. Our users' info includes twiki-words ( e.g. we have a field called "Direct reports" where users list the twiki-names of who reports to them ). If you edit the form using the top-right edit then all is ok. If you use the Personal Info's own "Edit data" ( next to "Change picture" ) then the format is lost as the twiki-words are surrounded by much twiki formatting ( which I don't want ! ). As a work around I am trying to disable/remove the "Edit data" but without success so far. I'm not clear whether JasonJystad answered this above as his suggested code seems much smaller than the current code. Any help would be great. Thanks.

-- GarryFerguson - 30 Oct 2008

When i try to select profile picture, it stays the same(Change Picture).

I also can't save any data in form(Work phone, Work phone, mobile, E-mail Location ). I get this error:

The save script can only be called with POST method. Example:

<form name="new" action="%SCRIPTURLPATH{save}%/Sandbox/" method="post"> ... </form>

If you are developing a TWikiApplication, see TWikiScripts for a description of the correct parameters.

What is the problem here? I test script in Main/PersonalInfoHome I use LDAP to login

-- BostjanTovornik - 2011-06-10

As you discovered, this add-on is not working with the latest release. It has not been tested (250+ extensions have been tested already).

Follow the instructions of the error message, e.g. search for all <form ...> in the add-on and add a method="post" parameter to it.

FYI, the upcoming TWiki-5.1 release has much nicer user profile pages, see proposal MoreVisualUserHomepages with screenshots as implemented. With the new profile pages there is a lesser need for this add-on.

-- PeterThoeny - 2011-06-11

I searched all "<form>" and all have method="post". So don't know what else so check. Are there some form templates or something that i didn't find and should check?

-- BostjanTovornik - 2011-06-13

If this is important to you and you need timely help I recommend to engage one of the TWikiConsultants.

-- PeterThoeny - 2011-06-16

Edit | Attach | Watch | Print version | History: r46 < r45 < r44 < r43 < r42 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r46 - 2011-06-16 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.