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 a subforum as a redirect URL

2 posters

Go down

In progress How do I make a subforum as a redirect URL

Post by BrianMK February 4th 2014, 8:03 pm

I want to click a subforum on my forum and then it will take me to a site.

How do I make a subforum as a redirect URL Qlvuhxu
When clicking "Graphics," I want it to take me to a completely different site. I know it's possible since I've seen other forums have it.

Please help as soon as possible. Thanks!
avatar
BrianMK
New Member

Posts : 3
Reputation : 1
Language : English

http://terminators.darkbb.com/

Back to top Go down

In progress Re: How do I make a subforum as a redirect URL

Post by BrianMK February 4th 2014, 8:18 pm

Here's an example from another Forumotion forum:
Spoiler:

Sorry for double posting.
avatar
BrianMK
New Member

Posts : 3
Reputation : 1
Language : English

http://terminators.darkbb.com/

Back to top Go down

In progress Re: How do I make a subforum as a redirect URL

Post by Ange Tuteur February 4th 2014, 10:14 pm

Hello BrianMK,

You would have to change this through javascript :

Administration Panel > Modules > Javascript codes management > Create a new script

Title : your choice
Placement : in all the pages
Paste the code below and save :
Code:
$(document).ready(function() {
    $('a.forumlink[href="/f5-graphics"]').attr('href','http://help.forumotion.com/t130267-how-do-i-make-a-subforum-as-a-redirect-url');
});

Change the following value to the pathname of a forum that you want to modify :
a.forumlink[href="/f5-graphics"]

All you need to change here is the underlined value to a new url :
.attr('href','https://help.forumotion.com/t130267-how-do-i-make-a-subforum-as-a-redirect-url')
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: How do I make a subforum as a redirect URL

Post by BrianMK February 4th 2014, 10:18 pm

Thanks, worked perfect!

But now that brings me to another question.

How can I hide the 0 & 0 for topics created and posts for that section? It doesn't make sense for that to be there since it's just a redirect.
avatar
BrianMK
New Member

Posts : 3
Reputation : 1
Language : English

http://terminators.darkbb.com/

Back to top Go down

In progress Re: How do I make a subforum as a redirect URL

Post by Ange Tuteur February 4th 2014, 10:30 pm

You'll again need to use some javascript :
Code:
$(document).ready(function() {

    var f = '.forumline:has(h2:contains(Graphics))';

    $(f+' th:contains(Topics),'+f+' th:contains(Posts),'+f+' th:contains(Last Posts),'+f+' .row2,'+f+' .row3').remove();
    
});

Follow the same steps above for creating a new script.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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