Seite 2 von 2

Verfasst: 18.10.2004 12:12
von Pimo
bei mir sieht er so aus!

Code: Alles auswählen

  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		   <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_POLL}</b></span></td>
		   </tr>
		   <tr>
			<td class="row1" align="left"><span class="gensmall">
				<form method="post" action="{S_POLL_ACTION}">
				<center><b>{S_POLL_QUESTION}</b></center><br />
				<!-- BEGIN poll_option_row -->
				<input type="radio" name="vote_id" value="{poll_option_row.OPTION_ID}">{poll_option_row.OPTION_TEXT}&nbsp;[{poll_option_row.VOTE_RESULT}]<br />
				<!-- END poll_option_row -->
				<br />
				<!-- BEGIN switch_user_logged_out -->
				<center>{L_LOGIN_TO_VOTE}</center>
				<!-- END switch_user_logged_out -->
				<!-- BEGIN switch_user_logged_in -->
				<center><input type="submit" class="mainoption" name="submit" value="{L_VOTE_BUTTON}" {DISABLED}></center>
				<input type="hidden" name="topic_id" value="{S_TOPIC_ID}">
				<input type="hidden" name="mode" value="vote">
				<!-- END switch_user_logged_in -->
				</form><br />
			</span></td>
		   </tr>
		  </table>
		  
		  <br />

		</td></tr></table>
	</td>
  </tr>
</table>
wie bekomme ich jetzt diese umfrage da rein

Verfasst: 18.10.2004 12:39
von Markus67
Hi ....

Das ist eigentlich die einzige Änderung die vorgenommen werden muss damit die Umfragen angezeigt werden ....

Funktioniert denn der News Block wenn du dort ebenfalls die 4 reinschreibst ?

Code: Alles auswählen

# OPEN: portal.php
#
# FIND:
//
// Set configuration for ezPortal
//

// Welcome Text: note that we are in PHP file, so use \' instead of ' and use \\ instead of \ (HTML enabled)
$CFG['welcome_text'] = 'Welcome to <b>My Community</b><br /><br />Thanks for using ezPortal,<br /><br />Have a good time! ^_^';

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

//
// END configuration
Hast du an der portal.php was verändert ? Wenn ja lade die Original-Datei aus dem Download nochmal hoch.

Markus

Verfasst: 18.10.2004 12:52
von Pimo
ich habe das geändert

Code: Alles auswählen

# 
#-----[ OPEN ]------------------------------------------ 
#
portal.php

# 
#-----[ FIND ]------------------------------------------ 
# 

//
// Set configuration for ezPortal
//

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

/*

# 
#-----[ FIND ]------------------------------------------ 
# 

//
// END configuration
//

# 
#-----[ AFTER ADD ]------------------------------------------ 
# 

*/

# 
#-----[ FIND ]------------------------------------------ 
#

'WELCOME_TEXT' => $CFG['welcome_text'],

# 
#-----[ REPLACE WITH ]------------------------------------------ 
#

'PORTAL_ANNOUNCE' => $board_config['portal_announce'],

# 
#-----[ FIND ]------------------------------------------ 
#

$fetchposts = phpbb_fetch_posts($CFG['news_forum'], $CFG['number_of_news'], $CFG['news_length']);

# 
#-----[ REPLACE WITH ]------------------------------------------ 
#

$fetchposts = phpbb_fetch_posts($board_config['portal_news'], $board_config['news_number'], $board_config['news_length']);

# 
#-----[ FIND ]------------------------------------------ 
#

$fetchposts = phpbb_fetch_posts($CFG['news_forum'], $CFG['number_of_news'], 0);

# 
#-----[ REPLACE WITH ]------------------------------------------ 
#

$fetchposts = phpbb_fetch_posts($board_config['portal_news'], $board_config['news_number'], 0);

# 
#-----[ FIND ]------------------------------------------ 
#

$fetchpoll = phpbb_fetch_poll($CFG['poll_forum']);

# 
#-----[ REPLACE WITH ]------------------------------------------ 
#

$fetchpoll = phpbb_fetch_poll($board_config['portal_poll']);
so stand das in der install.txt

Verfasst: 18.10.2004 13:05
von Markus67
Hi ...

Sowas steht aber nicht in meiner Installation ... mit dem ersten Teil hast du im Prinzip die Konfigurationsmöglichkeiten deaktiviert. :roll:

Lade mal die Original portal.php aus dem Download-Paket hoch und verändere diesen Teil mit deiner Foren-ID.

Code: Alles auswählen

// Poll Forum ID: separate by comma for multi-forums, eg. '3,8,14' 
$CFG['poll_forum'] = '1';
Markus