[x] Navigation

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

Link zu einer HTML-Seite

This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page     Forum Index ›  Hilfe

View previous topic :: View next topic  
Author Message
Meinhard
Investigator
Investigator

Offline Offline
Joined: Nov 08, 2004
Posts: 9

PostPosted: 08.11.2004 22:43
Post subject: Link zu einer HTML-Seite

Hallo,

ich habe CPG-Nuke ohne Probleme installiert bekommen und es funktioniert alles einwandfrei. Jetzt möchte ich einen Link im Menü zu einer HTML-Seite auf meiner HP einrichten. Ist das irgendwie möglich?
Gibt es für CPG-Nuke eine Intallationsanleitung?
Kann mir einer weiterhelfen.

Viele Grüße
Meinhard


Meinhard please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Send e-mail Visit poster's website
sean_gut
Investigator
Investigator

Offline Offline
Joined: Nov 09, 2004
Posts: 2

PostPosted: 09.11.2004 05:38
Post subject: Re: Link zu einer HTML-Seite

Hallo, das ist kein Problem, also erstelle erstmal die html seite du brauchst nur den Teil der in den <body> </body> Tags steht, dann erstellest du eine index.php mit folgendem Inhalt:

PHP:
<?php

/***************
This file is used to call in a single static HTML file through CPG-Nuke.
****************/

if (!defined('CPG_NUKE')) {
die(
'You do not have permission to access this file');
}

//uncomment the below line to show right side block
//$index = 1;

//uncomment the below line to hide ALL blocks
//$hideallblocks=1;

//give your page a title. This will show after your sitename in the title
$pagetitle = " - Email Adressen";


include(
"header.php");

OpenTable();

//change the below file name to the filename you wish to call in.
include("NAME_DEINES_FILES.html");
CloseTable();

include(
"footer.php");
?>

Du musst nur den Namen der html Datei ändern...

Dann legst du im Module Ordner auf deinem Websapce einen Ordner an in den du die html seite und die index.php reinschiebst. Nun in der Modules Konfiguration nachschauen da sollte der neue Ordner nun erscheinen du kannst ihn aktivieren un tata... Hat bei mir prima funktioniert...

Hoffe konnte es eineigermaßen verständlich beschreiben...


sean_gut please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Visit poster's website
sean_gut
Investigator
Investigator

Offline Offline
Joined: Nov 09, 2004
Posts: 2

PostPosted: 09.11.2004 05:39
Post subject: Re: Link zu einer HTML-Seite

P.S.: den pagetitle kannst du auch noch ändern Wink


sean_gut please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Visit poster's website
Meinhard
Investigator
Investigator

Offline Offline
Joined: Nov 08, 2004
Posts: 9

PostPosted: 09.11.2004 14:05
Post subject: Re: Link zu einer HTML-Seite

Hallo,

viele Dank, das war die Lösung.
Ich habe auf www.cpgnuke.com auch eine Lösung gefunden "html_center_block", funktioniert wohl genauso.

Viele Dank
Meinhard


Meinhard please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Send e-mail Visit poster's website
rettsan78
Agent
Agent

Offline Offline
Joined: Feb 15, 2005
Posts: 62

PostPosted: 21.02.2005 17:10
Post subject: Re: Link zu einer HTML-Seite

Ich bekomme wenn ich deine Datei anwende immer diese Fehlermeldung :

You do not have permission to access this file

Woran liegt das ??


rettsan78's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Hostloco/PHP4/CPG9.0.6.1
Back to top
View user's profile
gtown
Übersetzer
Übersetzer

Offline Offline
Joined: Feb 07, 2005
Posts: 187
Location: Germering
PostPosted: 22.02.2005 11:05
Post subject: Re: Link zu einer HTML-Seite

Weil Du warscheinlich im Browser direkt versuchst die php-Datei zu öffnen !?
Im Prinzip musstDu Dir eine index.phpmit dem code erstellen, den sean_gut oben da erklärt hat.
Dann gehst aufm Server in Modules und erstellt seinen neuen Ordner, also z.b.:

Modules/Test/index.php
Modules/Test/NAME_DEINES_FILES.html

(die beiden Dateien hochladen)

Über den Adminbereich kannst Du das dann freischalten, oder testen. Wichtig ist halt, dass das ganze wie ein Modul aufgerufen wird und nicht direkt.
(ist glaub ich eine "Vererbung", oder "Aggregation", oder sowas, falls Dir das hilft)


Oder ich hab alles überhaupt nicht kapiert und Du streichst meinen Beitrag liber, kann auch sein Laughing


gtown's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
www.germeringer.de / PHP: 5.2.0-7~bpo.1 / MySQL: 5.0.30/ Kernel: 2.6.19/ Dragonfly: 9.1.1
Back to top
View user's profile Visit poster's website
lexi_
Doppel-Null-Agent
Doppel-Null-Agent

Offline Offline
Joined: Jul 07, 2004
Posts: 178

PostPosted: 12.06.2005 12:42
Post subject: Re: Link zu einer HTML-Seite

wie kann man das realiseren wenn man mehrere html seiten einbinden möchte im gleichen modulordner
/modules/ordner/
/modules/ordner/index.php
/modules/ordner/seite1.htm
/modules/ordner/seite2.htm
/modules/ordner/seite3.htm
mfg
lexi


lexi_'s server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Server SUSE 9.3 / PHP 4.3.10 / Mysql 4.1.10a / cpg 9.2.0.RC2
Back to top
View user's profile Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page    Forum Index ›  Hilfe
Page 1 of 1
All times are GMT + 1 Hour



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Interactive software released under GNU GPL, Code Credits, Privacy Policy