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

Use drupal DB connection to do a simple query

Hi all,

I'd like to use my drupal installation includes to do a simple database query from php (I don't want to record host/user/password information twice).

What files should I include in order to be able to use db_query ?? :

I thought this should work but it doesn't :

include_once '../blog/includes/bootstrap.inc';
include_once '../blog/includes/common.inc';
include_once '../blog/includes/database.inc';
$result = db_query("select * from ...");

Any ideas ??

Thanks

how to create a advanced search with different multiple select boxes

hi search-experts,

i am trying to setup an advanced search for a little niche-jobsite like monster.com etc. like http://www.job.de/job_suche/refine.phtml or http://drupal.org/search/issues

job-listings will be categorized with the taxonomy-module and i have installed trip_search.

user should select different search-kategories in different multiselect-boxes (from taxon-modul).

e.g.

Weblinks module for Drupal 5.0 is available

For Drupal 4.7 I have used official weblinks module: http://drupal.org/project/weblinks

But I was not satisfied with it, since:

* it is too heavy for new node type module
* it use own non-standard category system
* too much unnecessary menus and administrations possibilities (it shall be moved to separate module, if someone need it)
* module do not count clicks

First filed (title) at CCK

In any new type of a content created by the CCK is the first field (title).
I cant delete or change it at CCK options.
Whether it is possible to solve this problem?
Thanks!

Covert phpBB module to 5.x

Anyone who has managed to convert the phpBB module to Drupal 5.x? I'm really interessted in this module...
http://drupal.org/project/phpbb

Node content output

Hi!

i'm trying to output some node information from my module. I've managed to get most of it by using node_load() etc. But to get the content displayed to my liking I used modified copies of node_view() and theme_node().

However, it seems that drupal doesn't actually use theme_node() but rather bluemarine_node(). And i can't find this function! So if someone could point me to where it is i would be very appreciative.

Pages

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