BBcode page with explanations

Started by Francisco, December 12, 2004, 11:44:48 AM

Previous topic - Next topic

Francisco

 It would be really nice to have a link like vB forums have with a page explaining all BBcodes that can be used and the output it will make, with an example.

Also, if there can be a Link type of Name and you click on "Name" which is an hyperlink and that takes you to the site, instead of intruducing full URL like with this code: yayaya.com



Peter Duggan

Quote from: Francisco on December 12, 2004, 11:44:48 AM
Also, if there can be a Link type of Name and you click on "Name" which is an hyperlink and that takes you to the site, instead of intruducing full URL like with this code: yayaya.com

Like:

[url=http://yayaya.com]Name[/url]

As explained by the BBC Reference?

Francisco

Quote from: Peter Duggan on December 12, 2004, 12:25:47 PM
Quote from: Francisco on December 12, 2004, 11:44:48 AM
Also, if there can be a Link type of Name and you click on "Name" which is an hyperlink and that takes you to the site, instead of intruducing full URL like with this code: yayaya.com

Like:

[url=http://yayaya.com]Name[/url]

As explained by the BBC Reference?

:)



Peter Duggan

So you've posted a screenshot of your SMF with a bit of vB pasted in? ???

Francisco

Quote from: Peter Duggan on December 12, 2004, 12:35:01 PM
So you've posted a screenshot of your SMF with a bit of vB pasted in? ???

Yes...

That's the feature I'm talking about, I did it so you could get the idea (sort of) of what I mean :)

Peter Duggan

Adding the links should be a trivial template change and displaying the rules to match the user permissions shouldn't be too hard, but I'm afraid I'm *really* busy ATM and will have to leave it to someone else to explain if you want to try modding this in.

Francisco

Quote from: Peter Duggan on December 12, 2004, 12:43:06 PM
Adding the links should be a trivial template change and displaying the rules to match the user permissions shouldn't be too hard, but I'm afraid I'm *really* busy ATM and will have to leave it to someone else to explain if you want to try modding this in.

It's not needed for right now, but it would be a great feature for SMF v1.2 (after the official release)

Alexandre P.

#9
Maybe you could simply add a link to this BBCodes reference.

In your /Themes/<your theme>/Post.template.php, search for (~ line 718)
// I guess it's a divider...
else
echo '<img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" />';
}

echo '
</td>
</tr>';


Add this after:
        // Show a link to BBCodes' reference
        echo '<tr><td colspan="2" class="smalltext" style="text-align: center;"><a href="./Themes/default/help/posting.english.html#bbcref" target="_blank">How do I use BBCodes tags ?</a></tr></td>';


You will get something like this:
Aucun support par M.P., courriel ou messagerie instantanée / No support by P.M., email or I.M.

Francisco


[Unknown]

You know, there *IS* a help button on every page.

-[Unknown]

Elijah Bliss

Quote from: [Unknown] on December 12, 2004, 11:48:34 PM
You know, there *IS* a help button on every page.

-[Unknown]

If I had a nickel for every time I told my members this I'd have Bill Gates money.

Advertisement: