31
trabis
Re: Bug in profile 1.51?
  • 2008/12/6 21:32

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

zorro87 wrote:
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


Oh sorry, I thought you wanted that way, lol

Well, this is a hard one for me. I have a code that works but it not very pretty. I´m sure there is a better way to do this.

Lets go back to line 420 again , use this:

$cat_handler xoops_getmodulehandler('category');
    
$all_categories $cat_handler->getObjects(nulltruefalse);
    
    foreach (
array_keys($fields) as $i) {
        if (
in_array($fields[$i]->getVar('field_id'), $editable_fields)) {
            
// Set default value for user fields if available
            
if ($user->isNew()) {
                
$default $fields[$i]->getVar('field_default');
                if (
$default !== '' && $default !== null) {
                    
$user->setVar($fields[$i]->getVar('field_name'), $default);
                }
            }
            
            
$fieldinfo['element'] = $fields[$i]->getEditElement($user$profile);
            
$fieldinfo['required'] = $fields[$i]->getVar('field_required');

            
$key $all_categories[$fields[$i]->getVar('cat_id')]['cat_weight'] * 10000 $fields[$i]->getVar('cat_id');
            
$elements[$key][] = $fieldinfo;
            
$weights[$key][] = $fields[$i]->getVar('field_weight');
            
$categories[$key] = $all_categories[$fields[$i]->getVar('cat_id')];
        }
    }

32
alfred
Re: Bug in profile 1.51?
  • 2008/12/7 14:55

  • alfred

  • Quite a regular

  • Posts: 249

  • Since: 2005/10/29


Quote:
It seems than the first problem (visible profile for guest) still exist…


can you check this with the new Version from the SVN ?
Check befor the permissions for guests

33
Mamba
Re: Bug in profile 1.51?
  • 2008/12/7 15:10

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


The SVN version fixed it for us here
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

34
zorro87
Re: Bug in profile 1.51?
  • 2008/12/7 22:11

  • zorro87

  • Just popping in

  • Posts: 92

  • Since: 2006/9/29


@dhsoft & Mamba
You’re right! It works! Thank you to both of you!

@trabis

This time all "Basic Information" fields appears twice except
Username
E-mail
Password
User status

Categories appears twice

- As "the good category name" in cat_id order
- As "Basic Information" in cat_weight order
This time the fields are in the good categories.

@+
Z

35
colossus
Re: Bug in profile 1.51?
  • 2009/1/7 11:40

  • colossus

  • Just popping in

  • Posts: 43

  • Since: 2007/9/30


Hi:

I've updated our test site 2.3.0 -> 2.3.1 -> 2.3.2b and the bug I reported originally in this threat is still there. I'll explain it again:

Browsing profiles as registered or admin user works OK, but when you see a profile not logged in (anonymously):

1) You get a blank page (debug states "Fatal error: Call to a member function isAdmin() on a non-object in ..../modules/profile/userinfo.php on line 126")

2) If you edit that line as dhsoft recomended in this same threat you get rid of the blank page, but ALL fields in any profile are visible to anonymous users (no matter what you set in Profile's visibility preferences).

Could anyone please address this issue? Are there any plans to update this Profile 1.51, any CVS I can test? This is just stopping us from upgrading to XOOPS 2.3.2b, and I really cannot understand how XOOPS comunity releases a "stable" core version that throws a blank page when upgrading a default installation, and announce proudly that 17,000 users are plagued with this bug.

Thanks in advance, and regards: Colossus

EDIT:I've found that there's a CVN version that fixes this issue, SVN-Profile. Good work, any news on when will it be released?

36
Mamba
Re: Bug in profile 1.51?
  • 2009/1/7 12:35

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
Good work, any news on when will it be released?


XOOPS 2.3.3 is being worked on, but no release date has been set.

Of course, there will beta releases first.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

37
zorro87
Re: Bug in profile 1.51?
  • 2009/2/10 20:12

  • zorro87

  • Just popping in

  • Posts: 92

  • Since: 2006/9/29


Hi folks !
Up !

I'm still interested in sending mails to selected users from Profile...


Quote:
- 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


@+ (see you... )
Z

38
zorro87
Profile 1.55 send e-mail to selected users
  • 2009/12/9 15:38

  • zorro87

  • Just popping in

  • Posts: 92

  • Since: 2006/9/29


Hello!

This is an up!

In system>Find users (/modules/system/admin.php?fct=findusers)
You can find users and send an e-mail to selected members.
But you can select only XOOPS fields

With Profile you can add as much fields as you want for users.
You can find members with any of these fields
But you cannot send e-mail to selected members

It could be great if it was possible to send e-mail to selected members in Profile module.

Who can help me to do so? (Profile 1.55)

@+
Z

39
zorro87
Re: Bug in profile 1.51?
  • 2009/12/18 10:38

  • zorro87

  • Just popping in

  • Posts: 92

  • Since: 2006/9/29


I'll open a post exclusively to this issue.



@+
Z

EDT:
Here is >> the link <<

Login

Who's Online

240 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 240


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