This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

How can I make TinyMCE window expandable?

hello,

TinyMCE kills Drupal's default text-area resizing function. This is VERY user-unfriendly, especially given that people need a WISIWIG editor primarily to write large volume texts.

But I noticed that some TinyMCE installations have a little draggable resizing feature in the bottom-right corner. But I just don't know how to enable it.

so... How can I make TinyMCE window expandable?

PLEASE help...

adding menu_local_task to other paths

Hi,
I'm working on a module and I need to add two menu_local_task's to the node/add/content_name path...
More clearly:
I have a module named example in which I define several menu_local_tasks with path's such as /example/action
so when I'm on this page http://mysite/drupal/?q=example tabs show up for my menu_local_tasks

I want those same tabs to show up when I'm on a page such as node/add/content_name

Any ideas?

Thanks.

Existing module for most searched and most commented on content?

Looking for any existing modules that will allow me to track the most commented on and most searched on content. Is there anything like this available? Or am I looking at having to develop my own module for this?

Views - Howto create more complex filters using COUNT, HAVING etc.?

Hi there,

I've tried to figure this out myself, but the views documentation didn't get me much further (or rather, made me think what I'm trying to do is beyond the scope of views?), so if anyone could help me out here, that'd be fantastic.

I'm currently porting my website into Drupal, and have an assembly-kit management in it. Functionality-wise, the following happens: Users can define a list of items they own, and at the same time there is a database of project, listing instructions and the required items to build them. Now, what I want it a display of which projects a user can attempt based on his inventory, and for which he needs to buy additional items first.

The query for this uses a negative check, counting the items a user needs in addition to what he has. $uInventory is a string with all the item IDs from his inventory, and $difference is the amount of additional items required that should be shown.

$query=<<<ENDE
SELECT project, COUNT(DISTINCT item) AS Num
FROM rel_pro_item
WHERE item NOT IN ($uInventory)
GROUP BY project
HAVING Num = $difference
ENDE;

There is a dummy item in every project and in no inventory to make this query work, so $difference has to be at least one, then showing all projects that a user can attempt with his current inventory.

Need help with forms default value for select box

I'm using the drupal forms api and love it but I'm having a problem setting the default value for a select box (in this case the box contains a list of country names).

Here is the snippet where I try to set the default value:

$form[$school->counter]['country'] = array(
'#type' => 'select',
'#title' => t('Country'),
'#default_value' => variable_get('country',$school->country),
'#options' => $country_disp,
);

Suggestion to create ignore.module

I am not sure if this part of the forums for developing questions of the existing modules, or suggestion of new module ideas are also ok. If not right place then I ask moderators to move to another section of the forums.

My idea is to give users of my site possibility to ignore all posts and comments of the user they decided to completely ignore. I believe this kind of module would be very popular among Drupal community.

Is it possible to achieve this somehow programmatically without developing a new module?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions