Browsing this Thread:   1 Anonymous Users






Re: modcompany.php missing bracket
#3
Webmaster
Webmaster


See User information
GreenFlatDog,

I do not have that version on any of my sites, as I am almost ready to release 4.3RC2.

But I looked at the code you are asking about and it looks like you should move the bracket from line 361 up to line 336, so it looks like this:

} else {

$form->addElement(new XoopsFormHidden('comp_user1', ""));
$form->addElement(new XoopsFormHidden('comp_user1_contact', ""));
$form->addElement(new XoopsFormHidden('comp_user2', ""));
$form->addElement(new XoopsFormHidden('comp_user2_contact', ""));
}

and lines 360 to 364 should look like this:

ob_end_clean();

}
}
include(XOOPS_ROOT_PATH."/footer.php");

I think that will fix it, but I can't test it.

New version should be out this weekend. It has search by state and category, I also figured out why any select on any xoopsform the validation does not work. It now works.I think it is a bug in Xoops formselect.php, so I have added that file with the fix into my module and I will report this bug to Xoops.

I tested a few modules with select boxes and tried to have them validate and none of them worked.

Let me know if the fix above works for you.

John


Posted on: 2010/5/6 23:06
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: modcompany.php missing bracket
#2
Zoner
Zoner


See User information
Forgot to say this was 4.3 RC1

Posted on: 2010/5/6 6:45
GFD
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


modcompany.php missing bracket
#1
Zoner
Zoner


See User information
John,
I think there is missing a } in this file.

I tried putting one above the last include statement around line 363 and that allowed a user to open his company for editing.

However if I change him from a non-premium to premium user when he goes to modify his company he gets a screen without the edit form. So I guess I'm not sure if I've put it in the right place.

Regards,

Posted on: 2010/5/5 12:38
GFD
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create pdf.
You cannot get print page.

[Advanced Search]


Login
Username:

Password:

Remember me



Lost Password?

Register now!
 
Main Menu
 
Who's Online
6 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 6

more...
 
Donat-O-Meter
Make donations with PayPal!
Stats
Goal: $25.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $25.00