• » 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:     printview


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

    register now
    login
    Author
    Message
    webSPELL newbie
    23 Posts
    20.07.2012, 16:00 email offline quote 

    Das Ersetzen von user.php in src/func/ hat das Problem anscheinend gelöst.

    Danke für eure Hilfe!
    webSPELL newbie
    23 Posts
    20.07.2012, 15:51 email offline quote 

    Funktion ist vorhanden:

    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    8.
    9.
    function isonline($userID) {
         $ergebnis=safe_query("SELECT site FROM ".PREFIX."whoisonline WHERE userID='$userID'");
         $anz=mysql_num_rows($ergebnis);
         if($anz) {
              $ds=mysql_fetch_array($ergebnis);
              return '<b>online</b> @ <a href="index.php?site='.$ds['site'].'">'.$ds['site'].'</a>';
         }
         else return 'offline';
    }


    Moderator
    5320 Posts
    20.07.2012, 01:12 email offline quote 

    überprüfe mal ob in der src/func/user.php die function isonline() definiert ist. dürfte eigentlich nicht der fall sein.

    testweise kannst du auch die vorhandene datei sichern und die originale datei hochladen.
    webSPELL newbie
    23 Posts
    19.07.2012, 19:52 email offline quote 

    Ich hab die Datei aber aus einem gerade entpackten Webspell-Paket hochgeladen. Aus dem aktuellen.

    Hier der Code zur Überprüfung:

    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.
    35.
    36.
    37.
    38.
    39.
    40.
    41.
    42.
    43.
    44.
    45.
    46.
    47.
    48.
    49.
    50.
    51.
    52.
    53.
    54.
    55.
    56.
    57.
    58.
    59.
    60.
    61.
    62.
    63.
    64.
    65.
    66.
    67.
    68.
    69.
    70.
    71.
    72.
    73.
    74.
    75.
    76.
    77.
    78.
    79.
    80.
    81.
    82.
    83.
    84.
    85.
    86.
    87.
    88.
    89.
    90.
    91.
    92.
    93.
    94.
    95.
    96.
    97.
    98.
    99.
    100.
    101.
    102.
    103.
    104.
    105.
    106.
    107.
    108.
    109.
    110.
    111.
    112.
    113.
    114.
    115.
    116.
    117.
    118.
    119.
    120.
    121.
    122.
    123.
    124.
    125.
    126.
    127.
    128.
    129.
    130.
    131.
    132.
    133.
    134.
    135.
    136.
    137.
    138.
    139.
    140.
    141.
    142.
    143.
    144.
    145.
    146.
    147.
    148.
    149.
    150.
    151.
    152.
    153.
    154.
    155.
    156.
    157.
    158.
    159.
    160.
    161.
    162.
    163.
    164.
    165.
    166.
    167.
    168.
    169.
    170.
    171.
    172.
    173.
    174.
    175.
    176.
    177.
    178.
    179.
    180.
    <?php
    /*
    ##########################################################################
    #                                                                        #
    #           Version 4       /                        /   /               #
    #          -----------__---/__---__------__----__---/---/-               #
    #           | /| /  /___) /   ) (_ `   /   ) /___) /   /                 #
    #          _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___               #
    #                       Free Content / Management System                 #
    #                                   /                                    #
    #                                                                        #
    #                                                                        #
    #   Copyright 2005-2011 by webspell.org                                  #
    #                                                                        #
    #   visit webSPELL.org, webspell.info to get webSPELL for free           #
    #   - Script runs under the GNU GENERAL PUBLIC LICENSE                   #
    #   - It's NOT allowed to remove this copyright-tag                      #
    #   -- http://www.fsf.org/licensing/licenses/gpl.html                    #
    #                                                                        #
    #   Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at),   #
    #   Far Development by Development Team - webspell.org                   #
    #                                                                        #
    #   visit webspell.org                                                   #
    #                                                                        #
    ##########################################################################
    */

    $_language->read_module('squads');

    eval ("\$title_squads = \"".gettemplate("title_squads")."\";");
    echo $title_squads;
    if(isset($_GET['action'])) $action = $_GET['action'];
    else $action = "";
    if($action=="show") {
         if($_GET['squadID']) {
              $getsquad = 'WHERE squadID="'.(int)$_GET['squadID'].'"';
         }
         else $getsquad = '';

         $ergebnis=safe_query("SELECT * FROM ".PREFIX."squads ".$getsquad." ORDER BY sort");
         while($ds=mysql_fetch_array($ergebnis)) {

              $anzmembers=mysql_num_rows(safe_query("SELECT sqmID FROM ".PREFIX."squads_members WHERE squadID='".$ds['squadID']."'"));
              if($anzmembers == 1) $anzmembers = $anzmembers.' '.$_language->module['member'];
              else $anzmembers = $anzmembers.' '.$_language->module['members'];
              $name='&not; <b>'.$ds['name'].'</b>';
              $squadID=$ds['squadID'];
              $backlink='&raquo; <a href="index.php?site=gaming"><b>'.$_language->module['back_squad_overview'].'</b></a>';
              $results='';
              $awards='';
              $challenge='';
              $games='';
              
              $border=BORDER;
         
              if($ds['gamesquad']) {
                   $results='[ <a href="index.php?site=clanwars&amp;action=showonly&amp;id='.$squadID.'&amp;sort=date&amp;only=squad">'.$_language->module['results'].'</a> | ';
                   $awards='<a href="index.php?site=awards&amp;action=showsquad&amp;squadID='.$squadID.'&amp;page=1">'.$_language->module['awards'].'</a> | ';
                   $challenge='<a href="index.php?site=challenge">'.$_language->module['challenge'].'</a> ]';
                   $games = $ds['games'];
                   if($games) {
                        $games = str_replace(";", ", ", $games);
                        $games = $_language->module['squad_plays'].": ".$games;
                   }
              }

              $member=safe_query("SELECT * FROM ".PREFIX."squads_members s, ".PREFIX."user u WHERE s.squadID='".$ds['squadID']."' AND s.userID = u.userID ORDER BY sort");
              eval("\$squads_head = \"".gettemplate("squads_head")."\";");
              echo $squads_head;

              $i=1;
              while($dm=mysql_fetch_array($member)) {

                   if($i%2) {
                        $bg1=BG_1;
                        $bg2=BG_2;
                   }
                   else {
                        $bg1=BG_3;
                        $bg2=BG_4;
                   }

                   $country = ''.$dm['country'].'';
                   $country = flags($country);
                   $nickname = '<a href="index.php?site=profile&amp;id='.$dm['userID'].'"><b>'.strip_tags(stripslashes($dm['nickname'])).'</b></a>';
                   $nicknamee = strip_tags(stripslashes($dm['nickname']));
                   $profilid = $dm['userID'];

                   if($dm['userdescription']) $userdescription=htmloutput($dm['userdescription']);
                   else $userdescription=$_language->module['no_description'];

                   if ($dm['userpic']!="" and file_exists("images/userpics/".$dm['userpic'])) {
                        $userpic = $dm['userpic'];
                        $pic_info = $dm['nickname'].' '.$_language->module['userpicture'];
                   }
                   else {
                        $userpic = "nouserpic.gif";
                        $pic_info = $_language->module['no_userpic'];
                   }

                   $icq = $dm['icq'];
                   if(getemailhide($dm['userID'])) $email = '';
                   else $email = '<a href="mailto:'.mail_protect($dm['email']).'"><img src="images/icons/email.gif" border="0" alt="'.$_language->module['email'].'" /></a>';

                   $pm = '';
                   $buddy = '';
                   if ($loggedin && $dm['userID'] != $userID) {
                        $pm='<a href="index.php?site=messenger&amp;action=touser&amp;touser='.$dm['userID'].'"><img src="images/icons/pm.gif" border="0" alt="'.$_language->module['messenger'].'" /></a>';

                        if (isignored($userID, $dm['userID'])) $buddy='<a href="buddys.php?action=readd&amp;id='.$dm['userID'].'&amp;userID='.$userID.'"><img src="images/icons/buddy_readd.gif" border="0" alt="'.$_language->module['back_buddy'].'" /></a>';
                        elseif(isbuddy($userID, $dm['userID'])) $buddy='<a href="buddys.php?action=ignore&amp;id='.$dm['userID'].'&amp;userID='.$userID.'"><img src="images/icons/buddy_ignore.gif" border="0" alt="'.$_language->module['ignore'].'" /></a>';
                        else $buddy='<a href="buddys.php?action=add&amp;id='.$dm['userID'].'&amp;userID='.$userID.'"><img src="images/icons/buddy_add.gif" border="0" alt="'.$_language->module['add_buddy'].'" /></a>';
                   }

                   if(isonline($dm['userID'])=="offline") $statuspic='<img src="images/icons/offline.gif" alt="offline" />';
                   else $statuspic='<img src="images/icons/online.gif" alt="online" />';

                   $position = $dm['position'];
                   $firstname = strip_tags($dm['firstname']);
                   $lastname = strip_tags($dm['lastname']);
                   $town = strip_tags($dm['town']);
                   if($dm['activity']) $activity='<font color="'.$wincolor.'">'.$_language->module['active'].'</font>';
                   else $activity='<font color="'.$loosecolor.'">'.$_language->module['inactive'].'</font>';

                   eval ("\$squads_content = \"".gettemplate("squads_content")."\";");
                   echo $squads_content;
                   $i++;
              }
              eval ("\$squads_foot = \"".gettemplate("squads_foot")."\";");
              echo $squads_foot;
         }
    }

    else {
          $getsquad = "";
         if(isset($_GET['squadID'])) {
              $getsquad = 'WHERE squadID="'.$_GET['squadID'].'"';
         }

         $ergebnis=safe_query("SELECT * FROM ".PREFIX."squads ".$getsquad." ORDER BY sort");
         
      $i=1;
      while($ds=mysql_fetch_array($ergebnis)) {
      
        if($i%2) {
          $bg1=BG_1;
          $bg2=BG_2;
        }
        else {
          $bg1=BG_3;
          $bg2=BG_4;
        }
        
        $anzmembers=mysql_num_rows(safe_query("SELECT sqmID FROM ".PREFIX."squads_members WHERE squadID='".$ds['squadID']."'"));
              if($anzmembers == 1) $anzmembers = $anzmembers.' '.$_language->module['member'];
              else $anzmembers = $anzmembers.' '.$_language->module['members'];
              $name='&not; <a href="index.php?site=squads&amp;action=show&amp;squadID='.$ds['squadID'].'"><b>'.$ds['name'].'</b></a>';
              if($ds['icon']) $icon='<a href="index.php?site=squads&amp;action=show&amp;squadID='.$ds['squadID'].'"><img src="images/squadicons/'.$ds['icon'].'" border="0" alt="'.htmlspecialchars($ds['name']).'" /></a>';
              else $icon='';
              $info=htmloutput($ds['info']);
              $details='&raquo; <a href="index.php?site=squads&amp;action=show&amp;squadID='.$ds['squadID'].'"><b>'.$_language->module['show_details'].'</b></a>';
              $squadID=$ds['squadID'];
              $results='';
              $awards='';
              $challenge='';

              if($ds['gamesquad']) {
                   $results='[ <a href="index.php?site=clanwars&amp;action=showonly&amp;id='.$squadID.'&amp;sort=date&amp;only=squad">'.$_language->module['results'].'</a> | ';
                   $awards='<a href="index.php?site=awards&amp;action=showsquad&amp;squadID='.$squadID.'&amp;page=1">'.$_language->module['awards'].'</a> | ';
                   $challenge='<a href="index.php?site=challenge">'.$_language->module['challenge'].'</a> ]';
              }

              $bgcat=BGCAT;
              eval ("\$squads = \"".gettemplate("squads")."\";");
              echo $squads;
        
        $i++;
         }
    }
    ?>
    webSPELL lover
    1003 Posts
    19.07.2012, 19:33 email offline quote 

    Das ist kein bekannter Fehler. Könnte an einem Addon oder ähnlichem liegen.

    Es wird einfach versucht auf die isonline() funktion zuzugreifen, die aber anscheinend an der stelle nicht nicht bekannt ist.
    Eventuell fehlt ein include.

    Wesbepell Addon Erstellung und Anpassungen (x)HTML Valide div/css
    Bei interesse PM mit ausführlicher Beschreibung und Preisvorstellung.
    webSPELL newbie
    23 Posts
    19.07.2012, 18:47 email offline quote 

    Okey, mit dem Errorreporting wird mir folgendes angezeigt:

    Fatal error: Call to undefined function isonline() in /var/..../page/squads.php on line 115

    Ist das ein bekannter Fehler von Webspell? Wie wird er behoben?

    Wenn ich die zwei Zeilen ausklammer, dann funktioniert es einwandfrei.

    Wodurch ist der Fehler entstanden bzw. wie behebe ich ihn?
    webSPELL lover
    1022 Posts
    19.07.2012, 15:30 offline quote 

    Läuft auf's selbe hinaus. Mach, was im FAQ steht, was bazic gepostet hat.

    http://www.henningk.de | no support for addons etc. via PN or IM.
    webSPELL newbie
    23 Posts
    19.07.2012, 15:27 email offline quote 

    Mir wird ja keine leere Seite angezeigt, sondern nur Teile der Seite.
    Moderator
    5320 Posts
    webSPELL newbie
    23 Posts
    17.07.2012, 18:23 email offline quote 

    Ich habe derzeit ein kleines Problem mit Webspell.

    Undzwar wenn ich in der Squads-Übersicht auf einen Squad klicke, der bereits Member hat, dann sollten doch eigentlich die zugehörigen Profile angezeigt werden.

    Das ist leider nicht der Fall, stattdessen bricht er sogar irgendwann die Anzeige der restlichen Page (wie bspw. Footer) ab. Das ist nur bei der Squads-Seite so.

    Könntet ihr mir da helfen? Webspell reagiert da sehr komisch.

    website: #
    version: 4.2.3
    Sort:     printview


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

    register now
    login
  • » Support

    » Topics
    18.05.2013 - 16:29 - 2 Replies
    » forum anzeige erweitern
    forum anzeige erweitern
    Last post: Swordfish3000
    Board: DE - Allgemeiner Support
    18.05.2013 - 16:29
    18.05.2013 - 14:40 - 35 Replies
    » Exklusiv Webseite zur Mie...
    Exklusiv Webseite zur Miete
    Last post: Maidzen
    Board: DE - Biete
    18.05.2013 - 14:40
    18.05.2013 - 14:00 - 0 Replies
    » [S] Tester für neuen Foru...
    [S] Tester für neuen ForumMod
    Last post: Argu
    Board: DE - Anfragen
    18.05.2013 - 14:00
    18.05.2013 - 12:21 - 1 Replies
    » Query failed
    Query failed
    Last post: LoRd
    Board: DE - Allgemeiner Support
    18.05.2013 - 12:21
    18.05.2013 - 09:36 - 3 Replies
    » benötige hilfe bei paar k...
    benötige hilfe bei paar kleinigkeiten
    Last post: immostar
    Board: DE - Technischer Support
    18.05.2013 - 09:36
    18.05.2013 - 03:33 - 4 Replies
    » [SELL] Gaming Website
    [SELL] Gaming Website
    Last post: hornyst
    Board: EN - Offers
    18.05.2013 - 03:33
    18.05.2013 - 00:32 - 6 Replies
    » Hide BBCODE Echo
    Hide BBCODE Echo
    Last post: dado2106
    Board: EN - Technical support
    18.05.2013 - 00:32
    17.05.2013 - 21:42 - 0 Replies
    » website help
    website help
    Last post: envy0024
    Board: EN - Technical support
    17.05.2013 - 21:42
    17.05.2013 - 21:03 - 1 Replies
    » Need Coder!
    Need Coder!
    Last post: iG.ShAdOw
    Board: EN - Requests
    17.05.2013 - 21:03
    17.05.2013 - 20:44 - 9 Replies
    » Query failed!
    Query failed!
    Last post: LoRd
    Board: DE - Allgemeiner Support
    17.05.2013 - 20:44
    17.05.2013 - 18:08 - 0 Replies
    » [4 SALE] Layouts (Gaming,...
    [4 SALE] Layouts (Gaming, Portfolio and more)
    Last post: Freestyler92
    Board: EN - Offers
    17.05.2013 - 18:08
    17.05.2013 - 18:06 - 0 Replies
    » Design Ausverkauf - alles...
    Design Ausverkauf - alles unter 70€
    Last post: Freestyler92
    Board: DE - Biete
    17.05.2013 - 18:06
    17.05.2013 - 10:56 - 6 Replies
    » [Biete] Template Designs
    [Biete] Template Designs
    Last post: Marceld
    Board: DE - Biete
    17.05.2013 - 10:56
    17.05.2013 - 10:41 - 7 Replies
    » register captcha
    register captcha
    Last post: nappel.ger
    Board: DE - Allgemeiner Support
    17.05.2013 - 10:41
    17.05.2013 - 09:56 - 3 Replies
    » Suche Designer GGL:Geld
    Suche Designer GGL:Geld
    Last post: Freestyler92
    Board: DE - Suche
    17.05.2013 - 09:56
    17.05.2013 - 00:13 - 0 Replies
    » News
    News
    Last post: dado2106
    Board: EN - Modifications
    17.05.2013 - 00:13
    16.05.2013 - 15:04 - 2 Replies
    » [V] mehrere Webspell Temp...
    [V] mehrere Webspell Templates und Designs
    Last post: Dynamic-Webmedia
    Board: DE - Biete
    16.05.2013 - 15:04
    16.05.2013 - 13:09 - 2 Replies
    » Content laden
    Content laden
    Last post: Helgon
    Board: DE - Anfragen
    16.05.2013 - 13:09
    16.05.2013 - 13:07 - 18 Replies
    » [B] Web, Print und Logode...
    [B] Web, Print und Logodesign
    Last post: Helgon
    Board: DE - Suche
    16.05.2013 - 13:07
    15.05.2013 - 22:50 - 2 Replies
    » Query failed: errorno=105...
    Query failed: errorno=1054
    Last post: Tw0Player
    Board: DE - Technischer Support
    15.05.2013 - 22:50
    » Partners
    Bilderkiste.org Image Hosting
    k3rmit.org
    PascalMh.de


    » Blog
    28.03.2013 - derchris
    » Those damn spammers