|
|
Latest News |
Latest Threads |
|
 |
55.471 Posts & 4.945 Themen in 78 Foren |
|
|
|
 |
Forensuche |
|
Suchbegriff |
Benutzerauswahl |
Ergebnisse anzeigen |
 |
 |
Frage zu AC Boxes und News Boxes 22 Beiträge in diesem Thema |
|
|
 |
|
|
 |
|
 |
08.12.2012 - 15:11 Uhr |
|
|
|
Erstmal allen ein schönes Wochenende.
Ich habe bezüglich der 2 Boxen ein paar Fragen....
Ich möchte gerne das in den News und Artikel Boxen, auch die Aufmacher Grafiken angezeigt werden die man ja beim erstellen eines Artikels zb optional einbauen kann.
Dann würde ich gerne diese Boxen auch mit einer festen ID die ich vorher festlege, in der Navigation mit einbinden können so das ich zb von Artikel Gruppe xy 5 Artikel untereinander angezeigt bekomme.
Ich würde auch gerne anstatt zb 2 verschiedene IDS, gerne nur 1 ID dafür aber zb 3 nebeneinander und 2 untereinander anzeigen lassen können.
Generell würde ich auch gern 2 verschiedene News und auch Artikel Boxen auf der Main Seite verwenden können. Dazu habe ich zwar etwas in einer anderen Anfrage hier betreff 1.6.4er Version gefunden.....wollte diese Frage aber direkt nochmal mit einbringen.
Es sind ein paar Fragen ich weiß aber ich dachte bevor ich jetzt x mal neue Anfragen stelle mache ich alles in einer und warte ob ich sofort gerupft werde.
Ich würde mich freuen, wenn sie jemand die Zeit nimmt und mir eventuell erklärt wie ich das angreifen müsste da ich von sowas nicht soooo viel Ahnung habe.
Ich wäre auch jeden fall sehr sehr dankbar. Ich nutzte das 1.6.5 ohne ASCE.
mfg Puni
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von punix2 - 08.12.2012 - 15:13 Uhr |
|
|
|
|
|
|
|
 |
|
 |
08.12.2012 - 19:48 Uhr |
|
|
|
Mir wäre auch fürs erste geholfen wenn ich die Aufmacher Grafiken mit angezeigt bekäme .... hat da jemand eine Idee ???
MFG Puni
|
|
|
|
|
|
|
 |
|
 |
09.12.2012 - 11:51 Uhr |
|
|
|
Damit erstmal das relevante, also die Aufmacher-Grafik angezeigt wird, tue einfach folgendes:
Datei: pkinc/public/ac_boxes.phpÖffne o.g. Datei und ändere es komplett mit dem ab:
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 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | | PHP-Quelltext <?php
##########################################################
# #
# Article-Cat Boxes - Version: 1.0 #
# for PHPKIT 1.6.5 #
# #
##########################################################
# #
# Copyright (c) 2003-2011 by WEBI #
# #
# Website: http://www.hth-c.com #
# Support: http://www.hth-c.com/forum.php #
# #
##########################################################
if(!defined('pkFRONTEND') || pkFRONTEND!='public')
die('Direct access to this location is not permitted.');
pkLoadClass($BBCODE,'bbcode');
##########################################################
# #
# Konfiguration einlesen #
# #
##########################################################
include("ac_boxes.inc.php");
##########################################################
# #
# Article-Cat Box - 01 #
# #
##########################################################
$getacboxa = $SQL->query("SELECT
".pkSQLTAB_CONTENT.".content_id,
".pkSQLTAB_CONTENT.".content_title,
".pkSQLTAB_CONTENT.".content_text,
".pkSQLTAB_CONTENT.".content_teaser,
".pkSQLTAB_CONTENT.".content_time FROM
".pkSQLTAB_CONTENT." LEFT JOIN
".pkSQLTAB_CONTENT_CATEGORY." ON
".pkSQLTAB_CONTENT_CATEGORY.".contentcat_id=".pkSQLTAB_CONTENT.".content_cat WHERE
".pkSQLTAB_CONTENT.".content_option='1' AND
".pkSQLTAB_CONTENT.".content_status='1' AND
".pkSQLTAB_CONTENT_CATEGORY.".contentcat_id='".$acatboxa."' AND (
".pkSQLTAB_CONTENT.".content_expire>'".pkTIME."' OR
".pkSQLTAB_CONTENT.".content_expire=0) AND
".pkSQLTAB_CONTENT.".content_time<'".pkTIME."' AND
".sqlrights("".pkSQLTAB_CONTENT_CATEGORY.".contentcat_rights")." ORDER by
".pkSQLTAB_CONTENT.".content_time DESC LIMIT $acblimit");
while($acboxa = $SQL->fetch_array($getacboxa)) {
if($acboxa != '') {
$acba_time = pkTimeFormat($acboxa['content_time']).' Uhr';
$acba_id = intval($acboxa['content_id']);
$acba_text = substr(strip_tags($BBCODE->parse($acboxa['content_text'],1,1,1)),0,$acbcutte);
$acba_title = pkStringCut($acboxa['content_title'],$acbcutti);
$cTeaserA =trim($acboxa['content_teaser']);
if (trim($cTeaserA)!='' && is_file($cTeaserA))
{
$teaser_dimension =@getimagesize($cTeaserA);
$contentinfo['content_title'] =$acba_title;
$contentinfo['content_teaser']=$cTeaserA;
eval("\$cTeaserA= \"".pkTpl('content/content_teaser')."\";");
}
}
else {
unset($acba_title);
unset($acba_time);
unset($acba_id);
unset($acba_text);
unset($cTeaserA);
unset($contentinfo);
unset($teaser_dimension);
}
$acba_row.='<tr><td width="100%"><table class="standard" border="0" cellspacing="1" cellpadding="2" width="100%"><tr><td class="heads" width="100%" colspan="2">'.$acba_title.'</td></tr><tr><td class="standard" width="100%" colspan="2">'.$cTeaserA.$acba_text.'...<br /><br /></td></tr><tr><td class="standard" width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td class="standard" width="60%"><small>'.$acba_time.'</small></td><td class="standard" width="40%" align="right"><a href="include.php?path=article&contentid='.$acba_id.'" target="_self"><small>weiterlesen</small></a></td></tr></table></td></tr></table></td></tr><tr><td><img src="images/blank.gif" border="0" alt="" width="1" height="3" /></td></tr>';
}
##########################################################
# #
# Article-Cat Box - 02 #
# #
##########################################################
$getacboxb = $SQL->query("SELECT
".pkSQLTAB_CONTENT.".content_id,
".pkSQLTAB_CONTENT.".content_title,
".pkSQLTAB_CONTENT.".content_text,
".pkSQLTAB_CONTENT.".content_teaser,
".pkSQLTAB_CONTENT.".content_time FROM
".pkSQLTAB_CONTENT." LEFT JOIN
".pkSQLTAB_CONTENT_CATEGORY." ON
".pkSQLTAB_CONTENT_CATEGORY.".contentcat_id=".pkSQLTAB_CONTENT.".content_cat WHERE
".pkSQLTAB_CONTENT.".content_option='1' AND
".pkSQLTAB_CONTENT.".content_status='1' AND
".pkSQLTAB_CONTENT_CATEGORY.".contentcat_id='".$acatboxb."' AND (
".pkSQLTAB_CONTENT.".content_expire>'".pkTIME."' OR
".pkSQLTAB_CONTENT.".content_expire=0) AND
".pkSQLTAB_CONTENT.".content_time<'".pkTIME."' AND
".sqlrights("".pkSQLTAB_CONTENT_CATEGORY.".contentcat_rights")." ORDER by
".pkSQLTAB_CONTENT.".content_time DESC LIMIT $acblimit");
while($acboxb = $SQL->fetch_array($getacboxb)) {
if($acboxb != '') {
$acbb_time = pkTimeFormat($acboxb['content_time']).' Uhr ';
$acbb_id = intval($acboxb['content_id']);
$acbb_text = substr(strip_tags($BBCODE->parse($acboxb['content_text'],1,1,1)),0,$acbcutte);
$acbb_title = pkStringCut($acboxb['content_title'],$acbcutti);
$cTeaserB =trim($acboxb['content_teaser']);
if (trim($cTeaserB)!='' && is_file($cTeaserB))
{
$teaser_dimension =@getimagesize($cTeaserB);
$contentinfo['content_title'] =$acbb_title;
$contentinfo['content_teaser']=$cTeaserB;
eval("\$cTeaserB= \"".pkTpl('content/content_teaser')."\";");
}
}
else {
unset($acbb_title);
unset($ncbb_time);
unset($acbb_id);
unset($acbb_text);
unset($cTeaserB);
unset($contentinfo);
unset($teaser_dimension);
}
$acbb_row.='<tr><td width="100%"><table class="standard" border="0" cellspacing="1" cellpadding="2" width="100%"><tr><td class="heads" width="100%" colspan="2">'.$acbb_title.'</td></tr><tr><td class="standard" width="100%" colspan="2">'.$cTeaserB.$acbb_text.'...<br /><br /></td></tr><tr><td class="standard" width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td class="standard" width="60%"><small>'.$acbb_time.'</small></td><td class="standard" width="40%" align="right"><a href="include.php?path=article&contentid='.$acbb_id.'" target="_self"><small>weiterlesen</small></a></td></tr></table></td></tr></table></td></tr><tr><td><img src="images/blank.gif" border="0" alt="" width="1" height="3" /></td></tr>';
}
##########################################################
# #
# Template Aufruf #
# #
##########################################################
#################################################################################################
##### !!! DAS COPYRIGHT DARF OHNE ERWORBENDE LIZENZ VON HTH-C.com NICHT ENTFERNT WERDEN !!! #####
#################################################################################################
$acbc .= '<table border="0" cellspacing="0" cellpadding="0" style="width: 100%;"><tr><td align="right" style="width: 100%;"><small>ACB Modul by</small> <a style="text-decoration: none;" href="http://www.hth-c.com/" target="_blank"><small>HTH-C.com</small></a></td></tr></table>';
#################################################################################################
##### !!! DAS COPYRIGHT DARF OHNE ERWORBENDE LIZENZ VON HTH-C.com NICHT ENTFERNT WERDEN !!! #####
#################################################################################################
eval ("\$site_body.= \"".pkTpl("content/ac_boxes.tmpl.main")."\";");
?> | |  |
Datei: pkinc/public/nc_boxes.phpÖffne o.g. Datei und ändere es komplett mit dem ab:
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 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | | PHP-Quelltext <?php
##########################################################
# #
# News-Cat Boxes - Version: 1.0 #
# for PHPKIT 1.6.5 #
# #
##########################################################
# #
# Copyright (c) 2003-2011 by WEBI #
# #
# Website: http://www.hth-c.com #
# Support: http://www.hth-c.com/forum.php #
# #
##########################################################
if(!defined('pkFRONTEND') || pkFRONTEND!='public')
die('Direct access to this location is not permitted.');
pkLoadClass($BBCODE,'bbcode');
##########################################################
# #
# Konfiguration einlesen #
# #
##########################################################
include("nc_boxes.inc.php");
##########################################################
# #
# News-Cat Box - 01 #
# #
##########################################################
$getcboxa = $SQL->query("SELECT
".pkSQLTAB_CONTENT.".content_id,
".pkSQLTAB_CONTENT.".content_title,
".pkSQLTAB_CONTENT.".content_text,
".pkSQLTAB_CONTENT.".content_teaser,
".pkSQLTAB_CONTENT.".content_time FROM
".pkSQLTAB_CONTENT." LEFT JOIN
".pkSQLTAB_CONTENT_CATEGORY." ON
".pkSQLTAB_CONTENT_CATEGORY.".contentcat_id=".pkSQLTAB_CONTENT.".content_cat WHERE
".pkSQLTAB_CONTENT.".content_option='2' AND
".pkSQLTAB_CONTENT.".content_status='1' AND
".pkSQLTAB_CONTENT_CATEGORY.".contentcat_id='".$ncatboxa."' AND (
".pkSQLTAB_CONTENT.".content_expire>'".pkTIME."' OR
".pkSQLTAB_CONTENT.".content_expire=0) AND
".pkSQLTAB_CONTENT.".content_time<'".pkTIME."' AND
".sqlrights("".pkSQLTAB_CONTENT_CATEGORY.".contentcat_rights")." ORDER by
".pkSQLTAB_CONTENT.".content_time DESC LIMIT $ncblimit");
while($cboxa = $SQL->fetch_array($getcboxa)) {
if($cboxa != '') {
$ncba_time = pkTimeFormat($cboxa['content_time']).' Uhr';
$ncba_id = intval($cboxa['content_id']);
$ncba_text = substr(strip_tags($BBCODE->parse($cboxa['content_text'],1,1,1)),0,$ncbcutte);
$ncba_title = pkStringCut($cboxa['content_title'],$ncbcutti);
$cTeaserA =trim($cboxa['content_teaser']);
if (trim($cTeaserA)!='' && is_file($cTeaserA))
{
$teaser_dimension =@getimagesize($cTeaserA);
$contentinfo['content_title'] =$ncba_title;
$contentinfo['content_teaser']=$cTeaserA;
eval("\$cTeaserA= \"".pkTpl('content/content_teaser')."\";");
}
}
else {
unset($ncba_title);
unset($ncba_time);
unset($ncba_id);
unset($ncba_text);
unset($cTeaserA);
unset($contentinfo);
unset($teaser_dimension);
}
$ncba_row.='<tr><td width="100%"><table class="standard" border="0" cellspacing="1" cellpadding="2" width="100%"><tr><td class="heads" width="100%" colspan="2">'.$ncba_title.'</td></tr><tr><td class="standard" width="100%" colspan="2">'.$cTeaserA.$ncba_text.'...<br /><br /></td></tr><tr><td class="standard" width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td class="standard" width="60%"><small>'.$ncba_time.'</small></td><td class="standard" width="40%" align="right"><a href="include.php?path=news&contentid='.$ncba_id.'" target="_self"><small>weiterlesen</small></a></td></tr></table></td></tr></table></td></tr><tr><td><img src="images/blank.gif" border="0" alt="" width="1" height="3" /></td></tr>';
}
##########################################################
# #
# News-Cat Box - 02 #
# #
##########################################################
$getcboxb = $SQL->query("SELECT
".pkSQLTAB_CONTENT.".content_id,
".pkSQLTAB_CONTENT.".content_title,
".pkSQLTAB_CONTENT.".content_text,
".pkSQLTAB_CONTENT.".content_teaser,
".pkSQLTAB_CONTENT.".content_time FROM
".pkSQLTAB_CONTENT." LEFT JOIN
".pkSQLTAB_CONTENT_CATEGORY." ON
".pkSQLTAB_CONTENT_CATEGORY.".contentcat_id=".pkSQLTAB_CONTENT.".content_cat WHERE
".pkSQLTAB_CONTENT.".content_option='2' AND
".pkSQLTAB_CONTENT.".content_status='1' AND
".pkSQLTAB_CONTENT_CATEGORY.".contentcat_id='".$ncatboxb."' AND (
".pkSQLTAB_CONTENT.".content_expire>'".pkTIME."' OR
".pkSQLTAB_CONTENT.".content_expire=0) AND
".pkSQLTAB_CONTENT.".content_time<'".pkTIME."' AND
".sqlrights("".pkSQLTAB_CONTENT_CATEGORY.".contentcat_rights")." ORDER by
".pkSQLTAB_CONTENT.".content_time DESC LIMIT $ncblimit");
while($cboxb = $SQL->fetch_array($getcboxb)) {
if($cboxb != '') {
$ncbb_time = pkTimeFormat($cboxb['content_time']).' Uhr ';
$ncbb_id = intval($cboxb['content_id']);
$ncbb_text = substr(strip_tags($BBCODE->parse($cboxb['content_text'],1,1,1)),0,$ncbcutte);
$ncbb_title = pkStringCut($cboxb['content_title'],$ncbcutti);
$cTeaserB =trim($cboxb['content_teaser']);
if (trim($cTeaserB)!='' && is_file($cTeaserB))
{
$teaser_dimension =@getimagesize($cTeaserB);
$contentinfo['content_title'] =$ncbb_title;
$contentinfo['content_teaser']=$cTeaserB;
eval("\$cTeaserB= \"".pkTpl('content/content_teaser')."\";");
}
}
else {
unset($ncbb_title);
unset($ncbb_time);
unset($ncbb_id);
unset($ncbb_text);
unset($cTeaserB);
unset($contentinfo);
unset($teaser_dimension);
}
$ncbb_row.='<tr><td width="100%"><table class="standard" border="0" cellspacing="1" cellpadding="2" width="100%"><tr><td class="heads" width="100%" colspan="2">'.$ncbb_title.'</td></tr><tr><td class="standard" width="100%" colspan="2">'.$cTeaserB.$ncbb_text.'...<br /><br /></td></tr><tr><td class="standard" width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td class="standard" width="60%"><small>'.$ncbb_time.'</small></td><td class="standard" width="40%" align="right"><a href="include.php?path=news&contentid='.$ncbb_id.'" target="_self"><small>weiterlesen</small></a></td></tr></table></td></tr></table></td></tr><tr><td><img src="images/blank.gif" border="0" alt="" width="1" height="3" /></td></tr>';
}
##########################################################
# #
# Template Aufruf #
# #
##########################################################
#################################################################################################
##### !!! DAS COPYRIGHT DARF OHNE ERWORBENDE LIZENZ VON HTH-C.com NICHT ENTFERNT WERDEN !!! #####
#################################################################################################
$ncbc .= '<table border="0" cellspacing="0" cellpadding="0" style="width: 100%;"><tr><td align="right" style="width: 100%;"><small>NCB Modul by</small> <a style="text-decoration: none;" href="http://www.hth-c.com/" target="_blank"><small>HTH-C.com</small></a></td></tr></table>';
#################################################################################################
##### !!! DAS COPYRIGHT DARF OHNE ERWORBENDE LIZENZ VON HTH-C.com NICHT ENTFERNT WERDEN !!! #####
#################################################################################################
eval ("\$site_body.= \"".pkTpl("content/nc_boxes.tmpl.main")."\";");
?> | |  |
Ich ging jetzt davon aus, das keine Änderungen durchgeführt wurden. Also die Dateien Anhand des Downloads.
Und ja, bin gerade zu Faul alle Einzelheiten aufzuschreiben ^^""
Was den rest angeht:
Da müsste / könnte ich mal gucken. Wie schnell das gehen könnte, kann ich so grob erstmal nicht sagen. Kommt drauf an, ob ich was neues schreibe, oder diese Artikel- und News-Boxen verwende und ummodeliere .. Geht schon schief 
|
|
|
|
|
|
|
 |
|
 |
09.12.2012 - 13:18 Uhr |
|
|
|
Super klappt sehr gut....
Vielen dank.
Du hast mir ja mal gezeigt , wie ich anzeigen lassen kann wie viele in der Artikel Box den Text gelesen hat.....
der gleiche Schritt funktioniert bei den News Boxen nicht.....hatte das zwar soweit drin, es wurden aber immer nur 0x Views angezeigt.
Wenn du da Zeit für hast irgendwann dir das mal anzusehen, wäre das ne gute Sache....aber keine hektik.
Ich bin jetzt schon sehr begeistert, vielen vielen Dank.
mfg Puni
|
|
|
|
|
|
|
 |
|
 |
09.12.2012 - 16:52 Uhr |
|
|
|
Du meinst diesen Thread, oder?;o
Es ist im Grunde fast(!) das selbe. In der News-Box heisen die Variablen etwas anders, wodurch die gesuchten Stellen so nicht gefunden werden können. Und selbst wenn, die Änderungen würden gar nicht wirken. Hast ja gesagt, es erscheint nur 0x Views ;o
Damit es auch bei den News funktioniert, gehe wie folgt vor:
pkinc/public/nc_boxes.phpÖffne o.g. Datei und suche dies 2x:
| PHP-Quelltext ".pkSQLTAB_CONTENT.".content_time FROM | |
Und ersetze beide Stellen so um:
| PHP-Quelltext ".pkSQLTAB_CONTENT.".content_time,
".pkSQLTAB_CONTENT.".content_views FROM | |
---
Die jetzigen Stellen sind nur 1x zu finden.
Suche also weiter nach dem:
| PHP-Quelltext $ncba_title = pkStringCut($cboxa['content_title'],$ncbcutti); | |
Und füge darunter das ein:
| PHP-Quelltext $ncba_view = intval($cboxa['content_views']); | |
---
Suche weiter:
| PHP-Quelltext unset($ncba_text); | |
Und füge darunter das ein:
| PHP-Quelltext unset($ncba_view); | |
---
Suche weiter (die Änderungen von obigen Post sind drin):
| PHP-Quelltext $ncba_row.='<tr><td width="100%"><table class="standard" border="0" cellspacing="1" cellpadding="2" width="100%"><tr><td class="heads" width="100%" colspan="2">'.$ncba_title.'</td></tr><tr><td class="standard" width="100%" colspan="2">'.$cTeaserA.$ncba_text.'...<br /><br /></td></tr><tr><td class="standard" width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td class="standard" width="60%"><small>'.$ncba_time.'</small></td><td class="standard" width="40%" align="right"><a href="include.php?path=news&contentid='.$ncba_id.'" target="_self"><small>weiterlesen</small></a></td></tr></table></td></tr></table></td></tr><tr><td><img src="images/blank.gif" border="0" alt="" width="1" height="3" /></td></tr>'; | |
Und ändere es in das um:
| PHP-Quelltext #$ncba_row.='<tr><td width="100%"><table class="standard" border="0" cellspacing="1" cellpadding="2" width="100%"><tr><td class="heads" width="100%" colspan="2">'.$ncba_title.'</td></tr><tr><td class="standard" width="100%" colspan="2">'.$cTeaserA.$ncba_text.'...<br /><br /></td></tr><tr><td class="standard" width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td class="standard" width="60%"><small>'.$ncba_time.'</small></td><td class="standard" width="40%" align="right"><a href="include.php?path=news&contentid='.$ncba_id.'" target="_self"><small>weiterlesen</small></a></td></tr></table></td></tr></table></td></tr><tr><td><img src="images/blank.gif" border="0" alt="" width="1" height="3" /></td></tr>';
$ncba_row.='<tr><td width="100%"><table class="standard" border="0" cellspacing="1" cellpadding="2" width="100%"><tr><td class="heads" width="100%" colspan="2">'.$ncba_title.'</td></tr><tr><td class="standard" width="100%" colspan="2">'.$cTeaserA.$ncba_text.'...<br /><br /></td></tr><tr><td class="standard" width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td class="standard" width="60%"><small>'.$ncba_time.' - '.$ncba_view.' aufgerufen</small></td><td class="standard" width="40%" align="right"><a href="include.php?path=news&contentid='.$ncba_id.'" target="_self"><small>weiterlesen</small></a></td></tr></table></td></tr></table></td></tr><tr><td><img src="images/blank.gif" border="0" alt="" width="1" height="3" /></td></tr>'; | |  |
#
Jetzt das ganze nochmal für die rechte Box.
Suche also weiter nach dem:
| PHP-Quelltext $ncbb_title = pkStringCut($cboxb['content_title'],$ncbcutti); | |
Und füge darunter das ein:
| PHP-Quelltext $ncbb_view = intval($cboxb['content_views']); | |
---
Suche weiter:
| PHP-Quelltext unset($ncbb_text); | |
Und füge darunter das ein:
| PHP-Quelltext unset($ncbb_view); | |
---
Suche weiter (die Änderungen von obigen Post sind drin):
| PHP-Quelltext $ncbb_row.='<tr><td width="100%"><table class="standard" border="0" cellspacing="1" cellpadding="2" width="100%"><tr><td class="heads" width="100%" colspan="2">'.$ncbb_title.'</td></tr><tr><td class="standard" width="100%" colspan="2">'.$cTeaserB.$ncbb_text.'...<br /><br /></td></tr><tr><td class="standard" width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td class="standard" width="60%"><small>'.$ncbb_time.'</small></td><td class="standard" width="40%" align="right"><a href="include.php?path=news&contentid='.$ncbb_id.'" target="_self"><small>weiterlesen</small></a></td></tr></table></td></tr></table></td></tr><tr><td><img src="images/blank.gif" border="0" alt="" width="1" height="3" /></td></tr>'; | |
Und ändere es in das um:
| PHP-Quelltext #$ncbb_row.='<tr><td width="100%"><table class="standard" border="0" cellspacing="1" cellpadding="2" width="100%"><tr><td class="heads" width="100%" colspan="2">'.$ncbb_title.'</td></tr><tr><td class="standard" width="100%" colspan="2">'.$cTeaserB.$ncbb_text.'...<br /><br /></td></tr><tr><td class="standard" width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td class="standard" width="60%"><small>'.$ncbb_time.'</small></td><td class="standard" width="40%" align="right"><a href="include.php?path=news&contentid='.$ncbb_id.'" target="_self"><small>weiterlesen</small></a></td></tr></table></td></tr></table></td></tr><tr><td><img src="images/blank.gif" border="0" alt="" width="1" height="3" /></td></tr>';
$ncbb_row.='<tr><td width="100%"><table class="standard" border="0" cellspacing="1" cellpadding="2" width="100%"><tr><td class="heads" width="100%" colspan="2">'.$ncbb_title.'</td></tr><tr><td class="standard" width="100%" colspan="2">'.$cTeaserB.$ncbb_text.'...<br /><br /></td></tr><tr><td class="standard" width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td class="standard" width="60%"><small>'.$ncbb_time.' - '.$ncbb_view.' aufgerufen</small></td><td class="standard" width="40%" align="right"><a href="include.php?path=news&contentid='.$ncbb_id.'" target="_self"><small>weiterlesen</small></a></td></tr></table></td></tr></table></td></tr><tr><td><img src="images/blank.gif" border="0" alt="" width="1" height="3" /></td></tr>'; | |  |
Hab es jetzt nicht bei mir getestet, aber sollte funktionieren ;o
Wenn nicht, einfach meckern ;>
|
|
|
|
|
|
|
 |
|
 |
09.12.2012 - 18:25 Uhr |
|
|
|
so , eingebaut ist es, nur der Counter bleibt immer auf 0 ?
mfg und danke für die Mühe, Puni
|
|
|
|
|
|
|
 |
|
 |
09.12.2012 - 18:41 Uhr |
|
|
|
Öffne die Datei pkinc/public/news.php und führe das aus:
Hier klicken zum aufklappenSuche das:
| PHP-Quelltext if($contentid)
{
#single news
#set site title
$CMS->site_title_set($contentinfo['content_title']);
} | |
Und ändere es in dies um:
| PHP-Quelltext if($contentid)
{
#single news
#set site title
$CMS->site_title_set($contentinfo['content_title']);
# update views+1
$SQL->query("UPDATE ".pkSQLTAB_CONTENT." SET content_views=content_views+1 WHERE content_id='".intval($contentinfo['content_id'])."'");
} | |
Hat ich vergessen, das dies nicht im Standard ist. Der rest funktioniert aber, oder?
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von k!r!ka - 20.12.2012 - 17:23 Uhr |
|
|
|
|
|
|
|
 |
|
 |
11.12.2012 - 17:41 Uhr |
|
|
|
Erstmal einen riesen dank, das du dich mir annimmst..... bisher klappt alles super.
Wäre es möglich auch 2 x die AC Boxen laufen zu lassen ?
Ich habe einen änlichen Post gelesen aber da wurde schon beschrieben das man da nicht einfach nur AC1 und AC2 auf die Startseite packen kann.
Dann habe ich ein viel größeres Anliegen.
Man kann ja festlegen wie viele Artikel oder News angezeigt werden und wie der bzw wann der Textumbruch stattfinden soll.
Wäre es möglich, das pro Seite / ID differenziert einzustellen.
So das ich links zb nur 1 Artikel habe mit sagen wir mal 400 Zeichen.... und rechts 3 Artikel mit zb 30 Zeichen.
Also so, wie in meinem Bild......wenn das machbar wäre, wäre das der Knaller denn das würde für einen Community Look sorgen der klasse ist.
mfg Michael
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von punix2 - 11.12.2012 - 17:42 Uhr |
|
|
|
|
|
|
|
 |
|
 |
17.12.2012 - 19:46 Uhr |
|
|
|
Ich würde gerne eine 2te Box mit je 2 Spalten mit Artikeln benutzen.
Kann mir da einer helfen ???
Als News wollte ich das erstmal nicht machen weil wir Hauptnews als richtige News posten und dann wird sie dann ja auch in den Boxen doppelt angezeigt.
Daher wollten wir eine 2te Artikel Box mal probieren.
mfg Michael
|
|
|
|
|
|
|
 |
|
 |
19.12.2012 - 18:44 Uhr |
|
|
|
So, es hat zwar etwas gedauert, aber hier haste nun das, was du erfragt hast. Einmal als .zip-Archive im Anhang und einmal hier im Forum als Tutorial. Das mit der Navigation kommt noch nach, sofern noch gebraucht wird. Aber erstmal das hier, einfach um zu sehen, ob sich das für dich überhaupt lohnt ;o Wenn was nicht verstanden wurde oder nicht klar genug ist, oder irgendwo ein Fehler sein, dann einfach drauf los und meckern ;o
Funktion und Einstellmöglichkeiten
Allgemeines:
- einstellbare Auflistung von Inhalten-Varianten.
Unter Inhalten-Varianten sind allgemeine Inhaltsseiten, Artikel, News, Verweise bzw. Links und Downloads zu verstehen.
- Höhenangabe für die Inhaltsboxen
*Standard: 100 Pixel, eingestellt: 150 Pixel
- Anzahl von maximalen Inhaltsboxen
*Standard: 5, eingestellt: 100
- Zwischenabstand zwischen den Inhaltsboxen in vertikaler, wie auch horizontaler Lage
*Standard: 10 Pixel, eingestellt: 10 Pixel
- Darstellungsoption für die Inhaltsboxen mit zugewiesener Breite in Prozenten
*Standard: 50%, eingestellt: div. Breiten
Inhalt-Tabs:
- Anzeige von Inhalt-Tabs oberhalb der eigentlichen Inhaltsboxen
*Standard: 1, eingestellt: 1
- vorgenannte Inhalt-Tabs können als Name oder Zahl angezeigt werden
*Standard: 1, eingestellt: 1
Sonstiges:
- Sortieroption, die abhängig vom Inhalt-Varianten agiert
*Standard: 1, eingestellt: 1
- Textkürzung für Titel
*Standard: 25, eingestellt: 20
- Textkürzung für Inhaltstext
*Standard: 200, eingestellt: 0
- HTML-Tags entfernen lassen
*Standard: 0, eingestellt: 0
Filter und Optionen:
- Mit folgenden Parameter in der URL kann man nach Inhalts-Varianten filtern:
&id=Inhalts-Variante
Inhalts-Variante
- content oder die Zahl 0
= allgemeine Inhaltsseiten
- article oder die Zahl 1
= Artikel
- news oder die Zahl 2
= News
- link oder die Zahl 3
= Verweise bzw. Links
- download oder die Zahl 4
= Downloads
Die Namen (content, article etc.) findet man auch nochmal in der Konfigurations-Datei bei Zeile 61 bis 89 wieder. Diese Namen sind die selben Namen, die man für die Templates im Bereich Extras weiter unten benötigt, sofern man dies benutzen möchte. Dort werd ich es aber nochmal auflisten und ggf. erklären ;o
- Mit folgenden Parameter in der URL kann man nach Kategorien filtern:
&c=Kategorie-ID
Die Kategorie-ID findet man unter anderem bei den Übersichtsseiten der einzelnen Inhalts-Varianten. Dort steht im Link i.d.R. folgendes mit bei: &catid=Zahl
Und diese Zahl ist dann eure benötigte Kategorie-ID
- Mit folgenden Parameter in der URL kann man nach Themenbereichen filtern:
&t=Themebereich-ID
Die Themebereich-ID findet man im Grunde wie bei der Kategorie-ID raus. Einfach eine der Übersichtsseiten aufrufen und einen Link angucken. Dort steht dann sowas: &themeid=Zahl
Und diese Zahl ist dann eure benötigte Themebereich-ID
- Mit folgenden Parameter in der URL kann man die Inhalts-Tabs ausschalten (z.B. für die Startseite ganz Interessant, oder wenn man die Konfigurationsdatei grad nicht bearbeiten möchte):
&head=1
Extras:
- Weiter unten ist unter den Punkt Extras nochmal aufgeführt, wie man die Startseite so modifiziert, das man nur bestimmte Inhalt-Varianten, einzelne Kategorien oder Themengebiete anzeigen lassen kann.
Die Änderung beinträchtigt nicht vorhandene Dateien. Es bessert aber auch nicht derren Möglichkeiten, da diese von Hause aus nicht (gut genug) ausgearbeitet sind !
- Jede Inhaltsbox und jede Aufmacher- bzw. Kategorie-Grafik kann ein seperates Template benutzen. Beispielweise sollen Artikel sich optisch anderweitig ausdrücken.
- Inhalt-Tabs können auf der Startseite unterbunden werden. (siehe Bilder-Bereich)
*Standard ist eine Einstellung, die genommen wird, sollte jene Einstellung in der Einstellungs-Datei nicht (mehr) vorhanden sein. Dies ist vorhanden, damit auch im Falle einer fehlenden Einstellung ein sog. default-Wert vorhanden ist und das System trotzdem weiter laufen kann.
Erstellen von Dateien?- Man nehme eine vorhandene Datei aus dem phpKit, kopiere diese und füge diese woanders wieder ein. Beachte hierbei die Endung der Datei, die zu erstellen ist.
- Die kopierte Datei benennen wir nun so um, wie sie weiter unten beschrieben ist.
- Nun noch die Datei in den richtigen Ordner schieben.
- Jetzt mit einen geeigneten Programm öffnen. Wenn kein Programm vorhanden ist, dann einen einfachen Texteditor benutzen. Unter Windows gibt es den sogenannten Editor.
Wohin mit den erstellten Dateien?
Die Dateien, die weiter unten mit den Code stehen, sind in 3 Bereiche untergliedert.
- PHP-Dateien (.php)
- CSS-Dateien (.css)
- Template-Dateien (.htm)
Für phpKit 1.6.03 und 1.6.1 gilt:
- PHP-Dateien (.php)
Dateien, samt genannten Unterordner, in den Ordner content/
- CSS-Dateien (.css)
Dateien, samt genannten Unterordner, in den Ordner content/
- Template-Dateien (.htm)
Dateien, samt genannten Unterordner, in den Ordner templates/
Für phpKit 1.6.4 bis 1.6.6 gilt:
- PHP-Dateien (.php)
Dateien, samt genannten Unterordner, in den Ordner pkinc/public/
- CSS-Dateien (.css)
Dateien, samt genannten Unterordner, in den Ordner pkinc/public/
- Template-Dateien (.htm)
Dateien, samt genannten Unterordner, in den Ordner pkinc/publictpl/
ExtrasStartseite modifizieren, damit auf dieser nur bestimmte Inhaltsboxen angezeigt werden können.- 1.6.03:
Öffne die Datei start.php und suche das:
| PHP-Quelltext else $frontpage=$fp; | |
- 1.6.1:
Öffne die Datei inc/public/start.php und suche das:
| PHP-Quelltext else
$frontpage=$fp; | |
- 1.6.4 bis 1.6.6:
Öffne die Datei pkinc/public/start.php und suche das:
| PHP-Quelltext $frontpage=$fp[0]; | |
- Füge darunter dies ein:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | | PHP-Quelltext # boxContent :: fix, to use GET-Parameters
if (isset($fp) && is_array($fp) && count($fp) > 0)
{
foreach ($fp as $fpValue)
{
$tagFP =explode('=', $fpValue);
$tagGet =isset($tagFP[0]) ? trim($tagFP[0]) : NULL;
$tagValue =isset($tagFP[1]) ? $tagFP[1] : NULL;
if ($tagGet===NULL || $tagValue===NULL)
{
continue;
}
$_GET[$tagGet] =$tagValue;
}
}
# boxContent :: fix, to use GET-Parameters | |
Seperate Templates für Inhaltsboxen und Aufmacher- bzw. Kategorie-Bild- Im jeweiligen *Template-Ordner*/ befindet sich der Ordner boxContent/. In diesen existieren folgende zwei Dateien:
- box-content.default.htm
- box-image.default.htm
Dies sind die Standard-Templates, die für alle Inhaltsboxen gelten. Wenn wir allerdings jetzt z.B. die Artikel anders gestalten wollen, müssen wir einfach die 1. Datei kopieren und umbenennen. Der Name für die kopierte Datei lautet:
box-content.article.htm
Hier eine Auflistung aller Inhalts-Varianten:
- content
= allgemeine Inhaltsseiten
- article
= Artikel
- news
= News
- link
= Verweise bzw. Links
- download
= Downloads
Das 2. Template ist, wie ein bisschen aus den Namen erkennbar ist, für die Bilder. Also die Aufmacher- bzw. Kategorie-Bild. Wenn dieses auch nochmal seperat laufen sollen, dann einfach wie oben beschrieben vorgehen, und das default in article ändern.
 Code für die Dateien
*PHP-Ordner*/
- content/
phpKit 1.6.03 und 1.6.1
- pkinc/public/
phpKit 1.6.4 bis 1.6.6
*CSS-Ordner*/
- content/
phpKit 1.6.03 und 1.6.1
- pkinc/public/
phpKit 1.6.4 bis 1.6.6
*Template-Ordner*/
- templates/
phpKit 1.6.03 und 1.6.1
- pkinc/publictpl/
phpKit 1.6.4 bis 1.6.6
PHP-Dateien (.php)
- Achtung:
Dieser eine Klappbereich ist nur für die phpKit-Version 1.6.4 bis 1.6.6 nötig !
Öffne die Datei pkinc/class/style.php und suche das:
Füge darunter dies ein:
Hier klicken zum aufklappen | PHP-Quelltext # boxContent :: style-File
if (is_file(pkDIRPUBLIC.'boxContent.php'))
{
$pkStyleSetting =TRUE;
$pkVersion =pkPHPKIT_VERSION;
require_once (pkDIRPUBLIC.'boxContent.php');
}
# boxContent :: style-File | |

- Datei: *PHP-Ordner*/boxContent.php
Erstelle o.g. Datei und füge folgenden Code ein:
Hier klicken zum aufklappen   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 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 | | PHP-Quelltext <?php
$pkVersion
=
isset($pkVersion)
? $pkVersion
: (
isset($config['version_number'])
? trim ($config['version_number'])
: FALSE
)
;
if (!isset($pkVersion) || empty($pkVersion) || $pkVersion===FALSE)
{
echo 'Fehler:: Es wurde keine phpKit-Version gefunden oder definiert.';
return;
}
#
#
#
switch ($pkVersion)
{
case '1.6.03':
case '1.6.1':
eval("\$style_addcss.=\"".utf8_decode(str_replace("\"","\\\"",@file_get_contents('content/boxContent/style.css')))."\";");
$style['style_addcss'] .="\n\n".$style_addcss;
$pkDatabase ='DB';
$pkTable_Content =$db_tab['content'];
$pkTable_ContentCat =$db_tab['contentcat'];
$pkTime =time();
$pkStringCut ='cutstring';
$pkTimeFormat ='formattime';
$pkTpl ='getTemplate';
$pkLinkHeadOverview ='content/boxContent.php';
$pkLinkBox ='content/[boxOptionName].php';
$pkFunctionFile ='content/boxContent/inc.func.php';
$pkConfigFile ='content/boxContent/inc.config.php';
$pkLinkArticle ='articles';
$BBCODE =new parse();
break;
case '1.6.4':
case '1.6.5':
case '1.6.6':
if ($pkStyleSetting===TRUE)
{
$this->css.="\n\n";
eval("\$this->css.=\"".utf8_decode(str_replace("\"","\\\"",@file_get_contents(pkDIRPUBLIC.'boxContent/style.css')))."\";");
return;
}
if (!defined('pkFRONTEND') || pkFRONTEND!='public')
{
die('Direct access to this location is not permitted.');
}
$pkDatabase ='SQL';
$pkTable_Content =pkSQLTAB_CONTENT;
$pkTable_ContentCat =pkSQLTAB_CONTENT_CATEGORY;
$pkTime =pkTIME;
$pkStringCut ='pkStringCut';
$pkTimeFormat ='pkTimeFormat';
$pkTpl ='pkTpl';
$pkLinkHeadOverview ='boxContent';
$pkLinkBox ='[boxOptionName]';
$pkFunctionFile =pkDIRPUBLIC.'boxContent/inc.func.php';
$pkConfigFile =pkDIRPUBLIC.'boxContent/inc.config.php';
$pkLinkArticle ='article';
pkLoadClass($BBCODE, 'bbcode');
break;
default:
echo 'Fehler:: Die benutzte phpKit-Version wird nicht unterstützt.';
return;
}
$SQL=$$pkDatabase;
#
#
#
if (!isset($pkConfigFile) || empty($pkConfigFile) || !is_file($pkConfigFile))
{
echo 'Fehler:: Die Konfigurations-Datei konnte nicht gefunden werden.';
return;
}
require_once ($pkConfigFile);
if (!isset($pkFunctionFile) || empty($pkFunctionFile) || !is_file($pkFunctionFile))
{
echo 'Fehler:: Die Funktions-Datei konnte nicht gefunden werden.';
return;
}
require_once ($pkFunctionFile);
#
#
#
$bC__enable_LinkAsWord =reDefault($bC__enable_LinkAsWord, 1);
$bC__enable_HeadOverview=reDefault($bC__enable_HeadOverview, 1);
$bC__enable_SortByTime =reDefault($bC__enable_SortByTime, 1);
$bC__availableContent =reDefault($bC__availableContent, FALSE);
$bC__box_ContentLimit =reDefault($bC__box_ContentLimit, 5);
$bC__box_MaxHeight =reDefault($bC__box_MaxHeight, 100);
$bC__box_Spacing =reDefault($bC__box_Spacing, 10);
$bC__box_cuttingTitle =reDefault($bC__box_cuttingTitle, 25);
$bC__box_cuttingText =reDefault($bC__box_cuttingText, 200);
$bC__enable_rewriteHTML =reDefault($bC__enable_rewriteHTML, 0);
if ($bC__availableContent===FALSE)
{
echo 'Fehler:: Es wurden keine Inhaltsbereiche (News, Artikel etc.) bestimmt.';
return;
}
$contURI__option=reDefault($_GET['id'], NULL);
$contURI__cat =reDefault($_GET['c'], NULL);
$contURI__theme =reDefault($_GET['t'], NULL);
$contSQL__cat
=
$contURI__cat!==NULL
? " AND content_cat='".$contURI__cat."'"
: NULL
;
$contSQL__theme
=
$contURI__theme!==NULL
? " AND content_themeid='".$contURI__theme."'"
: NULL
;
#
#
#
$loopOption =
$loopName =
$loopLink =
$loopTitle =
$loopContinue =
$contSQL__option =
$bC__HeadOverviewTab=NULL;
foreach ($bC__availableContent as $loopOption=>$loopName)
{
$loopOption =intval($loopOption);
$loopName =trim ($loopName['page']);
$loopLink
=
$bC__enable_LinkAsWord===1
? $loopName
: $loopOption
;
$loopTitle
=
isset($lang[$loopName])
&& trim ($lang[$loopName])!=''
? trim ($lang[$loopName])
: $loopName
;
$loopContinue
=
$contURI__option!==NULL
&& (
(
is_numeric($contURI__option)
&& $contURI__option!==$loopOption
)
||
(
is_string($contURI__option)
&& $contURI__option!=$loopName
)
)
? TRUE
: FALSE
;
if ($bC__enable_HeadOverview===1)
{
eval("\$bC__HeadOverviewTab.=\"".$pkTpl('boxContent/headOverview-tab')."\";");
}
if ($loopContinue===TRUE)
{
continue;
}
if ($contSQL__option)
{
$contSQL__option.=' OR ';
}
$contSQL__option.="content_option='".$loopOption."'";
}
unset(
$loopOption,
$loopName,
$loopLink,
$loopTitle,
$loopContinue
);
if ($bC__HeadOverviewTab && !isset($_GET['head']))
{
eval("\$bC__HeadOverview=\"".$pkTpl('boxContent/headOverview')."\";");
}
unset(
$_GET['head']
);
$contSQL__option
=
isset($contSQL__option)
&& trim ($contSQL__option)!=''
? ' AND ('.$contSQL__option.')'
: NULL
;
$contSQL__SortByTime
=
$bC__enable_SortByTime===0
? ' content_option ASC,'
: NULL
;
$contSQL__ContentLimit
=
$bC__box_ContentLimit!==FALSE
? ' LIMIT '.$bC__box_ContentLimit
: NULL
;
#
#
#
$contentSQL
=
"
FROM
".$pkTable_Content."
LEFT JOIN
".$pkTable_ContentCat."
ON
".$pkTable_ContentCat.".contentcat_id=".$pkTable_Content.".content_cat
WHERE
content_status='1'
".$contSQL__option."
".$contSQL__cat."
".$contSQL__theme."
AND
(
content_expire > '".$pkTime."'
OR
content_expire='0'
)
AND
content_time < '".$pkTime."'
AND
".sqlrights('contentcat_rights')."
ORDER BY
".$contSQL__SortByTime."
content_time DESC
".$contSQL__ContentLimit."
";
unset(
$_GET['id'],
$_GET['c'],
$_GET['t'],
$contSQL__option,
$contSQL__cat,
$contSQL__theme,
$contSQL__SortByTime,
$contSQL__ContentLimit
);
$loopContentSQL
=
$SQL->query("
SELECT
content_id,
content_title,
content_time,
content_text,
content_html,
content_ubb,
content_smilies,
content_option,
content_views,
content_teaser,
contentcat_id,
contentcat_name,
contentcat_symbol
".$contentSQL);
$contentCount =$SQL->fetch_row($SQL->query("SELECT COUNT(*) ".$contentSQL));
$contentCount =intval($contentCount['0']);
unset(
$contentSQL
);
#
#
#
$boxHash =boxContent();
$boxLine =array();
$boxOptionName =
$boxOptionTitle =
$boxOptionLink =
$boxTPL_packet =
$loopWidth =
$loopHeight =
$loopFloat =
$loopCSSLine =
$loopCSSBox =
$loopCustomBox =NULL;
$contID =
$contOption =
$contViews =0;
$contTitle =
$contTime =
$contText =
$contTeaser =
$catTitle =
$catImage =
$bC__boxContent =NULL;
foreach ($boxHash as $boxLine)
{
ksort($boxLine);
$bC__boxPacket =
$bC__boxLine =
$bC__boxImage =NULL;
$loopContent =array();
foreach ($boxLine as $loopContent)
{
$loopWidth =intval($loopContent['width']);
$loopHeight =intval($loopContent['height']);
$loopFloat =trim ($loopContent['float']);
$loopCSSLine =$loopContent['cssLine'];
$loopCSSBox =$loopContent['cssBox'];
$loopCustomBox =$loopContent['customBox'];
$loopContent =$loopContent['content'];
if ($bC__box_MaxHeight===$loopHeight && $loopCustomBox > 0)
{
$loopHeight =$loopHeight - number_format((($loopCustomBox - 1) * $bC__box_Spacing) / $loopCustomBox, '0', ',', '.');
}
$loopCSSLine
=
$loopCSSLine===NULL
? NULL
: ' margin-'.$loopCSSLine.': '.$bC__box_Spacing.'px;'
;
$loopCSSBox
=
$loopCSSBox===NULL
? NULL
: ' style="margin-'.$loopCSSBox.': '.$bC__box_Spacing.'px;"'
;
$contID =intval($loopContent['content_id']);
$contOption =intval($loopContent['content_option']);
$contViews =intval($loopContent['content_views']);
$contViews
=
isset($bC__availableContent[$contOption]['viewText'])
&& trim ($bC__availableContent[$contOption]['viewText'])!=''
? str_replace('[view]', $contViews, trim($bC__availableContent[$contOption]['viewText']))
: NULL
;
$contTitle =trim(stripslashes($loopContent['content_title']));
$contTitle =$pkStringCut($contTitle, $bC__box_cuttingTitle);
$contTime =$pkTimeFormat($loopContent['content_time']).' Uhr';
$contTeaser =trim(stripslashes($loopContent['content_teaser']));
$catID =intval($loopContent['contentcat_id']);
$catTitle =trim(stripslashes($loopContent['contentcat_name']));
$catImage =trim(stripslashes($loopContent['contentcat_symbol']));
$contText =trim(stripslashes($loopContent['content_text']));
$contText =$BBCODE->parse($contText, $loopContent['content_html'], $loopContent['content_ubb'], $loopContent['content_smilies'], 1);
if ($bC__enable_rewriteHTML===1)
{
$contText =strip_tags($contText);
}
if ($bC__box_cuttingText > 0)
{
$contText =substr(strip_tags($contText), 0, $bC__box_cuttingText * ($loopCustomBox > 0 ? $loopCustomBox : 1) * '2.5');
}
$boxOptionName
=
isset($bC__availableContent[$contOption]['page'])
&& trim ($bC__availableContent[$contOption]['page'])!=''
? trim ($bC__availableContent[$contOption]['page'])
: NULL
;
$boxOptionTitle
=
isset($lang[$boxOptionName])
&& trim ($lang[$boxOptionName])!=''
? trim ($lang[$boxOptionName])
: $boxOptionName
;
$boxOptionLink
=
$contOption===1
? $pkLinkArticle
: $boxOptionName
;
$boxOptionLink
=
str_replace('[boxOptionName]', $boxOptionLink, $pkLinkBox)
;
if ($catImage!='' && $catImage!='blank.gif' && is_file('images/catimages/'.$catImage))
{
$boxImage ='images/catimages/'.$catImage;
}
if ($contTeaser!='' && is_file($contTeaser))
{
$boxImage =$contTeaser;
}
eval("\$bC__boxImage=\"".reTPL ('boxContent/box-image', $boxOptionName)."\";");
eval("\$bC__boxLine =\"".reTPL ('boxContent/box-content', $boxOptionName)."\";");
eval("\$bC__boxPacket.=\"".$pkTpl('boxContent/box-packet')."\";");
}
eval("\$bC__boxContent.=\"".$pkTpl('boxContent/box')."\";");
}
if (empty($bC__boxContent))
{
eval("\$bC__boxContent=\"".$pkTpl('boxContent/box-empty')."\";");
}
unset(
$boxLine,
$boxOptionName,
$boxOptionTitle,
$boxOptionLink,
$boxTPL_packet,
$loopWidth,
$loopHeight,
$loopFloat,
$loopCSSLine,
$loopCSSBox,
$loopCustomBox,
$contID,
$contOption,
$contViews,
$contTitle,
$contTime,
$contText,
$contTeaser,
$catTitle,
$catImage
);
eval("\$site_body.=\"".$pkTpl('boxContent/index')."\";");
unset(
$bC__HeadOverview
);
?> | |  |
- Datei: *PHP-Ordner*/boxContent/inc.config.php
Erstelle o.g. Datei und füge folgenden Code ein:
Hier klicken zum aufklappen 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 106 107 108 109 110 111 112 113 114 115 116 117 | | PHP-Quelltext <?php
# Zeige Wort statt Zahl im Überblick-Tab
# 1 = Wort
# 0 = Zahl
$bC__enable_LinkAsWord
=1;
# Zeige die Überblick-Tabs
# 1 = Zeigen
# 0 = Verbergen
$bC__enable_HeadOverview
=1;
# Die Inhaltsboxen sortieren nach ..
# 1 = nur Erstell-Datum
# 0 = Erstell-Datum, aber nach Inhalts-Variante (allgemeine Inhalte, Artikel, News, Verweise / Links und Downlods)
$bC__enable_SortByTime
=1;
# Anzahl an Inhaltsboxen
$bC__box_ContentLimit
=100;
# Höhe der Inhaltsboxen (Custom-Boxen, also die, die neben mind. 2 Boxen stehen, werden mulipliziert)
$bC__box_MaxHeight
=150;
# Höhe / Breite der Trennung zwischen den Inhaltsboxen
$bC__box_Spacing
=10;
# maximale Länge eines Titels
$bC__box_cuttingTitle
=20;
# maximale Länge eines Inhaltstextes (Custom-Boxen, also die, die neben mind. 2 Boxen stehen, werden um den Faktor 2.5 mulipliziert
$bC__box_cuttingText
=0;
# HTML-Tags aus Inhaltstexten entfernen
# 1 = entfernen
# 0 = ignorieren
$bC__enable_rewriteHTML
=0;
# Die Inhalts-Varianten
# 0 = allgemeine Inhaltsangaben
# 1 = Artikel
# 2 = News
# 3 = Verweise / Links
# 4 = Downloads
$bC__availableContent
=
array(
'0' =>
array(
'page' =>'content',
'viewText' =>'| [view]x angeschaut'
),
'1' =>
array(
'page' =>'article',
'viewText' =>'| [view]x gelesen'
),
'2' =>
array(
'page' =>'news',
'viewText' =>'| [view]x gelesen'
),
'3' =>
array(
'page' =>'link',
'viewText' =>'| [view]x angeklickt'
),
'4' =>
array(
'page' =>'download',
'viewText' =>'| [view]x heruntergeladen'
),
);
# Hier kannst du die Inhaltsboxen nach deinen Vorstellungen ordnen lassen.
# Hier einige Beispiel für die Benutzung:
#
# array('50', '50') <- Hier ist eine Reihe definiert, die aus 2 maximalen Boxen besteht, die je 50% Breite besitzen.
# array('33', '34', '33'); <- Hier hingegen wurden 3 maximale Boxen definiert, die je 33% außen, und 34% Breite in der mitte haben.
#
# Custom-Box:
# array('33', '2^67'); <- Eine Custom-Box ist eine Box, die maximal 2 Boxen nebeneinander aufstellen kann, dafür aber in die Höhe ragen kann.
# In diesen Beispiel ist auf der linken Seite eine Box mit 33% Breite gesetzt. Auf der rechten Seite werden maximal
# 2 Boxen untereinander aufgestellt, mit je 67% Breite.
#
# Sobald die selbst erstellten Reihen mit maximalen Boxen aufgebraut ist (also: gibt es
# mehr Inhaltsboxen als es definierte Boxen gibt), beginnt das ganze von vorne.
$bC__BoxPacket[]=array('50', '50');
$bC__BoxPacket[]=array('33', '2^67');
$bC__BoxPacket[]=array('33', '34', '33');
$bC__BoxPacket[]=array('100');
$bC__BoxPacket[]=array('34', '66');
$bC__BoxPacket[]=array('3^50', '50');
$bC__BoxPacket[]=array('66', '34');
$bC__BoxPacket[]=array('50', '50');
$bC__BoxPacket[]=array('100');
$bC__BoxPacket[]=array('33', '34', '33');
$bC__BoxPacket[]=array('50', '50');
$bC__BoxPacket[]=array('100');
?> | |  |
- Datei: *PHP-Ordner*/boxContent/inc.func.php
Erstelle o.g. Datei und füge folgenden Code ein:
Hier klicken zum aufklappen   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 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 | | PHP-Quelltext <?php
if (!function_exists('reDefault'))
{
function reDefault($iVar='', $iDefault='')
{
$iDefault
=
isset($iDefault)
? $iDefault
: NULL
;
if (!isset($iVar))
{
return
$iDefault
;
}
if (is_numeric($iVar))
{
$iVar =intval($iVar);
}
elseif (is_string($iVar) && trim($iVar)!='')
{
$iVar =trim($iVar);
}
elseif (is_array($iVar) && count($iVar)!==0)
{
$iVar =$iVar;
}
else
{
$iVar =NULL;
}
return
$iVar!==NULL
? $iVar
: $iDefault
;
}
}
if (!function_exists('reTPL'))
{
function reTPL($iTpl='', $iAdd='')
{
global
$pkTpl
;
if (!isset($pkTpl) || empty($pkTpl) || !is_string($pkTpl))
{
return;
}
;
if (!isset($iTpl) || empty($iTpl) || !is_string($iTpl))
{
return;
}
$iTpl =trim($iTpl);
$iReturn=NULL;
$iAdd
=
isset ($iAdd)
&& !empty ($iAdd)
&& is_string($iAdd)
? '.'.trim ($iAdd)
: NULL
;
switch ($pkTpl)
{
case 'getTemplate':
global
$template_cache,
$config
;
$iAdd
=
isset ($template_cache[$iTpl.$iAdd])
|| is_file($config['template_dir'].'/'.$iTpl.$iAdd.'.htm')
? $iAdd
: NULL
;
break;
case 'pkTpl':
$iTemp =$pkTpl($iTpl.$iAdd);
$iAdd
=
isset ($iTemp)
&& !empty($iTemp)
? $iAdd
: NULL
;
break;
}
$iTpl
=
$iAdd===NULL
? $iTpl.'.default'
: $iTpl.$iAdd
;
return
$pkTpl($iTpl)
;
}
}
if (!function_exists('boxContent'))
{
function boxContent()
{
global
$bC__box_MaxHeight,
$bC__BoxPacket,
$SQL,
$loopContentSQL,
$contentCount
;
if (!isset($bC__box_MaxHeight) || !is_numeric($bC__box_MaxHeight))
{
$boxError[] ='bC__box_MaxHeight';
}
if (!isset($bC__BoxPacket) || !is_array($bC__BoxPacket))
{
$boxError[] ='bC__BoxPacket';
}
if (!isset($SQL) && !is_object($SQL))
{
$boxError[] ='SQL';
}
if (!isset($loopContentSQL) || !is_resource($loopContentSQL))
{
$boxError[] ='loopContentSQL';
}
if (!isset($contentCount) || !is_numeric($contentCount))
{
$boxError[] ='contentCount';
}
if (isset($boxError) && is_array($boxError) && count($boxError) > 0)
{
echo '<pre>';
echo 'Es wurden interne Fehler entdeckt:'."\n\n";
foreach ($boxError as $errorName)
{
echo ' Die Variable $'.$errorName.' wurde nicht gefunden oder enthält keine gültigen / korrekten Daten.'."\n";
}
echo '</pre>';
return
$boxHash=array();
;
}
$boxHash =array();
$boxHeight =$bC__box_MaxHeight;
$boxWidth =
$boxLine =
$boxCustom =
$customWidth=
$customLine =
$customBox =
$intLine =
$intPos =
$intSort =
$intContent =0;
$intPacket
=
!is_array($bC__BoxPacket[$intPos])
|| count ($bC__BoxPacket[$intPos])===0
? 2
: count($bC__BoxPacket[$intPos])
;
while ($loopContent=$SQL->fetch_assoc($loopContentSQL))
{
$intLine++;
$intContent++;
# new line
if ($intLine > $intPacket)
{
$intPos++;
$intSort++;
$intLine =1;
$intPacket =count($bC__BoxPacket[$intSort]);
if ($intPacket===0)
{
$intSort =0;
$intPacket
=
!is_array($bC__BoxPacket[$intSort])
|| count ($bC__BoxPacket[$intSort])===0
? 2
: count($bC__BoxPacket[$intSort])
;
}
}
# get value for width
$boxWidth
=
!is_array($bC__BoxPacket[$intSort])
|| count ($bC__BoxPacket[$intSort])===0
? 50
: $bC__BoxPacket[$intSort][$intLine-1]
;
$boxCustom
=
isset ($bC__BoxPacket[$intSort][$intLine])
&& stristr($bC__BoxPacket[$intSort][$intLine], '^')
? 1
: 0
;
# set custom block
if (stristr($boxWidth, '^') || $boxCustom===1)
{
$boxWidth
=
$intLine!==1
&& $boxCustom===1
? $bC__BoxPacket[$intSort][$intLine]
: $boxWidth
;
$customExplode =explode('^', $boxWidth);
$customExLine
=
isset ($customExplode['0'])
? intval($customExplode['0'])
: 1
;
$customExWidth
=
isset ($customExplode['1'])
? intval($customExplode['1'])
: $boxWidth
;
$boxWidth =$customExWidth;
$customBox =$customExLine;
$customWidth =$customExLine;
if ($intLine===1 && $boxCustom===1)
{
$customExplode =explode('^', $bC__BoxPacket[$intSort][$intLine]);
$customExLine
=
isset ($customExplode['0'])
? intval($customExplode['0'])
: 1
;
$customBox =$customExLine;
$customWidth =$customExLine;
}
if ($boxCustom===1)
{
$customLine =$intLine;
}
else
{
$intPacket =($customWidth + $intPacket) - 1;
$customLine = $customWidth + $intLine;
}
}
# return some vars to null for custom box
if ($intLine===1 && $customLine > $intPacket && $boxCustom===0)
{
$customWidth =
$customLine =
$customBox =0;
$customExWidth =NULL;
}
# last row, width to 100 or different to pre-row
if ($contentCount===$intContent && $intLine < $intPacket)
{
$boxWidth
=
$customWidth===0
? 100
: (
$intLine > 1
? $customExWidth
: 100
)
;
if ($intLine > 1 && $customWidth===0)
{
$boxWidth =number_format(100 / $intPacket * $intLine, '0', ',', '.');
}
if ($customWidth===$intLine && $customBox===0)
{
$intPos++;
$intSort++;
$boxWidth =100;
}
}
# set margin value for css
$cssBox =
$cssLine=NULL;
if ($intLine < $intPacket && $boxWidth!==100 && $contentCount!==$intContent)
{
$cssBox ='right';
}
if ($customLine===1 || $customLine > $intPacket)
{
$cssBox
=
(
$customLine===1
&& $contentCount!==$intContent
)
|| (
$intLine===$intPacket
&& $customWidth >= $intPacket
)
? 'right'
: NULL
;
}
if ($customLine > 1 && $customLine===$intPacket && ($contentCount - ($intPacket - $intLine)) < $intContent)
{
$customBox =0;
$cssBox
=
$intLine===2
? NULL
: $cssBox
;
}
if ($customBox > 1)
{
$cssLine
=
$customLine===1
|| $intLine===$intPacket
? NULL
: 'bottom'
;
}
if ($customLine===$intPacket && $customBox > 1)
{
$cssLine
=
$cssBox===NULL
|| $customWidth===$intLine
? NULL
: 'bottom'
;
}
# set custom-box an first or last array-pos
$boxLine
=
$customLine===$intLine
? 0
: $intLine
;
$boxWidth
=
empty($boxWidth)
? $customExWidth
: $boxWidth
;
$boxHash[$intPos][$boxLine]
=
array(
'width' =>$boxWidth,
'height' =>
(
$customLine===$intLine
&& $intContent < $contentCount
? $customWidth * $boxHeight
: $boxHeight
),
'cssLine' =>$cssLine,
'cssBox' =>$cssBox,
'customBox' =>$customBox,
'float' =>
(
$customLine===$intLine
&& $boxCustom===0
? 'right'
: 'left'
),
'content' =>$loopContent,
);
}
unset(
$boxHeight,
$boxWidth,
$boxLine,
$boxCustom,
$customWidth,
$customLine,
$customBox,
$customExplode,
$customExLine,
$customExWidth,
$intLine,
$intPos,
$intSort,
$intContent,
$intPacket,
$contentCount,
$loopContent,
$cssBox,
$cssLine
);
return
$boxHash
;
}
}
?> | |  |
CSS-Dateien (.css)
- Datei: *CSS-Ordner*/boxContent/style.css
Erstelle o.g. Datei und füge folgenden Code ein:
Template-Dateien (.htm)
|
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von k!r!ka - 20.12.2012 - 22:53 Uhr |
|
|
|
|
|
|
|
 |
|
 |
19.12.2012 - 19:01 Uhr |
|
|
|
Hier nochmal die Bilder als Anhang.
|
|
|
|
|
|
|
 |
|
 |
19.12.2012 - 19:39 Uhr |
|
|
|
vielen vielen Dank...ich werde es gegen Freitag alles einbauen und dann Feedback geben....ein Dankeschön wird es dann auch noch von mir geben.
Echt ein super Support hier.
mfg Michael
|
|
|
|
|
|
|
 |
|
 |
19.12.2012 - 20:10 Uhr |
|
|
|
Du kannst im Grunde die Dateien, bis auf eine, komplett rüber schieben, da diese eh neu sind. Die eine, die nicht neu ist, ist die pkinc/class/style.php, aber auch nur für die Versionen 1.6.4 und höher. Und diese ist auch nur relevant für die Darstellung.
Es sollte eigentlich keine Probleme geben .. 
Und keine Scheu vor Fragen und Meckerei ;o
|
|
|
|
|
|
|
 |
|
 |
20.12.2012 - 19:18 Uhr |
|
|
|
Ich komme ja erst Morgen zum Einbau....eine Frage vorab.
Ändern die Dateien die ich dann hochlade, das komplette Aussehen der bisherigen " Standart " Ansicht von News usw oder bezieht sich das hier jetzt nur auf die Artikel Boxen ?
Ich frage wegen diesem Satzt
Startseite modifizieren, damit auf dieser nur bestimmte Inhalts boxen angezeigt werden können.
Bedeutet das , das normale andere Startseiten Inhalte wie zb letzten Foren posts usw sich diesem neuen Schema unterordnen müssen ?
Ist vielleicht eine dumme Frage aber die kam mir gerade so in den Sinn und ich dachte, ich frage sie schon mal vorab , bevor ich morgen ans einbauen gehe.
So long, Gn8 Michael
|
|
|
|
|
|
|
 |
|
 |
20.12.2012 - 20:04 Uhr |
|
|
|
Zitat Original geschrieben von punix2
Ändern die Dateien die ich dann hochlade, das komplette Aussehen der bisherigen " Standart " Ansicht von News usw oder bezieht sich das hier jetzt nur auf die Artikel Boxen ? |
Nein, es werden im Grunde keine vorhandenen Dateien geändert, die wirklich notwendig sind.
Die eine Datei (für 1.6.4 und höher; pkinc/class/style.php) wird nur geändert, weil sonst der CSS-Part, also das optische, nicht mitgeladen würde. Es hätte vielleicht noch einen anderen Weg gegeben, ohne Dateien anzupassen, aber dann wäre im HTML-Code wieder CSS-Code. Und das wollt ich mehr oder weniger vermeiden, wenn schon das phpKit den CSS-Code Ordnungsgemäß in eine CSS-Datei packen läst.
Zitat Original geschrieben von punix2
Ich frage wegen diesem Satzt
Startseite modifizieren, damit auf dieser nur bestimmte Inhalts boxen angezeigt werden können.
Bedeutet das , das normale andere Startseiten Inhalte wie zb letzten Foren posts usw sich diesem neuen Schema unterordnen müssen ? |
Im Klappbereich Funktion und Einstellmöglichkeiten hab ich ja beschrieben;
Zitat [..]die Startseite so modifiziert, das man nur bestimmte Inhalt-Varianten, einzelne Kategorien oder Themengebiete anzeigen lassen kann.
Die Änderung beinträchtigt nicht vorhandene Dateien. Es bessert aber auch nicht derren Möglichkeiten, da diese von Hause aus nicht (gut genug) ausgearbeitet sind ! |
Relevant ist für dich sicherlich erstmal der rot-markierte Teil.
Die Startseite selbst wird in seiner Funktion nicht geändert. Sie wird erweitert, damit du sagen kannst, was du auf der Startseite anzeigen lassen willst. Seien es nur Downloads, nur Artikel mit der Kategorie-ID 2, mit oder ohne Inhalts-Tabs über den Inhaltsboxen.
Denn ohne diese Änderung in der Datei wird nämlich nur der Inhalt angezeigt, wie du es sehen würdest, wenn du die Startseite der Inhaltsboxen aufrufen würdest (also include.php?path=boxContent).
Es ist, wie gesagt, ein Extra; kein muss.
---
Ich werd mal den Post mit den Code etwas erweitern, damit du ungefähr weisst, wie du richtig filterst ;o
Zitat Original geschrieben von punix2
Ist vielleicht eine dumme Frage aber die kam mir gerade so in den Sinn und ich dachte, ich frage sie schon mal vorab , bevor ich morgen ans einbauen gehe.
So long, Gn8 Michael |
Kein Ding, einfach drauf los fragen ;o
|
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von k!r!ka - 21.12.2012 - 09:25 Uhr |
|
|
|
|
|
|
|
 |
|
|
 |
Ähnliche Themen |
|
|
|
|
|
|
|
|