Forums

Registration. Profile bug?

hotbit 18 Apr, 2008
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
GreyHead 18 Apr, 2008
Hi hotbit,

I haven't worked much with the Profile Plugin. How about matching the dataid with teh current userid:
<?php
global $user;
if ( $_GET['dataid'] == $user->id ) {
  //show data
} else {
  // show error message
}
?>
Bob
hotbit 18 Apr, 2008
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
GreyHead 22 Apr, 2008
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
This topic is locked and no more replies can be posted.