Hi folks
I know this has been posted before, but I couln't find anything usefull. Is there a way (maybe a plugin) to use with fckeditor, that will enable me to insert internal links in the text area. I mean, in sted of the url (http//.....) wil have to be something like mypage.php?id=x..
I've found this plugin (http://sourceforge.net/forum/message.php?msg_id=3025043), but since there's no readme file on how to integrate it, it might be that I install this "crapy" plugin wrong, cause it's not working. All I'm getting in the popup is "undefined".
So, if someone can help me...
By the way, where is the documentation for plugin integration. On the wikki site there's only a blank page.
Thanks folks!
Sat, 07/16/2005 - 04:36
#1
RE: internal links from mysql
RE: internal links from mysql
hi,
take a look at the thread:
http://sourceforge.net/forum/forum.php? ... _id=257180
summary:
1. Create your dialog that presents the links from the database using PHP. Lets assume you call it /linkbrowser.php
2. Edit fckconfig.js and change the "FCKConfig.LinkBrowserURL" line to:
FCKConfig.LinkBrowserURL = "/linkbrowser.php"
Now when inserting a link into the editor using the link dialog, you'll see a button that says "Browse Server". Clicking on it will bring up your special php page to enable you to select a database link.
In your PHP page, you can pass the selected URL back to the hyperlink dialog with this line of javascript.
window.top.opener.SetUrl( strURL ) ;
final:
switch protocol-type from http:// to <other> to avoid ruining your internal link with http://-geginning or use absolut paths.
make sure that the path to your linkbrowser.php is in set right (compare to the default-browser-link).
thats all magic that is in there.
beside: i still want to switch the protocol-type select field but do not know how to corespond to it...
greetings, blake
RE: internal links from mysql
I have tried to make my own linkpage using the "turitorials" but i cant get the damn thing to work, nothing happens. And i still get the old browser window where you select files.

Im using ASP for the link display file and i have followed instructions carefully.
I need some serious help here thank you
RE: internal links from mysql
I managed to make a custom link inside the popup for links, next to "Browse server" button. It opens my asp page, and then i send along the url with this script,
<script>
window.top.opener.SetUrl( '<%=strURL%>' ) ;
window.close();
</script>
Works like a charm, now im going to add a string for setting correct link typ eg. "Http://" to "<Other>"
RE: internal links from mysql
Next to the "Browse Sever" button I've added another button, which displays a list of all my internal pages.
When you click on one of these URL's it is passed through to this function.
Work out the rest yourself
win=window.opener;
function SelectEditorPage(strMenuAddress)
{
win.document.getElementById('txtUrl').value = strMenuAddress;
win.document.getElementById('cmbLinkProtocol').value='';
window.close();
}
(cmbLinkProtocol = '' (nothing) is other)