PDA

View Full Version : vB codes


sraposa
05-28-2003, 05:14 PM
i'm trying to get a little more control over my vB tags than is allowed in the admin interface. for example, i'm trying to remove the <br /> tag that automatically gets added after certain tags such as {quote} and {list}. (it's not in my HTML, so i'm assuming the script adds it in somewhere).

are there hacks for this or can anyone point me to the right files?

thank you.
-scott

Xenon
05-28-2003, 09:18 PM
admin/functions.php
function bbcodeparse2 :)

sraposa
05-29-2003, 12:39 AM
thanks, Stephan.

only thing is... i've been searching around for quite awhile, and unless i'm missing something, the culprit (the "<br />" tag that gets added before and after certain vBcode replacements) isn't actually added on those functions.

for example, it's pretty clear that the createlists() function is what handles the {list} tag. but there's no <br /> anywhere in there. and when i look at the HTML in one of my posts, there is definitely a <br /> directly before and after the list HTML.

any ideas?

thanks again.
-scott

filburt1
05-29-2003, 12:40 AM
Search for nl2br.

sraposa
05-29-2003, 02:10 PM
thanks. i feel like i'm on a treasure hunt here. lol.

well, i commented out the call to nl2br line hoping that it would simply remove the <br>'s around the vB Code HTML... it did. unfortunately, it also ensures that no <br>'s get put anywhere in the post... not a good thing.

so, it seems that accomplishing what i'm looking for is going to take a lot more understanding of the code... unless somebody happens to know a quick trick here. this is obviously nothing something dire, but it would be nice to have the formatting look the way i want.

thanks again.
-scott