Hi.
I'm trying to import forum data from fud to drupal.
Creating the containers is done very easy but if I want to create the
forums within these containers it fails:
<code>
$containers = _fud_get_categories();
foreach ($containers as $data) {
$values['name'] = utf8_encode($data->name);
{...}
// this works:
drupal_execute('forum_form_container', $values);
// get new tid from database...
$tid = {...}
$forums = _fud_get_forums($data->id);
foreach ($forums as $forum) {
$values['name'] = utf8_encode($forum->name);
{...}
$values['parent'][0] = array($tid => $tid);
drupal_execute('forum_form_forum', $values);
}
}
</code>
The second drupal_execute runs into an error: "An illegal choice has
been detected. ..." (form.inc: function _form_validate(); #555).
I know why this error appears but I don't know how to solve it: if you
create a forum (admin/content/forum/add/forum) the list of parents is
build by using taxonomy_get_tree().
After creating a forum container with drupal_execute the tree isn't
updated (static variable in taxonomy_get_tree()) so the new container
isn't available in the parent list and the "illegal choice" error is thrown.
Is there a way how to update the tree? Or clear the static variable
(static $children) in taxonomy_get_tree()?
Or is it possible to set $form['#DANGEROUS_SKIP_CHECK'] with
drupal_execute() (if set the options wont be checked)?
I tried but couldn't get it work.
(The other option is to create the containers first, create a mapping
array (old id from fud => new tid in drupal) and then create the forums.
But this would be the last option.)
greetings,
Stefan
I have had a customised theme made which relies basically on 3-4 tabs at the top of the page.
The problem is, I don't know how to organise things on the admin side. I would like to use a standard theme like Garland for the admin side but wouldn't there still be a problem of where the admin menu links go?
The new customised theme will not have a left side menu....only the tabs I mentioned. Is it therefore possible to use Garland for admins WITH a side menu or does a menu have to be in the same place for all themes? What do other people do to have different themes showing to their members and themselves? I know you can alter the admin theme - it's just this issue of menus that has foxed me.
Neil
Hello,
I've got a site in Drupal 5.1. I've got a calendar, and when I view the main
event page, I try selecting event category to filter by. But, no matter what
I choose, it still shows everything.
Is there something I'm missing?
- jody
Hello,
I know this is slightly off topic, so I apologize. I didn't know where else
to ask.
I've got a drupal 5.1 site here: http://beta.menashalibrary.org
I have a search box at the top that has a drop down. The drop down chooses
what you want to search, and searches accordingly. The problem is, I have no
idea how to do this. I've tried javascript, but to no avail. Basically, I
need on item in the drop down to search the library's web catalog, and the
other to search their drupal site.
Any ideas on how I can do this?
- jody
Hello,
I've got a drupal 5.1 site where I'm trying to insert a table. In one cell,
I've got a background set like this:
<td style="background-image:
url(http://www.imcpl.org/resources/images/subcategory_main.gif);
background-repeat: repeat-y;">
When I save the page, rather than using that background for that cell, it
instead shows this text:
http://www.imcpl.org/resources/images/subcategory_main.gif);
background-repeat: repeat-y;">
Is there a setting somewhere I need to change to get that to work? I'm using
the input format of full html.
- jody
hi all, there is a webstream of our radio station at:
http://71.192.26.80:8000/
what is the code to 'launch this stream' in whatever audio stream
software the person has defaulted from their browser? or better yet, how
can i embed a player?
most of our listeners are very unfamiliar with computers so it is
important that this be extremely foolproof.
thanks
-- will
I have a theme that needs to check if a CCK date field value is
blank. Initially, I did this with a simple ...
if ($field_datetime_value)
... but since upgrading the date module, I'm getting strange non-
empty "blank" strings, e.g. something that serializes to s:41:"". So,
empty($field_datetime_value) returns false, strlen
($field_datetime_value) returns 41, strcmp($field_datetime_value, "")
is positive, but the string *is* blank.
So two questions:
(1) How does such a string ever get created (is this a PHP bug)?
(2) If it's not a bug, how does one detect this kind of blank string?
See http://drupal.org/node/128778 for more details.
--
Ray Zimmerman
Senior Research Associate
428-B Phillips Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645
Hi
How can I get something like :-
http://www.torrentz.com/search?q=ebook
i.e
A) ability to order based on the fields of the table
B) Prev , Next etc buttons at the end of the page.
The site I mentioned in the mail has clearly used drupal (can be guessed by
seeing the PREV / LAST buttons at the end of the table)
But I could not find any module allows me to do this .
Thanks and Regards
Abhinav
Learning Drupal (Level : Beginner )
so when i put an image into a node teaser, and there is another teaser
on the same page, the next node teaser text flows into the previous
text. i have to manually enter several line breaks so that the text is
'larger' and the next image doesn't flow into it.
that is to say, instead of each teaser being treated as a distinct div,
with the bottom of the image delineating its own region, the text from
the next teaser will flow up into the previous one if the text is
smaller than the image.
this is using the node_teaser module and a theme based on boxed_grey
any ideas?
e.g.
if you look here:
http://freedom-center.org/section/activism%2Badvocacy
the 'read more' should be much lower, alongside the bottom of the image.
instead, the next text starts alongside, not below, the image, in the
previous teaser's space.
thanks!
-- will