Hello, I am new here and let me say so far i love this engine. Great work!
I am having one problem thou I read on the forums about $my and using global $my followed by $my->username to get the current user logged on for the forms. However I can't get it to work I have print_r($my) and the array is blank however Joomla works fine and stays logged in I can go to my user menu and all my info is there. So I am not sure but I think the problem lays in the ChronoEngine. Any help with this would be appreciated. Thanks in advance...
I am running Joomla 1.0.15 and the latest ChronoEngine component. I have it on a unix server…
Also I put "print_r($my)" at the bottom of the index.php page for Joomla works find and prints entire array on any window except a ChronorEngine page. When viewing a ChronoEngine page it prints the structure, but the fields are empty?
osUser Object ( [id] => 0 [name] => [username] => [email] => [password] => [usertype] => public frontend [block] => [sendEmail] => [gid] => 0 [registerDate] => [lastvisitDate] => [activation] => [params] => [_tbl] => #__users [_tbl_key] => id [_error] => [_db] => database Object ( [_sql] => SELECT e.extid, e.cat, recur_type, recur_val, recur_until, start_date, end_date, recur_end_type, recur_count from jos_jcalpro_events AS e LEFT JOIN jos_jcalpro_categories AS c ON e.cat=c.cat_id WHERE (DATE_FORMAT(e.start_date,'%Y%m%d') <= 20080731) AND c.published = '1' AND e.published = '1' AND e.published = '1' AND approved = '1' AND recur_type <> '' ORDER BY start_date,title ASC [_errorNum] => 0 [_errorMsg] => [_table_prefix] => jos_ [_resource] => Resource id #13 [_cursor] => Resource id #136 [_debug] => 0 [_limit] => 0 [_offset] => 0 [_ticker] => 0 [_log] => Array ( ) [_nullDate] => 0000-00-00 00:00:00 [_nameQuote] => ` ) )
-Everett
I am having one problem thou I read on the forums about $my and using global $my followed by $my->username to get the current user logged on for the forms. However I can't get it to work I have print_r($my) and the array is blank however Joomla works fine and stays logged in I can go to my user menu and all my info is there. So I am not sure but I think the problem lays in the ChronoEngine. Any help with this would be appreciated. Thanks in advance...
I am running Joomla 1.0.15 and the latest ChronoEngine component. I have it on a unix server…
Also I put "print_r($my)" at the bottom of the index.php page for Joomla works find and prints entire array on any window except a ChronorEngine page. When viewing a ChronoEngine page it prints the structure, but the fields are empty?
osUser Object ( [id] => 0 [name] => [username] => [email] => [password] => [usertype] => public frontend [block] => [sendEmail] => [gid] => 0 [registerDate] => [lastvisitDate] => [activation] => [params] => [_tbl] => #__users [_tbl_key] => id [_error] => [_db] => database Object ( [_sql] => SELECT e.extid, e.cat, recur_type, recur_val, recur_until, start_date, end_date, recur_end_type, recur_count from jos_jcalpro_events AS e LEFT JOIN jos_jcalpro_categories AS c ON e.cat=c.cat_id WHERE (DATE_FORMAT(e.start_date,'%Y%m%d') <= 20080731) AND c.published = '1' AND e.published = '1' AND e.published = '1' AND approved = '1' AND recur_type <> '' ORDER BY start_date,title ASC [_errorNum] => 0 [_errorMsg] => [_table_prefix] => jos_ [_resource] => Resource id #13 [_cursor] => Resource id #136 [_debug] => 0 [_limit] => 0 [_offset] => 0 [_ticker] => 0 [_log] => Array ( ) [_nullDate] => 0000-00-00 00:00:00 [_nameQuote] => ` ) )
-Everett
Hi Everett,
at Chronoforms HTML box, you should add :
this will work!
Cheers
Max
at Chronoforms HTML box, you should add :
<?php
global $my;
echo $my->username;
?>
this will work!
Cheers
Max
I have tried that, no luck.
Now I have added the code "print_r($my)" at the bottom of the main index.php page for Joomla. And it show the data on every page/news topics/etc however if I tried to view a ChronoEngine page it is empty. The code I have tried in the html portion of ChronoEngine as well. It is like the ChronoEngine is rewriting the variable.
Now I have added the code "print_r($my)" at the bottom of the main index.php page for Joomla. And it show the data on every page/news topics/etc however if I tried to view a ChronoEngine page it is empty. The code I have tried in the html portion of ChronoEngine as well. It is like the ChronoEngine is rewriting the variable.
Hi,
This is the first time to face this problem, actually this should work just fine and Chronoforms doesn't use the $my variable at all, what about uninstalling Chronoforms then reinstalling and creating one form with teh code above ONLY at its HTML code box ?
Let me know
Cheers
Max
This is the first time to face this problem, actually this should work just fine and Chronoforms doesn't use the $my variable at all, what about uninstalling Chronoforms then reinstalling and creating one form with teh code above ONLY at its HTML code box ?
Let me know
Cheers
Max
Hi,
This is the first time to face this problem, actually this should work just fine and Chronoforms doesn't use the $my variable at all, what about uninstalling Chronoforms then reinstalling and creating one form with teh code above ONLY at its HTML code box ?
Let me know
Cheers
Max
I thought I would try uninstalling the Mambot for Chrono (chronocontact) first. Did that and then tested my form again. It worked I was able to view a, populated $my. I then reinstalled the Mambot to double check and to make sure that was the cause. And well the $my is still viewable and populate so not sure what caused it but it is working now. Thanks for your help anyways...
Great!🙂
Cheers
Max
Cheers
Max
This topic is locked and no more replies can be posted.
