Welcome, Guest. Please Login or Register.
September 29, 2024, 04:19:39 AM
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  |  Completed mods  |  [MOD:] Topic started at 1.1 « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [MOD:] Topic started at 1.1  (Read 1850 times)
Eloya
Full Member
***
Posts: 127


Magistrat

nschunter@eloya.net WWW
[MOD:] Topic started at 1.1
« on: October 08, 2002, 01:43:58 PM »
Reply with quote

Hi folks,

my first mod ;)
I tried to keep it like the BoardMod format, but it's my very first so be kind with me, please. This mod shows now not only the name of the topic starter but also the date on which the topic was startet.

<id>
'Beitrag begonnen am' für YaBB SE 1.40
</id>

<version>
1.1 Final
</version>

<mod info>
This Mod shows not only the name of the topic starter but also the date on which the topic was started. My moderators requested it because they want a better overwiew.

IMPORTANT: Make a backup of the files english.lng, german.lng and MessageIndex.php !!

Mail: [email protected]
</mod info>

<author>
Eloya
</author>

<homepage>
http://www.travar.de
</homepage>

<edit file>
english.lng
</edit file>

<search for>
$txt[109] = "Started by";
</search for>

<replace>
$txt[109] = "Started by / at";
</replace>

<edit file>
german.lng
</edit file>

<search for>
$txt[109] = "Begonnen von";
</search for>

<replace>
$txt[109] = "Begonnen von / am";
</replace>

<edit file>
Sources/MessageIndex.php
</edit file>

<search for>
     $lastposter = $row['posterName'];
     $lastPosterID = $row['ID_MEMBER'];
     $mdate = $row['posterTime'];
     $mname = $row['mname'];
</search for>

<add after>
     $firstid = $row['ID_FIRST_MSG'];
</add after>

<search for>
     }
     if ($mid != '-1') {
        LoadRealName ($mname);
        $name2 = $realNames[$mname];
     }
</search for>

<add after>
       $result2 = mysql_query("SELECT posterTime from {$db_prefix}messages WHERE ID_MSG='$firstid'");
  while ($row = mysql_fetch_array($result2))
  {
     $mdate2 = $row['posterTime'];
     }
</add after>

<search vor>
     # Print the thread info.
     $mydate = timeformat($mdate);
</search for>

<add after>
     $mydate2 = timeformat ($mdate2);
</add after>

<search for>
  <td class="windowbg2" valign="middle" width="14%" bgcolor="$color[windowbg2]"><font size="2">$mname</font></td>
</search for>

<replace>
  <td class="windowbg2" valign="middle" width="14%" bgcolor="$color[windowbg2]"><font size="2">$mname</font><br><font size="1">$mydate2</font></td>
</replace>

Yours,

Nico
Logged

"Der Unterschied zwischen Magie und Alltag ist die Betrachtungsweise!"
http://www.travar.de
Keng
Noobie
*
Posts: 19


Web Thai

ICQ - 11470350kengracing@msn.com WWW
Re:[MOD:] Topic started at 1.1
« Reply #1 on: October 08, 2002, 09:48:10 PM »
Reply with quote

<search for>
   <td class="titlebg" bgcolor="$color[titlebg]" width="10%" colspan="2"><font size="2">&nbsp;</font></td>
   <td class="titlebg" bgcolor="$color[titlebg]" width="48%"><font size="2" class="text1" color="$color[titletext]"><b>$txt[70]</b></font></td>
   <td class="titlebg" bgcolor="$color[titlebg]" width="14%"><font size="2" class="text1" color="$color[titletext]"><b>$txt[109]</b></font></td>
   <td class="titlebg" bgcolor="$color[titlebg]" width="4%" align="center"><font size="2" class="text1" color="$color[titletext]"><b>$txt[110]</b></font></td>
   <td class="titlebg" bgcolor="$color[titlebg]" width="4%" align="center"><font size="2" class="text1" color="$color[titletext]"><b>$txt[301]</b></font></td>
   <td class="titlebg" bgcolor="$color[titlebg]" width="27%"><font size="2" class="text1" color="$color[titletext]"><b>$txt[111]</b></font></td>
</search for>

<replace>
   <td class="titlebg" bgcolor="$color[titlebg]" width="10%" colspan="2"><font size="2">&nbsp;</font></td>
   <td class="titlebg" bgcolor="$color[titlebg]" width="48%"><font size="2" class="text1" color="$color[titletext]"><b>$txt[70]</b></font></td>
   <td class="titlebg" bgcolor="$color[titlebg]" width="17%"><font size="2" class="text1" color="$color[titletext]"><b>$txt[109]</b></font></td>
   <td class="titlebg" bgcolor="$color[titlebg]" width="4%" align="center"><font size="2" class="text1" color="$color[titletext]"><b>$txt[110]</b></font></td>
   <td class="titlebg" bgcolor="$color[titlebg]" width="4%" align="center"><font size="2" class="text1" color="$color[titletext]"><b>$txt[301]</b></font></td>
   <td class="titlebg" bgcolor="$color[titlebg]" width="17%"><font size="2" class="text1" color="$color[titletext]"><b>$txt[111]</b></font></td>
</replace>

<search for>
   <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>
</search for>

<replace>
   <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="17%" bgcolor="$color[windowbg2]"><font size="2">$mname</font><br><font size="1">$mydate2</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="17%" bgcolor="$color[windowbg2]"><font size="1">$mydate<br>$txt[525] $lastposter</font></td>
</replace>
example: http://rcweb.net/forums-test/?board=2
Logged

visit our website at: RacingWeb.NET, Thai YaBB SE Thai Language, Forums test Mods
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [MOD:] Topic started at 1.1 « 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.046 seconds with 21 queries.