The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How do I make a subforum as a redirect URL

View previous topic View next topic Go down

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

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

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


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!

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 on February 4th 2014, 8:18 pm

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

Sorry for double posting.

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 on 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','http://help.forumotion.com/t130267-how-do-i-make-a-subforum-as-a-redirect-url')

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

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

Post by BrianMK on 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.

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 on 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
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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