Doug's Issue posts

Use SimpleXML for XML handling and rendering in export

1 hour 3 min ago

Moving from #603420: XML export produces invalid XML.

In that issue Steven Jones has posted an interesting patch that uses SimpleXML to provide XML handling instead of the custom handling currently in use.

Since this is a significant reworking, I'm moving to a separate issue to decouple from the original bug reported in that issue.

The major question likely is: Should SimpleXML be added as an alternative (use it if present, default to current approach if not) or should it instead be required?

The main downside of introducing an alternative is that it significantly increases the complexity of the code, as there are two distinct and very different approaches that both need to be supported.

Introducing a dependency could greatly simplify the code, but it would require PHP 5 and also a test for SimpleXML (optional in PHP 5 though enabled by default). A SimpleXML dependency could be done in a D7 upgrade, where we can count on PHP 5.

SimpleXML would require a different approach to rendering. Currently theme overrides may be used to customize the XML format. SimpleXML rendering doesn't look to lend itself readily to theme overriding. However, a different approach may be used. E.g., possibly, pass the XML object through a drupal_alter() call.

Categories: Drupal.org Feed

Increment CCK integer field

1 hour 14 min ago

I'm looking for some php help in the "Advanced: Specify the fields value with PHP code" form of the "Populate a field" action.

I have an integer CCK field called "field_suggestion_score" that I'd like to increment. I don't get the "return array" suggested code. I'd be willing to add this snippet and method to the documentation if someone could help me in the right direction.

Thanks for the great module!!

Categories: Drupal.org Feed

Menu is not horizontal

1 hour 15 min ago

I upgraded to version 1.3, and now my menu is displayed vertically instead of horizontally. It seems the css is not being applied?

Categories: Drupal.org Feed

YUI dropdown hidden behind left block

1 hour 23 min ago

Hi
I've installed YUI Menu , but when I click on a menu the drip down is hidden behind th eleft block.
I've tried changing z-index to 1000, but doesn;t make a difference ?
Anybody out there able to help ?

Categories: Drupal.org Feed

Image upload

1 hour 27 min ago

Hi

From the readme file :

Uploading images and files
--------------------------

There are three ways of uploading files: By using commercial file browser like CKFinder (http://ckfinder.com), by using modules like IMCE, WebFM, Image Browser or by using the core upload module.

To select preferred file browser, under "Administer > Site configuration > CKEditor", adjust
CKEditor profiles. In each profile you can choose which file browser will be used (in "File browser settings" section).
Note: to choose IMCE, WebFM or Image Browser you should install an appropriate Drupal module first.

I have enabled the core Upload module, but still only see CKFinder as an option under my file browser settings. Am I missing something ?

Thanks for any assistance.

Dave

Categories: Drupal.org Feed

Quiz Aiken Import Bug

1 hour 31 min ago

I also have an import bug for Aiken. Mine is using the latest 6.3 dev release.

When importing using this method, the question before tells the next question how many ABCD's there will be.

For example I imported the following.

What percentage of infertility is related to male factor alone?
A. Less than 15%
B. Greater than 90%
C. 5-29%
D. 30-40%
ANSWER: D

There has been a significant decline in sperm density (count) the past 60 years
A. True
B. False
ANSWER: A

But after the import, the actual quiz module shows this (i've bolded the errors):

What percentage of infertility is related to male factor alone?
A. Less than 15%
B. Greater than 90%
C. 5-29%
D. 30-40%
ANSWER: D

There has been a significant decline in sperm density (count) the past 60 years
A. True
B. False
C. 5-29%
D. 30-40%

ANSWER: A

Since the first question has ABCD, but the next question only has AB, the module seems to copy the CD from the question before.

This second question should only have A and B. But after importing, it added C and D from the question directly before it. It seems to do this consistently.

Categories: Drupal.org Feed

Simplify status indicators

1 hour 32 min ago

The current status indicators are a bit overcomplicated. Borders, gaps, colors conflicting with our main use: localize.drupal.org's theme. I decided to take this and make it simpler / blend in more with ldo. Committing this change.

Before/after:

Categories: Drupal.org Feed

CCK nodereference field seems to prevent views_views_pre_execute function from being called

1 hour 37 min ago

We use views_views_pre_execute function in our template.php file to change some views query:

function views_views_pre_execute(&$view)
{
if($view->name=="some_view_name_needs_to_be_changed")
{
$view->build_info['query']="
SELECT bla bla bla....
";
}
}

After adding to any content type cck nodereference field and selecting any view in
"Advanced - Nodes that can be referenced (View) -> View used to select the nodes:"
section, function views_views_pre_execute in our template.php file is not being called.

Categories: Drupal.org Feed

Does not work with PostgreSQL database

1 hour 38 min ago

There are 2 major bugs which make this module incompatible with PostgreSQL
A) Use of the wrong quotes to identify character data (" when it should be ')
B) there is no REPLACE (sometimes referred to as UPSERT) in PostgreSQL

Categories: Drupal.org Feed

Implement a "user_terms_override_selector" variable so third party modules can add custom selectors

2 hours 15 min ago

The core Taxonomy module has a taxonomy_override_selector variable that allows for third party modules to define custom selectors. See line 490 of the modules/taxonomy/taxonomy.module file. The most notable project that makes use of this functionality is the popular Hierarchical Select module. In order to facilitate integration with projects like Hierarchical Select, User Terms should implement something similar. In the spirit of consistency, I propose that this module define a user_terms_override_selector variable so that other modules can override the Taxonomy selection element in the user edit form. As a side note, I am submitting a User Terms integration module to Hierarchical Select and will post a link to it it this thread.

Thanks,
Chris

Categories: Drupal.org Feed

warning: Invalid argument supplied for foreach() in includes/common.inc on line 1647

2 hours 27 min ago

This error shows up when enabling Taxonomy_term view.
The view works normally however.

Categories: Drupal.org Feed

Render a node during an action

3 hours 8 min ago

I want to send a full node content upon submission by email. I pass the result of node_view() to drupal_html_to_text() and this works well when using the PHP evaluation in the "Editing action Send a mail to a user" form when I just do:
<?php
echo node_view($node);
?>

However I'm trying to leverage rules or token to put this in code. I initially tried using token but failed miserably, see #743950: Rendering a node in a token. What is the right way to go about putting this in code? I thought token was the way to go, but maybe rules evaluator are better for rendered elements?

Categories: Drupal.org Feed

PHP Fatal error when using og and views

3 hours 9 min ago

I'm getting this error loading any page, but only when organic groups and views are both installed:

PHP Fatal error: Call to a member function advanced_render() on a non-object in views/theme/theme.inc on line 209

My site is broken for any logged-in user (but displays fine when not logged in). Turning off og fixes everything. HELP!

I'm using CVS for modules:

$ cvs status og.info
===================================================================
File: og.info Status: Up-to-date

Working revision: 1.6
Repository revision: 1.6 /cvs/drupal-contrib/contributions/modules/og/Attic/og.info,v
Commit Identifier: 1f0f48920c144567
Sticky Tag: DRUPAL-6--2 (branch: 1.6.4)
Sticky Date: (none)
Sticky Options: (none)

This occurs with both Views 6.x.2.x and 6.x.3.x.

Categories: Drupal.org Feed

Threaded Comment

3 hours 14 min ago

I wonder how to display threade comment in this modules?

Categories: Drupal.org Feed

Inconsistent handling when updating the status of a node

3 hours 19 min ago

I use Boost on my site, and I have seen a strange issue. I have a view with a pager which consists of a listing of nodes. When I update the status of one of the nodes to unpublished, all cached pages of the view are removed, which is the expected behaviour. This is also to be seen from the watchdog:

Debug: boost_expire_node() <br />Node 67 was flushed resulting in 3 pages being expired from the cache

Then I access each of the pages in the pager and the cache is recreated for each of them. After that I change the status of the node in question to published again and, the cached pages unfortunately do not get removed from the cache directory.

Debug: boost_expire_node() <br />Node 67 was flushed resulting in 0 pages being expired from the cache

Categories: Drupal.org Feed

Homepages entered without "http://" on Comments rejected

3 hours 26 min ago

I've installed Bad Behavior on a client's site. The client wants all users to be able to include their homepage in their comments. However, if a user just enters their domain without "http://", Bad Behavior rejects it with a warning that the homepage must be of the form "http://www.example.com"

Is there a way to control this restriction? I have not discovered a way to include a simple javascript check after the homepage field to add a "http://" if the user does not include one. Realistically, most users these days won't think to add "http://" since their browser does that automatically.

Any suggestions would be most appreciated. Thanks.

Categories: Drupal.org Feed

Load fckeditor.config.js from path doesn't work

3 hours 31 min ago

When I choose the "yes" option for "Load fckeditor.config.js from theme path" in the advanced option, the file fckeditor.config.js from my theme seems not to be get by the module : the new toolbar that I created in my custom fckeditor.config.fs is no more displayed in the toolbar list, and I can't choose it.
To resolve the problem I have to remove the fckeditor.config.js from the module and replace it with my own file.

Perhaps this problem is related to the indication displayed under the toolbar list : "Choose a default toolbar set. To define new toolbar, edit fckeditor.config.js located in sites/all/modules/fckeditor.". The path (sites/all/modules/fckeditor) doesn't change even when I choose to load my fckeditor from the theme path.

Categories: Drupal.org Feed

Skid form. Annex.

3 hours 31 min ago

Skid form. Annex. sorry for my English

Categories: Drupal.org Feed

Gallery displays unpublished 'gallery image's

3 hours 33 min ago

situation: I have very standart node gallery with 4+1=5 nodes (gallery image) in it. 4 published images, 1 is unpublished.
When I view gallery node where images are displayed as thumbnails I see 4 thumbs, but image count says 5.
When I click last (4th) thumb, image opens, but in gallery navigation I also see 4/5 and when I click next I am taken to unpublished (5th) image.

maybe any existing solutions for this?

Categories: Drupal.org Feed

bracket issues

3 hours 37 min ago

I can't put two open and close bracket for the first entry, it will not work.
For example:
[[michael]], [[jane]], [[thomas]]

so I have to change to:
[[[michael]]], [[jane]], [[thomas]]

when i put it three bracket, the link shows, but then it also shows extra bracket

can anyone help?

Thanks

Categories: Drupal.org Feed