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

Amazon.com Module

Anyone know of any good drupal sites using the Amazon.com Associate Tools module? Im thinking about creating a site with this but wanted to see it in action first, the screenshots from the module page are good, but id like to see more. Thanks.

How to create a menu block in a module

Hi,

I want create in my module, a block that contain a menu like the menu in the navigation block. I tried to implement the hook_menu(). The problem is that only create menu item in the user's navigation block.

Does anyone tried to do something like this ?

New Module: PrintView

The module is simply spoken a crossing of 'Print' + 'PDFView' = 'PrintView'.

I really like the print module (printer-friendly pages), but it does not meet all my
requirements. What I needed was the ability ...

- to print taxonomy/term/x or taxonomy_menu/x pages, which contain multiple
nodes. print can only format node/x pages. some basic structural changes were
needed to archive this, so can cannot provide a simply patch for print module.

- to create a pdf download of the preformatted (using print) page (pdfview does
not format the page before it creates the pdf and therefore leads to malformed
pages frequently).

- to add a single link 'print version' (e.g. to the footer) to provide the users a
printer and pdf view of the pages.

PrintView qualifies for my benefit and is easy to use.
You can prefix your page url with
- print/ to get a printer-friendly version of the page
- pdf/ to get a pdf download
- printview/ to let the user choose the format
for example 'print/taxonomy/term/3' creates the printer friendly view of
'taxonomy/term/3' and 'pdf/taxonomy/term/3' a pdf version for it.

I know that PrintView is not perfect and the pdf view needs more work, but I also
think it has potential. (The module uses html2fpdf to perform pdf conversion,
which is still in beta state, http://html2fpdf.sourceforge.net/) Maybe it can be
further extended and with your help succeed print module one day.

Any Sudoku Module Creation Plans Out There?

Hi All.

I would love to add a daily Sudoku puzzle to my sites. ..

Does anyone know if one is in the works? I saw the PHP Nuke has one, while searching Google.

As an alternative, does anyone know if there is any PHP Snippet/Code out there that may accomplish the same thing?

Thanks!! :)

Complex query in Views API - advice

Hi

I want to use the views module to list the nodes returned by a query like this:

<?php 
 $querynobody = "SELECT uid FROM users WHERE name = 'nobody'";
  $nobodyobject = db_fetch_object(db_query($querynobody));
 $query = "SELECT m.evalid,n.title,n.nid,n.created FROM (node n INNER JOIN fhsstadmin_mediation m ON n.nid=m.nid) WHERE n.type='fhsstadmin-mediation' AND m.mediationstatus='0' AND m.evaluid != '$user->uid' AND m.pageuid != '$user->uid' AND n.uid='$nobodyobject->uid' GROUP BY n.title ORDER BY n.created ";
 if ($limitnum >= 0 ) $query .= " LIMIT " . $limitnum;
?>

How do I put in all the ANDs in the end properly?

I know how to expose the various columns using:

<?php
$tables['fhsstadmin_mediation'] = array(
"name" => "fhsstadmin_mediation",
"join" => array(
"left" => array(
"table" => "node",
"field" => "nid"
),
"right" => array(
"field" => "nid"
),
),
"fields" => array(
"mediatoruid" => array(
'name' => "Mediator ID",
'sortable' => true,
'mediatoruid' => "mediatoruid",
'addlfields' => array("mediatoruid")
),
"evaluid" => array(
'name' => "Mediator Eval ID",
'sortable' => true,
'evaluid' => "evaluid",
'addlfields' => array("evaluid")
),
// etc.
),
"filters" => array(

Abour URL...

Can you help me with my question:

how I can change url of directory on my site

from "http://example.com/dir"

to "http://dir.example.com"?

Pages

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