Redirect Link in New Tab?

Started by pivotraze, August 16, 2010, 02:12:00 PM

Previous topic - Next topic

pivotraze

Obviously, I use SMF 2.0 RC3...

Now, I want to make it where, when a user clicks a redirect board, it sends them to the link IN a new tab. How can I do that?

I tried setting the url to '"_blank" http://z9.thissite.com/thisboard'; without the single quotations.

Thank you for your amazing help ;)

Cody

A side question:

The following mod does not work:
Hide SMF Version    1.0.6
I installed it and set it to on, but nope, nothing, still see "SMF 2.0 RC3" at the bottom *sad face*
Is currently nurturing his forum, Seafire Software Forums

cicka

Quote from: pivotraze on August 16, 2010, 02:12:00 PM
Obviously, I use SMF 2.0 RC3...

Now, I want to make it where, when a user clicks a redirect board, it sends them to the link IN a new tab. How can I do that?

I tried setting the url to '"_blank" http://z9.thissite.com/thisboard'; without the single quotations.

Thank you for your amazing help ;)

Cody


At the BoardIndex.template.php file, find this code

<a class="subject" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>';

and change to this code

<a class="subject" href="', $board['href'], '" name="b', $board['id'], '"'. ( $board['is_redirect'] ? ' target="_blank"' : '' ) .'>', $board['name'], '</a>';

And do the same edits at the MessageIndex.template.php file too.

pivotraze

Thank you so much! :)

This should be added as a checkbox when creating a new redirect board.. Ah well.

Thanks again :D
Is currently nurturing his forum, Seafire Software Forums

cicka

Quote from: pivotraze on August 16, 2010, 02:23:47 PM
Thank you so much! :)

This should be added as a checkbox when creating a new redirect board.. Ah well.

Thanks again :D

You are welcome :). I am thinking to make a mod for this.

pivotraze

That would definitely be a brilliant idea, and I would be the first to install it! :)

Secondary question (not pertaining to SMF2 only I think...) does it auto detect mobile web browsers (as I noticed a WAP2 link at the bottom ;)) or does it not (if not, is there a mod to do so?)
Is currently nurturing his forum, Seafire Software Forums

cicka

Quote from: pivotraze on August 16, 2010, 02:31:30 PM
That would definitely be a brilliant idea, and I would be the first to install it! :)

Secondary question (not pertaining to SMF2 only I think...) does it auto detect mobile web browsers (as I noticed a WAP2 link at the bottom ;)) or does it not (if not, is there a mod to do so?)

I do not know if it detects the mobile web browsers because I have not tested it :)

pivotraze

#6
Time to test!

Testing...
Testing...
Testing...
Testing...
Testing (Connecting to Internet)...
Testing (Connection to site)...
FAILED. It does not use the WAP version. Grr.. Checking the mod forum.

No mods for this o.0
Is currently nurturing his forum, Seafire Software Forums

pivotraze

Quote from: cicka on August 16, 2010, 02:24:22 PM
Quote from: pivotraze on August 16, 2010, 02:23:47 PM
Thank you so much! :)

This should be added as a checkbox when creating a new redirect board.. Ah well.

Thanks again :D

You are welcome :). I am thinking to make a mod for this.

Seems like there is already a mod by the way ;)

http://custom.simplemachines.org/mods/index.php?mod=1565
Is currently nurturing his forum, Seafire Software Forums

cicka

Quote from: pivotraze on August 16, 2010, 03:37:06 PM
Quote from: cicka on August 16, 2010, 02:24:22 PM
Quote from: pivotraze on August 16, 2010, 02:23:47 PM
Thank you so much! :)

This should be added as a checkbox when creating a new redirect board.. Ah well.

Thanks again :D

You are welcome :). I am thinking to make a mod for this.

Seems like there is already a mod by the way ;)

http://custom.simplemachines.org/mods/index.php?mod=1565

Ah, I had not seen that. Thank you because you saved me some time :)

pivotraze

Your welcome :) I'm looking through there for some helpful mods for my forum (Found quite a couple ^_^) And noticed that :P
Is currently nurturing his forum, Seafire Software Forums

cicka

Quote from: pivotraze on August 16, 2010, 03:50:24 PM
Your welcome :) I'm looking through there for some helpful mods for my forum (Found quite a couple ^_^) And noticed that :P

Yes. Smf has quite a lot of very good and helpful mods.

pivotraze

Yea, And on a side note... FACEBOOK CONNECT INTEGRATION! NO WAY :D MUST HAVE! xD
Is currently nurturing his forum, Seafire Software Forums

cicka

Quote from: pivotraze on August 16, 2010, 03:58:53 PM
Yea, And on a side note... FACEBOOK CONNECT INTEGRATION! NO WAY :D MUST HAVE! xD

The mod site would not be complete without that add on :)

http://custom.simplemachines.org/mods/index.php?mod=2322

pivotraze

Yep :) Already installed and set up ^_^
Is currently nurturing his forum, Seafire Software Forums

Kill Em All

I am going to mark the topic solved, please feel free to unmark it solved if you have further questions. :)


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Advertisement: