mhadel:
Hi!
I'd like to add a additional feature to the profil page that works with jquery and an ajax request. So I created a module and put there a file named new.php, which is is the receiver of the request. If the content of the file is just "echo 'hello';" the request works well. If new.php contains jrCore functions like "jrCore_db_get_item('jrProfile', $_post['_1'] );", I get the feedback that these functions are not defined. Is there a possibility to make these functions work in new.php?
Thanks!
You don't want to create a file called "new.php" - it needs to be at least the basic module structure (minimum include.php). You would add a new "view" function to index.php - that would replace your new.php file:
This should help:
https://www.jamroom.net/the-jamroom-network/documentation/development/26/creating-a-module
updated by @brian: 10/16/15 10:46:37PM