Differences

This shows you the differences between two versions of the page.

english:phpwcms_replacer_rts:frontend_init:cp_trigger:filecenter-text-in-image-cps:images-div_images-special [2012/02/06 22:15]
Knut Heermann (flip-flop)
english:phpwcms_replacer_rts:frontend_init:cp_trigger:filecenter-text-in-image-cps:images-div_images-special [2018/06/03 18:09] (current)
Line 14: Line 14:
\\ \\
-===== Beispiel: Bilder <div> =====+===== Example: imagesr <div> =====
**Frontend:** **Frontend:**
Line 22: Line 22:
\\ \\
-**Dateizentrale:**+**Filecenter:**
{{:deutsch:ersetzer_rts:frontend_init:cp_trigger:dateizentrale-text-in-bilder-cps:images_info_copyright01_be_dateizentrale_01.gif|}} {{:deutsch:ersetzer_rts:frontend_init:cp_trigger:dateizentrale-text-in-bilder-cps:images_info_copyright01_be_dateizentrale_01.gif|}}
Line 28: Line 28:
\\ \\
-==== Bildunterzeile: ====+==== Image caption: ====
<code> <code>
Line 34: Line 34:
</code> </code>
-==== Im Template: ====+==== In the template: ====
<code html> <code html>
Line 57: Line 57:
\\ \\
-===== Beschreibung: =====+===== Description: =====
-Die beiden TAGs+The two TAGs
  * **{XFILE_INFO:{IMAGE_ID}}**   * **{XFILE_INFO:{IMAGE_ID}}**
  * **{XFILE_COPYR:{IMAGE_ID}}**   * **{XFILE_COPYR:{IMAGE_ID}}**
-können an jeder Stelle der Templates eingesetzt werden.+can be used anywhere in the template.
Line 74: Line 74:
Forum: -- Forum: --
-**Autor:** K.Heermann (flip-flop) http://planmatrix.de \\+**Author:** K.Heermann (flip-flop) http://planmatrix.de \\
**CMS Version:** >= 1.4x \\ **CMS Version:** >= 1.4x \\
**Version:** V1.0 //(05.02.2012)// \\ **Version:** V1.0 //(05.02.2012)// \\
-**Bedingung:**  -> [[http://www.phpwcms-docu.de/confincphp_de.phtml|/config/phpwcms/conf.inc.php]] \\+**Condition:**  -> [[http://www.phpwcms-docu.de/config_files.phtml|config/phpwcms/conf.inc.php]] \\
  * $phpwcms['allow_ext_init']  = 1;   * $phpwcms['allow_ext_init']  = 1;
Line 90: Line 90:
===== PHP: ===== ===== PHP: =====
-Datei: **template/inc_script/frontend_init/cp_trigg_images_info_copyright.php**+File: **template/inc_script/frontend_init/cp_trigg_images_info_copyright.php**
<code php  |h cp_trigg_images_info_copyright.php |h> <code php  |h cp_trigg_images_info_copyright.php |h>
Line 115: Line 115:
function TRIGG_CP_IMAGE_READ_FILE_INFO_COPYR_V10($text, & $data) { function TRIGG_CP_IMAGE_READ_FILE_INFO_COPYR_V10($text, & $data) {
   
- // Der richtige CP:  image <div> (29) / image special (31)+ // The right CP:  image <div> (29) / image special (31)
// and Tag available? // and Tag available?
Line 121: Line 121:
( strpos($text, '{XFILE_INFO:') !== FALSE OR strpos($text, '{XFILE_COPYR:' ) !== FALSE ) ) // TAG is set ?  // TAG vorhanden? ( strpos($text, '{XFILE_INFO:') !== FALSE OR strpos($text, '{XFILE_COPYR:' ) !== FALSE ) ) // TAG is set ?  // TAG vorhanden?
{ {
- // TAGs im Text selektieren+ // Select TAGs in the text  // TAGs im Text selektieren
preg_match_all ('/(\{XFILE_INFO:|\{XFILE_COPYR:)(\d+)\}/is', $text, $matches); preg_match_all ('/(\{XFILE_INFO:|\{XFILE_COPYR:)(\d+)\}/is', $text, $matches);
if(isset($matches['2'])) { if(isset($matches['2'])) {
- $info = getfileinformation($matches['2']);  // Daten aus Dateizentrale holen+ $info = getfileinformation($matches['2']); // Fetch data from file center // Daten aus Dateizentrale holen
foreach ($info as $key=>$value) { foreach ($info as $key=>$value) {
- $value['f_longinfo']  = nl2br($value['f_longinfo']);  // Zeilenumbruch setzen wenn vorhanden+ $value['f_longinfo']  = nl2br($value['f_longinfo']); // Put line breaks if available // Zeilenumbruch setzen wenn vorhanden
- // TAG im text ersetzen+ // Replace TAG in the text  // TAG im text ersetzen
$text = str_replace('{XFILE_INFO:' .$value['f_id'].'}', $value['f_longinfo'], $text); $text = str_replace('{XFILE_INFO:' .$value['f_id'].'}', $value['f_longinfo'], $text);
$text = str_replace('{XFILE_COPYR:'.$value['f_id'].'}', $value['f_copyright'], $text); $text = str_replace('{XFILE_COPYR:'.$value['f_id'].'}', $value['f_copyright'], $text);
english/phpwcms_replacer_rts/frontend_init/cp_trigger/filecenter-text-in-image-cps/images-div_images-special.1328562928.txt.gz · Last modified: 2018/06/03 18:08 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0