Differences

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

english:other-enhancements:hacks:guestbook-hide_entry [2010/02/10 22:12]
Knut Heermann (flip-flop)
english:other-enhancements:hacks:guestbook-hide_entry [2018/06/03 18:09] (current)
Line 69: Line 69:
In In
<code html><!--##:Alternative AlternativText:##//--></code> <code html><!--##:Alternative AlternativText:##//--></code>
-the text is entered which will be shown in case the entry is locked.+the text is entered which will be shown in case the entry is locked, e.g. ''%%<!--##:<h2>{TIMESTAMP:d.m.Y H:i}</h2> :##//-->%%''.
**%%<!--##%%:**AlternativeText AlternativeText**:%%##//-->%%** has to be set anywhere between **%%<!--##Begin-{DBID}##//-->%%** and **%%<!--##End-{DBID}##//-->%%** . \\ **%%<!--##%%:**AlternativeText AlternativeText**:%%##//-->%%** has to be set anywhere between **%%<!--##Begin-{DBID}##//-->%%** and **%%<!--##End-{DBID}##//-->%%** . \\
Line 84: Line 84:
  <!--##Begin-{DBID}##//-->   <!--##Begin-{DBID}##//-->
-    <!--##:<h1 style="padding-top:10px">Entry on {TIMESTAMP:m/d/Y H:i} by {NAME}</h1>:##//-->+   <!--##:<h1 style="padding-top:10px">Entry on {TIMESTAMP:m/d/Y H:i} by {NAME}</h1>:##//-->
    <h1><span class="entryID">entry #{ID} by </span>[URL]<a href="{URL}" target="_blank">{NAME}</a>[/URL][URL_ELSE]{NAME}[/URL_ELSE]</h1>     <h1><span class="entryID">entry #{ID} by </span>[URL]<a href="{URL}" target="_blank">{NAME}</a>[/URL][URL_ELSE]{NAME}[/URL_ELSE]</h1>
Line 111: Line 111:
\\ \\
-==== Codeschnipsel (Hack) ====+==== Code snippet (hack) ====
**File name:** cnt18.article.inc.php \\ **File name:** cnt18.article.inc.php \\
Line 193: Line 193:
%%<!--##:SUBSTITUTETEXT SUBSTITUTETEXT SUBSTITUTETEXT:##//-->%% \\ %%<!--##:SUBSTITUTETEXT SUBSTITUTETEXT SUBSTITUTETEXT:##//-->%% \\
**%%<!--##End-{DBID}##//-->%%** \\ **%%<!--##End-{DBID}##//-->%%** \\
-stehen. 
</note> </note>
Line 199: Line 198:
==== PHP ==== ==== PHP ====
 +
 +In the area **%%CUSTOM VAR ==========================%%** \\
 +an additional text can be entered in **$replacement_text**, which is issued when an item is not yet released. This text will be displayed only if in template also the tag ''%%<!--##:AlternativText AlternativText:##//-->%%'' is used.
 +
 +----
 +\\
**File name:** cp_trig_guestbook.php \\ **File name:** cp_trig_guestbook.php \\
Line 252: Line 257:
// additional replacement text // additional replacement text
- $replacement_text = ' <span style="color:red"> &nbsp;[[Der Eintrag wird bearbeitet]]</span><br><br>'.LF;+// $replacement_text = ' <span style="color:red"> &nbsp;[[Der Eintrag wird bearbeitet]]</span><br><br>'.LF; 
 + $replacement_text = ' <span style="color:red"> &nbsp;[[The entry will be processed]]</span><br><br>'.LF;
// ===================================== // =====================================
english/other-enhancements/hacks/guestbook-hide_entry.1265836364.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