check parametrable script

More
3 years 11 months ago - 3 years 11 months ago #10538 by MBP91560
parametrable script was created by MBP91560
Hi
Thanks for your good an very useful User-Private-Page Component.

I use Unite Galery to display pictures of my customers
So, I'm using too your User-Private-Page to display only the relative customer page with thiers galeries and pictures

All works fine

I'm testing the script capability and I would like to set up script option :

- not use the $user_register_date but a parametrable date passed to the script to define the ended access
- not display available video message but active the galery (by plugin code as use {unitegallery modele_client} string)
This plugin code must be relatif as each customer and I would lke to set up to te sscript by parameter

as example {script 2 20161025 pascal} where 20160125 is the parametrable ended access date and pascal is the name for the plugin code to set {unitegallery pascal}

Is it possible ?
If yes, could you help me to do this ?
Regards,
Last edit: 3 years 11 months ago by MBP91560.

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

More
3 years 11 months ago #10539 by carsten888
Replied by carsten888 on topic parametrable script
Passing parameters to the script is not possible.
But that date you entered is based on something. If that is based on data from the database you can query that data from within the script. See administrator/index.php?option=com_userprivatepage&view=script example 3. Then use that to check for access and find the user associated image gallery.

I hope that helps.

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

More
3 years 11 months ago #10540 by MBP91560
Replied by MBP91560 on topic parametrable script
Wonderful tonight
I'm a very bad web developer I haven't seen and thought at that issue.
It works fine to assigne the good galery to the good customer

I have now to find a solution for the expiration date, but the solution could be fixed by the same idea

Thanks a lot for your help.
Regards.
Subject closed

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

Time to create page: 0.087 seconds
Powered by Kunena Forum
 
spicy-sacerdotal