Welcome, Guest. Please Login or Register.
November 29, 2024, 04:31:34 AM
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  |  Completed mods  |  [done 1.51/1.52]eXtended Birthday Mod « previous next »
Pages: 1 [2] Reply Ignore Print
Author Topic: [done 1.51/1.52]eXtended Birthday Mod  (Read 4600 times)
CokeCan
Full Member
***
Posts: 182


WWW
Re:[done 1.51/1.52]eXtended Birthday Mod
« Reply #15 on: May 29, 2003, 04:40:34 AM »
Reply with quote

Spanish translation:
Quote$txt['xbd1'] = 'La Lista de Cumpleaños';
$txt['xbd2'] = 'Número Total de Cumpleaños En';
$txt['xbd3'] = 'Número Total de Cumpleaños Desconocidos: ';
$txt['xbd4'] = 'Número Total de Cumpleaños Hoy: ';
$txt['xbd5'] = 'Hoy';
$txt['xbd6'] = 'Desconocido';
$txt['xbd7'] = 'Atrás';
$txt['xbd8'] = 'Opciones de Cumpleaños';
$txt['xbd9'] = 'Opciones de Cumpleaños eXtendido';
$txt['xbd10'] = 'Mostrar Los Cumpleaños de Hoy en el Índice del Foro';
$txt['xbd11'] = 'Mostrar la Edad del Usuario Cumpleañero En el Índice del Foro';
$txt['xbd12'] = 'Esconder los Cumpleaños Desconocidos de la Lista de Cumpleaños';
$txt['xbd13'] = 'Esconder la Categoría de Cumpleaños para los Huéspedes';
$txt['xbd14'] = 'Esconder la Categoría de Cumpleaños en el Índice de Foros Cuando No Hay Cumpleaños';
$txt['xbd15'] = 'Mensaje Para Mostrar Para los Cumpleaños:';
$txt['xbd16'] = 'Mensaje Para Mostrar Cuando No Hay Cumpleaños:';
$txt['xbd17'] = 'Cartel del la Categoría de los Cumpleaños:';
$txt['xbd18'] = 'Texto del Link de Cumpleaños:';
$txt['xbd19'] = 'Guardar';
$txt['xbd20'] = 'Mirar';
$txt['xbd21'] = 'Recuperar los Predeterminados';
$txt['xbd22'] = 'Cancelar';
$txt['xbd23'] = 'Mod de Cumpleaños eXtendido';
$txt['xbd24'] = 'Escrito por';
$txt['xbd25'] = 'Únete a Nosotros en Desearle Feliz Cumpleaños A ';
$txt['xbd26'] = 'No Hay Usuarios Celebrando Su Cumpleaños El ';
$txt['xbd27'] = 'Cumpleaños de Hoy';
$txt['xbd28'] = 'Cumpleaños';
Logged
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[done 1.51/1.52]eXtended Birthday Mod
« Reply #16 on: May 30, 2003, 01:31:54 PM »
Reply with quote

Thanks CokeCan! Anyone else wanna do some translations for me? I would love to make this available in as many languages as possible.

Currently, including CokeCan's translation, I've got German and Spanish. I would love to have French, Italian, Dutch and any other language someone wants to translate this into.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[done 1.51/1.52]eXtended Birthday Mod
« Reply #17 on: June 09, 2003, 10:00:48 AM »
Reply with quote

Hi, great mod ;D Though I found a few typos.

In Index.php,

<add after>
      'xbirthdaypage' => array{"$sourcedir/Xbirthday.php", 'xbirthdaypage'),
      'xbirthdayset' => array("$sourcedir/Xbirthday.php", 'xbirthdayset'),
      'xbirthdayset2' => array("$sourcedir/Xbirthday.php", 'xbirthdayset2'),
</add after>


In the first part,       'xbirthdaypage' => array{"$sourcedir/Xbirthday.php", 'xbirthdaypage'), there's a { when there should be a (

Secondly, in ModSettings.php

                           <hr size="1" width="100%" class="windowbg3" /><input type="submit" value="' . $txt[10] . '" />
                        </td>
                     </tr>
                  </table>
               </td>
            </tr>
         </table>
         <input type="hidden" name="sc" value="' . $sc . '" />
      </form>


The

     </form>

part should be searching for

      </form>';


;D Those are the only things I've found wrong with it, and the only errors I encountered.

Other than that, it works great! So, feel free to say this mod works for 1.5.3, since that's what my board is :D


EDIT: Uh, apparantly your 'comment' inthe ModSettings.php page, you know, the <!--Xbirthday code start -->
<!--Xbirthday code end -->

parts, are not liked by YaBB SE. :-\ Might I suggest using //this comment style to do your comments? Once I removed the <!-- ones, I was able to load the page correctly, without errors.

These were all in the original download, in the first post on this thread btw. ;D I liked it better than the second version posted, even though it had errors (which were superbly easy to fix)
« Last Edit: June 09, 2003, 10:18:45 AM by 1979Z28 » Logged
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[done 1.51/1.52]eXtended Birthday Mod
« Reply #18 on: June 09, 2003, 05:23:26 PM »
Reply with quote

Those comments were in the original version... Usually, <!-- is the way you comment stuff in HTML.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
BiErLeEuW
Full Member
***
Posts: 174


WWW
Re:[done 1.51/1.52]eXtended Birthday Mod
« Reply #19 on: June 09, 2003, 06:38:09 PM »
Reply with quote

can't install with boardmod:

--------------------------------------------------------------------------------

now installing: Xbirthday Mod SE  (Xbirthday_v1.2.mod)

--------------------------------------------------------------------------------



Step 1 ... failed - ERR(12): The line to search for is not comlete. Maybe some spaces are missing in

front of it.

Step 2 ... ok

Step 3 ... ok

Step 4 ... failed - ERR(1): Search string could not be found


Your YaBB SE install version is the most recent.
Your language file version is the most recent.

Your version of index is the most recent.
Your version of Admin is the most recent.
Your version of BoardIndex is the most recent.
Your version of Calendar is the most recent.
Your version of Display is the most recent.
Your version of Errors is the most recent.
Your version of ICQPager is the most recent.
Your version of InstantMessage is the most recent.
Your version of Karma is the most recent.
Your version of Load is the most recent.
Your version of LockThread is the most recent.
Your version of LogInOut is the most recent.
Your version of Maintenance is the most recent.
Your version of ManageAttachments is the most recent.
Your version of ManageBoards is the most recent.
Your version of ManageCats is the most recent.
Your version of Memberlist is the most recent.
Your version of MergeThreads is the most recent.
Your version of MessageIndex is the most recent.
Your version of ModifyMessage is the most recent.
Your version of ModSettings is the most recent.
Your version of MoveThread is the most recent.
Your version of Notify is the most recent.
Your version of Poll is the most recent.
Your version of Post is the most recent.
Your version of Profile is the most recent.
Your version of Recent is the most recent.
Your version of Register is the most recent.
Your version of RemoveOldThreads is the most recent.
Your version of RemoveThread is the most recent.
Your version of RepairBoards is the most recent.
Your version of Search is the most recent.
Your version of Security is the most recent.
Your version of SendTopic is the most recent.
Your version of SplitThreads is the most recent.
Your version of Subs is the most recent.

Logged
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[done 1.51/1.52]eXtended Birthday Mod
« Reply #20 on: June 09, 2003, 07:43:56 PM »
Reply with quote

If you've got any other mods installed, you might get these errors. Try installing it by hand.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Fizzy
Full Member
***
Posts: 214


Re:[done 1.51/1.52]eXtended Birthday Mod
« Reply #21 on: June 21, 2003, 06:44:39 AM »
Reply with quote

I've noticed that the board index showing birthday members calculates the list using the server time, where as the calendar today section above it on the index shows the birthday by user time.

I've had a look through the code in BoardIndex.php but cannot work out how to adjust the "Todays Birthdays" to use time.

Any suggestions please ?

Ta.
Logged
Fizzy
Full Member
***
Posts: 214


Re:[done 1.51/1.52]eXtended Birthday Mod
« Reply #22 on: July 04, 2003, 12:07:51 PM »
Reply with quote

No ideas ?

Pretty please ? ? ? ;)
Logged
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[done 1.51/1.52]eXtended Birthday Mod
« Reply #23 on: July 04, 2003, 10:43:20 PM »
Reply with quote

My guess is its calculated in the xbirthday.php file, or whatever that .php file is called that comes in the mod .zip file :D
Logged
Fizzy
Full Member
***
Posts: 214


Re:[done 1.51/1.52]eXtended Birthday Mod
« Reply #24 on: July 22, 2003, 10:26:06 PM »
Reply with quote

Pretty please with sugar on ? ?  ;D
Logged
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[done 1.51/1.52]eXtended Birthday Mod
« Reply #25 on: July 23, 2003, 01:26:11 AM »
Reply with quote

I wish I could help you, but it's not that easy to do. The way YaBB SE displays dates is by encoding it into a 10-digit integer, and it's a pretty complicated thing to decode it... Maybe someone else can help me with this.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Fizzy
Full Member
***
Posts: 214


Re:[done 1.51/1.52]eXtended Birthday Mod
« Reply #26 on: July 23, 2003, 10:01:28 PM »
Reply with quote

That's cool Olds 8)

I'm not complaining or anything, you did a good job as it is :)

Anyone else have any ideas? I'll gladly beta test theM :)
Logged
Grudge
Global Moderator
Full Member
*****
Posts: 178


Damn llama's don't like me :(

Re:[done 1.51/1.52]eXtended Birthday Mod
« Reply #27 on: July 23, 2003, 10:18:21 PM »
Reply with quote

I don't know what exactly you are asking for but to sort out time in yabbse:

set up a format string (YABBSE uses this usually)
$fmt = '%d %b %Y ' . (substr_count($settings[17], '%H') == 0 ? '%I:%M:%S %p' : '%T');

Then if the 10 digit number is stored in $time then to get it into written format (ie June 09, 2003, 03:43:56 PM) use:
$realtime=strftime($fmt, $time);

(You can adjust $fmt accordingly to remove seconds etc)

If you need to sort out the time offset for the forum and user (for example after a call to time() )

First call this to set up a useroffset variable (incase they don't have one set):
$timeUserOff = (isset($settings[18]) ? $settings[18] : 0);

And then call this:
$time = time() + (($timeoffset + $timeUserOff) * 3600)

This would put the current time (in 10 digit form) with the time offset taken into account. You can then put this $time variable into the lines I posted at the top


All of these lines are adapted form calendar or something or other. This should give you what you need to adjust the "todays birthdays" bit into time :)
Logged
Pages: 1 [2] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [done 1.51/1.52]eXtended Birthday Mod « 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.052 seconds with 21 queries.