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.

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

4 posters

Go down

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.
avatar
Fae
Forumember

Posts : 34
Reputation : 1
Language : english

View user profile

Back to top Go down

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.
JennyorAlice
JennyorAlice
Active Poster

Female Posts : 1165
Reputation : 54
Language : U. S. English
Location : U. S. A.

View user profile https://communitycenter.forumotion.com/

Back to top Go down

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.
avatar
Fae
Forumember

Posts : 34
Reputation : 1
Language : english

View user profile

Back to top Go down

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.
Sanket
Sanket
ForumGuru

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

View user profile

Back to top Go down

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
Ultron's Vision
Ultron's Vision
Forumember

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

View user profile http://duelacademy.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum