I would like to give users a way, by default to have in the form (among others) html tags for link.
(In Site->configuration must be set "no editor" :-(( ).
So, the form in frontend must contain something like:
<a href = "
replace this! ->>
LINK HERE (such as: http://www.lifeline.de)
"target =" _blank ">More in the Source</a> In "submitcontent" in the field "HTML form:" I have:
<div class="form_item"> <div class="form_element cf_textarea" style="width:600px;"> <label class="cf_label"> text: </ label>
<? php
$editor =& JFactory::getEditor();
echo $editor->display ( 'full text',
'
...
<a href = "
replace this! ->>
LINK HERE (such as: http://www.lifeline.de)
"target =" _blank ">More in the Source</a>
' , '80%' ,' 350 ' , '55' , '20 ' , False);
?> But in frontend in form I get:
<a href = "/directory/
replace this! ->>
LINK HERE (such as: http://www.lifeline.de)
"target ="_blank ">More in the Source</a> where "directory" in "<a href ="/directory/" is the name of the joomla's directory.
What is wrong by me, pls.
Thanks.
I don't understand what you are trying to do here - but I do see that there are extra spaces in your code again <?php & $editor = & JFactory::getEditor(); . . .
Bob
I don't understand what you are trying to do here - but I do see that there are extra spaces in your code again <?php & $editor = & JFactory::getEditor(); . . .
OK, the spaces came by copying :-((.
-------
my users must enter a link in the article.
in WYSIWYG - Editors there is a command like "Insert / Edit link".
In "submitcontent" form I need to use an "a href"-tag.
I want give to the user in the FRONTEND form, so to speak, a kind of "frame", where he could add a real link.
So, the beginning of the tag:
<a href = " , further an empty space where user enters link
, then the end of the tag:
"target ="_blank ">More...</a> This link must appear later in the article, as always, as the link "More..."
But instead of
<a href="by the execution of
<?php
$editor =& JFactory::getEditor();
echo $editor->display( 'fulltext',
'
<a href="
HERE LINK
" target="_blank">More...</a>
' , '80%', '350', '55', '20', false ) ;
?>I get
<a href = "/directory/ and the link, of course, doesn't work.
I can attach the revised form :-)).
Thanks.
This is very complicated - I think that there are too many factors that are trying to modify the code :-(
Could you use a place holder like {##LINK##}Please add your link here{##END_LINK##} and then use a string replace in the OnSubmit box to change this into an html link??
Bob
Firstly, I would say, that we have paid for the License for your excellent extension (and support!).
Hi lemur,
This is very complicated - I think that there are too many factors that are trying to modify the code :-(
Could you use a place holder like {##LINK##}Please add your link here{##END_LINK##} and then use a string replace in the OnSubmit box to change this into an html link??
Bob
According to your council I have browsed the forum and found something about "place holder".
(For example, hear).
But not something exactly suitable :-(. ("This is very complicated .." -(C))
I would be very grateful if you could write to me in detail what code and where I need to enter to make a link "wildcard" in a form.
If this desire is to cocky, can you tell me, please, where i can read about it. :-(
Thanks,
Leon.
I can't understand whats needed here exactly, you need to load the editor with some content ? you need to let the user insert a link ? they can already do this with the insert link button as you said!
give me more info please
Regards
Max
As I understand it, lemur wants to pre-load the editor with a template including space for a 'more' link - presumably to an external web-site.
Bob
As I understand it, lemur wants to pre-load the editor with a template including space for a 'more' link - presumably to an external web-site.
Bob
You are righte.
I have progressed with a placeholder, not to the end yet.
At all events, thanks to all and: the beautiful Christmas! 😀 😀
Leon
regards
Max
but I still have the problem.
I use in FormHTML:
- URL field
<div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">URL:</label><input class="cf_inputbox required" maxlength="150" size="30" id="url_0" name="url_0" type="text"></div><div class="clear"> </div></div>- Placeholder {url1} in Editor call
<?php
$editor =& JFactory::getEditor();
echo $editor->display( 'fulltext', '
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><div style="display:none;">{url1}</div>' , '80%', '350', '55', '20', false ) ;
?>I have in OnSubmit
<?php
JRequest::setVar('fulltext' , str_replace('{url1}', '<a class="readon" href="'.JRequest::getVar('url_0').'" target="_blank" >Mehr in der Quelle: </a>', JRequest::getVar('fulltext'))); ?>But once I enter the article, I have in it no link as "my-link", that I've entered in URL field, but as "http://my-domaine/my-link"
How can I change this?
Happy New Year!
Leon
sorry, but why do you place this code :
<?php
$editor =& JFactory::getEditor();
echo $editor->display( 'fulltext', '
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><div style="display:none;">{url1}</div>' , '80%', '350', '55', '20', false ) ;
?>???
why do you place this code :
<?php
$editor =& JFactory::getEditor();
echo $editor->display( 'fulltext', '
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><div style="display:none;">{url1}</div>' , '80%', '350', '55', '20', false ) ;
?>I have added in your "submitcontent" form only
' <br />...<br /><div style="display:none;">{url1}</div>', becouse of i don't now :-( an another way to place a placeholder in editor field.
---------
So, else more what i need:
to give a user a possibility to inpute in a certain field of the form an URL, that will be transform in the link in an article.
As i described in my first post and in the last post, i get in the article
(regardless of whether I use in the form
<a href = "my-link" target =" _blank ">More in the Source</a> or a placeholder
{url1})
a link like
http://my-domaine.net/my-link instead of
http://my-link.From where comes "my-domaine.net/", please?
Or better 🙂, what code must I use?
I need the solution urgent.
Thank you,
Leon.
I must excuse me, because of my problem is not connected with CronoForm probably.
(I have not noticed it timely ! 😟 )
I can not insert such a link in any editor, do not know why.
when a link is inserted in an article,
NOT with the link button of the editor, but with HTML
<a href="url.de">LINK</a>I get rather than LINK
url.de http://my-domain/url.deI don't now, how can this my-domain be removed.
Excuse once more,
Leon
Regards
Max
