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

How can I hide unpromoted nodes when viewing taxonomy/term/XX using db_rewrite_sql? Please help, going insane...

Hello,

The title says it all: basically, when a user clicks on taxonomy/term/8, I only want to show the nodes which are *promoted* to the front page.
I know it sounds a little weird, but I really need it.

I am trying to do so using hook_db_rewrite_sql, but I am having _serious_ trouble. I really don't want to end up modifying taxonomy_select_nodes(), which would take 4 minutes but would also make my upgrading life hell-ish.

If I do this:

Displaying custom database content on a page - Help.

I'm totally new to Drupal use and development, and I need some help. I started writing a module a week ago, and I'm to the point now where I need to display the content on a page. I have searched all over this site, and in a book I've got, Pro Drupal Development, and can't find a suitable example to adapt to my project.

Basically, I have a module that creates a form for inputing job listings. The form has fields like location, salary, exp, and so on. All of these fields are stored in their own database table. I've got it working fine to that point, basically. I have some taxonomy set up so that I can display all the job listing nodes via the menu (I've got it set up so each job listing is a node).

What I need is some example I can look at that will help me out with this: I need to retrieve the data from my table, and display all of the form fields on a page when a user clicks on the node title. My database table stores all the data, including the node ID. Basically, I need something that will grab the data based on the Node ID, and display it kind of like this:

Position:
Marketing Coordinator

Company:
ABC, Inc.

Location:
Middle of Nowhere, AR

Pay:
$50,000 Annually

Description:
Position details and such...

Is there a module for third party affiliate links, ie CJ.com?

HI all,

What I am looking for is a module I can input external links, categorize them and then display them on a rotating basis. I would love the complexities like the record keeping and date expiry like in the Ad module, but can live without it.

I've been through the whole list of mods and can't find anything like it. I've looked at rotating images, but can't store the links as images, so I can't figure out how to make that work either.

Embedding flickr photos to my website based on tags in Drupal 5.x

Hi

am using Drupal 5.x

Is there any module to get flickr photos to my website based on tags,

and also i want to add slideshow to flickr photos in my site.

can any one please guide me on this. which module is suitable for me.

thanks
bsk

Tutorial for Drupal 5.x

Any one have Complete tutorial for Drupal 5.x???????

statistics_exit() in Statistics module help!

Hi,

I have created a new module that behaves like og module against 'node/add/xxx' but I have used created my own forms to add blog,event,story....etc.
The default behavior of the og module uses the node_save() function that adds the whole node in the database, in this flow, the function statistics_exit() is also called. That adds the node value in the 'node_counter' table in the database.
In this function....

function statistics_exit() {
global $user, $recent_activity;
drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH);
if (variable_get('statistics_count_content_views', 0)) {
// We are counting content views.
if ((arg(0) == 'node') && is_numeric(arg(1)) && arg(2) == '') {
// A node has been viewed, so update the node's counters.
db_query('UPDATE {node_counter} SET daycount = daycount + 1, totalcount = totalcount + 1, timestamp = %d WHERE nid = %d', time(), arg(1));
//found node_counter
// If we affected 0 rows, this is the first time viewing the node.
if (!db_affected_rows()) {
// We must create a new row to store counters for the new node.
db_query('INSERT INTO {node_counter} (nid, daycount, totalcount, timestamp) VALUES (%d, 1, 1, %d)', arg(1), time());
// found node_counter
}
}
}

Pages

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