21
zorro87
Re: Bug in profile 1.51?
  • 2008/12/3 14:43

  • zorro87

  • Just popping in

  • Posts: 92

  • Since: 2006/9/29


Hi everybody,

I think I’ve found a little bug:

We cannot change categories order by changing weight of categories,
It seems the order is conditioned by cat_id instead of cat_weight

But were?

@+
Z

22
alfred
Re: Bug in profile 1.51?
  • 2008/12/3 17:47

  • alfred

  • Quite a regular

  • Posts: 249

  • Since: 2005/10/29


where is to see that?
Admin> category?

23
zorro87
Re: Bug in profile 1.51?
  • 2008/12/4 13:35

  • zorro87

  • Just popping in

  • Posts: 92

  • Since: 2006/9/29


hi!

where is to see that
Admincategory?


It is here:
Resized Image


Then categories order must appear in users.

Categories don't appear in search (not yet)

@+
Z

24
zorro87
Re: Bug in profile 1.51?
  • 2008/12/4 13:46

  • zorro87

  • Just popping in

  • Posts: 92

  • Since: 2006/9/29


New bug found!

If we make a checkbox with only one box...
the field is never updated.

only "N;" is present in the field (in profile_profile table)

@+
Z

25
zorro87
Re: Bug in profile 1.51?
  • 2008/12/5 11:13

  • zorro87

  • Just popping in

  • Posts: 92

  • Since: 2006/9/29


Hi!
[About categories]


@dhcst: Thank you! You have done modifications to category.php.
Now in categories tab, We can see categories sorted by weight (lower to highest)

Then categories order must appear in users.

I realise I was not very clear..

When you create or edit a user
The categories appear sorted by cat_id instead of cat_weight…

How to have the same order in USERS?
(to see categories with cat_weight order)
@+
Z

26
trabis
Re: Bug in profile 1.51?
  • 2008/12/5 22:28

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


open profile/include/forms.php line 420

Try this instead:
$cat_handler xoops_getmodulehandler('category');
    
$cat_crit = new CriteriaCompo();
    
$cat_crit->setSort("cat_weight");
    
$categories $cat_handler->getObjects($cat_crittruefalse);
    unset(
$cat_crit);


Not tested.

27
zorro87
Re: Bug in profile 1.51?
  • 2008/12/6 13:52

  • zorro87

  • Just popping in

  • Posts: 92

  • Since: 2006/9/29


Hi Trabis!

Thank you for your interest of this very little bug!

After your hack, the categories still are in the same order (in cat_id order) in Users tab.

@+
Z

28
zorro87
Re: Bug in profile 1.51?
  • 2008/12/6 14:34

  • zorro87

  • Just popping in

  • Posts: 92

  • Since: 2006/9/29


Hi everybody,

1) Big news, we can select group in profile>find users!!
Thank you dhcst!

I’ve seen that in SVN!


2) In version 1.52
It is said in changelog.txt
Quote:

Version 1.52
-------------------
- Fixed bug visible all profilefields for guests
- Added count User for search


It seems than the first problem (visible profile for guest) still exist…
But the counter is perfect!

Summary

In profile users > Find users (/modules/profile/search.php)

- The group cannot be selected
- The total of members is not visible
- Total of users found is not visible

- It is not possible to send e-mail to selected members
- It would be interesting to export the list (to excel) --> Add in Todo-List

3) I have to add others problems to the list…
(present in frxoops)
When you set a checkbox or multiselect field,
- The fields cannot be set to appear in Find user.
- The fields are saved in the table like this: a:2:{i:0;s:1:"1";i:1;s:1:"3";}
Instead of “value to be stored” (not easy to import/export a table…) maybe there is an easy way to do that? if you know that way can you tell us how?



@+
Z

29
trabis
Re: Bug in profile 1.51?
  • 2008/12/6 14:41

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Ok, sorry for that,
Undo those changes and apply this at line 436:
$key $categories[$fields[$i]->getVar('cat_id')]['cat_weight'];

30
zorro87
Re: Bug in profile 1.51?
  • 2008/12/6 16:28

  • zorro87

  • Just popping in

  • Posts: 92

  • Since: 2006/9/29


trabis, It is upside down!

"Basic Information" appears more than once.
Some categories appears as "Basic Information" instead of the category name
Some fields appear in others category than the one it they are supposed belong to…


@+
Z

Login

Who's Online

236 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 236


more...

Donat-O-Meter

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

Latest GitHub Commits