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

Troll problem

I do not reach my troll module. It gives this error:

Fatal error: Call to undefined function: drupal_get_form() in /home/cizgi/public_html/ayirimcilik/modules/troll.module on line 388

I placed the troll directory in the modules directory of your drupal installation, used the troll.mysql script to create the tables in the database, enabled this module by navigating to: administer > configuration > modules and selected the troll module settings page: administer > settings > troll but did not reached it.

What is the problem?

Add access hook to all content modules?

I was just browsing this thread (http://drupal.org/node/38830) about the difficulty of making forums only viewable by registered users. There are ways to do this with taxonomy access, but I like to use Organic Groups and the two seem to cancel each other out. Is it possible to simply add an "access forums" check mark to admin/access? Perhaps, every content module, like comments already does, could be required to have an "access" field along with the "create" and "edit" permissions most have.

problems understanding menu-handling of Drupal

Hi everybody,

I am developing several custom modules for a website I am building. One of the modules is a hardly adapted taxonomy_menu_module which uses vocabulary-names and term-names to create the paths, and some custom functions to render lists of nodes of a taxonomy-term.

For example a part of the menu looks like this

fruits
+-apples
+-peaches
+-berries
  +-strawberries
  +-.
  +-.
+-.
+-.

if the user navigates through this menu the active menu-items are rendered active. But if the user chooses a node to view, the corresponding menu-item is not rendered as active.

in hook_nodeapi/view I compute the correct path for the node and do something like this: (for example $path="berries/strawberries")

$arr = array(array('path' => $path, 'title' => t($term->name)), array('path' => 'node/'. $node->nid, 'title' => $node->title));
menu_set_location($arr);

This will expand the menu-hierarchy the right way, but it will not hilight the last menu-item. Say I am viewing a node of the listing strawberries, the menu-item strawberries gets not activated, only expanded.

I can achieve what I want with the following lines:

menu_set_location($arr);
$breadcrumb = drupal_get_breadcrumb();
menu_set_active_item($path);
drupal_set_breadcrumb($breadcrumb);

but I am loosing the local_tasks-menu (view/edit/revisons) of the node, so no easy editing for the user/admins.

A way to just pull the Taxo from ONE list and not the other?

Okay, tring to make something cool happen...

I want to know if there is a way to display the info from one list of taxos vs the other.

[Title]

[Path]

[Topic List One:]

[Topic List Two:]

[Body]

I want to list in the $terms only the ones in list one or list two, but not both. So is there something other than $terms I could be using?

Thanks!

flickr_block module: images not showing

I was trying to get some images from flickr to my test site and not working. The demo site was also not working. After searching in google, i realized that there has been little problem with the image url, maybe flickr has changed that after flickr_block development. You just have to change the one line.

Maybe this help someone. I didn't find anyplace to submit this than in forum.

anjesh

Teasers in 4.7

I have found that the length of teasers in 4.7beta appears to be governed by when you have a line break. For example if you press enter in your post to create a new line, this is where the teaser will show up to. I have found this means you can end up with really long teasers! Is this a bug or a feature? if its the later is there a way to turn it off?
Thanks

Pages

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