Welcome, Guest. Please Login or Register.
May 11, 2025, 08:08:48 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

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 1991 times)
noir
Noobie
*
Posts: 12


I'm not a llama! I just look like one.

Is there a mod for Ikonboard-style topic headlines?
« on: March 31, 2003, 05:13:25 PM »
Reply with quote

Like this:

Is there a mod
for Ikonboard-style topic headlines?

Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Is there a mod for Ikonboard-style topic headlines?
« Reply #1 on: March 31, 2003, 08:23:17 PM »
Reply with quote

i don't think there's one at the moment, but u can make one if u want
u'll need to add a column for the subtopic in messages table, or maybe topics table
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
noir
Noobie
*
Posts: 12


I'm not a llama! I just look like one.

Re:Is there a mod for Ikonboard-style topic headlines?
« Reply #2 on: April 01, 2003, 08:51:52 AM »
Reply with quote

Thanks. At least i won't feel like YARW (yet another re-inventor of the wheel)  :)

Logged
Koth
Jr. Member
**
Posts: 91


Your mother was a ham sandwich.

Re:Is there a mod for Ikonboard-style topic headlines?
« Reply #3 on: April 01, 2003, 07:57:55 PM »
Reply with quote

This mod would rock
Logged


 
old dan
Full Member
***
Posts: 191


Make music, not war.

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

I wrote this for 1.4.1 and updated it for 1.5. Don't know if it works for 1.5.1 but you can give it a try.

« Last Edit: April 02, 2003, 08:34:52 AM by old dan » 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 #5 on: April 01, 2003, 08:27:37 PM »
Reply with quote

Ummm..... they want something that will require db changes...... not announcements... :P.

I think you copied the wrong mod :P.

I would do it like this....

ALTER TALBE {$db_prefix}topics
ADD subTopic VARCHAR(80);

And then.....MessageIndex.php:
Change:
      $result = mysql_query("
         SELECT t.ID_LAST_MSG, t.ID_TOPIC, t.numReplies, t.locked, m.posterName, m.ID_MEMBER, IFNULL(mem.realName, m.posterName) AS posterDisplayName, t.numViews, m.posterTime, m.modifiedTime, t.ID_FIRST_MSG, t.isSticky, t.ID_POLL, m2.posterName as mname, m2.ID_MEMBER as mid, IFNULL(mem2.realName, m2.posterName) AS firstPosterDisplayName, m2.subject as msub, m2.icon as micon, IFNULL(lt.logTime, 0) AS isRead, IFNULL(lmr.logTime, 0) AS isMarkedRead
To:
      $result = mysql_query("
         SELECT t.ID_LAST_MSG, t.ID_TOPIC, t.numReplies, t.locked, m.posterName, m.ID_MEMBER, IFNULL(mem.realName, m.posterName) AS posterDisplayName, t.numViews, m.posterTime, m.modifiedTime, t.ID_FIRST_MSG, t.isSticky, t.ID_POLL, m2.posterName as mname, m2.ID_MEMBER as mid, IFNULL(mem2.realName, m2.posterName) AS firstPosterDisplayName, m2.subject as msub, m2.icon as micon, IFNULL(lt.logTime, 0) AS isRead, IFNULL(lmr.logTime, 0) AS isMarkedRead
, t.subTopic

And then...
                  <font size="2"><a href="' . $cgi . ';action=display;threadid=' . $mnum . '">' . $msub . '</a> ' . $new . ' ' . $pages . '</font></td>
To:
                  <font size="2"><a href="' . $cgi . ';action=display;threadid=' . $mnum . '">' . $msub . '</a> ' . $new . ' ' . $pages . '</font><font size="1"><br />' . $row['subTopic'] . '</font></td>

And then.....Post.php
                     <td>
                        <font size="2"><input type="text" name="subject" value="' . addcslashes($form_subject, '"') . '" size="40" maxlength="80" /></font>
                     </td>
                     </tr>
Add after:
' . (empty($threadid) ? '<tr><td><font size="2"><b>Sub Title:</b></font></td>
<font size="2"><input type="text" name="subtopic"  size="40" maxlength="80" /></font>' : '') . '

And...
         $request = mysql_query("
            INSERT INTO {$db_prefix}topics (ID_BOARD, ID_MEMBER_STARTED, ID_MEMBER_UPDATED, ID_FIRST_MSG, ID_LAST_MSG, locked, numViews)
            VALUES ($board, $ID_MEMBER, $ID_MEMBER, $ID_MSG, $ID_MSG, $locked, 0)") or database_error(__FILE__, __LINE__);

Replace with:
         $request = mysql_query("
            INSERT INTO {$db_prefix}topics (ID_BOARD, ID_MEMBER_STARTED, ID_MEMBER_UPDATED, ID_FIRST_MSG, ID_LAST_MSG, locked, numViews, SubTopic)
            VALUES ($board, $ID_MEMBER, $ID_MEMBER, $ID_MSG, $ID_MSG, $locked, 0, $GLOBALS[subtopic])") or database_error(__FILE__, __LINE__);

Won't work in preview or edit, and untested....

May not work at all....

Worth a shot?

-[Unknown]
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:Is there a mod for Ikonboard-style topic headlines?
« Reply #6 on: April 01, 2003, 08:39:34 PM »
Reply with quote

what's ikonboard? could you put a link to an example of what you want?
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
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Is there a mod for Ikonboard-style topic headlines?
« Reply #7 on: April 01, 2003, 08:49:14 PM »
Reply with quote

he wants a subtitle at the bottom of a title in the message index: http://forums.ikonboard.com/support/ikonboard.cgi?act=SF;f=5
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:Is there a mod for Ikonboard-style topic headlines?
« Reply #8 on: April 01, 2003, 08:58:44 PM »
Reply with quote

Quote from: Spaceman-Spiff on April 01, 2003, 08:49:14 PM
he wants a subtitle at the bottom of a title in the message index: http://forums.ikonboard.com/support/ikonboard.cgi?act=SF;f=5

oh I see, thx Spaceman-Spiff

hmm.. that shouldn't be too hard, now would it? I don't think it'll even need another table in the db...

maybe if you create a text input for the subtitle in the form right under the title, and that, instead of being saved in a separate place, is added after the title in the same place, only with a breakline between them and a different style to make the font a different size or colour

that'd make it just an input thing you have to modify, cause the display would be the same...

I may not be making sense at all though, I'm really new to coding  :-\
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
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Is there a mod for Ikonboard-style topic headlines?
« Reply #9 on: April 01, 2003, 09:00:45 PM »
Reply with quote

I didn't add a table, I added a column!

And, the sub title isn't supposed to be a link....

-[Unknown]
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:Is there a mod for Ikonboard-style topic headlines?
« Reply #10 on: April 01, 2003, 09:14:39 PM »
Reply with quote

Quote from: [Unknown] on April 01, 2003, 09:00:45 PM
I didn't add a table, I added a column!

And, the sub title isn't supposed to be a link....

-[Unknown]

sorry about that, I still have some trouble figuring out code  ;D
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 #11 on: April 02, 2003, 08:40:18 AM »
Reply with quote

ya, never mind.
Logged

People who drink lite beer don't like the taste of beer; they just like to pee a lot
Anguz
YaBB God
*****
Posts: 641


llama me?!

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

Quote from: old dan on April 01, 2003, 08:02:24 PM
I wrote this for 1.4.1 and updated it for 1.5. Don't know if it works for 1.5.1 but you can give it a try.

why don't you put a link to it? that way those interested can test it
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 #13 on: April 02, 2003, 08:52:36 AM »
Reply with quote

Quote from: [Unknown] on April 01, 2003, 09:00:45 PM
I didn't add a table, I added a column!

And, the sub title isn't supposed to be a link....

-[Unknown]

Lighten up and quit sticking your tongue out at people. You are a developer and supposed to represent YaBB. If people see you as childish how do you think that reflects on Yabb?
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 #14 on: April 02, 2003, 09:04:31 AM »
Reply with quote

Calm down, old dan....

First understand that I AM a child.  17 years old... makes me a minor.

Second, it's no big deal.  I really meant no offense to you or Anguz...

Lastly, I've rarely ever stuck my tongue out at anyone.  The :P smiley only represents that action, it does not mean that I am doing it - or would do it.  It is not supposed to have the same effect, but rather produce a similar effect....

And... how do I represent YaBB?  Sure, I'm a developer for YaBB SE... but that doesn't make me a representative of it.

Sorry if I insulted you,
-[Unknown]

Disclaimer: In no way, shape, or form, does this post at all represent or reflect the ideas, thoughts, or actions or the YaBB SE Team.
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.063 seconds with 20 queries.