Registration. Profile bug?

Please post any ChronoForms bugs you found here

Registration. Profile bug?

Postby hotbit on Fri Apr 18, 2008 12:07 am

Hi,
I managed to make working registration using chronoforms (V2.5 for J1.5).

Using url: index.php?option=com_chronocontact&chronoformname=profile&dataid=1

I can open registration form with users data, however:
1) changing number in dataid=X anybody can see any user data
2) after changing some data and clicking 'submit' email is sent with new data, however profile is not changed (what in fact is not so bad because of 1)

Are user data visible for anybody and is it not possible to update profile?
Or do I miss sth?

Cheers,
H
hotbit
Fresh Boarder
 
Posts: 4
Joined: Thu Apr 17, 2008 4:56 pm

Re:Registration. Profile bug?

Postby GreyHead on Fri Apr 18, 2008 4:11 am

Hi hotbit,

I haven't worked much with the Profile Plugin. How about matching the dataid with teh current userid:
Code: Select all
<?php
global $user;
if ( $_GET['dataid'] == $user->id ) {
  //show data
} else {
  // show error message
}
?>
Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3410
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Registration. Profile bug?

Postby hotbit on Fri Apr 18, 2008 8:08 pm

Thanks Bob!
This may partly solve the problem.
I have just started with PHP and mySQL, Trying to make your code and idea working for me (no success yet...)

I am trying to create a dynamic profile link, so logged in user could see his profile, however neither of the links work:
index.php?option=com_chronocontact&chronoformname=profile&dataid
index.php?option=com_chronocontact&chronoformname=profile

Cheers,
H
hotbit
Fresh Boarder
 
Posts: 4
Joined: Thu Apr 17, 2008 4:56 pm

Re:Registration. Profile bug?

Postby GreyHead on Tue Apr 22, 2008 4:57 am

Hi Hotbit,

I'm not clear what you are trying to do. Are you using the Joomla Registration PlugIn or the Profile Plugin (they do very different things).

You want the Joomla Registration Plugin for a custom registration . . . and then I don't know whay you want URLs?

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3410
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany


Return to ChronoForms Bugs

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest