Softaculous


Topic : Custom Package input variables not populating database


Posted By: michael_s on November 4, 2014, 5:38 pm
I have made a custom script package by duplicating another scripts install.xml and creating my own install.php files.

The package works great at copying over the installation and doing all the configuration files. A working default installation.

The problem I have run into is that none of my input variables populate the database. I cannot figure out how other softaculous packages do it. There are no queries anywhere, just input fields and somehow the info gets to the right place.

So what am I missing?

Can someone explain more clearly and in detail how the input fields of the softaculous install page get mapped to the correct database table and fields?

Do I use the sdb_query in my install.php to populate the table? Or is there some other method to get this to work?





-----------------------
osCmax Lead Developer

Posted By: michael_s on November 5, 2014, 1:45 am | Post: 1
Surely someone has encountered this issue before. I would love to hear how you figured out what you were doing incorrectly!

-----------------------
osCmax Lead Developer

Posted By: Brijesh on November 5, 2014, 11:39 am | Post: 2
Hi,

In the .SQL file you need to replace the text that you need to replace with the [[INPUTNAME]] where INPUTNAME is the name of your input tag in install.xml

This will replace the value posted by the user on the form for the fields you have created.

Let us know if you still face the issue.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: michael_s on November 5, 2014, 5:11 pm | Post: 3
Quote From : Brijesh November 5, 2014, 11:39 am
Hi,

In the .SQL file you need to replace the text that you need to replace with the [[INPUTNAME]] where INPUTNAME is the name of your input tag in install.xml

This will replace the value posted by the user on the form for the fields you have created.

Let us know if you still face the issue.


Excellent! I knew I was missing something simple! Thank you

-----------------------
osCmax Lead Developer

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.