How do I make the title of a topic a clickable link? Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
4 posters

    How do I make the title of a topic a clickable link?

    avatar
    Fae
    Forumember


    Posts : 34
    Reputation : 1
    Language : english

    How do I make the title of a topic a clickable link? Empty How do I make the title of a topic a clickable link?

    Post by Fae May 15th 2013, 4:17 am

    On the forums, is it possible to make the topic title a link for an url to another site?

    Thanks.
    JennyorAlice
    JennyorAlice
    Active Poster


    Female Posts : 1204
    Reputation : 55
    Language : U. S. English
    Location : U. S. A.

    How do I make the title of a topic a clickable link? Empty Re: How do I make the title of a topic a clickable link?

    Post by JennyorAlice May 15th 2013, 4:31 am

    See if this will work for you:

    Code:

    [url=site url goes here]Topic Title[/url]

    Where it says "site url goes here", you'll put the URL for the site there in it's place.

    Where it says "Topic Title", you'll put the title of the topic there in it's place.


    Try that and see if that helps.
    avatar
    Fae
    Forumember


    Posts : 34
    Reputation : 1
    Language : english

    How do I make the title of a topic a clickable link? Empty Re: How do I make the title of a topic a clickable link?

    Post by Fae May 15th 2013, 5:07 am

    No, that didn't work. =/

    Instead, it just showed the code as well.. including the link and everything. When I clicked on it, it acted like any other post and opened up the topic.
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    How do I make the title of a topic a clickable link? Empty Re: How do I make the title of a topic a clickable link?

    Post by Sanket May 15th 2013, 11:30 am

    I don't think topic title can be modified.
    Ultron's Vision
    Ultron's Vision
    Forumember


    Male Posts : 634
    Reputation : 45
    Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
    Location : Vienna, Austria

    How do I make the title of a topic a clickable link? Empty Re: How do I make the title of a topic a clickable link?

    Post by Ultron's Vision May 15th 2013, 11:43 am

    You could try using jQuery (I will not guarantee that this will work)...

    Code:
    jQuery(document).ready(function(){

    if(jQuery('.t-title').html().indexOf('Your topic title here')>-1){

    jQuery('.t-title').html().indexOf('Your topic title here').html('<a href="your link here">Your topic title here</a>');

    });

    });

    I'm not sure if the method chaining does what I want it to do, but you can try Wink