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

Title table with theme function

I am building a module for drupal 4.7.

In this module i have a table that needs a title.(not a header).

example(non drupal code):

Yahoo Publisher & Inline blocks

Hi,

I use Yahoo publisher (like google adsense) on my sites, and I need some kind of custom blocks, I saw some of the post on making custom regions and blocks, but I'm really looking for a module I guess, that would make it as easy as possible.

Does anyone know if the adsense module would work for Yahoo Publisher?
Has anyone tried it?

Thanks in Advance
Asher

hook_comment() problem

I wrote my own hook_comment() mymodule_comment() to do some jobs while comments are deleted or posted. insert works just fine, but code in case 'delete' doesn't invoke when a comment is being deleted. I have no idea why. The following is the code

mymodule_comment(...)
switch ($op) {
case 'delete':
do this;
break;

case 'insert':
do that;
break;

Thanks...

ecom mod ready for large scale production?

Hi, my im putting together an ecom proposal for my employer's client.
I am pushing and OS CMS.... pretty easy argument to win
I would like to push an OS shopping cart.... a bit fuzzy here.

I get the impression from the forum that many feel the drupal ecom mod is not ready for prime time with in our scenario:

sale of media, physical goods, travel booking.
with drupal ecom we can set up for anything right? but whats this bit about not working with weight or multiple shipping solutions?

RSS Module That Allows Content Type Exclusion?

Hi all,

Does a module exist that generates an RSS feed wherein certain node types can be excluded?

I'm working on a site that has some content types that shouldn't be available via RSS as they just clutter the feed up.

If such a module doesn't exist, I'll write it and contribute it back.

Cheers,
Mike

User view Module/Block

Hello,

I need help with the creation of a custom module or block whichever is best. What I am creating is a people (user) page that will output the photo, username, and a few other profile fields for 6 random users. When this is clicked it will send you to the profile page for that user.

In the end this will have to be on a page with the the google user_location module.

Using the forums I have found this code which displays the users username and photo:
<?php
/*
* This php snippet loads up a random user object and displays their name and avatar.
* $count controls (x) number of users to display
* $no_avatar controls the path to the default avatar image to display.
*
* tested and works with drupal 4.6.x
*/
$count = 6;
$no_avatar = "Theme/images/NoPhoto.jpg";
$result = db_query_range(db_rewrite_sql("SELECT * FROM {users} u ORDER BY RAND()"), 0, $count);
while ($user_info = db_fetch_object($result)) {
if($user_info->uid){
if($user_info->picture){
print '

';
}
else {
print '

';
}
print $user_info->name;

Pages

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