Wer kann mir helfen mit Recent Topics

Probleme bei der regulären Arbeiten mit phpBB, Fragen zu Vorgehensweisen oder Funktionsweise sowie sonstige Fragen zu phpBB im Allgemeinen.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
ozzyka
Mitglied
Beiträge: 7
Registriert: 06.12.2002 16:50

Wer kann mir helfen mit Recent Topics

Beitrag von ozzyka »

Also mein Problem.

Habe diese Serverstruktur.

Meine Seite, auf der ich auf aktuelle Topics, Posts hinweisen will liegt ganz normal auf index.php.

Mein Forum liegt auf phpBB2/index.php (ganz normal).


Was könnt ihr mir für einen Hack empfehlen und wie kann ich den installieren. Habe mir einen phpbbhacks.com geholt, doch ich schaffe die Installation nicht. Danke für Hilfe.
There are two places ...
http://www.martinhoffmann.com
http://www.nozama.de - your Shopping-Center
Benutzeravatar
Schumi
Ehemaliges Teammitglied
Beiträge: 4925
Registriert: 07.10.2002 12:37

Re: Wer kann mir helfen mit Recent Topics

Beitrag von Schumi »

ozzyka hat geschrieben:Habe mir einen phpbbhacks.com geholt, doch ich schaffe die Installation nicht.
Sag uns, wo das Problem ist und wir helfen dir!
ozzyka
Mitglied
Beiträge: 7
Registriert: 06.12.2002 16:50

Beitrag von ozzyka »

Der Installationstext:

########################################################
## Mod Title: Recent posts on any page of your server
## Mod Version: phpBB 2.0
## Author: LiLCoolboy (M@urice Cheung) (originally made by ?)
## Description: Shows the recent topics or posts on any page of your server
##
## DeMo: http://www.xptweakers.cjb.net
## Installation Level: Easy
## Installation Time: 5 minutes
## Files To Edit: 0
## Included Files: (if necessary)
########################################################
##
## Installation Notes:
##
## just put the code in a php file, edit the $serverpath and the $urlpath
## upload the file and you're all done!!
##
########################################################

#
#-----[place the code in a php file]------------------------------------------
#
<?

$ServerPath = "Your_Server_Path/config.php"; //- Not Not Include Closing \ Mark!
$urlPath = "http://Your_Url_Path"; //- Not Not Include Closing \ Mark!
$PostNumber = "10"; // How Many "X" Posts To Display
$type = "topics"; // Display "posts" or "topics"

//-----------------[ DO NOT EDIT BELOW HERE ]-------------------------

include_once("$ServerPath");
$db = @mysql_connect("$dbhost", "$dbuser", "$dbpasswd") or die("here we die at connection");
@mysql_select_db("$dbname",$db) or die("here we die");

if($type == "phpbb_posts")
$sql = "SELECT t.topic_title, t.topic_id, f.forum_id FROM topics t, forums f, posts p WHERE t.topic_id = p.topic_id AND f.forum_id = t.forum_id ORDER BY post_id DESC LIMIT $PostNumber";
else
$sql = "SELECT t.topic_title, t.topic_id, f.forum_id FROM topics t, forums f WHERE f.forum_id = t.forum_id ORDER BY topic_time DESC LIMIT $PostNumber";

if($r = mysql_query($sql, $db)) {
while($m = mysql_fetch_array($r)) {
$j = stripslashes($m[topic_title]);
$k = substr($j, 0, 20) . "...";
echo "-<a title=\"$m[topic_title]\" href=\"$urlpath/viewtopic.php?t=$m[topic_id]&sid=$m[forum_id]\">$k</a><br>";
}
}
?>

#
#-----------------------------------------------
#


Nun kennt ihr ja meine Serverstruktur also was soll ich wie einstellen.
There are two places ...
http://www.martinhoffmann.com
http://www.nozama.de - your Shopping-Center
Benutzeravatar
Guido
Mitglied
Beiträge: 1307
Registriert: 06.10.2002 09:44
Wohnort: Rheinland
Kontaktdaten:

Beitrag von Guido »

Code: Alles auswählen

Your_Server_Path
Das ist der interne Pfad und den hast Du uns nicht verraten...
ozzyka
Mitglied
Beiträge: 7
Registriert: 06.12.2002 16:50

Beitrag von ozzyka »

was ist das?
There are two places ...
http://www.martinhoffmann.com
http://www.nozama.de - your Shopping-Center
Benutzeravatar
Guido
Mitglied
Beiträge: 1307
Registriert: 06.10.2002 09:44
Wohnort: Rheinland
Kontaktdaten:

Beitrag von Guido »

Na, der interne Serverpfad halt, also da wo Dein Stammverzeichnis ist wo Du z.B. mit einem FTP Prog Deine Daten ablädst, meistens sowas wie:
usr/www/htdocs
Das ist nur ein Beispiel...
Antworten

Zurück zu „phpBB 2.0: Administration, Benutzung und Betrieb“