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
Linkliste mit Hilfe von xThreads
#1
Hallo MyBBoard User,

da ich leider kein Experte bin und ich wiedermal nach euere Hilfe angewiesen.

Ich betreibe ein WebMaster Forum und möchte nun jeden User die Möglichkeit bieten sich in unserem Art Linkliste eintragen zu können.

Eine Linkliste könnte wie folgt aussehen:
http://www.d-linkliste.de

Nun zu meiner Frage.

In wie weit kann ich so etwas mit Hilfe von MyBB umsetzen? Mit xThreads möglich, wenn ja wie?

Gruß
Zitieren
#2
Gibt es doch schon bereits.

Schau mal hier -> http://mybbhacks.zingaburga.com/showthread.php?tid=398
Mit freundlichen Grüßen

MrBrechreiz
Zitieren
#3
Hallo,
ich hänge mich mal an dieses Thema an - die Sache habe ich nachgebaut und es funktioniert soweit - bis man das FIltern auf der Kategorie einschaltet, dann gibt es einen schönen Fehler

SQL Error:
1054 - Unknown column 'tfd.xtldcat' in 'where clause'

Query:
SELECT COUNT(tid) AS threads FROM iioc_threads t WHERE fid = '44' AND (t.visible IN (1,-1,0)) AND (tfd.`xtldcat` LIKE "%Ersatzteile%")

Hat XThreads da "vergessen" irgendetwas in der Datenbank anzulegen?
Zitieren
#4
Update - es könnte eventuell mit dem Update 1.8.21 nach 1.8.22 zusammenhängen
Zitieren
#5
Full error:

Code:
<error>
<dateline>1578505893</dateline>
<script></script>
<line>0</line>
<type>20</type>

<friendly_type>MyBB SQL Error</friendly_type>

<message>SQL Error: 1054 - Unknown column 'tfd.xtldcat' in 'where clause'
Query: SELECT COUNT(tid) AS threads FROM iioc_threads t WHERE fid = '44'  AND (t.visible IN (1,-1,0)) AND tfd.`xtldcat` IN ("Filter-word")  </message>

<back_trace>#0  errorHandler->log_error(20, SQL Error: 1054 - Unknown column 'tfd.xtldcat' in 'where clause'
Query: SELECT COUNT(tid) AS threads FROM iioc_threads t WHERE fid = '44'  AND (t.visible IN (1,-1,0)) AND tfd.`xtldcat` IN ("Filter-word")  , , 0) called at [/hp/bv/ab/cf/www/forum-url/inc/class_error.php:189]
#1  errorHandler->error(20, Array ([error_no] => 1054,[error] => Unknown column 'tfd.xtldcat' in 'where clause',[query] => SELECT COUNT(tid) AS threads FROM iioc_threads t WHERE fid = '44'  AND (t.visible IN (1,-1,0)) AND tfd.`xtldcat` IN ("Filter-word")  )) called at [/hp/bv/ab/cf/www/forum-url/inc/db_mysqli.php:597]
#2  DB_MySQLi->error(SELECT COUNT(tid) AS threads FROM iioc_threads t WHERE fid = '44'  AND (t.visible IN (1,-1,0)) AND tfd.`xtldcat` IN ("Filter-word")  ) called at [/hp/bv/ab/cf/www/forum-url/inc/db_mysqli.php:337]
#3  DB_MySQLi->query(SELECT COUNT(tid) AS threads FROM iioc_threads t WHERE fid = '44'  AND (t.visible IN (1,-1,0)) AND tfd.`xtldcat` IN ("Filter-word")  , 0, 0) called at [/hp/bv/ab/cf/www/forum-url/inc/plugins/xthreads.php(878) : eval()'d code:8]
#4  _objcont_3->query(SELECT COUNT(tid) AS threads FROM iioc_threads t WHERE fid = '44'  AND (t.visible IN (1,-1,0)) AND tfd.`xtldcat` IN ("Filter-word")  ) called at [/hp/bv/ab/cf/www/forum-url/inc/db_mysqli.php:789]
#5  DB_MySQLi->simple_select(threads t, COUNT(tid) AS threads, fid = '44'  AND (t.visible IN (1,-1,0)) AND tfd.`xtldcat` IN ("Filter-word")  , Array ()) called at [/hp/bv/ab/cf/www/forum-url/inc/plugins/xthreads.php(878) : eval()'d code:24]
#6  _objcont_6->simple_select(threads t, COUNT(tid) AS threads, fid = '44'  AND (t.visible IN (1,-1,0)) AND tfd.`xtldcat` IN ("Filter-word")  ) called at [/hp/bv/ab/cf/www/forum-url/forumdisplay.php:610]
</back_trace>
</error>
Zitieren
#6
Hast du in einer Tabelle (die als tfd deklariert wird) ein Feld namens "xtldcat"?

Wenn Ja, dann muss die DB Abfrage angepasst werden, etwa so:
Code:
SELECT COUNT(tid) AS threads
FROM iioc_threads t
LEFT JOIN iioc_TABELLE tfd ON (t.??=tfd.??)
WHERE fid = '44' AND (t.visible IN (1,-1,0)) AND tfd.`xtldcat` IN ("Filter-word")
Zitieren
#7
Das macht ja alles xthreads - es gibt eine Tabelle "threadfields" und die hat die Spalte xtldcat. Es scheint, als würde die Tabelle nicht mehr korrekt als "tfd." "definiert"
Zitieren
#8
Lösung:
In inc/xthreads/xt_forumdhooks.php, find:
PHP Code:
$table == "threads"
replace with
PHP Code:
($table == "threads" || $table == "threads t")
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  xThreads Präfixe melancholia 2 1.850 18.05.2021, 17:24
Letzter Beitrag: TheStoryteller
  Xthreads Rating Thread Fields anzeige lenox 1 1.088 14.04.2020, 02:54
Letzter Beitrag: lenox
  HTTPS Problem bei xthreads Video Gallery lenox 2 1.530 16.02.2020, 18:20
Letzter Beitrag: lenox
  Xthreads Seiten responsiv machen lenox 1 1.270 31.01.2020, 02:27
Letzter Beitrag: lenox
  Xthreads Restaurant Review Google map einbinden Lordikon30 5 1.957 22.01.2020, 21:01
Letzter Beitrag: Lordikon30