Search found 5 matches

by RedGerry
Fri Nov 23, 2007 12:25 pm
Forum: Joomla! Coding 101
Topic: How to get userid and query database table?
Replies: 9
Views: 1846

Re: How to get userid and query database table?

I've used chronoforms with a modified sql insert statement to run one of my own scripts. I've found it extremely useful. I don't know if this suggestion is any use but why not include a timestamp field into your report record. Any query to retrieve can use the timestamp to sort and avoids having to ...
by RedGerry
Mon Nov 12, 2007 10:28 am
Forum: Joomla! Coding 101
Topic: How to access Joomla global variables from non-Joomla sub-directory
Replies: 6
Views: 1842

SOLVED: How to access Joomla global variables from non-Joomla sub-directory

well now got this working. The second page only includes a funtion call: <?php require_once( $mosConfig_absolute_path . '/includes/func_common.php' ); paged_incidents(); ?> The head section of the function: function paged_incidents(){ define( '_VALID_MOS', 1 ); require ( 'globals.php' ); include ('i...
by RedGerry
Fri Nov 09, 2007 9:25 am
Forum: Joomla! Coding 101
Topic: How to access Joomla global variables from non-Joomla sub-directory
Replies: 6
Views: 1842

Re: How to access Joomla global variables from non-Joomla sub-directory

Thanks for the reply lobos. Using jumi to 'embed' a php page into content this approach works fine. This is how this page is being generated: m The incident list is a seperate php page called with the following line: {jumi [includes/jumi/incident_list.php]} and it works a treat. However when i inclu...
by RedGerry
Thu Nov 01, 2007 3:46 pm
Forum: Joomla! Coding 101
Topic: How to access Joomla global variables from non-Joomla sub-directory
Replies: 6
Views: 1842

Re: How to access Joomla global variables from non-Joomla sub-directory

I would also appreciate an answer to this. I'm using a custom file with Ajax pagination (m) and am using a query to get the number of pages required then dynamically generating the array for output. Problem is that the query needs access to $database global. As it is called as a standalone page it's...