How to get currentuserid in custom page and userfn.
CurrentUserID()
-
- User
- Posts: 9384
If your "custom page" meant Custom Files, you may read Custom Files -> How to Use -> Path -> Case 1 - PHP file with "Includes common files" ENABLED. Then you can use the global functions such as CurrentUserID()
.
-
- User
- Posts: 9384
If you want to use PHPMaker global functions in Custom Files, you need to include common files. If you want to use global functions in server events, simply use them directly. Also read Global Functions.
-
- User
- Posts: 9384
You are talking about the image cropper for file upload, which is totally unrelated to "Custom Files" and "Include common files".
When I refer to "Custom File" or "Custom Files", I meant the PHPMaker Custom Files.
If your "custom file" actually means file upload, then you better rephrase your question and explain more clearly what you are trying to do and where.