Seite 2 von 2

Verfasst: 14.12.2002 12:35
von M@ster
Anonymous hat geschrieben:Parse error: parse error in /usr/www/users/nb2007/board/portal.php on line 163
Poste uns doch mal aus der Datei portal.php die Zeilen 162-164.

Verfasst: 14.12.2002 13:01
von Gast
//
// Fetch Poll
//
$poll_forum_id = 1; // Change this with yours

$fetchpoll = phpbb_fetch_poll($poll_forum_id);

if (!empty($fetchpoll))
{
$template->assign_vars(array(
'S_POLL_QUESTION' => $fetchpoll['vote_text'],
'S_POLL_ACTION' => append_sid('posting.'.$phpEx.'?'.POST_TOPIC_URL.'='.$fetchpoll['topic_id']),
'S_TOPIC_ID' => $fetchpoll['topic_id'],
'L_SUBMIT_VOTE' => $lang['Submit_vote'],
'L_LOGIN_TO_VOTE' => $lang['Login_to_vote']
)
);

for ($i = 0; $i < count($fetchpoll['options']); $i++)
{
$template->assign_block_vars('poll_option_row', array(
'OPTION_ID' => $fetchpoll['options'][$i]['vote_option_id'],
'OPTION_TEXT' => $fetchpoll['options'][$i]['vote_option_text'],
'VOTE_RESULT' => $fetchpoll['options'][$i]['vote_result'],
)
);
}
}
else
{
$template->assign_vars(array(
'S_POLL_QUESTION' => $lang['No_poll'],
'DISABLED' => 'disabled="disabled"'
)
);
}

//
// Generate the page
//
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
hoffe das sind sie aber denke mal schon

Verfasst: 14.12.2002 13:19
von M@ster
M@ster hat geschrieben: Poste uns doch mal aus der Datei portal.php die Zeilen 162-164.
da ich keine Lust auf suchen habe ;)

Verfasst: 14.12.2002 13:43
von FireDragon
Simpson hat geschrieben:hold on

Geh mal besser, besser is das ;)

http://phpbbhacks.com/viewhack.php?id=694

EDIT

oder direkt http://smartor.is-root.com
Hi Simpson, ich hab das mal installiert und auch alles wie im file phpBB Portal.txt geändert und auf den server kopiert. aber wie mach ich es das er vom normalen forum zum portal rüber wechselt ???

Verfasst: 14.12.2002 14:06
von FireDragon
könnte mir mal jemand helfen??? in der install anleitung steht:


#
#-----[ SAVE/UPLOAD ALL FILES ]------------------------------------------
#
# HOW TO MAKE YOUR WEBSITE OPEN TO FILE portal.php INSTEAD OF index.php ?
#
# o Method 1: (for Apache server)
# create/modify file .htaccess in phpBB root directory
# add/edit this line:
#
# DirectoryIndex index.html index.htm portal.php index.php
#
# o Method 2: {use JavaScript - if you cannot apply the 1st method)
# create file index.html in phpBB root directory (without #)
# if your phpBB was placed in a subdirectory to the
# webroot, like: http://something.com/forum
# you could create index.html in the webroot and modify the
# line 5 to self.location.href='forum/portal.php';
#
# <html>
# <head>
# <title>Redirecting...</title>
# <script language="JavaScript">
# self.location.href=portal.php;
# </script>
# </head>
# <body>
# </body>
# </html>


Vielleicht bin ich ja zu doof, aber kann mir jemand erklären wie ich es nun machen soll, das das forum zum portal wird???

Verfasst: 14.12.2002 14:22
von Gast
Über eine deutsche (newbie) - :o - Anleitung wäre ich auch dankbar ...

Verfasst: 14.12.2002 15:14
von M@ster
Was verstehst du denn nicht?
Entweder du packst ins Verzeichnis eine .htaccess mit dem angegebenen Inhalt, oder du schreibst in den Header einer HTML Datei den JavaScript Coder um die Seite umzuleiten.

Verfasst: 14.12.2002 15:18
von FireDragon
ich kenn htaccess nur zum erstellen eines adminbereichs. wie man das für sowas erstellt weiss ich nicht

Verfasst: 14.12.2002 22:40
von heigerle
schaut mal hier:
http://phpbb.de/viewtopic.php?t=19372

einfach mit´m editor als index.html speichern, ins rootverzeichniss un et loift :wink:

gruß holger