steamid profilfeld

    ACHTUNG dies ist das ALTE Forum!!

    Das neue gibt es unter https://discourse.bohramt.de!
      Hmm ich glaube das müsste der fehler sein

      Quellcode

      1. PHP Fatal error: Multiple access type modifiers are not allowed in /var/www/eod1/wcf/lib/data/user/steamprofile/data/includes/class.VariableStream.php on line 152, referer: http://www.e-o-d.eu/index.php?page=User&userID=2



      Aber in der Zeile ist diese Eintrag

      Quellcode

      1. public public function stream_close()


      ist dort ein public zuviel?
      scheint hier ja auch grad das gleiche problem zu sein ... ich guck da mal nach


      edit :

      hab das problem gefunden

      das script wertet ja einfach die steamcommunity-webseite aus

      und da hamse die bilder jetzt auf cdn.steamcommunity.com liegen

      also muss man eine datei anpassen

      und zwar die

      wcf/lib/data/user/steamprofile/data/includes/class.SteamProfile.php


      und dort zeile 231

      da steht :

      Quellcode

      1. preg_match('#[url]http://steamcommunity.com/public/images/skin_1/status_(online|in-game).gif#[/url]', $this->sSteamHTML, $aMatches);


      dort einfach n cdn. vor steamcommunity.com hängen damit das so aussieht :

      Quellcode

      1. preg_match('#[url]http://cdn.steamcommunity.com/public/images/skin_1/status_(online|in-game).gif#[/url]', $this->sSteamHTML, $aMatches);

      Krieg ist Frieden. Freiheit ist Sklaverei. Unwissenheit ist Stärke.

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Bjoern“ ()

      hab mir das grad mal angesehen

      liegt wohl da drann das der URL nicht mehr passt und die per 302er einen umleiten .. was aber nicht will

      ich kann da grad mal nur n schnellen und hässlichen fix anbieten ;)

      dazu musste die datei wcf/lib/data/steamprofile/lib/SteamProfileDownloader.class.php editieren

      PHP-Quellcode

      1. <?php
      2. /**
      3. * This file is part of SteamProfile.
      4. *
      5. * Written by Nico Bergemann <barracuda415@yahoo.de>
      6. * Copyright 2009 Nico Bergemann
      7. *
      8. * SteamProfile is free software: you can redistribute it and/or modify
      9. * it under the terms of the GNU General Public License as published by
      10. * the Free Software Foundation, either version 3 of the License, or
      11. * (at your option) any later version.
      12. *
      13. * SteamProfile is distributed in the hope that it will be useful,
      14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
      15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
      16. * GNU General Public License for more details.
      17. *
      18. * You should have received a copy of the GNU General Public License
      19. * along with SteamProfile. If not, see <http://www.gnu.org/licenses/>.
      20. */
      21. class SteamProfileDownloader extends CURL {
      22. public function __construct($sUrl, $sVariant) {
      23. parent::__construct($sUrl);
      24. $aCURLVersion = curl_version();
      25. $this->setUserAgent('SteamProfile/2.0.4 ('.$sVariant.'; PHP '.PHP_VERSION.'; cURL '.$aCURLVersion['version'].')');
      26. // setting CURLOPT_FOLLOWLOCATION in safe_mode will raise a warning
      27. // if(ini_get('safe_mode') == 'Off' || ini_get('safe_mode') === 0) {
      28. $this->setOption(CURLOPT_FOLLOWLOCATION, true);
      29. $this->setOption(CURLOPT_MAXREDIRS, 3);
      30. // }
      31. }
      32. public function start() {
      33. $content = parent::start();
      34. // false means cURL failed
      35. if($content === false) {
      36. throw new Exception('cURL error ('.$this->getErrorMessage().')');
      37. }
      38. // anything else than status code 2xx is most likely bad
      39. $iHTTPCode = $this->getHTTPCode();
      40. if($iHTTPCode < 200 || $iHTTPCode > 299) {
      41. throw new Exception("Steam Community server error (HTTP $iHTTPCode)");
      42. }
      43. return $content;
      44. }
      45. }
      46. ?>


      da sind nur 2 zeilen auskommentiert
      nur zeile 30

      Quellcode

      1. // if(ini_get('safe_mode') == 'Off' || ini_get('safe_mode') === 0) {


      und 33

      Quellcode

      1. // }

      Krieg ist Frieden. Freiheit ist Sklaverei. Unwissenheit ist Stärke.
      nagut da hilft dann bei dir nicht so der kleine fix :D

      also alles wieder zurück bei der SteamProfileDownloader.class.php

      und du lädst mal die CURL.class.php in den ordner hoch

      der neue fix geht auf diesen eintrag zurück
      Dateien
      • CURL.class.php

        (4 kB, 263 mal heruntergeladen, zuletzt: )

      Krieg ist Frieden. Freiheit ist Sklaverei. Unwissenheit ist Stärke.