Pagina 1 van 1

Debug mode: show poll results in ezportal

Geplaatst: 30 mar 2006, 14:59
door opinion
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

Geplaatst: 30 mar 2006, 15:13
door Paul
Je kan met die mod dacht ik maar 1 forum opgeven om de pollls uit te zien, je moet de portal configuratie dus aanpassen.

Geplaatst: 30 mar 2006, 15:17
door opinion
paul 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.
Die poll heeft altijd gewerkt tot ik die extra mod heb geïnstalleerd op die poll

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'] = '';
Zoals je dus ziet is alles correct ingesteld :cry:

Geplaatst: 30 mar 2006, 15:17
door Paul
Geef portal.php eens in een tekstbestand?

Geplaatst: 30 mar 2006, 15:26
door opinion
*knip* zie je de .txt file

Geplaatst: 30 mar 2006, 15:30
door Paul
verander:

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';
in:

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';

Geplaatst: 30 mar 2006, 15:42
door opinion
De bug is weg maar nu heb ik een ander probleem:

Mijn copyright staat nu onder de poll
En de poll box staat in een poll box :?

De rest werkt prima
:wink:

Geplaatst: 30 mar 2006, 15:50
door Paul
je hebt portal_body.tpl niet goed aangepast.

Geplaatst: 30 mar 2006, 15:56
door opinion
Ok, het was idd dat.
Hartelijk bedankt :thumb: :wink: