MyBB Community Forums

Full Version: Links of words in a post?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sorry if the title is confusing but this is hard to explain.

I want to make links of bolded words within the SAME post.
here is a thread on another site showing exactly what i want.

http://www.minecraftforum.net/viewtopic.php?t=100267
Make a mycode?
(2011-05-15, 05:03 AM)Aristotle Wrote: [ -> ]Make a mycode?
I was just trying now and cant figure it out.

Do you mean something like this?

You need to visit this website
[b]You need to visit [url=http://www.google.com]this website[/url][/b]
(2011-05-15, 08:19 AM)Aries-Belgium Wrote: [ -> ]Do you mean something like this?

You need to visit this website
[b]You need to visit [url=http://www.google.com]this website[/url][/b]
No. Hmmm ok lets try this.

Lets say I am making a large guide. Now there are there sections ALL in the same post.


RULES
PREVIEW
and
CONTROLS
Now I want those three words, when clicked, go to there section of the post. So when I click rules up there it will take me to the rules section OF THE POST. Same with preview and controls.





Rules
For that, you probably need to define an anchor tag mycode for the
<a name="section1">
behaviour. But I'm not sure whether that will work, given that the anchors are already used to address the post. (#PID)
See the image below for the codes you need for an Anchor Name MyCode
you can't do it with a single mycode since the link and anchor are in different parts of the post. you would need 2 for each section

[post_1] would make the link
[post_2] would make the anchor
You can just use the [url] MyCode to link to the anchor, it works for me...

I'd show an example, but MyBB's parser doesn't like it.
but how can you set the correct anchor in case of multiple [post] uses? It would be easy enough if I could find the time to see if a MyCode can contain template code that would be processed (like being able to include the postId in the anchor name)