Weiss zwar nicht ob ich hier richtig poste... aber ich tu es mal:
Also möchte zB Abstimmungen oder Top Threads bzw. Newest Threads auf meiner Hauptsite angezeigt bekommen...
Kann mir einer sagen was ich bei Dreamweaver für einen Code eingeben muss bzw. hat vielleicht jemand einen Link für mich wo ich mir das in Ruhe durchlesen kann und mich damit befassen?
Wäre klasse wenn da jemand helfen könnte.
Nicht dass das falsch verstanden wird, es geht hier nicht darum im Portal angezeigt zu bekommen welche Threads neu sind, es geht darum auf meiner Site von der aus man zum Forum gelangt diese Infos bekommen soll... so das zB jemand der sich auf der Website befindet direkt durch einen Klick ins Forum und damit in das entsprechende Thema gelangt!
Forumlinkz auf Hauptsite
Also soweit ich das verstanden habe, alles uploaden und portal.php ausfürhen.. darin seh ich auch kein problem heheNAME
phpBB Fetch All - displays phpBB on any page
INSTALL
Be sure to backup all files if you have an older version of
this mod installed.
1. Create a directory 'mods' within your phpBB2 directory if it
does not already exists.
2. Upload the complete 'phpbb_fetch_all' folder into the 'mods'
directory.
3. Open the following file in your browser:
phpBB2/mods/phpbb_fetch_all/examples/portal.php
Done.
aber dann:
NAME
phpBB Fetch All - displays phpBB on any page
VERSION
2.0.0
SYNOPSIS
Code: Alles auswählen
<?php
$phpbb_root_path = '../../../';
define ('IN_PHPBB', true);
include_once ($phpbb_root_path . 'extension.inc');
include_once ($phpbb_root_path . 'common.' . $phpEx);
include_once ($phpbb_root_path . 'includes/bbcode.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/common.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/posts.' . $phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
init_userprefs($userdata);
$posts = phpbb_fetch_posts();
phpbb_disconnect();
?>
<h3>News</h3>
<?php
for ($i = 0; $i < count($posts); $i++) {
?>
<p>
<b><?php echo $posts[$i]['topic_title']; ?></b>
<hr>
<?php echo $posts[$i]['post_text']; ?>
<?php
}
?>
This mod lets you display data from the phpBB forum on
any page of your website. It uses phpBB to connect
to the forum database and should therefor work if phpBB
works.
You can integrate the mod on any (non phpBB) page of your
homepage using your layout and design. You can also use
phpBB templates and make the script become a part of your
forum.
Dann muss ich diesen Code auf der Homepage für einen bestimmten Bereich einfügen richtig?
Was soll ich unter phpbb root path verstehen? Also Ordner wo das phpbb Forum liegt?
Hab ich das jetzt richtig verstanden?
1. phpbb_fetch_all ordner uploaden in mods ordner im phpbb verzeichnis
2. Oben angegebenen Code einfügen in den Html Editor bei Dreamweaver
3. fertig
???