[solved] How to pass the current Joomla userid

More
3 years 11 months ago - 3 years 10 months ago #44513 by titacat
Hi,
Would like to know how to pass the current Joomla userID for the SQL?
Thanks and regards,
Fred
Last edit: 3 years 10 months ago by nordmograph.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #44514 by nordmograph
Hi fred,

Any of
[userid]
or
$user->id
will work

Hope it helps,

Let me know

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #44515 by titacat
HI,
Yes. It works now.

As I am quite new to Joomla and PHP, do you know how to set the "white space" above/beneath your module smaller?
You could reference my attached picture.

Thanks and regards,
Fred
Attachments:

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #44516 by nordmograph
Hord to see with a screenshot. You'll have to use CSS for this. You can inspect the area using your browser's right click inspect feature, and test various css properties+ values on the fly.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #44527 by titacat
Hi,
Thanks for the information. It helps.
Besides, would like to check how to pass input parameters to the SQL like date range?
Thanks and regards,
Fred

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #44528 by nordmograph
Hello,
There is no way as it is, to receive date ranges. It could be added as tags in a custom modification.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

Time to create page: 0.329 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.