|
|
Latest News |
Latest Threads |
|
 |
55.476 Posts & 4.945 Themen in 78 Foren |
|
|
|
 |
Forensuche |
|
Suchbegriff |
Benutzerauswahl |
Ergebnisse anzeigen |
 |
 |
Hilfe - Welcome Boxes 6 Beiträge in diesem Thema |
|
|
 |
|
|
 |
|
 |
17.09.2014 - 11:46 Uhr |
|
|
|
jaja... ich mal wieder 
ich habe die welcome boxes installiert.
hier meine start.php
| PHP-Quelltext <?php # PHPKIT WCMS | Web Content Management System # # # YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS # FILE AND/OR TO REMOVE THIS INFORMATION # # SIE SIND NICHT BERECHTIGT, UNRECHTMÄSSIGE KOPIEN DIESER # DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN # # This file / the PHPKIT software is no freeware! For further # information please visit our website or contact us via email: # # Diese Datei / die PHPKIT Software ist keine Freeware! Für weitere # Informationen besuchen Sie bitte unsere Website oder kontaktieren uns per E-Mail: # # email : info@phpkit.com # website : http://www.phpkit.com # licence : http://www.phpkit.com/licence # copyright : Copyright (c) 2002-2009 mxbyte gbr | http://www.mxbyte.com if(!defined('pkFRONTEND') || pkFRONTEND!='public') die('Direct access to this location is not permitted.'); pkLoadClass($BBCODE,'bbcode'); if(pkGetConfig('welcome_eod')) { $welcome_text=$BBCODE->parse($config['welcome_text'],1,1,1,1); # Welcome Boxes by HTH-C.com Start # $welcome_text_1=$BBCODE->parse($config['welcome_text_1'],1,1,1,1); $welcome_text_2=$BBCODE->parse($config['welcome_text_2'],1,1,1,1); $welcome_text_3=$BBCODE->parse($config['welcome_text_3'],1,1,1,1); # Welcome Boxes by HTH-C.com Ende # if(!empty($config['welcome_title'])) { $welcome_title=$BBCODE->parse($config['welcome_title'],1,1,1,1); eval ("\$welcome_title= \"".pkTpl("welcome_title")."\";"); } if(!empty($welcome_text) || !empty($welcome_title)) eval("\$site_body.= \"".pkTpl("welcome")."\";"); } # Welcome Boxes by HTH-C.com Start # $welcome_home_height = $config['welcome_home_height']; $welcome_border_color = $config['welcome_border_color']; # < delete $welcome_title_1 = $config['welcome_title_1']; $welcome_title_2 = $config['welcome_title_2']; $welcome_title_3 = $config['welcome_title_3']; $config['welcome_text_1']=$BBCODE->parse($welcome_text_1['welcome_text_1']); $config['welcome_text_2']=$BBCODE->parse($welcome_text_2['welcome_text_2']); $config['welcome_text_3']=$BBCODE->parse($welcome_text_3['welcome_text_3']); eval ("\$site_body.= \"".pkTpl("welcome_new")."\";"); # Welcome Boxes by HTH-C.com Ende # if(empty($config['site_frontpage'])) { return; } $f = explode("\n",$config['site_frontpage']); foreach($f as $fp) { $frontpage=trim(basename($fp)); if(empty($frontpage) || $frontpage=='start') continue; if(strstr($fp,'&') || strstr($fp,'?')) { parse_str($fp); $fp=explode('&',$fp); $frontpage=$fp[0]; } if(pkFileCheck(pkDIRPUBLIC.$frontpage.pkEXT)) { include(pkDIRPUBLIC.$frontpage.pkEXT); } elseif(pkFileCheck($frontpage)) { $site_body.=implode('',file($frontpage)); } else { continue; } eval("\$site_body.=\"".pkTpl("frontpage_spacer")."\";"); } #page title - set at this point to overwrite the included elements $CMS->site_title_set(pkGetConfig('site_frontpage_title')); ?> | |  |
normalerweise werden diese boxen auf der startseite ganz oben angezeigt.
durch die dreibox.php kann man diese auf der startseite einbinden wo man möchte.
bei der start.php muss dazu aber etwas angepasst werden, sonst wird es 2 mal angezeigt.
ich habe gerade meine start.php überschrieben 
hier meine dreibox.php
| PHP-Quelltext <?php if (!defined('pkFRONTEND') || pkFRONTEND!='public') { die('Direct access to this location is not permitted.'); } if (!pkGetConfig('welcome_eod')) { #return; } pkLoadClass($BBCODE,'bbcode'); # Welcome Boxes by HTH-C.com Start # $welcome_home_height =$config['welcome_home_height']; $welcome_border_color =$config['welcome_border_color']; $welcome_title_1 =$config['welcome_title_1']; $welcome_title_2 =$config['welcome_title_2']; $welcome_title_3 =$config['welcome_title_3']; $welcome_text_1 =$BBCODE->parse($config['welcome_text_1'],1,1,1,1); $welcome_text_2 =$BBCODE->parse($config['welcome_text_2'],1,1,1,1); $welcome_text_3 =$BBCODE->parse($config['welcome_text_3'],1,1,1,1); eval ("\$site_body.= \"".pkTpl("welcome_new")."\";"); ?> | |
was muss ich bei der start.php ändern, damit es wieder funktioniert?
|
|
|
|
|
|
|
 |
|
 |
17.09.2014 - 15:45 Uhr |
|
|
|
Kannst du die beiden Dateien nochmal posten oder deinen Post editieren? Denn der ganze Code komplett in einer Zeile ist einfach blöde zu lesen
Oder anders:
Wieso machste die Änderungen in der start.php nicht rückgängig wenn du diese in eine seperate Datei gepackt hast?  Sollte doch reichen.
|
|
|
|
|
|
|
 |
|
 |
18.09.2014 - 06:47 Uhr |
|
|
|
kann es leider nicht rückgängig machen. habe es auf dem server ditiert und überschrieben.... 
da macht an einmal kein backup der datei und genau dann passiert ein fehler -.-
hier die start.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | | PHP-Quelltext <?php
# PHPKIT WCMS | Web Content Management System
#
#
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS
# FILE AND/OR TO REMOVE THIS INFORMATION
#
# SIE SIND NICHT BERECHTIGT, UNRECHTMÄSSIGE KOPIEN DIESER
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN
#
# This file / the PHPKIT software is no freeware! For further
# information please visit our website or contact us via email:
#
# Diese Datei / die PHPKIT Software ist keine Freeware! Für weitere
# Informationen besuchen Sie bitte unsere Website oder kontaktieren uns per E-Mail:
#
# email : info@phpkit.com
# website : http://www.phpkit.com
# licence : http://www.phpkit.com/licence
# copyright : Copyright (c) 2002-2009 mxbyte gbr | http://www.mxbyte.com
if(!defined('pkFRONTEND') || pkFRONTEND!='public')
die('Direct access to this location is not permitted.');
pkLoadClass($BBCODE,'bbcode');
if(pkGetConfig('welcome_eod'))
{
$welcome_text=$BBCODE->parse($config['welcome_text'],1,1,1,1);
# Welcome Boxes by HTH-C.com Start #
$welcome_text_1=$BBCODE->parse($config['welcome_text_1'],1,1,1,1);
$welcome_text_2=$BBCODE->parse($config['welcome_text_2'],1,1,1,1);
$welcome_text_3=$BBCODE->parse($config['welcome_text_3'],1,1,1,1);
# Welcome Boxes by HTH-C.com Ende #
if(!empty($config['welcome_title']))
{
$welcome_title=$BBCODE->parse($config['welcome_title'],1,1,1,1);
eval ("\$welcome_title= \"".pkTpl("welcome_title")."\";");
}
if(!empty($welcome_text) || !empty($welcome_title))
eval("\$site_body.= \"".pkTpl("welcome")."\";");
}
# Welcome Boxes by HTH-C.com Start #
$welcome_home_height = $config['welcome_home_height'];
$welcome_border_color = $config['welcome_border_color'];
$welcome_title_1 = $config['welcome_title_1'];
$welcome_title_2 = $config['welcome_title_2'];
$welcome_title_3 = $config['welcome_title_3'];
$config['welcome_text_1']=$BBCODE->parse($welcome_text_1['welcome_text_1']);
$config['welcome_text_2']=$BBCODE->parse($welcome_text_2['welcome_text_2']);
$config['welcome_text_3']=$BBCODE->parse($welcome_text_3['welcome_text_3']);
eval ("\$site_body.= \"".pkTpl("welcome_new")."\";");
# Welcome Boxes by HTH-C.com Ende #
if(empty($config['site_frontpage']))
{
return;
}
$f = explode("\n",$config['site_frontpage']);
foreach($f as $fp)
{
$frontpage=trim(basename($fp));
if(empty($frontpage) || $frontpage=='start')
continue;
if(strstr($fp,'&') || strstr($fp,'?'))
{
parse_str($fp);
$fp=explode('&',$fp);
$frontpage=$fp[0];
}
if(pkFileCheck(pkDIRPUBLIC.$frontpage.pkEXT))
{
include(pkDIRPUBLIC.$frontpage.pkEXT);
}
elseif(pkFileCheck($frontpage))
{
$site_body.=implode('',file($frontpage));
}
else
{
continue;
}
eval("\$site_body.=\"".pkTpl("frontpage_spacer")."\";");
}
#page title - set at this point to overwrite the included elements
$CMS->site_title_set(pkGetConfig('site_frontpage_title'));
?> | |  |
hier die dreibox.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | | PHP-Quelltext <?php
if (!defined('pkFRONTEND') || pkFRONTEND!='public')
{
die('Direct access to this location is not permitted.');
}
if (!pkGetConfig('welcome_eod'))
{
#return;
}
pkLoadClass($BBCODE,'bbcode');
# Welcome Boxes by HTH-C.com Start #
$welcome_home_height =$config['welcome_home_height'];
$welcome_border_color =$config['welcome_border_color'];
$welcome_title_1 =$config['welcome_title_1'];
$welcome_title_2 =$config['welcome_title_2'];
$welcome_title_3 =$config['welcome_title_3'];
$welcome_text_1 =$BBCODE->parse($config['welcome_text_1'],1,1,1,1);
$welcome_text_2 =$BBCODE->parse($config['welcome_text_2'],1,1,1,1);
$welcome_text_3 =$BBCODE->parse($config['welcome_text_3'],1,1,1,1);
eval ("\$site_body.= \"".pkTpl("welcome_new")."\";");
?> | |
1. im moment wird kein inhalt der box auf die startseite übertragen. (nur der titel wird angezeigt)
2. wenn ich "dreibox" auf der startseite ausgebe, wird es nun 2x dargestellt.
einmal ganz oben und einmal dort, wo ich es ausgebe.
vorher war ganz oben das nicht mehr da. die boxen wurden da ausgegeben, wo ich es eingetragen habe.
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von k!r!ka - 18.09.2014 - 15:35 Uhr |
|
|
|
|
|
|
|
 |
|
 |
18.09.2014 - 10:46 Uhr |
|
|
|
habe mal selbst getestet und das problem behoben.
welcome boxes in der start.php einfach nicht einbinden oder ausklammern.
dann geht es 
|
|
|
|
|
|
|
 |
|
 |
18.09.2014 - 15:36 Uhr |
|
|
|
Zitat Original geschrieben von k!r!ka
Oder anders:
Wieso machste die Änderungen in der start.php nicht rückgängig wenn du diese in eine seperate Datei gepackt hast?  |
Sag ich doch 
|
|
|
|
|
|
|
 |
|
 |
19.09.2014 - 05:52 Uhr |
|
|
|
asooooo -.- 
hatte das anders verstanden. aber nun ist ja alles so wie es sein soll 
|
|
|
|
|
|
|
 |
Ähnliche Themen |
|
|
|
|
|
|
|
|