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

event module error

I installed the event module and ran the mysql script to create the required table. When I go in to Blocks, and check the box to activate Events, I get the following error:

Fatal error: Call to undefined function: base_path() in /home/bikecalg/public_html/modules/event/event.theme on line 421

Anyone know what that means?

thanks
Stewart

Attachment ,did someone know it can work in 4.7?

i run attachment in drupal 4.7, but i find it has code error with filename of the attached files.
can it support utf-8?
i use chinese drupal 4.7.0

Get node value within list

I have theme_mymodule_content AND theme_mymodule_list.

I need to be able to call $node->cat from the theme_mymodule_content to use within theme_mymodule_list.

This is so that I get "cat" for that specific node and not a list of nodes using a sql query.

The purpose of doing this so that I get the "cat" for that node, so I can filter theme_mymodule_list with LIKE "$node->cat".

Any ideas on this OR a different method?

Thanks!

Taxonomy search has just stopped working

I can't figure out why but a site that I'm working on is no longer searching taxonomy terms. I've not upgraded, but my hosts have made changes to the mysql databases.

I've read of a few people facing similar problems and the response has simply been to point out that taxonomy_search is no longer being maintained. What I really need to know is *why* it stopped working and if it's possible to tweak it. (The ability to search taxonomy is vital to the site and upgrading to 4.7 is not an option.)

Can I add something which isn't a node to the create content page?

As per subject, my module requires that I add an entry to the create content page but its not a normal node - it's a completely separate set of module functions and CANNOT be a node. It wouldn't make logical sense (plus it'd mean a whole lot of recoding!) Anyways, I've added an entry to hook_menu for 'node/add...' which works fine, but this doesn't automatically produce an entry on the actual create content page, obviously only in the menu? I've created the entries in hook_help, but as I expected - that wasn't the answer either...

related_nodes & i18n

The related_nodes module is not i18n-compliant.

It looks possible to cheat with language-dependant taxonomy in order to link only to content from the same language, but the block title is not multilingual.

Changing line 100 of related_nodes.module to :
$blocks['subject'] = t(variable_get('related_nodes_block_title', 'Related Nodes'));
instead of
$blocks['subject'] = variable_get('related_nodes_block_title', t('Related Nodes'));

solves the problem.

Pages

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