CB Query

13 years 4 months ago #151281 by laptoproadie
Replied by laptoproadie on topic Re: CB Query
Krileon,

So is your only suggestion to fix this problem to uninstall and reinstall CB? I know my deadlines are no concern of yours but we have little time left to implement this site and without the session data our login auditing report is going to be little to no use. Our clients have to be able to audit the medical data that is viewed and CB query saving the IP addresses was going to provide that for us.

Thanks,
Will

Please Log in to join the conversation.

13 years 3 months ago #151394 by krileon
Replied by krileon on topic Re: CB Query

So is your only suggestion to fix this problem to uninstall and reinstall CB?

No, certainly not. Don't believe a re-install would resolve your issue.

Please review my previous post as suggested using CB Code so you can execute your Query with PHP with will provide the ability to use PHP functions to obtain the IP Address of the user. CB Code allows you to execute a code file based on trigger. Inside the code file being executed would be code to handle your query.

Alternatively you could write a new CB plugin that utilizes CB triggers to execute whatever code necessary (including query) so you could have the IP Address a part of the query. Tutorial on CB triggers as follows (full installable example is provided).

www.allmysocials.com/tutorials/item/228-event-triggers

The main issue is obtaining IP Address through SQL is impossible; it must be done from PHP.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.244 seconds