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

How can link a page made in drupal with a section of the menu?

hi,
I have a question i have added some menu items and i want then to link a page on the website how can i do that can anyone please let me know how to go about doin it ?

Thanks

! How do I integrate my prewritten Php modules in Drupal !

I just learnt about drupal (about a month). Ive been playing around with it and it has been working marvelously. I understand how to create a drupal site from scratch BUT, I already have a site entirely in php and I cant figure out how to get all that bulk (about 30 files to work with drupal)
this is the url: http://rohsmi.madpage.com usr: "19" pass:"123"
I really dont know where to start.

flickr module

any module like these:
http://bogong.dk/flickrmodule
http://david.rencher.us/index/fGallery/

for drupal???

or, alternative to flickr like imageshack.us or others will be great too!

rgds,
rex.
http://www.ngobrol.com

TreeMenu

Excuse me for my english. Who knows what change the standard menu on menu which turns around without turning on page. Beforehand thank you. LeShiY_OH@mail.ru

Posts on forum not visible

I installed the forum module and posted a new topic in a new container. When I checked the forum it said: "-1 new", but when I open the forum where the topic is at, that topic is not visible. But it is certainly there cause in the 'administer -> content' the topic is published.
What do I do to make those posts visible?

B.t.w. it is the first time I installed the module so the posts have never been visible before, they always were hide.

SQL query help

I'm trying to modify the using the voting.module so that it can display a sortable table listing each node's title along with the number of votes and average vote for that node. But I'm stuck and need some help to continue. Here's what I have so far (it's missing average vote and number of votes):

  $header = array(
    array('data' => t('title'), 'field' => 'n.title'),
    array('data' => t('changed'), 'field' => 'n.changed', 'sort' => 'desc'),
    array('data' => t('vote'), 'field' => 'v.vote'),
  );

  $sql = "SELECT n.nid, n.title,"
       . "   n.created, n.changed, v.vote"
       . " FROM {node} n"
       . " LEFT JOIN {votes} v ON n.nid = v.content_id  AND v.uid = $user->uid" 
       . " WHERE n.type = 'contribution'";
  $sql .= tablesort_sql($header);
  $result = pager_query(db_rewrite_sql($sql), 50);
    
  while ($row = db_fetch_object($result)) {
    $rows[] = array(l($row->title, "node/$row->nid"), date("Y-m-d", $row->changed), $row->vote);
  }
  
  if ($pager = theme('pager', NULL, 50, 0, tablesort_pager())) {
    $rows[] = array(array('data' => $pager, 'colspan' => 3));
  }

Here's the table that votes are stored in:


CREATE TABLE votes (
voting_id int(10) unsigned NOT NULL auto_increment,
content_type varchar(20) default NULL,
content_id int(10) unsigned default NULL,
vote tinyint(1) unsigned default NULL,

Pages

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