Ask a Question

Welcome to our Question and Answer section. Browse the most recent questions below or select a category from the left to browse by subject. You must be registered and logged in to ask or answer questions.

 

Ask a Question Latest Questions and Answers

    $tempnodeobject2->nid)); $userobject = user_load(array('uid' => $querynodeobject->uid)); $filepath = 'images/ico-question.jpg'; $filepath2 = $userobject->picture; if (file_exists($filepath2)) { $filepath = $filepath2; } $todaysdate = strtotime(date("Y-m-d")); if ($querynodeobject->comment_count) { $result2 = db_query('SELECT name FROM {users} WHERE uid = '. $tempnodeobject2->last_comment_uid . ' LIMIT 1'); while ($nextrow = db_fetch_object($result2)) { $timestampdate = strtotime(date("Y-m-d", $tempnodeobject2->last_comment_timestamp)); $formatteddate = ($todaysdate == $timestampdate) ? format_interval(time() - $tempnodeobject2->last_comment_timestamp) . ' ago' : 'on ' . date("D, m/d/Y - H:i", $tempnodeobject2->last_comment_timestamp); $the_name = $nextrow->name; $the_profile_text = 'Latest Post by ' . $the_name . ' ' . $formatteddate; $the_comment_text = 'Answers - ' . $tempnodeobject2->comment_count; } } else { $timestampdate = strtotime(date("Y-m-d", $querynodeobject->created)); $formatteddate = ($todaysdate == $timestampdate) ? format_interval(time() - $tempnodeobject2->last_comment_timestamp) . ' ago' : 'on ' . date("D, m/d/Y - H:i", $querynodeobject->created); $the_profile_text = 'Submitted by uid) . '">' . $querynodeobject->name . ' ' . $formatteddate; $the_comment_text = 'Answers - 0'; } print '
  • uid) . '">user avatar
    ' . l(substr($querynodeobject->title, 0, 100), "node/" . $querynodeobject->nid) . '' . substr(preg_replace('/^Save\sas(.*)(\n*)?(.*)?Published/m', '', strip_tags($querynodeobject->body)), 0, 125) . '…
    '; if ($querynodeobject->comment_count) { print '
    ' . l("Read Answers", "node/" . $querynodeobject->nid) . '
    '; } else { print '
    ' . l("Submit an Answer", "node/" . $querynodeobject->nid) . '
    '; } print '
  • '; } if ($loop_count < $list_length) $loop_count += 1; print theme('pager', $loop_count); ?>
 

Questions and Answer Topics

 

disclaimer

Call Now to Discuss Addiction Treatment Options 800.500.5722

1-800 500-5722

Subscribe to our free Newsletter for weekly Support and Inspiration

Email

Poll

Why Did You Visit This Site?
I Have an Addiction
21%
A Friend or Family Member has an Addiction
33%
I Might Have an Addiction....Not Sure
8%
I am Recovering From an Addiction
6%
Just Looking for Information
32%
Total votes: 7080