Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Article Manager 1 Add-ons:
War needs (links insert)

 

 


noza
User

Mar 20, 2003, 5:52 PM

Post #1 of 20 (9691 views)
Shortcut
War needs (links insert) Can't Post

As articles need to be posted from all kind of sources, the ability to insert a link attribute target="_blank" is really a must... Anyway to get this going...??? making the change in long articles with multiple links is very tedious as information pours in...


(This post was edited by noza on Mar 22, 2003, 2:50 PM)


Luke
Staff / Moderator


Mar 21, 2003, 2:03 PM

Post #2 of 20 (9670 views)
Shortcut
Re: [noza] War needs [In reply to] Can't Post

Hi Noza,

Thanks for posting! :)

Are these links in the body of your article (meaning you enter them into the content field)? How are you adding the links? Do you think you could provide me with a link to an article that includes links so I can get a better understanding of what you're trying to do?

Luke Holzken
Product Development


Benjamin
Staff


Mar 22, 2003, 11:54 AM

Post #3 of 20 (9654 views)
Shortcut
Re: [noza] War needs [In reply to] Can't Post

Hey Noza -

Actually, I wrote a little hack for the link popup which allows you to enter in a target value. The drawback is that at the moment, it doesn't work with images.

But if you're still interested, post me back and I'll run over the steps you'll need to go through to get it running in your Article Manager. :-)
Ben
interactivetools.com

(This post was edited by Benjamin on Sep 18, 2003, 9:07 AM)


noza
User

Mar 22, 2003, 12:17 PM

Post #4 of 20 (9650 views)
Shortcut
Re: [Benjamin] War needs [In reply to] Can't Post

Looks good, please do tell us how to implement.


Benjamin
Staff


Mar 22, 2003, 12:23 PM

Post #5 of 20 (9649 views)
Shortcut
Re: [noza] War needs [In reply to] Can't Post

Okay, this is what you'll need to do:

1. Download a new editor.js file from here.
2. Download the insert_link.html file from here.
3. Upload the new editor.js file onto your server - it will be in an /images/htmlarea directory. Overwrite the old editor.js file (but make a backup first!!).
4. Upload the insert_link.html file into the /popups subdirectory within the /images/htmlarea dir. Make sure it has read permissions for everyone (e.g. 644 would be fine).

Then, just go into your Article Manager and do a little test... if all's well, it should work straight away! :-)

Post me back!
Ben
interactivetools.com


noza
User

Mar 22, 2003, 1:03 PM

Post #6 of 20 (9644 views)
Shortcut
Re: [Benjamin] War needs [In reply to] Can't Post

Ben, just to not get confused Crazy

The links you posted take me to the same page "2" of the same posting...

There is one attachment posted Feb. 22 as editor.js (48.4 KB)

Then there are at least three attachments posted 2/22, 3/2, 3/10 of insert_link.html (4.80 KB)

CrazyBlush I'm going for the older postings... right?

UPDATE: I downloaded the above... but the one used now read Ver. 2.03 while the dowloaded with the "target" option reads 2.02?? is the : " // insert link (modified) " the only change? Am I trading a newer version (2.03) for the older but the mod??

UPDATE: I just copied and pasted the "// insert link (modified)" lines into Ver.2.03. It seems to work... Did I do the right thing ??

One thing I have noticed is that unlike the original 2.03 editor.js, when you select a link already in the article and click on the "link" button... the pop-up already had the URL typed in it... HOWEVER with the modified version... I select a word (alreday linked) and the pop up does not call up the URL (already typed in there: href="http//...", therefore you have to re-type it... SO, if I'm right when I copy and paste a long list of links... I now have the option to add a TARGET but have to re-type every URL?? Pirate Are we confused yet?? :)
  1. Try the original Ver.2.03
  2. Insert a link
  3. The go back and modify it (you will see how the pop calls up the URL already typed)
  4. NOW try the same with the modified version...
  5. The URL is not re-called.









UPDATE: I just went to your tester page:

It works fine... So I guess there is more to it other than just coping and pasting the "// insert link (modified)" lines in the editor.js Anyway to post a current 2.03 with the mod? or which lines of code did I miss and also need to replace ??

Thank you in advance Ben...


(This post was edited by Benjamin on Sep 18, 2003, 9:06 AM)


Benjamin
Staff


Mar 22, 2003, 1:57 PM

Post #7 of 20 (9636 views)
Shortcut
Re: [noza] War needs [In reply to] Can't Post

I'm glad you checked.

The editor.js is the first editor.js on page 2 of this thread: http://www.interactivetools.com/forum/gforum.cgi?post=7462#7462 (Feb 22,)
and the insert_link.html is the one I posted on March 2nd, a few posts later.

(And don't tell anyone but, 2.02 and 2.03 were exactly the same, just some with new online documentation :-)


EDIT: Yes, don't just copy & paste those new lines mentioned in one of the forum posts into the editor.js - they were old. The editor.js mentionend above contains some different code that allows for editing existing links.

And yes, I will post a new version - but first I want to get this image linking thing sorted out, and it's taking a little longer than I suspected. Do you think you can get it going from the above info?
Ben
interactivetools.com

(This post was edited by Benjamin on Mar 22, 2003, 2:00 PM)


noza
User

Mar 22, 2003, 2:06 PM

Post #8 of 20 (9632 views)
Shortcut
Re: [Benjamin] War needs [In reply to] Can't Post

Thank you, it looks like I got the right ones... thank you very much... however, as hard headed as I am... I was comparing the code... and also replaced this part

// match tags and call filterTag
RegExp.lastIndex = 0;
var matchTag = /<\/?(\w+)((?:[^'">]*|'[^']*'|"[^"]*")*)>/g; // this will match tags, but still doesn't handle container tags (textarea, comments, etc)


contents = contents.replace(matchTag, filterTag);
contents = contents.replace(/http:\/\/www\.___relativelink___\.com\//g, "");


It helps me learn in the process... and it seems to work fine... Did I miss anything else...?

ps: 2.03 does not have the "i" button


Benjamin
Staff


Mar 22, 2003, 2:22 PM

Post #9 of 20 (9631 views)
Shortcut
Re: [noza] War needs [In reply to] Can't Post

Really! I always thought the code was identical! That's interesting to know.

Very thorough! :-) I can't think of anything you missed...
Ben
interactivetools.com


noza
User

Mar 22, 2003, 2:50 PM

Post #10 of 20 (9628 views)
Shortcut
Re: [noza] War needs [In reply to] Can't Post

To save time and if anyone wants it... attached is...

Ver. 2.03 with the "target" atribute mod (thank you Ben Laugh)

and insert_link.html

to install follow Ben's instruction posted above.Cool


(This post was edited by noza on Mar 22, 2003, 2:51 PM)
Attachments: editor.js (48.3 KB)
  insert_link.html (4.80 KB)


tobias2
New User

May 23, 2003, 11:44 PM

Post #11 of 20 (9438 views)
Shortcut
Re: [noza] War needs [In reply to] Can't Post

Hi,

The update for link targets is great. Exactly what I needed!

Do you still have an update for creating images as links?

e.g. select an image and then put it as a link.Sly


mcmurtrey
User

May 25, 2003, 7:09 PM

Post #12 of 20 (9420 views)
Shortcut
Post deleted by mcmurtrey [In reply to]

 


Donna
Staff / Moderator


May 27, 2003, 3:47 PM

Post #13 of 20 (9398 views)
Shortcut
Re: [mcmurtrey] WHAT??? ~ I'm really confused now... [In reply to] Can't Post

Hi mcmurtrey!

Thanks for the suggestion! You'll notice that we do have a thread for JavaScript add-ons here that you can take a gander at.

And I'll pass on the salary request to Ben's boss... ;)

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


MEKAEEL
User

Nov 26, 2004, 12:07 AM

Post #14 of 20 (7568 views)
Shortcut
Re: [Benjamin] War needs [In reply to] Can't Post

Hi Benjamin,

I don't know why the add-on doesn't work with me. I did everything in details but still nothing appears at all!

I can see the pop-up window ( inserts_link.html ) but when I put the link, link-text, and the target and press ok; nothing happens at all Crazy!

any suggestions?

thank you in advance,


Cliff
Staff


Nov 26, 2004, 1:44 PM

Post #15 of 20 (7558 views)
Shortcut
Re: [MEKAEEL] War needs [In reply to] Can't Post

Hi MEKAEEL,

Thanks for posting.

I tried implementing this on a local demo and didn't have any trouble at all. I've attached my WYSIWYG files in case you want to use them. All you need to do is un-zip them and move to your website.

Try using them, and let me know if that works for you Smile
Regards,
Cliff Stefanuk - Customer Service Manager
support@interactivetools.com
Attachments: wysiwyg.zip (30.7 KB)


MEKAEEL
User

Nov 27, 2004, 8:04 AM

Post #16 of 20 (7547 views)
Shortcut
Re: [Cliff] War needs [In reply to] Can't Post

Thank you cliff,

I tried your copy of the wysiwyg folder but I don't know why it's still not working!

that's really wierd!

it's ok actually don't bother. I'll try to figure out something Wink

thank you,


MEKAEEL
User

Nov 30, 2004, 5:19 PM

Post #17 of 20 (7507 views)
Shortcut
Re: [Cliff] War needs [In reply to] Can't Post

sorry Cliff but I can see that non of my popups are working fine with me! so the problem is not from your editor.js

I tried to put a completely new editor.js file but still non of the popups work!

also I checked the chmod for the files and they are 644 so I think that should be normal. I also replaced the whole wysiwyg folder with a new one but the error remains.

when I press the insert image button I get:

Code
 "An error has occurred in this dialouge      

Error: 52

'selection' is null or not an object "



when I press the full screen button it opens a blank page, the background color popup displays but doesn't work, same as the font color popup.

I went the the htmlarea forum but no one helped me and it's not the first time. Actually I wasn't going to care about it if it wasn't that serious for me, I'll appreciate your help.

thank you in advance,


Cliff
Staff


Dec 1, 2004, 9:57 AM

Post #18 of 20 (7501 views)
Shortcut
Re: [MEKAEEL] War needs [In reply to] Can't Post

Hi MEKAEEL,

Thanks for the additional details.

I think that the error you were getting there was because if a incorrect images URL in the Setup Options for the program.

With Article Manager, the "Images URL" label can sometimes be a bit of a misnomer -- the address really should be a virtual path from the web root, rather than a fully qualified URL. So where /artman/images/ works fine, http://yoursite.com/artman/images/ may not allow you to use the color picker, or the insert image tag in the WYSIWYG editor.

For example, if you login to Article Manager at the following URL:

http://www.yoursite.com/cgi-bin/artman/exec/admin.cgi

And your Images URL is set to

http://yoursite.com/artman/images/

You may get an error (depending on the server setting). The missing www is interpreted as an incorrect URL and the WYSIWYG gives you the error message.

Fortunately, it's really easy to fix! All you need to do is change the Images URL to virtual path from the web root, rather than a fully qualified URL. To do just log to Article Manager and clicked on Setup Options --> Server and change the Images URL to this:

/artman/images/

That should fix that right up, but if it doesn't just send me an email and I can take a closer look at things for you Smile
Regards,
Cliff Stefanuk - Customer Service Manager
support@interactivetools.com


MEKAEEL
User

Dec 1, 2004, 12:25 PM

Post #19 of 20 (7499 views)
Shortcut
Re: [Cliff] War needs [In reply to] Can't Post

Man I'm about to cry !

you solved it!

this problem was so annoying yet its answer was so simple! thank you so much Cliff. Thank you

best regards,

MEKAEEL


Cliff
Staff


Dec 1, 2004, 1:02 PM

Post #20 of 20 (7496 views)
Shortcut
Re: [MEKAEEL] War needs [In reply to] Can't Post

Thanks MEKAEEL,

I'm glad to hear that worked for you! You should be able to use those WYSIWYG files that I uploaded for you with out any problems.

If there is anything else that you need help with don't hesitate to post again Smile
Regards,
Cliff Stefanuk - Customer Service Manager
support@interactivetools.com

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4