Hi,
I am not aware of such a module, however older versions of Drupal had
this (pre version 4.2) - and there were a heck of a lot of reasons why
they changed it, but I can't remember what those reasons were - I
remember only the one that I had problems with, which was to display
images inline. That was a huge burden for me, so I am glad that such an
approach is not enforced anymore.
Good luck with your searching!
Regards,
Kobus
>>> pherowze(a)gmail.com 7/11/2006 3:45:34 PM >>>
Is there a way you can have images stored in the database...? Im trying
to find
a module to do this without success...
--
[ Drupal support list | http://lists.drupal.org/ ]
http://drupal.org/node/72577
Man this is driving me nuts. Here's my logic, tell me if it's wrong:
<?php
$form['autorole_settings'] = array('#type' => 'checkboxes',
'#title' => t('Vocabularies to
auto-generate roles for'),
'#default_value' => variable_get(
'autorole_settings', 0),
'#options' => $vocabularies,
'#description' => t('Which vocabularies
to auto-generate roles for'))
?>
Is in the _settings hook. This means that when someone goes and changes
this, it gets stored in the variabe database table. It is. It is stored as
serialized data in the form a3;{i:3;i:3;i:2;i:0;i:1;i:0;}, which means that
it is an array with three elements - then the key => value pairs, which are
all integers.
I get this vaiable with a call to variable_get('autorole_settings', 0),
which should return the serialized data.
I then unserialize the data which (for the serialized data above,) should
give me an array like so:
$unserialized = array(3 => 3, 2 => 0, 1 => 0);
Now, I should be able to iterate over that array with foreach.
<?php
foreach($unserialized as $vocab => $option) {
//if an options value is zero, it is not selected
if($option != 0) {
$terms[] = module_invoke('taxonomy','get_tree', $vocab);
}
}
?>
Since the options in the form were generated by a call to
taxonomy_get_vocabularies, $vocab in the foreach call should correspond to
the vocabularie's vid. - so I can populate the variable $terms with the term
data through the call to taxonomy_get_tree. Now I should have a list of
terms that are contained within the vocabularies that were selected to be
used.
The part that assigns the roles is called by profile.module in the
profile_save_profile function. My module checks to see if it's a vocabulary
(which I'll be moving that into profile, probably....but anyhow), and then
checks to make sure that the field title - which is the name of the term, is
a member of terms with
<?php
if($field->type == 'vocabulary' && in_array($field->title, $terms))
?>
Now, I can not for the life of me figure out why it is that if I select one
vocabulary, it assigns roles for all vocabularies. The data in the variable
table is correct, and as far as I can tell, the logic is as well. Maybe I
need to run it through a debugger and trace it....any suggestions? On what's
going on, or a good tracer, or anything?
Thanks for the tip (copying back to support since I'm not looking for
this, but Chris and Gerhard are).
Regards,
Greg
On 7/9/06, y.chedemois(a)free.fr <y.chedemois(a)free.fr> wrote:
> audio.module has a massive audio node creation feature, using the mp3 files it
> finds in a given directory (you have to FTP-upload them beforehands, though).
>
> That seems precisely what you're looking for.
>
> yched
>
> Quoting Greg Knaddison - GVS <Greg(a)GrowingVentureSolutions.com>:
>
> > On 7/7/06, Gerhard Killesreiter <gerhard(a)killesreiter.de> wrote:
> >> Chris Johnson wrote:
> >> > What's the best practice for importing hundreds of media files, say MP3
> >> > recordings, as nodes? Uploading them one at a time through a web form
> >> > page is not desirable. :-)
> >>
> >> I too am looking for a similar thing. I am not aware that such a thing
> >> currently exists.
> >>
> >
> > I would say that a good model exists in the Image Manipulation module
> > and Gallery Remote java application. Though you are probably aware of
> > that...
> >
> > Regards,
> > Greg
> >
> > --
> > Greg Knaddison | Growing Venture Solutions
> > Denver, CO | http://growingventuresolutions.com
> > Technology Solutions for Communities, Individuals, and Small Businesses
> > --
> > [ Drupal support list | http://lists.drupal.org/ ]
> >
>
>
>
--
Greg Knaddison | Growing Venture Solutions
Denver, CO | http://growingventuresolutions.com
Technology Solutions for Communities, Individuals, and Small Businesses
What's the best practice for importing hundreds of media files, say MP3
recordings, as nodes? Uploading them one at a time through a web form page is
not desirable. :-)
Thanks,
..chrisxj
Hello!
I posted a more detailed description of my issue at
http://drupal.org/node/72902, but my basic problem is very simple:
How can I properly dummy up the $node->category variable from the category
elements of the node form?
Specifically, I am trying to make Image_Import work with the Category module
instead of core Taxonomy, and I can't use the category_node_get_categories
function because the node is not yet saved when I need to set
$node->category.
Anyone have any ideas or suggestions?
Thanks much,
Jon
Got it!!
The problem seemed to always stem from line 375. So, in looking there, I
see this:
include_once(drupal_get_path('module', 'tinymce'). '/plugin_reg.php');
Well, just for grins, I decided to put in the full path to
plugin_reg.php. It worked!! Not sure why it's an issue, but it fixed my
problem. Oh, here's what I changed it to:
include_once('/var/www/html/drupal/modules/tinymce/plugin_reg.php');
- jody
> I've recently setup Drupal 4.7 on a redhat 4.0 server. I'm
> trying to get
> the TinyMCE module setup, but am running into a few snags.
>
> When I go into Administer>>Settings>>TinyMCE and click the link to
> create a new profile, I get a blank page. I looked at my site's error
> log, and it had this:
> [client 172.30.2.145] PHP Notice: Undefined index: pass in
> /var/www/html/drupal/includes/database.mysql.inc on line 37, referer:
> http://www.wals.lib.wi.us/drupal/admin/settings/tinymce
> [client 172.30.2.145] PHP Fatal error: Unknown function:
> _tinymce_plugins() in
> /var/www/html/drupal/modules/tinymce/tinymce.module on line 376,
> referer: http://www.wals.lib.wi.us/drupal/admin/settings/tinymce
>
> Also, if I click on the browser's back button, I get this error on the
> page:
> * warning: _tinymce_get_buttons(modules/tinymceplugin_reg.php): failed
> to open stream: No such file or directory in
> /var/www/html/drupal/modules/tinymce/tinymce.module on line 375.
> * warning: _tinymce_get_buttons(): Failed opening
> 'modules/tinymceplugin_reg.php' for inclusion
> (include_path='/usr/share/pear') in
> /var/www/html/drupal/modules/tinymce/tinymce.module on line 375.
>
> Any ideas what may be wrong?
Hello,
I'm trying to run the upgrade.php script on my site (drupal 4.7), and
every time I click the update button, I get this error message:
An HTTP error 403 occured. update.php?op=do_update
Any ideas what may be wrong?
- jody
Hello,
I've recently setup Drupal 4.7 on a redhat 4.0 server. I'm trying to get
the TinyMCE module setup, but am running into a few snags.
When I go into Administer>>Settings>>TinyMCE and click the link to
create a new profile, I get a blank page. I looked at my site's error
log, and it had this:
[client 172.30.2.145] PHP Notice: Undefined index: pass in
/var/www/html/drupal/includes/database.mysql.inc on line 37, referer:
http://www.wals.lib.wi.us/drupal/admin/settings/tinymce
[client 172.30.2.145] PHP Fatal error: Unknown function:
_tinymce_plugins() in
/var/www/html/drupal/modules/tinymce/tinymce.module on line 376,
referer: http://www.wals.lib.wi.us/drupal/admin/settings/tinymce
Also, if I click on the browser's back button, I get this error on the
page:
* warning: _tinymce_get_buttons(modules/tinymceplugin_reg.php): failed
to open stream: No such file or directory in
/var/www/html/drupal/modules/tinymce/tinymce.module on line 375.
* warning: _tinymce_get_buttons(): Failed opening
'modules/tinymceplugin_reg.php' for inclusion
(include_path='/usr/share/pear') in
/var/www/html/drupal/modules/tinymce/tinymce.module on line 375.
Any ideas what may be wrong?
- jody
Here they are.
There are also posted for now at my test drupal site:
http://www2.evergreen.edu/dave
Dave
-----Original Message-----
From: support-bounces(a)drupal.org [mailto:support-bounces@drupal.org] On
Behalf Of Bill Fitzgerald
Sent: Friday, June 30, 2006 7:55 PM
To: support(a)drupal.org
Subject: Re: [support] Providing ownerships of a subset ofthe siteto
user/group
David,
Thanks for taking the time to prepare these for distribution --
Cheers,
Bill
Metzler, David wrote:
>Certainly willing to share with others. A couple of caveats:
>
>* They only work on Linux with mysql, so they're not up to drupal
>distribution standards.
>
>* They're currently dependent on the way that I have my multiple
>hosting sites configured: (creating symbolic links in my htdocs
>directory, using a common user across all my drupal sites, using root
>envioronment to grant dba access/passwords, etc. )
>
>* I need a little time to bundle them. (remove my passwords, add some
>docs,etc).
>
>I'll put them up on a web site when I have a chance and send the link
>to the support list.
>
>Dave
>
>-----Original Message-----
>From: support-bounces(a)drupal.org [mailto:support-bounces@drupal.org] On
>Behalf Of Bill Fitzgerald
>Sent: Friday, June 30, 2006 8:28 AM
>To: support(a)drupal.org
>Subject: Re: [support] Providing ownerships of a subset ofthe siteto
>user/group
>
>Metzler, David wrote:
>
>
>
>>Correct, just a separate database and a separate "files" directory for
>>uploading of images, documents etc.
>>
>>http://www2.evergreen.edu/dave
>>http://www2.evergreen.edu/itch
>>http://www2.evergreen.edu/ITTrainingRoom
>>
>>Are three sites hosted from the instance of drupal (same php, themes,
>>modules, etc) against different databases. I'm running on linux,
>>apache, mysql. Technically each of these directories are just
>>symbolic
>>
>>
>
>
>
>>links to the one drupal code base.
>>
>>To make it really easy to manage, I've developed some shell scripts to
>>create sites by cloning mysql databases, making a few symbolic links,
>>directories, and building a custom settings.php file.
>>
>>
>>
>Hello, David,
>
>These scripts sound incredibly useful -- would you be willing to share
>them?
>
>Cheers,
>
>Bill
>--
>[ Drupal support list | http://lists.drupal.org/ ]
>
>
--
[ Drupal support list | http://lists.drupal.org/ ]