News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

" post redirecting" in SMF.

Started by Olinice1, November 25, 2013, 05:43:40 PM

Previous topic - Next topic

Olinice1

You know, when you post, for exemple, a FAQ but it finaly ends up containing many pages and you want people to be able to click on the category so they automatically get onto the right post?

Well I want to do that. I've found that with [url] tags, It can redirect me to the post I want , but it firstly open a new page and secondly, for whatever reason, logs me out.

The goal is when you click it, it only raises or scroll down on the thread to direct you to the post you're looking ( and I saw this system does worth when you click the link of a quote!)

Is there a mod? The post offers no HTML code places, where i know it is possible. Or am i just too dumb to use posting properly? Thanks.

Shambles

Have a play with the [anchor] bbcode.

Arantor

Use the iurl bbcode. Works the same as url but doesn't go to another page. Shambles mentions the anchor bbcode, this is great for being linked *to* but won't handle the link itself.

As for being logged out, check what URL you are on and what URL you end up on; if they are on different subdomains (e.g. www.domain.com is not the same as domain.com) it's entirely possible you might be logged out.

Take a look at http://www.simplemachines.org/community/index.php?topic=224166.0 - feel free to quote the posts (but not actually press the post button!) to see the code being used there.
Holder of controversial views, all of which my own.


Olinice1

Quote from: Arantor Beeblebrox the First on November 25, 2013, 05:48:41 PM
Use the iurl bbcode. Works the same as url but doesn't go to another page. Shambles mentions the anchor bbcode, this is great for being linked *to* but won't handle the link itself.

As for being logged out, check what URL you are on and what URL you end up on; if they are on different subdomains (e.g. www.domain.com is not the same as domain.com) it's entirely possible you might be logged out.

Take a look at http://www.simplemachines.org/community/index.php?topic=224166.0 - feel free to quote the posts (but not actually press the post button!) to see the code being used there.

iurl works fine !! Thanks, didn't actually know it existed in fact it's not in the options :)

Advertisement: