1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

General Question on Better Editor Function - Link Titles

Discussion in 'XenForo Questions and Support' started by web09, Dec 12, 2012.

  1. web09

    web09 Member

    Hi, I'm still quite new to the sw, so trying to figure out what's possible not possible.

    My question is that with the standard editor of Xenforo it doesn't seem to be an option to title the links within a post, just "enter link url" using editor, no target possible, no naming or titleing of the link itself.

    So, as of now, what is the best option to have this basic feature in the editor? I've found Adam's post here
    http://xenforo.com/community/threads/ckeditor-4-0-gold.41683/#post-449124
    And started installing some of the addons refererenced in that thread, but as soon as I do this, then the basic editor popup quits working.

    So I guess I'm asking from some of you more experienced folks..what's the best way to get better editor functionality in Xenforo, and is there a solution (even if it's paid) so that it's currently working and bugproof at the current time?

    Thanks!
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Are you talking about having links like this?
    Google

    It's easy to create these. Type the text that you want, then highlight it. Then click the "link" button. This brings up the "enter link url" box. Once you've typed the URL, it will turn the word you've highlighted into a link.
     
    Jake Bunce likes this.
  3. Slavik

    Slavik XenForo Moderator Staff Member

    I dont get what you mean by titling of links?

    You mean something like Google ?

    *Edit* Frikkin ninjaed, with the same link aswell
     
    Jake Bunce and Chris D like this.
  4. web09

    web09 Member

    Hi Chris and Slavik... You all are so awesome ...getting tips and help here is the BEST...

    Here's what I'm trying to do:

    In Wordpress admin screen, you can add links to a post like this:
    Writing in the post is like this, and some people use Google (in wordpress I click on link and up comes popup with url: which I set to: www.google.com , but I can also set a Title for that link so that Google is highlighted, but the actual title of the link is called Search Engine, I can also set the link to open in new window, and I think things like CKeditor has this type of functionality.

    I would like more ability (at minimum what wordpress offers in terms of their editor so that more control options are available on links within the editor)

    So sometimes you may want the title of your link to be either the actual url itself, or the word itself used in the post, but other times, I may need the ability for on mouseover, for the actual title of the link to be set to something other than the actual word in the document.

    Here's a better example using code:

    The title attribute may be set for both A and LINK to add information about the nature of a link. This information may be spoken by a user agent, rendered as a tool tip, cause a change in cursor image, etc.

    Thus, we may augment a previous example by supplying a title for each link:
    <BODY>
    ...some text...
    <P>You'll find a lot more in <A href="chapter2.html"
    title="This can be called whatever you want">chapter two</A>.
    <A href="./chapter2.html"
    title="This too can be customized.">chapter two</A>.
    See also this <A href="../images/forest.gif"
    title="GIF image of enchanted forest">map of
    the enchanted forest.</A>
    </BODY>


    I think the CKeditor will do this, if there is a good way to get it installed with Xenforo. If not, is there any other option that you can recommend that gives more flexibility to set anchors and such within the editor?

    Thank you both!
     
  5. MagnusB

    MagnusB Well-Known Member

    The title is stripped out of xF's implementation of TinyMCE, pretty sure it supports it default. You will most likely require an addon to use it. As for target, it always default to blank (new page), as you don't want people to leave your page. This is also something that is stripped out and again would require an addon. I do not think this functionality is available, but you could request it.
     
    Jake Bunce likes this.
  6. web09

    web09 Member

    Here's a screenshot which shows the Wordpress ability to set a 'title' of a link wordpresslinkfunctionality.gif
     
  7. web09

    web09 Member

    Magnus, thanks for the feedback. If anyone knows an add/on that includes this...seems like a valuable feature:)

    I'm fine with having the default go to a new page, some of the other editors give you a choice, but I like new window links by default anyway.

    The big issue is to set the title...
     
  8. MagnusB

    MagnusB Well-Known Member

    All these features exist in TinyMCE, and I know they are available in xF, they are just suppressed. Your best bet would be to ask Cedric include it in his fix: http://xenforo.com/community/resources/tinymce-fix.1162/

    He has done some good work on getting TinyMCE up to scratch in xF.
     
    Jake Bunce likes this.
  9. web09

    web09 Member

    Terrific, thank you Magnus, I will send Cedric a message. I was going to buy his upgrade mod anyway, so maybe that would work just great. Appreciate your suggestions and help. I'm getting ready to launch finally and have a few more loose ends to tie up.
     
  10. James

    James Well-Known Member

    I just highlight the piece of text that I want to turn into a link, click the link button then the title of the URL becomes whatever I highlighted.
     
    Jake Bunce likes this.
  11. web09

    web09 Member

    Hi James, thanks for responding. That's fine on a very basic level. I need just a bit more functionality than just linking to a particular term.
     
  12. cclaerhout

    cclaerhout Well-Known Member

    Well, I've been contacted (thank you guys) and I've just realized I wrote the same answer than Chris & Slavik wrote... with the same example... Google is a monster.

    Direct link: http://www.xenforo.com/
    Named link: XenForo
    Code:
    Code:
    [url=http://www.xenforo.com/]XenForo[/url]
    Or may be I don't understand the question...
     
    Jake Bunce likes this.
  13. MagnusB

    MagnusB Well-Known Member

    He is after the title option in <a href="http://www.xenforo.com" title="Forum software">Xenforo</a>
    title.jpg
     
    cclaerhout likes this.
  14. cclaerhout

    cclaerhout Well-Known Member

    More information about this title tag and SEO.

    For my own forums I don't need this. Now the easiest and fastest way to implement this is to create a new bbcode (ie:link instead of url) with two options:
    [link=My Title is this|My description is that]link[/link]
     
    Jake Bunce likes this.
  15. web09

    web09 Member

    Thank you Cedric, that's going to be an awful lot of typing having to type in that bb code every single time I need to put a link into a post. Going to have to come up with a workaround even if it means having someone help implement another editor into Xenforo. Wonder why the TinyMCE feature that already included this was suppressed?

    It's also not feasible for my users to have to type in that bb code each time. More manual typing and coding = more errors.

    Thanks for the info though. I'll get in touch with you directly to see if the feature that is already supposed to be in TinyMCE can be added back or if there is just a way to pay for having the other editor ie: Ckeditor used and pay for that option.
     
  16. cclaerhout

    cclaerhout Well-Known Member

    There's nothing to do with TinyMCE. XenForo is using his own TinyMCE plugin for the url popup box. Modifying this plugin won't be enough. It would require to modify the official XenForo bbcode url php callback.

    The easiest solution as I told you would be to create a new bbcode. You could create a basic button with the BBcode Custom Manager. I guess you would like more (like on Wordpress) but it would require to create a dedicated popup window for your new bbcode. And now I don't have time to do this.
     
    Jake Bunce likes this.
  17. Adam Howard

    Adam Howard Well-Known Member

    web09

    I got your PM, but thought I would reply publicly here in this thread.

    The CKeditor Project for XenForo was never finished and in the end abandon / discontinued, as noted as such here; http://xenforo.com/community/threads/alpha-and-beta-testers-for-ckeditor.34413/page-3#post-445003

    cclaerhout has done the next best thing and has further developed and updated TinyMCE

    http://xenforo.com/community/resources/tinymce-fix.1162/
    http://xenforo.com/community/resources/tinymce-enhancements.1219/
    http://xenforo.com/community/resources/advanced-bbcodes-toolbar.623/

    http://xenforo.com/community/resources/custom-bb-code-manager.173/

    With these combine add-ons, we're almost able to achieve all the default buttons and settings for the stock version of TinyMCE as seen here

    http://www.tinymce.com/tryit/full.php

    Not exactly there yet, but almost. And overall that was my desired goal (to have a full editor). I'm hoping that development will continue and it will be achievable in the future.

    cclaerhout would be who I would recommend if you're seeking any custom work in regarding an editor. He has proven himself to be very skilled in this aspects and has my complete faith and respect in that general field.
     
    Jake Bunce likes this.
  18. web09

    web09 Member

    Adam, thank you for the update on the CKeditor. Still learning what's possible with Xenforo, and I will be in touch with Cedric to see if he can suggest a workaround for the title issue. (Which I think would benefit everyone to have this feature implemented, so I'll post an update if it's financially feasible to be done.) Appreciate your helpful posts and details.

    P.S. Looks like the TinyMCE sample you posted does already have the title feature....Cedric says though it's more complex than what he has time to fix for now. I will have to see what I can do about a workaround for now, but in the meantime I'm also hoping for a full editor at some point. Would really add to the value of the sw:) Thanks for all your efforts thus far.
     
    Adam Howard likes this.
  19. cclaerhout

    cclaerhout Well-Known Member

    URL Tag with Title field
     
    Adam Howard likes this.
  20. web09

    web09 Member

    Cedric, that is going way above and beyond. THANK you so very much! Truly appreciated. Many, many thanks for taking the time to add this in.
     
    Adam Howard likes this.

Share This Page