Customizing SMF > Now Available

Hide the content of [code] tags from guests

<< < (4/5) > >>

Arantor:
You actually can't directly rewrite quote tags because the contents of the tag is never supplied to the parser (since it can contain other tags)

All you can do is what I used to do in my registered-links mod: rewrite the start and end tags in the validate function to something else, then strip them out in the obsess_rewrite buffer.

Jokerâ„¢:

--- Quote from: Arantor on February 02, 2011, 08:32:23 AM ---You actually can't directly rewrite quote tags because the contents of the tag is never supplied to the parser (since it can contain other tags)

--- End quote ---
That's what I thought after seeing "Remove images from quotes tag" mod.



--- Quote ---All you can do is what I used to do in my registered-links mod: rewrite the start and end tags in the validate function to something else, then strip them out in the obsess_rewrite buffer.

--- End quote ---
Umm that seems to be a bit above my head.

steeltape:
hi this is very useful mod for me and i'm grateful that you share this with us the leechers
however, there is no Themes\Default\Modification.english.php file in my default theme nor my other sub themes.
so how?

smf 2.0 rc5

mashby:
Try one level down, so:
Themes/default/languages/Modifications.english.php

Jokerâ„¢:

--- Quote from: mashby on May 24, 2011, 09:55:26 AM ---Try one level down, so:
Themes/default/languages/Modifications.english.php

--- End quote ---
Thanks for pointing out the error ;).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version