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

To pull all 'Blog Information' as a single view or or block or page

I'm looking for a way to pull Blog Information from the bloginfo module in a single page or block.

Something like:

Blog Title1 by Username1
Description of the blog goes here.

Blog Title2 by Username2
Description of the blog goes here.

Blog Title3 by Username3
Description of the blog goes here.

...

Where the Blog title is a link to the blog. I see in the bloginfo table created by the module there are four fields: uid, title, description and format.

db_query() returning nothing

I've got the following two queries in my module:


$res = db_query("SELECT p.id, p.type, p.qty FROM {table} p WHERE p.nid = %d AND p.type IN (%d)", $nodeid, $types);
for ($i=0; $i < db_num_rows($res); $i++) {
$result = db_fetch_object($res);
...
}

$res = db_query("SELECT p.id, p.type, p.qty FROM {table} p WHERE p.nid = %d AND p.type NOT IN (%d)", $nodeid, $types);
for ($i=0; $i < db_num_rows($res); $i++) {
$result = db_fetch_object($res);
...
}

Customer defined price of a product.

Is there a way to let the customer to decide the price of the product you wanna sell?
Not an auction. More "decide the price your self, and buy it.

/August Engkilde

function to theme field

Hi, i'm creating my own module but i have problem with theming fields in it. I need to theme field from an other node than the one i'm actually generating so i need help with parameters of the function
theme('field', $node, $field, $node_field, $teaser, $page);
i am not sure how to get $node and $node_field variables. There is an function node_load, that can give me desired node object (and i found the way how to get the node_field from it) but this could probably slow down the pages while i need this up to for 60 fields (mainly for 8 - 16). Any idea how to prevent this?

civicrm moduel instulation

Hello, I am attempting to install the civicrm module on my drupal site. So far I am getting through it will. Accept for step 6 which I can't seem to figure out. Can someone please describe the procedure here in simpler terms. I am not sure what .php file I am supposed to copy and where I am supposed to copy it to. Can someone please help me with this?

Weather.module has no snow.

Like the title says, the weather.module has no snow images, so I'm assuming when it is snowing it will show the ? image.
Whats up with this?

Pages

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