Replacement Tags Helper
Replacement Tags Helper
Very simple and helpful hack... display Replacement Tags in admin area (in left column). You can copy (on click) Replacement Tag value into the clipboard (meaning you just CTRL-V to paste).
UPDATED! (Dec. 28, 2006)
Updated by flip-flop with new replacement tags.
UPDATED! (Aug. 11, 2006)
Script is upgraded again, I added the call to the tooltips with short instruction for each tag. Just move your mouse over tag name and tooltip appears.
Also, reduced script size 11kb.
UPDATED! (Sep. 27, 2005)
Added modification by Rick(rtilghman)..now Replacement Tags Helper is displayed only in the admin section where admin work on the site or in the article sections.
Added some new tags and reduced script size from 16 to 10 kb.
UPDATED! (Nov. 17, 2004)
Added modification by Neelix..now GT MOD section of Replacement Tags Helper could display the actual styles that admin has set up.
UPDATED! (Oct. 27, 2004)
Added Replacement Tags for Company Mod.
--------------------------------------------------------
Screenshots:
Download:
Replacement_Tags_Helper.zip
Read the install.txt file to install.
UPDATED! (Dec. 28, 2006)
Updated by flip-flop with new replacement tags.
UPDATED! (Aug. 11, 2006)
Script is upgraded again, I added the call to the tooltips with short instruction for each tag. Just move your mouse over tag name and tooltip appears.
Also, reduced script size 11kb.
UPDATED! (Sep. 27, 2005)
Added modification by Rick(rtilghman)..now Replacement Tags Helper is displayed only in the admin section where admin work on the site or in the article sections.
Added some new tags and reduced script size from 16 to 10 kb.
UPDATED! (Nov. 17, 2004)
Added modification by Neelix..now GT MOD section of Replacement Tags Helper could display the actual styles that admin has set up.
UPDATED! (Oct. 27, 2004)
Added Replacement Tags for Company Mod.
--------------------------------------------------------
Screenshots:
Download:
Replacement_Tags_Helper.zip
Read the install.txt file to install.
Last edited by Goran on Fri 29. Dec 2006, 13:44, edited 10 times in total.
Hi Goran, nice tool.
Next would be to click on the RT and copy them in the editing article
Next would be to click on the RT and copy them in the editing article
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
Hi Goran,
that's great.
I uploaded the new version, can click, but nothing more happens... using IE.
How to use it exactly?
I will play a bit more...
Thanks for this nice little thing.
that's great.
I uploaded the new version, can click, but nothing more happens... using IE.
How to use it exactly?
I will play a bit more...
Thanks for this nice little thing.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
Ok, new version is out, removed possibility to click on the Replacement Tags Button and copy code in the editing area (works only with html textarea) .
-------------------------------------------------
Now you can copy (on click) Replacement Tag value into the clipboard (meaning you just CTRL-V to paste).
1. Click on the Replacement Tag (it should select and copy the code to the clipboard),
2. Paste (CTRL-V) the value into the textarea.
What's so cool about this? It saves the user from having to highlight and manually select the input, which saves time, saves keystrokes, mouseclicks and movements, and reduces the chance of an incomplete select.
NOTE:
Works in IE5+, for Firefox, Opera or Mozilla user Replacement Tag is only highlighted on click.
-------------------------------------------------
Now you can copy (on click) Replacement Tag value into the clipboard (meaning you just CTRL-V to paste).
1. Click on the Replacement Tag (it should select and copy the code to the clipboard),
2. Paste (CTRL-V) the value into the textarea.
What's so cool about this? It saves the user from having to highlight and manually select the input, which saves time, saves keystrokes, mouseclicks and movements, and reduces the chance of an incomplete select.
NOTE:
Works in IE5+, for Firefox, Opera or Mozilla user Replacement Tag is only highlighted on click.
-
- Posts: 1
- Joined: Mon 8. Nov 2004, 22:34
- Location: Manchester, England
- Contact:
replacement tags listing to the docu.fhss.de page
brans wrote:maybe we could enhance this script by simply linking directly from the replacement tags listing to the docu.fhss.de page ?!?
Only just found this...really great idea, I'll take a look at this and see what I can do with it.sigaq wrote:perhaps the {GT:style} section of your mod could display the actual styles that admin has set up ?
The documentation at http://www.phpwcms-docu.de/index.php?english_version is so this would be a useful addition for all phpwcms users....
api-devlab
-
- Posts: 23
- Joined: Thu 28. Oct 2004, 13:04
- Location: London
-
- Posts: 23
- Joined: Thu 28. Oct 2004, 13:04
- Location: London
OK - here is it:sigaq wrote: Another suggestion for you - perhaps the {GT:style} section of your mod could display the actual styles that admin has set up ?
1'st: download the mod by Goran!
---[open]---
tags.php
---[find]---
<input class="input_tags" accesskey="x" style="width:165; height:18px;" onfocus="if(window.fExample) window.fExample(this)"
onclick="if(window.fExample) window.fExample(this);" value="{GT:style} » Hello!{/GT}">
---[replace]---
Code: Select all
<?php
function getGTStyles()
{
global $db;
//the stylnames are stored in the table: [phpwcms_fonts_styles] as style_name
$sQuery = 'SELECT style_name FROM '.DB_PREPEND.'phpwcms_fonts_styles ORDER BY style_name';
if (isset($db) && $db)
$hResult = mysql_query($sQuery, $db);
else
$hResult = mysql_query($sQuery);
$ret=array();
while ($row=mysql_fetch_object($hResult))
{
$ret[]=$row->style_name;;
}
//update this
if (!$ret)
{
$ret[]='<stylename>'; //if no style is defined the result is the generic name!
}
return $ret;
}
$sStyles=getGTStyles();
for ($i=0;$i<count($sStyles);$i++)
{
echo '<input class="input_tags" accesskey="x" style="width:165; height:18px;" onfocus="if(window.fExample) window.fExample(this)"';
echo 'onclick="if(window.fExample) window.fExample(this);" value="{GT:'.$sStyles[$i].'}Example!{/GT}">';
}
?>
Last edited by Neelix on Wed 17. Nov 2004, 18:15, edited 1 time in total.
Erfahrung ist das, was man besitzt, kurz nach dem es gebraucht wurde.
Warning: I have no foggiest idea of English/German, but I do
-ha{p}{p}y day/night/dia/noche-
Warning: I have no foggiest idea of English/German, but I do
-ha{p}{p}y day/night/dia/noche-