By René on Wednesday, 01 January 2014
Posted in General Issues
Replies 7
Likes 0
Views 535
Votes 0
Happy New Year at all

i try to get a automatic Pre Text for Older Posts Insert. The current function add only the Link with no further explanation and that's not work so easy as it should.

please see attached screenshot
Hello Rene,

So sorry for the delay in getting back to you. As you know this is now not possible. However we will add this to the request list for review

Thanks!
·
Wednesday, 01 January 2014 22:42
·
0 Likes
·
0 Votes
·
0 Comments
·
hi Adelene, thanks for adding this to your long request list for review could you give me in the meantime a tip in wich php or js file i could insert such pre text by myself? i found the file components\com_easyblog\themes\dashboard\system\dashboard.write.search.result.php but couldn't find the function wich add the search result into my jce Editor form!?
·
Friday, 03 January 2014 01:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rene,

So sorry for the delay in getting back to you. You can go to this file

JOOMLA/components/com_easyblog/themes/dashboard/system/dashboard.write.search.result.php

and add the pretext at line 54
		<input type="button" onclick="eblog.editor.search.insert('<?php echo "insert text here" . $externalLink; ?>', '<?php echo addslashes($this->escape( $entry->title )); ?>', 'write_content');return false;" value="<?php echo JText::_('COM_EASYBLOG_DASHBOARD_EDITOR_INSERT_LINK'); ?>" class="ui-button float-r mts" />

add the text at "insert text here" as seen above. Hope this helps.

Thanks!
·
Friday, 03 January 2014 01:49
·
0 Likes
·
0 Votes
·
0 Comments
·
hi adelene..no,no there is no need for sorry..your answer was very fast

i tried your code but the words "insert text here" are not showed before link..they are added inside the href of the Linked Blog Url.
<p><a href="insert text herehttp:/www.
·
Friday, 03 January 2014 02:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rene,

Ah sorry my mistake here. Please go to the file

JOOMLA/media/com_easyblog/scripts/legacy.js

and then make the modifications at line 661
var link = '<span>Some text here</span><a href="'+value+'">'+title+'</a>';

Then go to your frontend and run

http://yoursite.com/index.php?option=com_easyblog&compile=1&minify=1

Hope this helps.

Thanks!
·
Friday, 03 January 2014 11:44
·
0 Likes
·
0 Votes
·
0 Comments
·
realy cool.. it works perfect and save a lot of time. many thanks Adelene
·
Friday, 03 January 2014 16:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rene,

You are most welcome. Glad that your issue is solved.

Thanks!
·
Friday, 03 January 2014 16:56
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post