News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1215107796:v:use_geshi-1:v:type-php

Started by Guest, Jul 03, 2008, 05:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Guest

         'lastPost' => array(
            'time' => $row['lastTime'],
            'href' => $scripturl . '?topic=' . $row['id_topic'] . '.new;topicseen#new',
            'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.new;topicseen#new">' . $row['subject'] . '</a>'

Guest

   while ($row = $smcFunc['db_fetch_assoc']($request))
   {
      $context['topics'][] = array(
         'id' => $row['id_topic'],
         'subject' => $row['subject'],
         'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
         'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
         'replies' => $row['num_replies'],
         'board' => array(
            'id' => $row['id_board'],
            'name' => $row['bName'],
            'href' => $scripturl . '?board=' . $row['id_board'] . '.0',
            'link' => '<a href="' . $scripturl . '?board=' . $row['id_board'] . '.0">' . $row['bName'] . '</a>'
         ),
         'firstPoster' => array(
            'id' => $row['id_first_poster'],
            'name' => $row['firstPoster'],
            'time' => (time() - $row['firstTime'] < 3600) ? round((time() - $row['firstTime'])/60, 0) . $txt['minutes_ago'] : timeformat($row['firstTime']),
            'href' => $scripturl . '?action=profile;u=' . $row['id_first_poster'],
            'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_first_poster'] . '">' . $row['firstPoster'] . '</a>'
         ),
         'lastPoster' => array(
            'id' => $row['id_last_poster'],
            'name' => $row['lastPoster'],
            'time' => (time() - $row['lastTime'] < 3600) ? round((time() - $row['lastTime'])/60, 0) . $txt['minutes_ago'] : timeformat($row['lastTime']),
            'href' => $scripturl . '?action=profile;u=' . $row['id_last_poster'],
            'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_last_poster'] . '">' . $row['lastPoster'] . '</a>'
         ),
         'lastPost' => array(
            'time' => $row['lastTime'],
            'href' => $scripturl . '?topic=' . $row['id_topic'] . '.new;topicseen#new',
            'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.new;topicseen#new">' . $row['subject'] . '</a>'
         ),
      );
   }