vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   vB codes (https://vborg.vbsupport.ru/showthread.php?t=53499)

sraposa 05-28-2003 05:14 PM

vB codes
 
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


All times are GMT. The time now is 01:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00959 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete