List Info

Thread: Installation Profiles




Installation Profiles
user name
2007-04-17 07:36:04
Hi
I am trying to make a custom installation and I can't find how to take the database type, the db user, pass and port in the myprofile.profile, is it possible? Or I will have to tweak the installation script';s code?, if that is the case, any hint will be really appreciate

Best Regards

--
yofernandocosso.com.ar">yofernandocosso.com.ar
http://www.fernandocosso.com.ar
Re: Installation Profiles
country flaguser name
Hungary
2007-04-17 07:52:58
Fernando Cosso wrote:
> Hi
> I am trying to make a custom installation and I can't
find how to take 
> the database type, the db user, pass and port in the
myprofile.profile, 
> is it possible? Or I will have to tweak the
installation script's code?, 
> if that is the case, any hint will be really
appreciate

What do you mean by "take"? Drupal already handles
the forms for these 
details automatically, as it is required by any install
profile to have 
these inputs from the user.

Gabor

Re: Installation Profiles
user name
2007-04-17 07:57:40
What do you mean by "take"? Drupal already handles the forms for these
details automatically, as it is required by any install profile to have
these inputs from the user.
Gabor

Thanks for answer so quick!
When I say "take", I want to say "agarrar" (spanish), :p
want this:
The user don't need to fill in the database form, The db user, password and all that will be already known by the installer.
Am I now clear?

Thanks

--
yofernandocosso.com.ar">yofernandocosso.com.ar
http://www.fernandocosso.com.ar
Re: Installation Profiles
country flaguser name
Hungary
2007-04-17 17:19:28
Fernando Cosso wrote:
> Thanks for answer so quick!
> I  want this:
> The user don't need to fill in the database form, The
db user, password 
> and all that will be already known by the installer.
> Am I now clear?

If the database details are already in the settings.php
file, the 
installer will not ask for them. If you ship your own
install profile, 
you can put there a customized settings.php.

Gabor

Re: Installation Profiles
user name
2007-04-17 21:42:26
Hi
Thank you all for the answers.
The thing with sites/settings.php is that it is executed before you choose the profile, But I will try it again.
I managed to put the Database data as the default text in the form, but it is no the most elegant way to do it.
Best regards

--
yofernandocosso.com.ar">yofernandocosso.com.ar
http://www.fernandocosso.com.ar
Re: Installation Profiles
user name
2007-04-20 07:15:27
Hi
It's me  again.
I am stuck with profile installation.
I've putted the default mysql information in sites/settings.php and it's working fine. The thing now is that I need to set the language of the site, create the admin account and ask the user some questions (meaning forms) in the installation,  and I don't really know how to do that. The only thing I know is that I have to do all this in the function myprofile_profile_final() .
I reminds you that I started with all this drupal thing yesterday. I am a xoops converted!!
Can someone give me a hint?
Thanks


--
yofernandocosso.com.ar">yofernandocosso.com.ar
http://www.fernandocosso.com.ar
Re: Installation Profiles
user name
2007-04-20 12:06:46
Hi Fernando:

The dev list here isn't really the right place to be asking
all of
these questions. Install profiles are quite new, there is
http://groups.
drupal.org/distributions where a lot of this is being
discussed -- please come join us there.

I have *some* of the functions you mention in my
install_profile_api
module / crud.inc, which is referenced in that group.

Short answer regarding the forms is that there has been much
talk of
"wizard" functionality, but I don't know if there
is a clear plan on
how to do that.

You can look at some of the language-specific install
profiles to see
about setting language.

Cheers,

On 4/20/07, Fernando Cosso <ferdemzagmail.com> wrote:
> Hi
> It's me  again.
> I am stuck with profile installation.
> I've putted the default mysql information in
sites/settings.php and it's
> working fine. The thing now is that I need to set the
language of the site,
> create the admin account and ask the user some
questions (meaning forms) in
> the installation,  and I don't really know how to do
that. The only thing I
> know is that I have to do all this in the function
myprofile_profile_final()
> .
> I reminds you that I started with all this drupal thing
yesterday. I am a
> xoops converted!!
> Can someone give me a hint?

-- 
Boris Mann
Office 604-682-2889
Skype borismann
http://www.bryght.com

Wizard
country flaguser name
United States
2007-04-20 16:07:46
> Short answer regarding the forms is that there has been
much talk of
> "wizard" functionality, but I don't know if
there is a clear plan on
> how to do that.

Oh. Wizard is designed and will be coded within, hm, seven
days?

We will employ a cache_form table to store forms and
submitted data as opposed to the current situation where
every multistep form function itself needs to store its
submitted data in session/hidden whatever. The builder
functions will get the $form_values still but they do not
need to provide hidden fields to store the information in.
What's more, they can't do that because form_builder will
*not* get the posted information -- every step is an
invidual form and the submit handler gets the array of
$form_values keyed by the steps.

This neatly solves all possible problems because there are
no special cases, every form , #multistep or not, starts its
lifecycle as a nonsubmitted form. Most problems currently
--validation,checkboxes,whatnot-- arises from the fact that
every step begins its life with the burden of the previous
POST.

For JS guys, the plans are that we will make it possible for
JS code to basically do a form_alter, store results in the
aforementioned cache_form table and send back the themed
form element. I am a bit unsure of who/how will produce the
JS but the PHP scaffolding will be in place, soon.

Regards,

NK

Re: Installation Profiles
user name
2007-04-20 17:09:45


On 20/04/07, Boris Mann < borisbryght.com">borisbryght.com> wrote:
Hi Fernando:

The dev list here isn't really the right place to be asking all of
these questions. Install profiles are quite new, there is
http://groups.drupal.org/distributions where a lot of this is being
discussed -- please come join us there.

Okey, sorry for the off topic

I have *some* of the functions you mention in my install_profile_api
module / crud.inc, which is referenced in that group.

Short answer regarding the forms is that there has been much talk of
"wizard" functionality, but I don't know if there is a clear plan on
how to do that.

You can look at some of the language-specific install profiles to see
about setting language.

Cheers,

Thanks you so much, but it is a little late, I am moving to XOOPS again, Drupal is really cool, but the admin section is a bit confusing. I also have found some things that I didn't like. I know is far from being a good thing, but I am running out of options.

--
yofernandocosso.com.ar">yofernandocosso.com.ar
http://www.fernandocosso.com.ar
Re: Wizard
user name
2007-04-20 17:30:00
On 4/20/07, Karoly Negyesi <karolynegyesi.net> wrote:
> > Short answer regarding the forms is that there has
been much talk of
> > "wizard" functionality, but I don't know
if there is a clear plan on
> > how to do that.
>
> Oh. Wizard is designed and will be coded within, hm,
seven days?

Thanks, Karoly. My response was specifically for
"wizards" for install
profiles in Drupal 5, not Drupal 6 related stuff.

If this can be implemented somehow in Drupal 5 after an
install
profile has run, by adding a module, that would be great,
too.


-- 
Boris Mann
Office 604-682-2889
Skype borismann
http://www.bryght.com

[1-10]

about | contact  Other archives ( Real Estate discussion Medical topics )