Hallo, Gast! (Registrieren)

Wir wünschen allen Besuchern frohe Ostern!

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
MyDownloads
#1
Eine neue Erweiterung wurde veröffentlicht: MyDownloads

Zitat:DisclaimerThis plugin is not officially supported by me anymore. We have closed our official MyBB-Plugins.com website and do not provide support for any of our plugins. All premium plugins have been made available for free. Use at your own risk.

MyDownloads is the best and most powerful downloads manager for MyBB.

Features:
  • AdminCP
    • Lots of Settings to customize plenty of features

    • Manage categories and downloads
      • Many sub-category levels

      • Permissions to view, download and submit items

    • Logs (ratings, downloads and comments)

    • Submissions - downloads that have been submitted by users and are awaiting approval

    • PayPal Logs - payment logs

    • Reported Items

    • Tags

  • Font End
    • (Optional) Most recent downloads box on index and portal

    • Home page with stats: most downloaded, most viewed, most rated

    • Many sub-category levels

    • Users can submit their own downloads (either file or download links)

    • Users can submit their own downloads

    • Users can comment downloads

    • Users can rate downloads

    • Download authors can upload (through drag and drop) multiple previews for their downloads and can set one as cover.

    • Users can manage their submissions (edit and delete)

    • Users can report downloads.

    • Supports PayPal and NewPoints.

    • Users can search downloads in all categories or speficic categories.

    • Users can associate tags with their downloads and filter downloads by tags.

Screenshots
ACP
[/url]



Front-end

[url=https://imgur.com/XvRQ971]
Zitieren
#2
Hallo, Ich hoffe das ich hier richtig bin.

Ich weiß das das Plugin leider nicht mehr vom Anbieter supported wird obwohl es soweit ja super funktioniert bis auf eine Kleinigkeit.

Wenn man etwas zu einem angebotenen Download schreiben bzw. kommentieren will, bekommt man den folgenden Fehler:

Code:
MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
    1406 - Data too long for column 'ipaddress' at row 1
Query:
    INSERT INTO mybb2_mydownloads_comments (`did`,`uid`,`comment`,`ipaddress`,`username`,`date`) VALUES (61,1,'test','2a0a:a541:6654:0:a9f2:9b20:2615:1340','admin',1659351242)

Ich vermute mal das man hier nicht berücksichtigt hat das eine IP Adresse anstelle IPV4 auch das IPV6 Format haben kann.

Die Tabelle mydownloads_comments wurde laut /plugins/mydownloads.php so angelegt:

Code:
if(!$db->table_exists("mydownloads_comments"))
    {
        $db->write_query("CREATE TABLE `".TABLE_PREFIX."mydownloads_comments` (
          `cid` int(10) UNSIGNED NOT NULL auto_increment,
          `did` int(10) UNSIGNED NOT NULL default '0',
          `uid` bigint(30) UNSIGNED NOT NULL default '0',
          `comment` text NOT NULL,
          `ipaddress` varchar(30) NOT NULL default '',
          `username` varchar(100) NOT NULL default '',
          `date` bigint(30) UNSIGNED NOT NULL default '0',
          PRIMARY KEY  (`cid`)
            ) ENGINE=MyISAM{$collation}");
    }

Ist der Eintrag
Code:
`ipaddress` varchar(30) NOT NULL default '',
nicht mehr ausreichend?
Wie kann ich das jetzt im Nachgang korrigieren?

Gruß - Man
Zitieren
#3
varchar(30) ist für eine IPv6 zu kurz.
Du könntest in der Datenbank den zulässigen Wert für diese Spalte
auf varchar(39) setzen.
Das sollte das Problem beheben.
Zitieren
#4
Öffne deine Datenbank-Administration und ändere den Datentyp auf "varchar(40)".
SQL:
Code:
ALTER TABLE mydownloads_comments MODIFY COLUMN ipaddress varchar(40) NOT NULL DEFAULT '';

[ExiTuS]
MyBB + innovative Themes:
NokiaPort.de Forum Nokia-Traditionsforum seit 2006.
Live Escape Game Forum Diskussionsplattform für Escape-Rooms.
Unlösbares Problem, Dilemma? -> das Nötel Smile
Zitieren
#5
Hallo zusammen, danke für die schnellen Antworten.
Hat super gepasst!

Mit phpMyAdmin alles kein Problem Big Grin

So hat es bei mir mit dem richtigen Sufix gepasst:

Code:
ALTER TABLE mybb_mydownloads_comments MODIFY COLUMN ipaddress varchar(40) NOT NULL DEFAULT '';

Besten Dank dafür!
Auf den Bug sollte man vielleicht hinweisen Huh

Gruß - Man

PS: Falls ihr das noch nicht gesehen habt, habe Euch ne Übersetzung für das MyDownload zukommen lassen. Hoffe ihr könnt das verwenden.
Zitieren
#6
Erstmal Hallo an alle.
Ich habe dieses Modul "MyDownloads 3.0.2" installiert und habe, das Problem, dass ich keine Downloads anlegen kann.

Kategorien werden ganz normal angelegt, aber wenn ich einen Download anlegen möchte, passiert nichts.
Die Seite wird aktualisiert, es erscheint jedoch kein Eintrag.

Hat von euch jemand eine Idee, was da falsch läuft?
Zitieren
#7
Hallo nochmal.
Ich habe festgestellt, dass das Plugin nur bis php 7.4 läuft.
Php 8 wird hier nicht mehr unterstützt.
Habe meinen Server dementsprechend umgestellt.
Zitieren