• » webSPELL.org - Free Content Management System
  • Language switch: English German
  • login



    » lost password?   » register now
  • About webSPELL

    webSPELL is a free Content Management System which was especially developed for the needs of esport related communities. Since a short while we are also offering an optimized and enhanced webSPELL version for the special requirements of non-profit organisations. The purpose of both systems is to offer a professional and free opportunity to create and administrate your own website in an easy and optimized way.

    » Learn more about webSPELL     » Download webSPELL now!
  • Advertisement

    Follow us

  • Sort:      1 2 3 4 5  » printview
    Author
    Message
    webSPELL lover
    1230 Posts
    28.02.2010, 18:34 offline quote 

    da das Addon zu verbugt ist und ich keine Lösung finde, nehme ich es vom "Markt". SORRY!

    read more Ursprung

    » » Confused-Gaming.eu « «

    alle meine Addons / Mods findet ihr in meinem Profil
    webSPELL user
    127 Posts
    28.02.2010, 19:48 offline quote 

    Hi nice,

    habs gleich mal einbebaut - das einzig unschöne, er sortiert nach dem alter und nicht nach den Geburtsdatum.
    Auch in deinem Beispiel unten. Erst Henry mit 40 am 02.03. dann Ulit mit 25 am 01.03..
    Wäre schöner, wenn das wirklich nach dem Datum sortiert wird.

    Gruß

    TW

    www.devilssquad.com
    webSPELL lover
    1230 Posts
    28.02.2010, 19:51 offline quote 

    Hallo, danke fürs Feedback.
    Das mit der Sortierung stört mich auch, aber ich habe es einfach nicht hinbekommen.

    Wenn jemand eine Idee hat wie man das realisieren kann, dann möge er sich bitte melden.

    Code:
    Code:
    1.
    $ergebnis=safe_query("SELECT nickname, birthday, userID, DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW()) - TO_DAYS(birthday)), '%y') + 1 AS age FROM ".PREFIX."user WHERE IF(DAYOFYEAR(NOW())<=358,((DAYOFYEAR(birthday)>DAYOFYEAR(NOW())) AND (DAYOFYEAR(birthday)<=DAYOFYEAR(DATE_ADD(NOW(), INTERVAL 199 DAY)))),(DAYOFYEAR(BIRTHDAY)>DAYOFYEAR(NOW()) OR DAYOFYEAR(birthday)<=DAYOFYEAR(DATE_ADD(NOW(), INTERVAL 199 DAY)))) AND birthday !='0000-00-00 00:00:00' ORDER BY `birthday` ASC LIMIT 0,3");

    » » Confused-Gaming.eu « «

    alle meine Addons / Mods findet ihr in meinem Profil
    webSPELL user
    127 Posts
    04.04.2010, 13:09 offline quote 

    Hat dazu noch einer eine Idee? Eine Sortierung nach Datum wäre schon nicht schlecht :-)

    Zudem werden nur die "ältesten" User ausgegeben und nicht die, die am nächsten Geburstag haben :-(

    www.devilssquad.com
    webSPELL user
    127 Posts
    04.04.2010, 15:16 offline quote 

    Hab den Fehler gefunden - nach Order wurden die Anführungszeichen nicht richtig gesetzt. Einfach diesen Code einfügen (und den alten erstetzen) - zudem noch die Sort-Order geändert.

    Code:
    1.
         $ergebnis=safe_query("SELECT nickname, birthday, userID, DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW()) - TO_DAYS(birthday)), '%y') + 1 AS age FROM ".PREFIX."user WHERE IF(DAYOFYEAR(NOW())<=358,((DAYOFYEAR(birthday)>DAYOFYEAR(NOW())) AND (DAYOFYEAR(birthday)<=DAYOFYEAR(DATE_ADD(NOW(), INTERVAL 199 DAY)))),(DAYOFYEAR(BIRTHDAY)>DAYOFYEAR(NOW()) OR DAYOFYEAR(birthday)<=DAYOFYEAR(DATE_ADD(NOW(), INTERVAL 199 DAY)))) AND birthday !='0000-00-00 00:00:00' ORDER BY DAYOFYEAR(birthday) ASC LIMIT 0,10");

    www.devilssquad.com
    webSPELL lover
    1230 Posts
    04.04.2010, 17:26 offline quote 

    danke dssthewanderer, ich hab meinen Download angepasst und neu hoch geladen.

    Downloadlink und Sreen sind im ersten Post immer aktuell,

    Viele Grüße zwantE

    » » Confused-Gaming.eu « «

    alle meine Addons / Mods findet ihr in meinem Profil
    webSPELL user
    309 Posts
    10.04.2010, 21:15 offline quote 

    schönes addon...läuft einwandfrei bei uns...
    danke
    webSPELL newbie
    63 Posts
    10.09.2010, 09:56 offline quote 

    Hi Leute

    das add zeigt bei mir nur den Geburtstag an aber nicht die kommenden !!!

    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    8.
    9.
    10.
    11.
    12.
    13.
    14.
    15.
    16.
    17.
    18.
    19.
    20.
    21.
    22.
    23.
    24.
    25.
    26.
    27.
    28.
    29.
    30.
    31.
    32.
    33.
    34.
    <?php
    // in Zeile 20 wird festgelegt wieviele User angezeigt werden!
    //  LIMIT 0,3 --> 3 User werden angezeigt
    //  LIMIT 0,4 --> 4 User werden angezeigt
    //  LIMIT 0,6 --> 6 User werden angezeigt

    $_language->read_module('sc_nextbirthday');

    // TODAY birthdays
         $ergebnis=safe_query("SELECT nickname, userID, YEAR(CURRENT_DATE()) -YEAR(birthday) 'age' FROM ".PREFIX."user WHERE DATE_FORMAT(`birthday`, '%m%d') = DATE_FORMAT(NOW(), '%m%d')");
         $n=0;
         while($db=mysql_fetch_array($ergebnis)) {
         $n++;
         $years=$db['age'];
         if($n>1) $birthdays.='<a href="index.php?site=profile&amp;id='.$db['userID'].'"><b>'.$db['nickname'].'</b></a> ('.$years.')<br/>';
         else $birthdays=''.$_language->module['today'].'<br/> <a href="index.php?site=profile&amp;id='.$db['userID'].'"><b>'.$db['nickname'].'</b></a> ('.$years.')<br/>';     
         }

    // NEXT birthdays
         $ergebnis=safe_query("SELECT nickname, birthday, userID, DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW()) - TO_DAYS(birthday)), '%y') + 1 AS age FROM ".PREFIX."user WHERE IF(DAYOFYEAR(NOW())<=358,((DAYOFYEAR(birthday)>DAYOFYEAR(NOW())) AND (DAYOFYEAR(birthday)<=DAYOFYEAR(DATE_ADD(NOW(), INTERVAL 199 DAY)))),(DAYOFYEAR(BIRTHDAY)>DAYOFYEAR(NOW()) OR DAYOFYEAR(birthday)<=DAYOFYEAR(DATE_ADD(NOW(), INTERVAL 199 DAY)))) AND birthday !='0000-00-00 00:00:00' ORDER BY DAYOFYEAR(birthday) ASC LIMIT 0,10");
         $n=0;
         while($db=mysql_fetch_array($ergebnis)) {
         list($bdate, $btime) = explode(' ', $db['birthday']);
         list($year, $month, $day) = explode('-', $bdate);
         
         $n++;
         $years=$db['age'];
         $birthweek.=''.$day.'.'.$month.'. <a href="index.php?site=profile&amp;id='.$db['userID'].'"><b>'.$db['nickname'].'</b></a> ('.$years.')<br/>';          
         }

    eval ("\$sc_nextbirthday = \"".gettemplate("sc_nextbirthday")."\";");
    echo $sc_nextbirthday;

    ?>


    vielen Dank schon mal
    webSPELL newbie
    1 Posts
    13.09.2010, 01:03 email offline quote 

    Also ich hatte auch Probleme mit dem Addon:


    $ergebnis=safe_query("SELECT nickname, birthday, userID, DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW()) - TO_DAYS(birthday)), '%y') + 1 AS age FROM ".PREFIX."user WHERE (
    DAYOFYEAR( birthday ) < ( DAYOFYEAR( NOW( ) ) +150 )
    AND DAYOFYEAR( birthday ) > DAYOFYEAR( now( ) )
    )
    XOR (
    DAYOFYEAR( birthday ) < DAYOFYEAR( now( ) )
    AND (
    DAYOFYEAR( birthday ) - DAYOFYEAR( now( ) ) +365
    ) <150
    )
    ORDER BY ABS(DAYOFYEAR(birthday)-DAYOFYEAR(now())) ASC
    LIMIT 0,5");



    so sollte es funktionieren lächeln
    webSPELL newbie
    63 Posts
    13.09.2010, 09:01 offline quote 

    Vielen Dank für deine Hilfe.

    jetzt Funktioniert es Super.

    greetz Lucky
    Sort:      1 2 3 4 5  » printview


    To start or to reply to a topic you have to be registered and logged in!

    register now
    login
  • » Support

    » Topics
    24.05.2013 - 12:33 - 14 Replies
    » forum anzeige erweitern
    forum anzeige erweitern
    Last post: LoRd
    Board: DE - Allgemeiner Support
    24.05.2013 - 12:33
    24.05.2013 - 12:03 - 1 Replies
    » Verkaufe prof. Clandesign
    Verkaufe prof. Clandesign
    Last post: Vith3r
    Board: DE - Biete
    24.05.2013 - 12:03
    24.05.2013 - 12:02 - 6 Replies
    » [S] Team/Clan Logos (Upda...
    [S] Team/Clan Logos (Update: 2 new Logos)
    Last post: a--w
    Board: EN - Offers
    24.05.2013 - 12:02
    24.05.2013 - 02:41 - 17 Replies
    » High Quality Website
    High Quality Website
    Last post: Dansjostedt
    Board: EN - Offers
    24.05.2013 - 02:41
    24.05.2013 - 02:24 - 5 Replies
    » [SELL] Gaming Website
    [SELL] Gaming Website
    Last post: hornyst
    Board: EN - Offers
    24.05.2013 - 02:24
    23.05.2013 - 22:37 - 2 Replies
    » Bilder Breite im Forum an...
    Bilder Breite im Forum anpassen
    Last post: nappel.ger
    Board: DE - Vorschläge
    23.05.2013 - 22:37
    23.05.2013 - 15:35 - 6 Replies
    » I cannot upload template ...
    I cannot upload template to my cms .
    Last post: bazic
    Board: EN - General
    23.05.2013 - 15:35
    23.05.2013 - 14:50 - 3 Replies
    » Kalendar-Box
    Kalendar-Box
    Last post: kassor
    Board: DE - Anfragen
    23.05.2013 - 14:50
    23.05.2013 - 10:14 - 12 Replies
    » Mein Forum
    Mein Forum
    Last post: Lordy4007
    Board: DE - Fragen zur Seite
    23.05.2013 - 10:14
    22.05.2013 - 23:06 - 9 Replies
    » When the update?
    When the update?
    Last post: kola60
    Board: EN - General
    22.05.2013 - 23:06
    22.05.2013 - 22:21 - 2 Replies
    » Website For SALE! CODED
    Website For SALE! CODED
    Last post: Osamakillz
    Board: EN - General
    22.05.2013 - 22:21
    22.05.2013 - 21:43 - 3 Replies
    » Slider Links Bitte um Hil...
    Slider Links Bitte um Hilfe
    Last post: bazic
    Board: DE - Allgemein
    22.05.2013 - 21:43
    22.05.2013 - 21:28 - 464 Replies
    » Wettscript 2.1 for 4.2.3a...
    Wettscript 2.1 for 4.2.3a - Betscript
    Last post: Amokossi
    Board: DE - Fertige Skripte
    22.05.2013 - 21:28
    22.05.2013 - 17:46 - 3 Replies
    » Admin login
    Admin login
    Last post: blackmoonstah
    Board: DE - Allgemeiner Support
    22.05.2013 - 17:46
    22.05.2013 - 17:28 - 1 Replies
    » Design Ausverkauf - alles...
    Design Ausverkauf - alles unter 70€
    Last post: Freestyler92
    Board: DE - Biete
    22.05.2013 - 17:28
    22.05.2013 - 14:54 - 2 Replies
    » adminlogin auf allypage f...
    adminlogin auf allypage funktioniert nicht mehr. bitte um hilfe
    Last post: blackmoonstah
    Board: DE - Technischer Support
    22.05.2013 - 14:54
    22.05.2013 - 14:41 - 4 Replies
    » Content laden
    Content laden
    Last post: bazic
    Board: DE - Anfragen
    22.05.2013 - 14:41
    22.05.2013 - 09:57 - 0 Replies
    » [4SALE] eSport Design/Tem...
    [4SALE] eSport Design/Template
    Last post: LeG3nDz
    Board: EN - Offers
    22.05.2013 - 09:57
    22.05.2013 - 09:24 - 1 Replies
    » Updatefunktion?
    Updatefunktion?
    Last post: Sysix
    Board: DE - Vorschläge
    22.05.2013 - 09:24
    22.05.2013 - 00:47 - 5 Replies
    » msql datenbank transfer
    msql datenbank transfer
    Last post: pgene
    Board: DE - Technischer Support
    22.05.2013 - 00:47
    » Partners
    Bilderkiste.org Image Hosting
    k3rmit.org
    PascalMh.de


    » Blog
    28.03.2013 - derchris
    » Those damn spammers