User data module

serbanc

Joined: 2006-05-19
Posts: 314
Posted: Sat, 2007-09-29 21:07

Dear all,
Just developed a module for allowing users to fill in more data.
First release, maybe bugs inside.
Extensively based on CustomField module.

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).
for choices, same usage.

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]
[admin: added new attachment; file from link above with Spanish and German translations added]

serbanc - www.e-poze.ro

AttachmentSize
userdata.zip28.12 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2007-09-30 04:19

serbanc,
Thanks for the contribution.

I get a error when tying to activate the module:

Quote:
Error (ERROR_STORAGE_FAILURE) : Error trying to run query: CREATE TABLE g2_UserDataMap( g_userId int(11) NOT NULL, g_field varchar(128) NOT NULL, g_value varchar(255), INDEX g2_UserDataMap_75985(g_userId) ); /*!40100 DEFAULT CHARACTER SET utf8 */

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

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Sun, 2007-09-30 09:45

I did not tested with 2.3SVN.
I assume you use MySQL....

serbanc - www.e-poze.ro

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2007-09-30 15:32

Sorry, I should have done what we in the team tell you to do:

Quote:
Gallery version = 2.3-svn core 1.2.20
API = Core 7.36, Module 3.8, Theme 2.6, Embed 1.2
PHP version = 5.1.4 apache2handler
Webserver = Apache
Database = mysqlt 4.0.27, lock.system=flock
Toolkits = ArchiveUpload, Thumbnail, Exif, jpegtran, NetPBM, LinkItemToolkit, Gd, Ffmpeg, ImageMagick
Acceleration = none/0, none/0
Operating system = FreeBSD host401.ipowerweb.com 4.11-STABLE FreeBSD 4.11-STABLE #0: Wed Apr i386
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
Rows in GalleryAccessMap table = 34
Rows in GalleryAccessSubscriberMap table = 236
Rows in GalleryUser table = 3
Rows in GalleryItem table = 235
Rows in GalleryAlbumItem table = 14
Rows in GalleryCacheMap table = 0

I will test on another host later today.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Wed, 2007-10-03 20:14

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

 
eljee

Joined: 2004-09-21
Posts: 15
Posted: Sat, 2007-10-27 12:10

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

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Sat, 2007-10-27 18:10

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

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Sat, 2007-11-03 18:53

Any feedback ? working ? not working ?
serbanc - www.e-poze.ro

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2007-11-03 22:11

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

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Mon, 2007-12-17 21:35

developed a search add-on.
unfortunately, it requires changes to search module .tpl files.

serbanc - www.e-poze.ro

 
blablo9

Joined: 2007-06-10
Posts: 9
Posted: Mon, 2007-12-31 21:12

Thanks serbanc for your contribution, very appreciated. keep up the good work!


John
_____________________________
Gallery Tutorial | Gallery Skins
My Websites Guide

 
TheDailyNathan

Joined: 2008-01-10
Posts: 6
Posted: Thu, 2008-01-10 03:40

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!

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Fri, 2008-01-11 00:14

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

 
jonathanb

Joined: 2008-06-23
Posts: 17
Posted: Wed, 2008-07-16 23:45

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

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Thu, 2008-07-17 07:33

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

 
leonold

Joined: 2008-07-17
Posts: 2
Posted: Thu, 2008-07-17 08:20

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

 
leonold

Joined: 2008-07-17
Posts: 2
Posted: Thu, 2008-07-17 08:25

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

 
jonathanb

Joined: 2008-06-23
Posts: 17
Posted: Thu, 2008-07-17 09:49

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

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Thu, 2008-07-17 10:15

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

 
jonathanb

Joined: 2008-06-23
Posts: 17
Posted: Fri, 2008-07-18 22:56

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

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Sat, 2008-07-19 17:00

<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

 
jonathanb

Joined: 2008-06-23
Posts: 17
Posted: Sat, 2008-07-19 17:59

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

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Sat, 2008-07-19 19:02

try $theme.item.owner.id then.

serbanc - www.e-poze.ro

 
jonathanb

Joined: 2008-06-23
Posts: 17
Posted: Sat, 2008-07-19 21:15

Hi Serbanc

Thank you a thousand times. That works perfectly, I really appreciate your assistance.

Regards
Jonathan

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Sun, 2008-07-20 07:57

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

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2008-07-21 14:25

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

 
jonathanb

Joined: 2008-06-23
Posts: 17
Posted: Mon, 2008-07-21 15:24

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

 
leine

Joined: 2008-07-20
Posts: 7
Posted: Mon, 2008-07-21 22:37

Serbanc, I had to add/change the code in MembersList.inc to get the profile data in MemberList.tpl.

MemberList.inc add/replace:

// Serbanc: load userdata module if present 
// Version Leine 07-22-08 for getting userdata in MemberList.tpl
        list ($ret, $module) = GalleryCoreApi::loadPlugin('module', 'userdata');
	if (!$ret) {
	    //module present, load helper class
	    	   	   	   	   	GalleryCoreApi::requireOnce('modules/userdata/classes/UserDataHelper.class');
             
	}

	$MembersList['users'] = array();
    foreach ($users as $user) {
        $MembersList['users'][$user->getId()] = (array)$user;
        list($ret, $userdata) = UserDataHelper::fetchFieldValues($user);
        if ($ret) { return $ret; }
        $MembersList['users'][$user->getId()]['userdata'] = $userdata;
     }

	$form['list']['totalUserCount'] = $totalUserCount;

	$template->setVariable('MembersList', $MembersList);

	list ($ret, $module) = GalleryCoreApi::loadPlugin('module', 'members');
	if ($ret) {
	    return array($ret, null);
	}

Now you can get the profile userdata in MemberList.tpl in the following way (like Serban does it in MembersProfile.tpl):

{foreach from=$MembersList.users item=user name=MembersListLoop}
  <tr>
    <td>
      <a href="{g->url arg1="view=members.MembersProfile" arg2="userId=`$user.id`"}">{$user.fullName}</a>
    </td>
    <td>Additonal Field</td>
     {foreach from=$user.userdata item=af}
        <td>{$af.value}</td>
    {/foreach}
    
  </tr>
  {/foreach}
 
leine

Joined: 2008-07-20
Posts: 7
Posted: Tue, 2008-07-22 02:10

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?

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Tue, 2008-07-22 09:41

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

 
leine

Joined: 2008-07-20
Posts: 7
Posted: Tue, 2008-07-22 10:37

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

if (!$result) {
	    return array(null, array('redirect' => array('view' => 'core.ShowItem')));
	}

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!

 
commander_keen
commander_keen's picture

Joined: 2008-08-04
Posts: 24
Posted: Tue, 2008-08-05 09:17

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

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Tue, 2008-08-05 10:04

for your purpose, you may use whichever you want.
serbanc - www.e-poze.ro

 
commander_keen
commander_keen's picture

Joined: 2008-08-04
Posts: 24
Posted: Tue, 2008-08-05 18:51

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:

    {else}
      <textarea rows="$af.height" cols="$af.width"
        name="{g->formVar var="form[fields][$idx][value]"}">{$af.value}</textarea>
    {/if}

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

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Tue, 2008-08-05 20:39

thx. I will correct the error.

serbanc - www.e-poze.ro

 
commander_keen
commander_keen's picture

Joined: 2008-08-04
Posts: 24
Posted: Tue, 2008-08-05 21:37

thanks to you for providing this nice add-on :-)

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Tue, 2008-08-05 21:40

bug corrected. thx commander.
new version available at www.e-poze.ro/downloads

Regards,
S
serbanc - www.e-poze.ro

 
NewClearBomb

Joined: 2006-04-20
Posts: 5
Posted: Thu, 2008-08-07 11:00
jonathanb wrote:
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.

thankyou thankyou thankyou :)
This had me totally stumped

 
commander_keen
commander_keen's picture

Joined: 2008-08-04
Posts: 24
Posted: Thu, 2009-03-12 14:42

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

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Fri, 2008-08-22 14:22

Thx comander_keen!!!
I will update the files as soon as I will have a little bit of time!

serbanc - www.e-poze.ro

 
druss74

Joined: 2008-08-18
Posts: 2
Posted: Tue, 2008-08-26 06:24

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?

 
druss74

Joined: 2008-08-18
Posts: 2
Posted: Tue, 2008-08-26 06:33

finally found a solution files downlaoad as .tar have to rename them as.tgz then unpack twice

 
salongaopm

Joined: 2007-03-23
Posts: 20
Posted: Fri, 2008-09-05 07:39

How do I install this module?
Sorry for the newbie question.

thanks!

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Fri, 2008-09-05 12:18

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

 
square_candy

Joined: 2008-09-07
Posts: 9
Posted: Sat, 2008-10-18 05:08

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!

 
serbanc

Joined: 2006-05-19
Posts: 314
Posted: Sat, 2008-10-18 09:05

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

 
oriolhernan

Joined: 2008-01-08
Posts: 41
Posted: Thu, 2009-02-05 10:39

I added this lines from the memberProfile.inc at theme.inc

Quote:
class MembersProfileView extends GalleryView {
function loadTemplate(&$template, &$form) {
global $gallery;
GalleryCoreApi::requireOnce('modules/members/classes/GalleryMembersHelper.class');
list ($ret, $result) =
GalleryMembersHelper::canViewMembersModule($gallery->getActiveUserId());
if ($ret) {
return array($ret, null);
}
if (!$result) {
return array(null, array('redirect' => array('view' => 'core.ShowItem')));
}
$userId = $theme['item']['owner']['id'];
if (empty($userId)) {
return array(GalleryCoreApi::error(ERROR_BAD_PARAMETER), null);
}
if ($form['formName'] != 'MembersProfile') {
$form['formName'] = 'MembersProfile';
}
$MembersProfile = array();
list ($ret, $user) = GalleryCoreApi::loadEntitiesById($userId);
if ($ret) {
return array($ret, null);
}
$MembersProfile['user'] = (array)$user;

list ($ret, $lastItems) =
GalleryMembersHelper::fetchLastUserItems($user->getId(), 0, 5, ORDER_DESCENDING);
if ($ret) {
return array($ret, null);
}
$MembersProfile['lastItems'] = array();
foreach ($lastItems as $item) {
$MembersProfile['lastItems'][] = (array)$item;
}
list ($ret, $daysSinceCreation) = GalleryMembersHelper::daysSinceCreation($user->getId());
if ($ret) {
return array($ret, null);
}
$MembersProfile['daysSinceCreation'] = $daysSinceCreation;

list ($ret, $canViewProfileEmail) =
GalleryMembersHelper::canViewProfileEmail($gallery->getActiveUserId());
if ($ret) {
return array($ret, null);
}
$MembersProfile['canViewProfileEmail'] = $canViewProfileEmail;
list ($ret, $module) = GalleryCoreApi::loadPlugin('module', 'userdata');
if (!$ret) {
GalleryCoreApi::requireOnce('modules/userdata/classes/UserDataHelper.class');
list($ret, $userdata) = UserDataHelper::fetchFieldValues($user);
if ($ret) { return $ret; }
$MembersProfile['userdata'] = $userdata;
}
list ($ret, $module) = GalleryCoreApi::loadPlugin('module', 'userphoto');
if (!$ret) {
GalleryCoreApi::requireOnce('modules/userphoto/classes/UserPhotoHelper.class');
list($ret, $userPhotoId) = UserPhotoHelper::fetchUserPhotoIdByUserId($user->getId());
if ($ret) { return $ret; }
if (!empty($userPhotoId)) {
list ($ret, $photo) = GalleryCoreApi::loadEntitiesById($userPhotoId);
if ($ret) { return $ret; }
$MembersProfile['userphoto'] = (array)$photo;
}
}
list ($ret, $albumId) =
GalleryCoreApi::getPluginParameter('module', 'useralbum', 'albumId', $userId);
if ($ret) {
return array($ret, null);
}
$MembersProfile['useralbum'] = $albumId;
$template->setVariable('MembersProfile', $MembersProfile);
list ($ret, $module) = GalleryCoreApi::loadPlugin('module', 'members');
if ($ret) {
return array($ret, null);
}
$template->title($module->translate('Members Profile'));
return array(null, array('body' => 'modules/members/templates/MembersProfile.tpl'));
}
}

And at photo.tpl then I want to user for example:

Quote:
{$MembersProfile.user.fullName}
{g->image image=$MembersProfile.userphoto item=$MembersProfile.userphoto maxSize=150}
{if !empty($MembersProfile.userdata)}
{foreach from=$MembersProfile.userdata key=idx item=af}
<tr class="{cycle values="gbEven,gbOdd"}">
<td>{$af.field}</td>
<td>{$af.value|markup}</td>
</tr>
{/foreach}
{/if}

But it doesn't work, The problem seems that the declaration of the theme.inc isn't correct.

Someone can help with that?

Thanks!

 
daymos
daymos's picture

Joined: 2008-12-04
Posts: 6
Posted: Thu, 2009-03-05 07:06

Hi! How to modify module to show more text on some filelds on userpofile?

 
commander_keen
commander_keen's picture

Joined: 2008-08-04
Posts: 24
Posted: Thu, 2009-03-12 14:52
daymos wrote:
Hi! How to modify module to show more text on some filelds on userpofile?

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/

 
Another_Matt

Joined: 2009-08-20
Posts: 40
Posted: Thu, 2009-10-08 20:12

I'm having problems with the User Photo module. When I try to activate new users in Site Admin Registration, I get this:

Quote:
An error has occurred.

Back to the Gallery
Error Detail -
Error (ERROR_BAD_PATH)

* in modules/userphoto/classes/UserPhoto.class at line 157 (GalleryCoreApi::error)
* in modules/userphoto/classes/UserPhotoHelper.class at line 190 (UserPhoto::create)
* in modules/userphoto/module.inc at line 191 (UserPhotoHelper::createUserPhoto)
* in modules/core/classes/helpers/GalleryEventHelper_simple.class at line 111 (UserPhotoModule::handleEvent)
* in modules/core/classes/GalleryCoreApi.class at line 2238 (GalleryEventHelper_simple::postEvent)
* in modules/core/classes/GalleryEntity.class at line 285 (GalleryCoreApi::postEvent)
* in modules/core/classes/GalleryUser.class at line 218 (GalleryEntity::save)
* in modules/register/classes/GalleryPendingUserHelper.class at line 344 (GalleryUser::save)
* in modules/register/AdminSelfRegistration.inc at line 67 (GalleryPendingUserHelper::createGalleryUser)
* in main.php at line 250 (AdminSelfRegistrationController::handleRequest)
* in main.php at line 104
* in main.php at line 88

System Information
Gallery version 2.3
PHP version 5.1.6 apache2handler
Webserver Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2
Database mysqli 5.0.19
Toolkits Thumbnail, Gd
Operating system Darwin MB-Tower.local 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386
Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3

I also get this in in the php_error.log:

Quote:
Thursday, October 8, 2009 3:22:23 PM US/Eastern
[08-Oct-2009 15:22:27] PHP Notice: Undefined index: type in /Applications/MAMP/htdocs/gallery2/modules/userphoto/classes/UserPhotoHelper.class on line 147
[08-Oct-2009 15:40:12] PHP Notice: Undefined index: userPhotoId in /Applications/MAMP/htdocs/g2data/smarty/templates_c/%%3850246935/matrix/%%DF^DFF^DFF53DFE%%UserPhoto.tpl.php on line 31

Any ideas?

I have User Photo/User Data/Members and Serbanc's search mod activated.

 
biser

Joined: 2008-01-13
Posts: 2
Posted: Tue, 2010-03-30 09:24

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.