Custom BB Code

Started by Anguz, November 12, 2004, 05:35:27 AM

Previous topic - Next topic

Washi

Believe me, when I used to use phpBB, it took me about 6 hours of coding to get this bit of extra bbcode, so anything you think of rocks. :D

Anguz

Cristián Lávaque http://cristianlavaque.com

Washi

Quote from: Anguz on September 23, 2005, 07:42:29 PM
Glad you liked the mod. :)

Just to let you know, I added the button I needed in record time... about one minute or less. :D

Anguz

Cristián Lávaque http://cristianlavaque.com

Washi

I wanted to ask you something though. Are you going to make this compatible with 1.1 RC 1? People on one of the boards I host just keep moaning about the blockquote code.
It was a phpBB board, and it wouldn't let me switch to 1.0.5, and would only do it from 1.1 RC. So, I'm kinda stuck ATM, unless I try to downgrade it to 1.0.5, which I have no idea how to do... Hmm, I should look into it though. I'm babbling.
My question remains: are you going to update this great mod for 1.1 RC 1, or wait until the final version is up? Thank you.

Anguz

I'm gonna wait for 1.1 Final to update my mods for 1.1.

I didn't get the part where you mention the blockquotes.
Cristián Lávaque http://cristianlavaque.com

Synn

Hello,

Very new to all the bb coding....but this seems like a great mod. Not quite sure I'm following though, now that it's installed will I be able to use something like...

<script src="hxxp:somewhere.com [nonactive]"></script> ???
And if so what code will actually go into the forum post?

Sorry for all the newbie questions.

Anguz

For your example it'd be something like this
script <script src="$1"></script>
and used like this
[script]http://somewhere.com[/script]

You should consider carefully, though, the security issues that the code you enable could cause.
Cristián Lávaque http://cristianlavaque.com

solid0207

Is it work on RC2 ????????!!!!!!!!???????????

I can't install it (CustomBBCode104_SMF105)


The package you tried to upload either is not a valid package or has become corrupted.

Washi

Anguz, does this work for 1.0.6? Or are there any changes to be made to the code?

Anguz

It should, but the installer may be restricted to version 1.0.5. You can remove it in package-info.xml or wait for me to do it.
Cristián Lávaque http://cristianlavaque.com

yeahimsteve

Ok, since nobody can use this mod who upgrades their board until you come out with an updated version (mostly because of the fast parser incompatibility), I was wondering if you could help me manually with this ONE tag that I need, and then I'll never bother you again.  Plus, other's will start using the tag more often I'm sure. ;)

Its the [ snapback ] tags, that IPB uses in quotes, that isn't available by default with SMF as you probably know.  For those that aren't aware, the snapback tags function in Invision Power Board allows the user to click a little button below a quote, which will send them to the original post.  The code that IPB uses for the snapback is as follows:

<a href="index.php?act=findpost&pid={content}"><{POST_SNAPBACK}></a>

Now, seeing as though I have no admin panel because this mod won't work yet, what file do I edit, and what do I paste?  How far off is the code that I pasted?  Anybody?   :-*

Anguz

This is not something that you could do with this mod anyway.

Quote from: yeahimsteve on February 11, 2006, 03:46:51 PM
For those that aren't aware, the snapback tags function in Invision Power Board allows the user to click a little button below a quote, which will send them to the original post.

Try clicking on the quote's header link.
Cristián Lávaque http://cristianlavaque.com

yeahimsteve

#133
What do you mean I couldn't use this mod for that?  Surely I could?  It's a snapback tag...and there's code for it.  The code I pasted in my last post was straight from the IPB "custom bbcode" section......
By default, every quote from IPB contains these tags at the bottom.....
It definitely IS bbcode though, and it's totally possible........I'm just an idiot when it comes to coding.

Here, check out my more detailed problem here, because I know you can help me........you are one smart dude:

http://www.simplemachines.org/community/index.php?topic=70743.0

Heck, even if the bbcode just makes whatever is between [snapback] tags completely blank....

Anguz

From the other topic I understood better what your problem is. You have all these unparsed tags in your messages.

Well, SMF doesn't use snapback tags cause the information is in the quote tags, like when you click on the quote button of a message, and the header of that quote will have a link to the original post.

Now, to remove the snapback tags, you could add a tag using this mod, Custom BB Code, that simply replaces the tag and what's enclosed, with nothing. The thing will still be in the database, but not displayed.

Doesn't the SMF converter use this snapback info in quotes to add to the quote's header? If not, it'd be good to mention it in the converters board so that it gets looked into.
Cristián Lávaque http://cristianlavaque.com

yeahimsteve

#135
Quote from: Anguz on February 12, 2006, 02:43:54 AM
Now, to remove the snapback tags, you could add a tag using this mod, Custom BB Code, that simply replaces the tag and what's enclosed, with nothing. The thing will still be in the database, but not displayed.

Yes, this is what I suggested in my last post (last sentence).  Like I said, I cannot use your mod because it's not compatible with RC2. 

Can you please tell me how I can add this custom tag to make it display as blank....... manually?  Or better yet, can you tell me what the mysql query command would be to remove everything in the database that says: [right][snapback]any-number-here[/snapback][right]?

Anguz

Sorry, I won't try my luck with the query. And the mod will not be updated to 1.1 until it reaches final. You can go to the file Subs.php in the Sources directory of your SMF, open it and look for the function do_bbc, IIRC, and read it. You may get the idea of how it works and figure how to write the new tag.
Cristián Lávaque http://cristianlavaque.com

redaccion

do you have any idea for when can preparate for 1.1 RC2 ???

   Thank's man...

Anguz

I won't update my mods for 1.1 until it reaches Final.
Cristián Lávaque http://cristianlavaque.com

redaccion

Quote from: Anguz on February 22, 2006, 12:36:00 AM
I won't update my mods for 1.1 until it reaches Final.

Thankyou ;) ;) ;)

Advertisement: