|
|
Latest News |
Latest Threads |
|
|
55.319 Posts & 4.945 Themen in 78 Foren |
|
|
|
|
Forensuche |
|
Suchbegriff |
Benutzerauswahl |
Ergebnisse anzeigen |
|
|
Kategorie "Link" bearbeiten (einige erweiterungen) 49 Beiträge in diesem Thema |
|
|
|
|
|
|
|
|
09.10.2014 - 22:09 Uhr |
|
|
|
Guten Abend zusammen,
ich hatte schon bei Kit-coding.de angefragt, doch Zeitlich bekommt er das leider nicht hin, mir schnell weiterzuhelfen.
Un zwar besaß ich bis vor kurzem noch eine extra Kategorie "Tourdates", war eine extra Anwendung, die nun aber den Geist aufgegeben hatte.
Da ich lieber alles aus dem PHPkit nutzen möchte, die Kategorie "Links", als "links" aber nicht brauche, würde ich diese gerne für meine Tourdates verwenden.
Leider komme ich bei der Bearbeitung schnell an meine grenzen, daher würde ich mich freuen, wenn mir jemand dabei helfen kann.
Folgende Sachen müssten bearbeitet werden:
1. Diese Dinge müssten entfernt werden:
2. Die Aufmachergrafik soll nicht in der "News" stehen:
3. Das eingekreiste fehlt oben:
4. Eine extra Möglichkeit, ein eigenes Datum einzugeben, nachdem dann in der Übersicht sortiert wird. Dies ist extrem wichtig, da es sonst sehr unübersichtlich wird. (siehe Bild)
Wie bereits beschrieben, geht meine alte Erweiterung auch nicht mehr, wodurch ich sofort auf die Kategorie "Links" ausweichen musste. Diese sieht natürlich nun "scheiße" aus
Ich hoffe ihr könnt mir schnell bei meinem Problem helfen.
Besten Gruß
|
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von DHH - 09.10.2014 - 23:58 Uhr |
|
|
|
|
|
|
|
|
|
|
10.10.2014 - 13:37 Uhr |
|
|
|
Hab mal bisschen geguckt und probiert. Mit den Änderungen von unten sollte es eigentlich funktionieren Natürlich vorher BackUp der Dateien machen - man weiss ja nie ^^"
- Public :: Entfernung der Info-Box bei den Verweißen
Auf den Bild sieht man div. Änderungen. Entweder du postest den Inhalt von u.g. Template oder du guckst dir die Änderungen vom Standard-Template an (siehe unten)
- pkinc/publictpl/content/overview_links_linkbox.htm
- Öffne o.g. Datei und suche das:
| Quellcode <tr>
<td class="$row"><font class="big"><a href="$link"><b>$contentinfo[content_title]</b></a></font></td>
<td class="$row" align="center"><font class="small"><b>Infos</b></font></td>
</tr> | |
Und machst daraus das:
| Quellcode <tr>
<td class="$row" colspan="2"><font class="big"><a href="$link"><b>$contentinfo[content_title]</b></a></font></td>
</tr> | |
- Suche weiter
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 | | Quellcode <tr>
<td class="$row" valign="top">$content_catimage<font class="contenttext">$content_headline</font></td>
<td class="$row" valign="top">
<a href="$link_go"><img src="fx/default/icons/button-link-large.png" alt="" style="margin:4px auto; display:block;" /></a>
<table border="0" cellspacing="1" cellpadding="0" width="100%">
<tr>
<td width="50%" align="left"><b><font class="small">Datum</font></b></td>
<td width="50%" align="right" nowrap="nowrap"><font class="small">$content_time</font></td>
</tr>
<tr>
<td nowrap="nowrap"><b><font class="small">Autor</font></b></td>
<td align="right"><font class="small">$autorinfo</font></td>
</tr>
<tr>
<td nowrap="nowrap"><b><font class="small">Klicks</font></b></td>
<td align="right"><font class="small">$contentinfo[content_views]</font></td>
</tr>
$content_comment
$content_rate
$content_rating_info
</table>
</td>
</tr> | | |
Und machst daraus das:
| Quellcode <tr>
<td class="$row" colspan="2"><font class="big"><a href="$link"><b>$contentinfo[content_title]</b></a></font></td>
</tr>
<tr>
<td class="$row" colspan="2" valign="top">$content_catimage<font class="contenttext">$content_headline</font></td>
</tr> | |
- Public :: Entfernung der Aufmacher-Grafik bei den News
- pkinc/public/news.php
- Öffne o.g. Datei und suche das:
| PHP-Quelltext // prepend the teaser to the news text
$news_text = $news_teaser . $news_text; | |
Und machst daraus das:
| PHP-Quelltext # Teaser not automatic in Text | Start
/*
// prepend the teaser to the news text
$news_text = $news_teaser . $news_text;
*/
# Teaser not automatic in Text | End | |
- Public :: Das eingekreiste fehlt in den News
-
Im Grunde wie beim 1. Punkt (Verweiße) oben. Im Template pkinc/publictpl/content/news.htm steht sowas drin:
| Quellcode <p class="contenttitle">
<font class="big">$cont_title</font><br />
<font class="small">$news_time von $autor_info</font></p> | |
Entweder du guckst selber wo das am besten hinpasst oder du postest den Inhalt von o.g. Datei
- Public + Admin :: Verweise als Tour-Daten nutzen
- pkinc/admin/contentcompose.php
- Öffne o.g. Datei und suche das:
| PHP-Quelltext $cont_time = pkMkTime($ENV->_post_id('cont_time_h'),$ENV->_post_id('cont_time_mm'),0,$ENV->_post_id('cont_time_m'),$ENV->_post_id('cont_time_d'),$ENV->_post_id('cont_time_y'));
$cont_expire = pkMkTime($ENV->_post_id('cont_expire_h'),$ENV->_post_id('cont_expire_mm'),0,$ENV->_post_id('cont_expire_m'),$ENV->_post_id('cont_expire_d'),$ENV->_post_id('cont_expire_y'));
| | |
Und füge darunter das ein:
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 | | PHP-Quelltext # ContentLinkToTour | Start
$cont_altdat =NULL;
$cont_time_day
=
IsSet ($_POST['cont_time_day'])
&& Intval($_POST['cont_time_day']) > 0
&& Intval($_POST['cont_time_day']) < 32
? Intval($_POST['cont_time_day'])
: NULL
;
$cont_time_month
=
IsSet ($_POST['cont_time_month'])
&& Intval($_POST['cont_time_month']) > 0
&& Intval($_POST['cont_time_month']) < 13
? Intval($_POST['cont_time_month'])
: NULL
;
$cont_time_year
=
IsSet ($_POST['cont_time_year'])
&& Intval($_POST['cont_time_year']) > 0
? Intval($_POST['cont_time_year'])
: NULL
;
$cont_altdat
=
$cont_time_day > 0
&& $cont_time_month > 0
&& $cont_time_year > 0
? pkMkTime(0, 0, 0, $cont_time_month, $cont_time_day, $cont_time_year)
: NULL
;
# ContentLinkToTour | End | |
- Suche weiter
| PHP-Quelltext $content_time_d=date("d",$time);
$content_time_m=date("m",$time);
$content_time_y=date("Y",$time);
$content_time_h=date("H",$time);
$content_time_mm=date("i",$time); | |
Und füge darunter das ein:
| PHP-Quelltext # ContentLinkToTour | Start
$cont_time_day =NULL;
$cont_time_month=NULL;
$cont_time_year =NULL;
# ContentLinkToTour | End | |
- Suche weiter
| PHP-Quelltext $cont_autor=pkEntities($contentinfo['content_autor']);
$cont_title=pkEntities($contentinfo['content_title']);
$content_text=pkEntities($contentinfo['content_text']);
$content_altdat=pkEntities($contentinfo['content_altdat']); | |
Und füge darunter das ein:
| PHP-Quelltext # ContentLinkToTour | Start
If (Intval($type)===3 && Is_Numeric($content_altdat) && Intval($content_altdat) > 0)
{
$content_altdat =Intval($content_altdat);
$cont_time_day =Date('d', $content_altdat);
$cont_time_month=Date('m', $content_altdat);
$cont_time_year =Date('Y', $content_altdat);
}
# ContentLinkToTour | End | |
- pkinc/admintpl/content/compose_step3_3.htm
- Öffne o.g. Datei und ersetze den Inhalt mit folgendem:
| Quellcode <tr>
<td class="left">Tourbeginn<br /><span class="small">Angaben in DD.MM.JJJJ</span></td>
<td class="right">
<input type="text" name="cont_time_day" size="5" value="$cont_time_day" />
<input type="text" name="cont_time_month" size="5" value="$cont_time_month" />
<input type="text" name="cont_time_year" size="10" value="$cont_time_year" />
</td>
</tr> | |
- pkinc/public/contentarchive.php
- Öffne o.g. Datei und ersetze den Inhalt mit folgendem:
| PHP-Quelltext $orderhash=array('rate','rated','title','titled','dated'); | |
Und füge darunter das ein:
| PHP-Quelltext # ContentLinkToTour | Start
$orderhash[]='tour';
$orderhash[]='toure';
# ContentLinkToTour | End | |
- Suche weiter
| PHP-Quelltext elseif($order=="title")
$sqlorder="ORDER by ".pkSQLTAB_CONTENT.".content_title ASC";
elseif($order=="titled")
$sqlorder="ORDER by ".pkSQLTAB_CONTENT.".content_title DESC"; | |
Und füge darunter das ein:
| PHP-Quelltext # ContentLinkToTour | Start
elseif($order=="tour" && Intval($type)===3)
$sqlorder="ORDER by ".pkSQLTAB_CONTENT.".content_altdat ASC";
elseif($order=="toure" && Intval($type)===3)
$sqlorder="ORDER by ".pkSQLTAB_CONTENT.".content_altdat DESC";
# ContentLinkToTour | End | |
- Suche weiter
| PHP-Quelltext eval("\$site_body.= \"".pkTpl("content/overview_control")."\";"); | |
Und ersetze diese Stelle mit dem:
| PHP-Quelltext # ContentLinkToTour | Start
#eval("\$site_body.= \"".pkTpl("content/overview_control")."\";");
If (Intval($type)===3)
{
eval("\$site_body.= \"".pkTpl("content/overview_control_links")."\";");
}
Else
{
eval("\$site_body.= \"".pkTpl("content/overview_control")."\";");
}
# ContentLinkToTour | End | |
- pkinc/publictpl/content/overview_control_links.htm
- Erstelle o.g. Datei und füge folgenden Code ein:
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 | | Quellcode <table class="contentbody" cellspacing="1" cellpadding="4" width="100%">
<tr>
<td class="heads" align="left" colspan="3">
<table border="0" cellspacing="0" cellpadding="1" width="100%">
<tr>
<td align="left"><font class="heads">$submit_link</font></td>
<td align="right" nowrap="nowrap"><font class="headssmall">$content_side</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="left" align="left" valign="top" rowspan="2" width="33%">
<font class="small"><b>Titelauswahl:</b><br />
$content_control_letter</font></td>
<td class="left" align="left" valign="top" rowspan="2" width="34%">
<font class="small"><b>Sortierung:</b></font><br />
<table border="0" cellspacing="1" cellpadding="0">
<tr>
<td><font class="small"><b> Titel</b></font></td>
<td><font class="small"> <a href="include.php?path=contentarchive&type=$type&catid=$catid&letter=$letter&entries=$entries&searchtext=$searchtext&order=title">ABC</a> / <a href="include.php?path=contentarchive&type=$type&catid=$catid&letter=$letter&entries=$entries&searchtext=$searchtext&order=titled">ZXY</a></font></td>
</tr>
<tr>
<td><font class="small"><b> Tourdatum</b></font></td>
<td><font class="small"> <a href="include.php?path=contentarchive&type=$type&catid=$catid&letter=$letter&entries=$entries&searchtext=$searchtext&order=tour">Neueste</a> / <a href="include.php?path=contentarchive&type=$type&catid=$catid&letter=$letter&entries=$entries&searchtext=$searchtext&order=toure">Älteste</a></font></td>
</tr>
</table>
</td>
<td class="right" align="right" valign="top" width="33%" nowrap="nowrap">
<form method="post" action="include.php?path=search&mode=result">
<input type="hidden" name="search_type[0]" value="$type" />
<input type="text" name="search_text" class="small" size="20" value="$content_type suchen" onblur="if (value =='') {value = '$content_type suchen'}" onfocus="if (value == '$content_type suchen') {value =''}" />
<input type="submit" name="action" value="$LANG[bl_go]" class="small" />
<input type="hidden" name="action" value="$LANG[bl_go]" />
<input type="hidden" name="search" value="$LANG[bl_go]" class="small" />
<br />
<font class="small"><a class="small" href="include.php?path=search">Erweiterte Suche</a></font>
</form>
</td>
</tr>
<tr>
<td class="right" align="right">
<form method="post" action="include.php?path=contentarchive&type=$type&letter=$letter&entries=$entries&searchtext=$searchtext&order=$order">
<table border="0" cellspacing="0" cellpadding="1" width="100%">
<tr>
<td align="right" width="100%">
<select name="catid" size="1" class="small">
<option value="-1">alle Kategorien</option>
$overview_cats
</select></td>
<td><input type="submit" name="action" value="$LANG[bl_go]" class="small" /></td>
</tr>
<tr>
<td align="right">$control_themes</td>
<td> </td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img border="0" height="5" width="1" alt="" src="images/blank.gif" /></td>
</tr>
</table> | | |
|
|
|
|
|
|
|
|
|
|
10.10.2014 - 14:25 Uhr |
|
|
|
Cool, aber ich glaube ich habe mich falsch ausgedrückt bei dem Wort "News". Dabei meinte ich eigentlich den Inhalt, welchen man bei "Links" eingeben kann.
Also um die Kategorie "News" geht es hier gar nicht. Hat alles mit der Kategorie "Links" zu tun. Sorry
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von DHH - 10.10.2014 - 14:26 Uhr |
|
|
|
|
|
|
|
|
|
|
10.10.2014 - 15:33 Uhr |
|
|
|
Ach, macht doch nichts ;o Hab aber ehrlich gesagt diese eine Variable ($content_catimage) nicht gesehen und daher nicht raus genommen ^^" Sollte mit der u.g. Änderung nun wie gewünscht gehen ;o
- pkinc/publictpl/content/overview_links_linkbox.htm
- Öffne o.g. Datei und suche das:
| Quellcode <tr>
<td class="$row" colspan="2"><font class="big"><a href="$link"><b>$contentinfo[content_title]</b></a></font></td>
</tr>
<tr>
<td class="$row" colspan="2" valign="top">$content_catimage<font class="contenttext">$content_headline</font></td>
</tr> | |
Und machst daraus das:
| Quellcode <tr>
<td class="$row" colspan="2"><font class="big"><a href="$link"><b>$contentinfo[content_title]</b></a></font></td>
</tr>
<tr>
<td class="$row" colspan="2" valign="top"><font class="contenttext">$content_headline</font></td>
</tr> | |
|
|
|
|
|
|
|
|
|
|
10.10.2014 - 15:58 Uhr |
|
|
|
Jetzt blicke ich nicht mehr durch
Könntest du das oben erneut reinschreiben, denn so wie im letzten finde ich das gar nicht
|
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von DHH - 10.10.2014 - 16:20 Uhr |
|
|
|
|
|
|
|
|
|
|
10.10.2014 - 16:20 Uhr |
|
|
|
Ich hab oben im 1. Punkt geschrieben das ich vom Standard-Template ausgehe und du es selbst versuchen kannst, oder du postest den Inhalt von den Template, also dem hier:
pkinc/publictpl/content/overview_links_linkbox.htm
Und der Post von gerade bezieht sich auf den vorherigen Post
|
|
|
|
|
|
|
|
|
|
10.10.2014 - 16:31 Uhr |
|
|
|
|
|
|
|
|
|
10.10.2014 - 16:38 Uhr |
|
|
|
Probiers mal so:
pkinc/publictpl/content/overview_links_linkbox.htm
Öffnen und komplett mit dem ersetzen.
| Quellcode <tr>
<td class="$row" colspan="2"><font class="big"><a href="$link"><b>$contentinfo[content_title]</b></a></font></td>
</tr>
<tr>
<td class="$row" colspan="2" valign="top">$CQeditLnk<font class="contenttext">$content_headline</font></td>
</tr> | |
|
|
|
|
|
|
|
|
|
|
10.10.2014 - 17:02 Uhr |
|
|
|
Wenn du die News-Datei pkinc/public/news.php bearbeiten solltest wird nur der reine Text im Template ausgegeben. Mit $news_teaser könnte man die Aufmacher-Grafik wieder anzeigen lassen. Betrifft aber in diesen Fall nur die News
Und wenn du die News gar nicht bearbeiten willst (weil du es ja gar nicht beabsichtig hast) dann tus einfach nicht
|
|
|
|
|
|
|
|
|
|
10.10.2014 - 18:17 Uhr |
|
|
|
So, habe den rest eben bearbeitet. Wenn ich dann auf im ACP auf "Links" - Kategorie "Tourdates" klicke, kommt nur das:
Und die Aufmachergrafik ist immer noch zu sehen im Inhalt.
Vielleicht hatte ich das auch wieder falsch ausgedrückt.
In der Übersicht soll die Aufmachergrafik zu sehen sein, aber diese taucht auch im Inhalt auf, da brauche ich sie aber nicht. (siehe Foto darüber)
http://deutscher-hip-hop.com/include.php?path=contentarchive&type=3&contentid=5828
|
|
|
|
|
|
|
|
|
|
10.10.2014 - 18:38 Uhr |
|
|
|
Zitat Original geschrieben von k!r!ka
- pkinc/admintpl/content/compose_step3_3.htm
- Öffne o.g. Datei und ersetze den Inhalt mit folgendem:
| Quellcode <tr>
<td class="left">Tourbeginn<br /><span class="small">Angaben in DD.MM.JJJJ</span></td>
<td class="right">
<input type="text" name="cont_time_day" size="5" value="$cont_time_day" />
<input type="text" name="cont_time_month" size="5" value="$cont_time_month" />
<input type="text" name="cont_time_year" size="10" value="$cont_time_year" />
</td>
</tr> | |
|
Würd ja sagen du hast nicht o.g. Template genommen, sondern compose_step3.htm .. Oder?;o Richtig wäre ja halt dieses: compose_step3_3.htm, also mit dem _3 am Ende ;o
Und was das andere angeht:
Ich weiss jetzt nicht ob ich diesen Part einfach übersehen habe oder ignoriert habe .. Aber so kannst dies ändern:
- pkinc/public/contentarchive.php
- Öffne o.g. Datei und suche das:
| PHP-Quelltext $content_headline = $BBCODE->parse($contentinfo['content_header'].' '.$contentinfo['content_text'],$contentinfo['content_html'],$contentinfo['content_ubb'],$contentinfo['content_smilies'],1);
$title = $contentinfo['content_title'];#was already forated above
$CMS->site_title_set($title,true); | |
Und füge darunter das ein:
| PHP-Quelltext # ContentLinkToTour | Start
$content_catimage=NULL;
# ContentLinkToTour | End | |
Dann wird die Aufmacher-Grafik nur noch in der Auflistung angezeigt, nicht aber wenn man die Tour anklickt.
|
|
|
|
|
|
|
|
|
|
10.10.2014 - 18:50 Uhr |
|
|
|
jep, daran lag es
Nun geht alles. Habe eben die ersten Daten eingetragen, aber irgendwie werden die dann nicht in der Übersicht nach Datum sortiert
|
|
|
|
|
|
|
|
|
|
10.10.2014 - 19:11 Uhr |
|
|
|
Seh grad das die Sortierung sowieso nicht ganz möchte wie man selbst möchte .. Aber nun gut, geh mal wie folgt vor:
- pkinc/public/contentarchive.php
- Öffne o.g. Datei und suche das (siehe ersten Post):
| PHP-Quelltext # ContentLinkToTour | Start
elseif($order=="tour" && Intval($type)===3)
$sqlorder="ORDER by ".pkSQLTAB_CONTENT.".content_altdat ASC";
elseif($order=="toure" && Intval($type)===3)
$sqlorder="ORDER by ".pkSQLTAB_CONTENT.".content_altdat DESC";
# ContentLinkToTour | End | |
Und mach daraus das:
| PHP-Quelltext # ContentLinkToTour | Start
elseif($order=="tour" && Intval($type)===3)
$sqlorder="ORDER by CAST(".pkSQLTAB_CONTENT.".content_altdat AS UNSIGNED) DESC";
elseif($order=="toure" && Intval($type)===3)
$sqlorder="ORDER by CAST(".pkSQLTAB_CONTENT.".content_altdat AS UNSIGNED) ASC";
elseif(Intval($type)===3)
$sqlorder="ORDER by CAST(".pkSQLTAB_CONTENT.".content_altdat AS UNSIGNED) ASC";
# ContentLinkToTour | End | |
Somit sollte von Anfang an, wenn man die Liste der Verweise öffnet die neuesten Einträge gelistet werden
|
|
|
|
|
|
|
|
|
|
10.10.2014 - 20:27 Uhr |
|
|
|
|
|
|
|
Ähnliche Themen |
|
|
|
|
|
|
|
|