Welcome, Guest. Please Login or Register.
May 11, 2025, 06:44:47 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Is there a mod for Ikonboard-style topic headlines? « previous next »
Pages: 1 [2] Reply Ignore Print
Author Topic: Is there a mod for Ikonboard-style topic headlines?  (Read 1990 times)
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:Is there a mod for Ikonboard-style topic headlines?
« Reply #15 on: April 02, 2003, 09:15:58 AM »
Reply with quote

QuoteI really meant no offense to you or Anguz...

oh, you didn't offend me, I was worried that I offended you because I didn't understand your code
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
old dan
Full Member
***
Posts: 191


Make music, not war.

WWW
Re:Is there a mod for Ikonboard-style topic headlines?
« Reply #16 on: April 02, 2003, 08:03:55 PM »
Reply with quote

No problem here either. It's just that as sad as it may be appearences can be important. And you're young, you're not a child.

anyway, the message line thing interests me. ikonboard doesn't. I don't know how they do it but I came up with something that may be totally different. There are no changes to the db and only a couple of changes to messageindex. What it does is display the first line of the post underneath the message title (actually the first 40 characters). So here's the code, if anyone finds it useful great, if not oh well. ;D I will be using it on my new board.

find this

      // Begin printing the message index for current board.
      while ($row = mysql_fetch_assoc($result))
      {
         if ($row['ID_POLL'] != '-1' && $modSettings['pollMode'] == 0)
            continue;
         $lastposter = $row['posterName'];
         $lastPosterID = $row['ID_MEMBER'];
         $mdate = $row['posterTime'];
         $mname = $row['mname'];
         $mid = $row['mid'];
         $msub = $row['msub'];
         $micon=$row['micon'];
         $mnum = $row['ID_TOPIC'];
         $mreplies = $row['numReplies'];
         $mstate = $row['locked'];
         $views = $row['numViews'];
         $isSticky = $row['isSticky'];
         $pollID = $row['ID_POLL'];
         $topicEditedTime = $row['posterTime'];
         $name1 = $row['posterDisplayName'];
         $name2 = $row['firstPosterDisplayName'];


and add after

$lastmsgid = $row['ID_LAST_MSG'];
$result2 = mysql_query("SELECT body FROM messages WHERE ID_MSG = '$lastmsgid';") or database_error(__FILE__, __LINE__);
$getline = mysql_fetch_assoc($result2);
$msgbody = $getline['body'];
$subjectline = substr($msgbody, 0, 40);


Next find this

         echo '
            <tr>
               <td class="windowbg2" valign="middle" align="center" width="6%" bgcolor="' . $color['windowbg2'] . '">
                  <img src="' . $imagesdir . '/' . $threadclass . '.gif" alt="" /></td>
               <td class="windowbg2" valign="middle" align="center" width="4%" bgcolor="' . $color['windowbg2'] . '">
                  <img src="' . $imagesdir . '/' . $micon . '.gif" alt="" border="0" align="middle" /></td>
               <td class="windowbg" valign="middle" width="48%" bgcolor="' . $color['windowbg'] . '">
                  <font size="2"><a href="' . $cgi . ';action=display;threadid=' . $mnum . '">' . $msub . '</a> ' . $new . ' ' . $pages . '</font></td>
               <td class="windowbg2" valign="middle" width="14%" bgcolor="' . $color['windowbg2'] . '">
                  <font size="2">' . $mname . '</font></td>
               <td class="windowbg" valign="middle" width="4%" align="center" bgcolor="' . $color['windowbg'] . '">
                  <font size="2">' . $mreplies . '</font></td>
               <td class="windowbg" valign="middle" width="4%" align="center" bgcolor="' . $color['windowbg'] . '">
                  <font size="2">' . $views . '</font></td>
               <td class="windowbg2" valign="middle" width="27%" bgcolor="' . $color['windowbg2'] . '">
                  <font size="1">' . $mydate . '<br />' . $txt[525] . ' ' . $lastposter . '</font></td>
            </tr>';


and replace with

         echo '
            <tr>
               <td class="windowbg2" valign="middle" align="center" width="6%" bgcolor="' . $color['windowbg2'] . '">
                  <img src="' . $imagesdir . '/' . $threadclass . '.gif" alt="" /></td>
               <td class="windowbg2" valign="middle" align="center" width="4%" bgcolor="' . $color['windowbg2'] . '">
                  <img src="' . $imagesdir . '/' . $micon . '.gif" alt="" border="0" align="middle" /></td>
               <td class="windowbg" valign="middle" width="48%" bgcolor="' . $color['windowbg'] . '">
                  <font size="2"><a href="' . $cgi . ';action=display;threadid=' . $mnum . '">' . $msub . '</a> ' . $new . ' ' . $pages . '<br />' . $subjectline . '</font></td>
               <td class="windowbg2" valign="middle" width="14%" bgcolor="' . $color['windowbg2'] . '">
                  <font size="2">' . $mname . '</font></td>
               <td class="windowbg" valign="middle" width="4%" align="center" bgcolor="' . $color['windowbg'] . '">
                  <font size="2">' . $mreplies . '</font></td>
               <td class="windowbg" valign="middle" width="4%" align="center" bgcolor="' . $color['windowbg'] . '">
                  <font size="2">' . $views . '</font></td>
               <td class="windowbg2" valign="middle" width="27%" bgcolor="' . $color['windowbg2'] . '">
                  <font size="1">' . $mydate . '<br />' . $txt[525] . ' ' . $lastposter . '</font></td>
            </tr>';


Disclaimer: This works on my board, it may or may not work on yours. And I definately am in no way shape or form affliated with or related to the YaBB development team.
Logged

People who drink lite beer don't like the taste of beer; they just like to pee a lot
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Is there a mod for Ikonboard-style topic headlines?
« Reply #17 on: April 03, 2003, 01:18:01 AM »
Reply with quote

Quote from: old dan on April 02, 2003, 08:03:55 PM
Disclaimer: This works on my board, it may or may not work on yours. And I definately am in no way shape or form affliated with or related to the YaBB development team.

Hehe...

So this shows the first 40 chars of the last post in the thread underneath the subject?  Not a bad idea....

Simpler than mine too, heh.

-[Unknown]
Logged
Pages: 1 [2] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Is there a mod for Ikonboard-style topic headlines? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.064 seconds with 20 queries.