1
maxxy
Profile Module - Field weight: > 9 incorrect display
  • 2009/12/29 5:16

  • maxxy

  • Quite a regular

  • Posts: 286

  • Since: 2007/6/11


Can anone try and confirm this

using XOOPS 2.42

in /modules/profile/admin/field.php


when i give the weight > 9 as example 10, 11 and so on ..it is not display correctly in the user info template..

it is listed at the top instead of following the set weight

hope you guys can understand what i'm trying to say

2
deka87
Re: Profile Module - Field weight: > 9 incorrect display
  • 2009/12/29 5:39

  • deka87

  • Friend of XOOPS

  • Posts: 1124

  • Since: 2007/10/5


i've got the same bug

3
maxxy
Re: Profile Module - Field weight: > 9 incorrect display
  • 2009/12/31 17:13

  • maxxy

  • Quite a regular

  • Posts: 286

  • Since: 2007/6/11


can someone report this bug to svn ?

4
maxxy
Re: Profile Module - Field weight: > 9 incorrect display
  • 2010/1/5 10:11

  • maxxy

  • Quite a regular

  • Posts: 286

  • Since: 2007/6/11


bump

5
trabis
Re: Profile Module - Field weight: > 9 incorrect display
  • 2010/1/10 14:41

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Please test in profile/userinfo.php line after line 155:
$profile_handler xoops_getmodulehandler('profile');
$profile $profile_handler->get($thisUser->getVar('uid'));
// Add dynamic fields
foreach (array_keys($fields) as $i) {
    
//If field is not visible, skip
    //if ( $field_ids_visible && !in_array($fields[$i]->getVar('field_id'), $field_ids_visible) ) continue;
    
if (!in_array($fields[$i]->getVar('field_id'), $field_ids_visible)) {
        continue;
    }
    
$cat_id $fields[$i]->getVar('cat_id');
    
$value $fields[$i]->getOutputValue($thisUser$profile);
    if (
is_array($value)) {
        
$value implode('<br />'array_values($value) );
    }
    if (
$value) {
        
$categories[$cat_id]['fields'][] = array('title' => $fields[$i]->getVar('field_title'), 'value' => $value);
        
$weights[$cat_id][] = $fields[$i]->getVar('cat_id');
    }
}

$GLOBALS['xoopsTpl']->assign('categories'$categories);
// Dynamic user profiles end

if ($GLOBALS['xoopsModuleConfig']['profile_search']) {

6
trabis
Re: Profile Module - Field weight: > 9 incorrect display
  • 2010/1/11 13:33

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


deka/maxy, please review my last post.

7
maxxy
Re: Profile Module - Field weight: > 9 incorrect display
  • 2010/1/11 14:02

  • maxxy

  • Quite a regular

  • Posts: 286

  • Since: 2007/6/11


tested in XOOPS 2.4.3 ...

it works

Thank you trabis

Login

Who's Online

66 user(s) are online (44 user(s) are browsing Support Forums)


Members: 0


Guests: 66


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits