1
amrufz
Problem with Profile 1.52 module that came along with xoops 2.3.3
  • 2009/8/1 3:42

  • amrufz

  • Just popping in

  • Posts: 5

  • Since: 2009/8/1 1


XOOPS Version - XOOPS 2.3.3
PHP Version - 5.2.10
MySQL Version - 5.0.81-community
Server API Version - apache2handler
OS Version - Linux

I tried to modify Profile 1.52 module that came along with XOOPS 2.3.3.

For the search result page, I want to display Avatar and Username instead of Email and Username exactly like search_result page in yogurt module. I tried to modify search.php file but could not make the avatar display.

Here is what I mofify in line 360:-

//Sort information
foreach (array_keys($users) as $k) {
$userarray = array();
$userarray["output"][] = "" . $users[$k]->getVar('uname') . "";
$userarray["output"][] = "";

Can someone help me to fix this.

2
ghia
Re: Problem with Profile 1.52 module that came along with xoops 2.3.3
  • 2009/8/1 10:08

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


What result did you obtain (what is to see in the html source)?

3
amrufz
Re: Problem with Profile 1.52 module that came along with xoops 2.3.3
  • 2009/8/7 9:13

  • amrufz

  • Just popping in

  • Posts: 5

  • Since: 2009/8/1 1


The results are like this. but still I can't show the avatars.


( 3 users found )

















4
ghia
Re: Problem with Profile 1.52 module that came along with xoops 2.3.3
  • 2009/8/7 12:42

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I think you need to add the user_avatar field in /modules/profile/class/profile.php in the query of the search function:
$sv[] = "u.uid, u.uname, u.email, u.user_viewemail, u.user_avatar, u." implode(", u."$searchvars_user);

Username Avatar
admin
amrufz
Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits