Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Internal links


magnusj

Recommended Posts

Posted

Hi,

I am trying to implement an internal linking thingie to the FCKeditor. Problem is I have no idea how to browse the database and retrieve a link from it. He he :rolleyes:

 

I followed these instructions from the FCKeditor sourceforge forum:

 

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 ) ;

 

So... I managed to get the first part working. When I hit "Browse" in the link dialog window my "Special php page" called linkbrowser.php opens as it should. The problem is I don?t know what that page is supposed to look like. How to code it to get it to retrieve links from the database and pass them to the link dialog. I really need some cut n?paste help here.

 

Are you people good at this sort of thing? Can you help?

 

Forever grateful!

 

Magnus J

  • 4 weeks later...
  • 1 month later...
Posted

Hi again.

I thought I would give this another shot. Can anyone help me (and all osC users)? I mean, this would really make things easier for us all, would it not?

 

MJ

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...