Skip to main content

AI Query of the week: What are super agents? Explain in one line

Gemini Response: Super agents are powerful talent representatives who manage high-profile athletes and entertainers, wielding significant influence in their clients' careers.

Aggregator

List nodes of children using taxonomy_select_nodes

15 hours 22 minutes ago

I want to list nodes from children terms using or editing taxonomy_select_nodes function. Actually I added these few lines but I get an infinite loop or slow response:

function taxonomy_select_nodes_ext($tid, $pager = TRUE, $limit = FALSE, $order = array('t.sticky' => 'DESC', 't.created' => 'DESC'),$promote) { if (!variable_get('taxonomy_maintain_index_table', TRUE)) { return array(); } $query = db_select('taxonomy_index', 't'); $query->addTag('node_access'); $query->condition('tid', $tid); if ($pager) { $count_query = clone $query; $count_query->addExpression('COUNT(t.nid)'); $query = $query->extend('PagerDefault'); if ($limit !== FALSE) { $query = $query->limit($limit); } $query->setCountQuery($count_query); } else { if ($limit !== FALSE) { $query->range(0, $limit); } } $query->addField('t', 'nid'); $query->addField('t', 'tid'); // This block of code is the custom code I added. //SELECT only promoted article if($promote==1){ $query->join('node', 'no', 'no.nid = t.nid'); $query->condition('promote', 1); } $taxonomies=array(); $taxonomies = taxonomy_get_children($tid); $taxonomies[]=$tid; $query->condition('t.tid', $taxonomies,'IN'); foreach ($order as $field => $direction) { $query->orderBy($field, $direction); // ORDER BY fields need to be loaded too, assume they are in the form // table_alias.name list($table_alias, $name) = explode('.', $field); $query->addField($table_alias, $name); } return $query->execute()->fetchCol(); }
hanzouti

Infinite Redirect Loop with PURL and spaces_og

16 hours 31 minutes ago

I created a calendar feature for organic groups, and tried to enable it in a group with spaces_og. The page refreshes saying changes have been saved but the feature is still disabled. In the logs, there is a message that purl prevented a redirect loop.

I realize spaces is still in dev with d7. Is this a known issue? Did I do something wrong when creating my feature, or is there a better way to create features for use in organic groups?

Arosboro

The three big issues that could sink the Comey prosecution - The Washington Post

18 hours 1 minute ago

Why screening for the deadliest cancer in the U.S. misses most cases - The Washington Post

18 hours 2 minutes ago

Chip Kelly on getting fired: You have to win, I get it - NBC Sports

18 hours 11 minutes ago

Microsoft is speeding up and decluttering File Explorer in Windows 11 - The Verge

18 hours 13 minutes ago

'Slender Man' stabbing assailant Morgan Geyser taken into custody after fleeing group home: Police - ABC News

18 hours 18 minutes ago

The Cowboys upset the Eagles in the wildest finish of the week - NBC News

18 hours 31 minutes ago

Russia launches deadly attack on Kharkiv amid 'productive' US-Ukraine talks - ABC News

19 hours 12 minutes ago

How Trump's 28-point plan for Ukraine shocked the world - Axios

19 hours 28 minutes ago

Kennedy sharpens vaccine attacks, without scientific backing - CBS News

19 hours 33 minutes ago

Malaysia to Bar Children Under 16 From Social Media, Echoing Australian Ban - The New York Times

19 hours 37 minutes ago

Georgia Republicans caught in a bind of Trump's making over health care costs - Politico

19 hours 48 minutes ago

New AI club to bestow nuclear-like power, says Russian tech boss - Reuters

20 hours 34 minutes ago