Debug mode: show poll results in ezportal
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

Debug mode: show poll results in ezportal
Wat is het probleem?een bug
Wanneer ontstond het probleem?na het installeren van de mod
Adres van je forum: *knip*
Directe link naar de modification:vergete
phpBB versie:2.0.19
Heb je onlangs een andere mod of stijl geïnstalleerd?show poll results on ezportal
Heb je gezocht naar een antwoord?ja, heb de eerste twee pagina's van de 366 bekeken die ik uit de zoekfunctie kreeg.
Dit is de foutmelding. Ik heb alles nog eens goed nagekeken, volgens mij is alles correct op de plaats gezet, het is een makkelijke mod, dus ik snap het niet goed.
Dit is de foutmelding:
Couldn't obtain poll information.
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2 AND t.topic_status <> 1 AND t.topic_status <> 2 AND t.topic_vote =' at line 7
SELECT t.*, vd.* FROM fashion_topics AS t, fashion_vote_desc AS vd WHERE t.forum_id = 1,2 AND t.topic_status <> 1 AND t.topic_status <> 2 AND t.topic_vote = 1 AND t.topic_id = vd.topic_id ORDER BY t.topic_time DESC LIMIT 0,1
Line : 366
File : portal.php
Wanneer ontstond het probleem?na het installeren van de mod
Adres van je forum: *knip*
Directe link naar de modification:vergete
phpBB versie:2.0.19
Heb je onlangs een andere mod of stijl geïnstalleerd?show poll results on ezportal
Heb je gezocht naar een antwoord?ja, heb de eerste twee pagina's van de 366 bekeken die ik uit de zoekfunctie kreeg.
Dit is de foutmelding. Ik heb alles nog eens goed nagekeken, volgens mij is alles correct op de plaats gezet, het is een makkelijke mod, dus ik snap het niet goed.
Dit is de foutmelding:
Couldn't obtain poll information.
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2 AND t.topic_status <> 1 AND t.topic_status <> 2 AND t.topic_vote =' at line 7
SELECT t.*, vd.* FROM fashion_topics AS t, fashion_vote_desc AS vd WHERE t.forum_id = 1,2 AND t.topic_status <> 1 AND t.topic_status <> 2 AND t.topic_vote = 1 AND t.topic_id = vd.topic_id ORDER BY t.topic_time DESC LIMIT 0,1
Line : 366
File : portal.php
Laatst gewijzigd door opinion op 30 mar 2006, 18:02, 1 keer totaal gewijzigd.
Die poll heeft altijd gewerkt tot ik die extra mod heb geïnstalleerd op die pollpaul schreef:Je kan met die mod dacht ik maar 1 forum opgeven om de pollls uit te zien, je moet de portal configuratie dus aanpassen.
Code: Selecteer alles
// Number of news on portal
$CFG['number_of_news'] = '5';
// Length of news
$CFG['news_length'] = '200';
// News Forum ID: separate by comma for multi-forums, eg. '1,2,5'
$CFG['news_forum'] = '1';
// Poll Forum ID: separate by comma for multi-forums, eg. '3,8,14'
$CFG['poll_forum'] = '1';
// Number of Recent Topics (not Forum ID)
$CFG['number_recent_topics'] = '5';
// Exceptional Forums for Recent Topics, eg. '2,4,10' (note: my Recent Topics script has its own permission checking, so you can leave this variable blank)
$CFG['exceptional_forums'] = '';

verander:
in:
Code: Selecteer alles
$sql = 'SELECT
t.*, vd.*
FROM
' . TOPICS_TABLE . ' AS t,
' . VOTE_DESC_TABLE . ' AS vd
WHERE
t.forum_id = ' . $poll_forum . ' AND
t.topic_status <> 1 AND
t.topic_status <> 2 AND
t.topic_vote = 1 AND
t.topic_id = vd.topic_id
ORDER BY
t.topic_time DESC
LIMIT
0,1';
Code: Selecteer alles
$sql = 'SELECT
t.*, vd.*
FROM
' . TOPICS_TABLE . ' AS t,
' . VOTE_DESC_TABLE . ' AS vd
WHERE
t.forum_id IN(' . $poll_forum . ') AND
t.topic_status <> 1 AND
t.topic_status <> 2 AND
t.topic_vote = 1 AND
t.topic_id = vd.topic_id
ORDER BY
t.topic_time DESC
LIMIT
0,1';