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

how to do external url link? (ajaxshoutbox)

I just finished a Ajax powered shoutbox (based on chategory).
Now I am trying to imporve it and one of the thing that I wanna do is to have "auto url link" thingy.
I replaced the http://... with link, which didn't do the trick.

So, could anybody plz point me to the right direction of how to do this ? I've looked at the APIs such as t, l, url and the hook_filter but have no clue how to use it.

Thanks a bunch!

Where in CVS are 4.4 contrib modules?

I'm hunting for the 4.4 versions of some non-core drupal modules using the cvs.drupal.org/viewcvs interface. Inside the drupal/drupal/modules directory, I can see all the core modules, and can choose to filter according to the DRUPAL-4-4 tag. But inside the contributions repository (drupal/contributions) my only options to filter seem to be the MAIN and HEAD tags. This despite the fact that versions of individual contributed modules do seem to have been tagged with DRUPAL-4-4. Any advice?

Enhance user management

Hi,

another problem:
I need to add some more fields to the user table (or create a new linked table with some fields).
Whats the best way to do that ?

. modify the user.module (probably I will have some problems on the new future versiono of drupal)
. inherits (in witch way?) the user.module and enhance his functionality
. create a new module and link in some way the functionalities of both

Any idea?

Thank's

Marcello

What were you trying trying to do with this SQL?

Hello everyone, I've been happily chugging along, trying to get my entire Drupal site going using PHP5 and PostGres 8.x

I've finally run into something that I don't think is a bug, but it sure seems illogical to me, and I can't figure out what the statement is trying to accomplish, so therefore I can't seem to convert it into a compliant SQL statement.

The following code is generated by the forums module.

Newsletter Aggregator

Does anybody know if there already is a module that allows to select specific nodes and then automatically generate a newsletter from their abstracts?

Thanks for any hint,
Peter

Form_Select problem

Hi,
I've got a problem with the form_select function: I can't get back any results, probably 'cause there's an error in my "_POST section" code...

This is the code

function ruoli_form($node, $param) { // --- FUNZIONE OK ---
  
  //Chiama la funzione per caricare gli elementi
  $elementi= riempi_casella_nodi();
  //ottenuti gli elementi li inserisce nella casella a discesa
  $output .= form_select(t('Materiale'), materiale, $edit['materiale'],    $elementi,t('Seleziona il materiale'),0,0,1);  
  return $output;
}


function riempi_casella_nodi (){

//esegue la ricerca
$results = db_query("SELECT title FROM {node} WHERE type = 'video' OR type = 'story' OR type = 'image'  ORDER BY title");
//conta i record 
$num_rows = db_num_rows($results);
//e con due cicli magici riempie due array
for ($counter = 0; $counter < $num_rows; $counter++) {
 $users[] = db_fetch_array($results);
 }

while(list($key, $setting) = each ($users)){
 $user_list[] = $setting[ "title" ];
 }
//ritorna una rray come valore
return $user_list;
}


function ruoli_insert($node) {

 $data = $_POST['edit'];

$result = db_query("Select nid from {node} where title = '%s'", $data['materiale']);
$n = db_fetch_object($result);
db_query("INSERT INTO {materiali_ruoli_utenti} (nid_materiale) VALUES ('%d')", $n);
}

Do you have any suggestion?
Thanks in advance
Albosch

Pages

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