User data module
serbanc
Joined: 2006-05-19
Posts: 314 |
Posted: Sat, 2007-09-29 21:07 | |||
Dear all, to use: configure from site admin the fields, same rules as for CustomField module. The only difference is the option of textarea fields (specify more than 1 at height). The module will create a "User Data" link in User Admin view. Any suggestion/comment would be appreciated. [S: attachment deleted; updated version on www.e-poze.ro/downloads] serbanc - www.e-poze.ro
|
||||
Posts: 27300
serbanc,
Thanks for the contribution.
I get a error when tying to activate the module:
I am using 2.3SVN so there might have been some DB character set changes with this version. I don't know much about the DB so can't offer much help.
Once I get it installed I will create a skeleton codex page and then you or users can update the codex page for installation, operation and usage.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 314
I did not tested with 2.3SVN.
I assume you use MySQL....
serbanc - www.e-poze.ro
Posts: 27300
Sorry, I should have done what we in the team tell you to do:
I will test on another host later today.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 314
Any news/feedback ?
I also made some changes to the members module to allow the display of such extra info in the Member Profile page.
serbanc - www.e-poze.ro
Posts: 15
Hi Serbanc,
You still working on this? I would like to contrib if I can, but would like some more info. I need a way to add more userinfo and want to make a nice looking member info page. Maybe we can work together?
Hop eto hear from you. Eljee
Posts: 314
Yeap, working.... actually finished and put live on my site.
I must admit that I am close to zero at design part .
I would be happy to work together.
summary:
please take a look on the files at www.e-poze.ro/g2mods/
you will find there 4 files:
1. userdata.tgz - provide more userinfo
2. userphoto.tgz - provides the option to the user to upload a photo or choose from a library
3. member.tgz - complete module modified so that members module to show the info from the above modules. all changes are marked with /* Serban ... */
4. comment.tgz - same as 3.: allows showing the picture of user near to the comment
in the userdata/userphoto modules you will find some scripts to migrate from joomla's community builder database - usefull only as examples.
so, test those and I am waiting for your feedback.
serbanc - www.e-poze.ro
Posts: 314
Any feedback ? working ? not working ?
serbanc - www.e-poze.ro
Posts: 27300
I was able to install the module after making this change:
# UserDataMap CREATE TABLE DB_TABLE_PREFIXUserDataMap( DB_COLUMN_PREFIXuserId int(11) NOT NULL, DB_COLUMN_PREFIXfield varchar(128) NOT NULL, DB_COLUMN_PREFIXvalue varchar(255), INDEX DB_TABLE_PREFIXUserDataMap_75985(DB_COLUMN_PREFIXuserId) ) DB_TABLE_TYPE /*!40100 DEFAULT CHARACTER SET utf8 */;
in classes/GalleryStorage/schema.tpl
I will now proceed with the rest.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 314
developed a search add-on.
unfortunately, it requires changes to search module .tpl files.
serbanc - www.e-poze.ro
Posts: 9
Thanks serbanc for your contribution, very appreciated. keep up the good work!
John
_____________________________
Gallery Tutorial | Gallery Skins
My Websites Guide
Posts: 6
I have some feedback!
I'm very new to all of this, but I have Gallery 2.2 set up at bluehost.com and installed your module.
The comments didn't work - in fact I had to uninstall and reinstall comments to get regular comments working.
Everything else works fine - I've encountered one bug with multiple line user data fields: Whenever I set something to multiple lines (rows > 1), it shrinks the textarea box to a really narrow column. I fixed this by hard-coding in a column width, so maybe it's not registering the variable value correctly?
Also, for multi-row fields, it doesn't seem to process line breaks correctly. When I view a member's page, everything appears on one line.
That's all, but thanks for all of your work! I'm very new to Gallery (set it up yesterday) and web in general, so it really amazes me what you can do!
Posts: 314
Thank you very much for your feedback.
I will take a look onto the problems you mention and try to solve them.
EDIT - userdata module does not interfere with comments module.
but userphoto does. if you did not used userphoto, then the error might not be in other place.
serbanc - www.e-poze.ro
Posts: 17
Hi
I might be stupid here and it is 1am after a long day.
I have users who want to display the url to their website and I thought that this would be just the thing. It installed fine and I can add a field to the users data. When the user goes into their account, they can add the url into the field but I cant see it anywhere. If I go to the member profile it does not show.
Idealy I would like to include this additional field under the owners name in the photo detail. Does anyone have any idea how I would do that or even where I would start to look.
Thanks
Posts: 314
the module has been designed so that it displays the supplementary info in members module - there is a mod for this.
I will make a tar from members module as it is today on my site so that you can use it.
take it from httpd://www.e-poze.ro/downloads - in a couple of minutes
serbanc - www.e-poze.ro
Posts: 2
1)when i register it takes A lot of time?
2)it shrinks the text area box to a really narrow column. I fixed this by hard-coding in a column width, so maybe it's not registering the variable value correctly?
=====================================================================================================================
leonold
Addiction Recovery Michigan
http://www.addictionrecovery.net/michigan
Posts: 2
it shrinks the text area box to a really narrow column. I fixed this by hard-coding in a column width, so maybe it's not registering the variable value correctly?
=====================================================================================
leonold
Addiction Recovery Michigan
http://www.addictionrecovery.net/michigan
Posts: 17
Hi Serbanc
Thank you very much. I have downloaded it and will try it tonight. Hopefully I will soon know enough to help others and to contribute to this great app.
By the way I really like your site and how you have pulled in elements from gallery into what looks like a normal site at first. Did you use the html module for that?
Jonathan
Posts: 314
userdata: yeap, noticed that is a problem with textarea. will try to lokk over it
for my site, I am using htmlblock as the frontpage, with the mods explained in the wiki.
serbanc - www.e-poze.ro
Posts: 17
Hi Serbanc
Thank you so much. This really works great. I also added the user photo with it and am very impressed. I am now trying to create a link with the photo owner displayed at the top right ( near where you can choose the image size in the classic template) so that people can click on it and be taken to the users details in the members area if you know what I mean.
I presume that in the template files I can put in a simple href link to the user but I dont know what the code is to call the user.
Thanks
Jonathan
Posts: 314
<a href="{g->url arg1="view=members.MembersProfile" arg2="userId=`$item.owner.id`"}">see user's profile</a>
please note that I am using a modified members module, in order to take advantage of userdata, userphoto, usermessages, friends aso.
that version is available at www.e-poze.ro/downloads/
Enjoy!
serbanc - www.e-poze.ro
Posts: 17
Hi Serbanc
Thanks for pointing me in the right direction. I am already using your userphoto, userdata and usermessages along with the modified members module and they are all great. I am still learning this.
I tried that link but it returns this:
http://www.globalphotodiary.com/main.php?g2_view=members.MembersProfile&g2_userId=
It does not seem to find the user number. The link itself is right as if I just add a user number to the above link in the address bar it works fine. It is the call to the user id that is not right. I am going to play around with it a bit to see if I can get it right.
Thanks
Jonathan
Posts: 314
try $theme.item.owner.id then.
serbanc - www.e-poze.ro
Posts: 17
Hi Serbanc
Thank you a thousand times. That works perfectly, I really appreciate your assistance.
Regards
Jonathan
Posts: 314
I am glad that it helped you.
I also saw that you are using G2.3, so nice to see that my modules are working on the new version
serbanc - www.e-poze.ro
Posts: 27300
jonathanb,
Are there codex pages for the userphoto, userdata and usermessages modules? If there is are they correct or need clarification? If not let me know and I will help you create them so you can contribute by adding your findings to assist others.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 17
Hi Dave
I just used the downloads kindly provided by Serbanc on his site. I had no problems with the modules, they worked straight away and the only issue I had was not knowing how to add a link to the users profile under the photo owners name but again Serbanc came to the rescue and provided the code needed.
The only other problem I had was that when I downloaded the modules, windows automatically saved them as .tar and not .tgz so when I uses winrar to unzip them I got one text file with everything in it. After a bit of head scratching I realised that if I renamed them to .tgz they extracted correctly.
There are already links to these under the user modules in the downloads area.
Jonathan
Posts: 7
Serbanc, I had to add/change the code in MembersList.inc to get the profile data in MemberList.tpl.
MemberList.inc add/replace:
Now you can get the profile userdata in MemberList.tpl in the following way (like Serban does it in MembersProfile.tpl):
Posts: 7
Serbanc, your userdata modul and rewritten member module are very nice new features for Gallery2. I play around with it ...
So now: I was not able to change my theme.inc and album.tpl to show the member profile with userdata (of the album owner). I want to show the user profile next to the album. Is there any solution for this? Has someone change the member callback or does someone have a solution to integrate member userdata in standard theme album.tpl/theme.inc?
Posts: 314
You have to do the same as above in the theme.inc as you did before.
I have limited computer access, so I cannot provide additional info at this time.
serbanc - www.e-poze.ro
Posts: 7
Yes, thank you. With little help of a friend and a small change it works now. I had to copy the whole stuff from memberProfile.inc into theme.inc, changing the line with userId:
Copied the code of your MemberProfile.inc to theme.inc and after
i have new/changed line to work with ownerid:
$userId = $theme['item']['owner']['id'];
In album.tpl I can use the same code you provided for example in MemberProfile.tpl.
Thanks Serbanc, your userdata makes Gallery2 richer!
Posts: 24
I am interested in using this plug-in, but I'm confused why you have listet two files in your downloads-folder: members-17.07.2008.tgz and members.tgz
The one with the fewer files in it (members-17.07.2008.tgz) seems to be the newer one. But the archive contains less files (many!).
Is members-17.07.2008.tgz supposed as an "update" or stand-alone package? (if stand-alone how comes members.tgz contains many more files, especially concerning localization?)
kind regards
keen
Posts: 314
for your purpose, you may use whichever you want.
serbanc - www.e-poze.ro
Posts: 24
That doesn't exactly tell the differences between the two, so what'S the difference? ;-)
btw: I have just added the user-details right now, not your modified members-thingie yet.
Another comment: I think I found a bug in your source-code:
Please fix rows="$af.height" cols="$af.width" to rows="{$af.height}" cols="{$af.width}", otherwise the textareas get messed up when using more than one line in the options.
kind regards
keen
Posts: 314
thx. I will correct the error.
serbanc - www.e-poze.ro
Posts: 24
thanks to you for providing this nice add-on
Posts: 314
bug corrected. thx commander.
new version available at www.e-poze.ro/downloads
Regards,
S
serbanc - www.e-poze.ro
Posts: 5
thankyou thankyou thankyou
This had me totally stumped
Posts: 24
I'd like to make a suggestion:
Regarding the database, please change the value-column to a type which allows more data, e.g. <member-type>TEXT</member-type> to make it use sth like STORAGE_TYPE_TEXT instead of STRING=>LARGE (resulting in VARCHAR(255) which is not that much).
I hacked that into the map.inc now with an editor (with a useful site for others without a linux by hand) and I think this is a very useful modification for other people who want to offer a "pimped" memberpage which allows some kind of free-text-input "AboutMe"-field or similar for the users. (so this is only needed for the content-field, not the name of the fields, which result in VARCHAR(128), I think that one is fine)
I made a German translation for your module, feel free to put it in your downloadable archive
As I think there was a change in the members-module by you too, I will add this translated one too.
And I also solved the issue with the ignored carriage-return/line-feed in your modified member-module. In the MembersProfile.tpl change line 63 to
<td>{$af.value|markup}</td>
That's all (though it took me hours to find out about this, as I am not familiar with all this in any way, neither php nor that whole smarty-stuff)
I hope that helps a bit.
regards
keen
Posts: 314
Thx comander_keen!!!
I will update the files as soon as I will have a little bit of time!
serbanc - www.e-poze.ro
Posts: 2
i seem to be having problems extracting all of your modules. all i get is a single file.
i have tried several different software packages. do i need something specific?
Posts: 2
finally found a solution files downlaoad as .tar have to rename them as.tgz then unpack twice
Posts: 20
How do I install this module?
Sorry for the newbie question.
thanks!
Posts: 314
download the .tgz file from www.e-poze.ro/downloads
then copy to your server in modules/ directory, unpack - carefull if windows: problems extracting .tgz files
install using Admin interface -> modules -> install
then configure, then use
please note that in order to fully use this module, you have to make some modifications to members module, also in /downloads section of www.e-poze.ro
Regards,
S
serbanc - www.e-poze.ro
Posts: 9
This module is great, but would be much more useful if integrated directly into the registration module in the future. It's not easy to convince users to add extra info after they've already registered in some contexts. It would be nice if you could add custom fields to the registration tpl and then choose if they are required fields or not, too.
I'm just starting to tinker around with all this deeper stuff. Maybe someday I'll take a stab at it myself.
Thanks!
Posts: 314
agree with you. it equires modifications to registration and users data.
in order not to modify the core modules, I decided to add an extra module.
maybe such a functionality (or expandability) will be included in the nex versions of G
serbanc - www.e-poze.ro
Posts: 41
I added this lines from the memberProfile.inc at theme.inc
And at photo.tpl then I want to user for example:
But it doesn't work, The problem seems that the declaration of the theme.inc isn't correct.
Someone can help with that?
Thanks!
Posts: 6
Hi! How to modify module to show more text on some filelds on userpofile?
Posts: 24
Have a look at my post "Thu, 2009-03-12 16:42", I've updated the link to the tutorial. That tutorial in combination with my post should describe everything needed to make the required changes.
--
real legends never die - Win2k support 'til 2010! \o/
Posts: 40
I'm having problems with the User Photo module. When I try to activate new users in Site Admin Registration, I get this:
I also get this in in the php_error.log:
Any ideas?
I have User Photo/User Data/Members and Serbanc's search mod activated.
Posts: 2
usermessages module
hi.My problem is Turkish and Bulgarian characters are not showing on my messages. ş Ş ı İ ö Ö ç Ç ğ Ğ ü Ü and other bulgarian characters don't show message system. What could be the solution? Can you help? My english not good sorry.thx.