vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Custom BB Code Question (https://vborg.vbsupport.ru/showthread.php?t=321995)

Dirks 03-03-2016 05:17 AM

Custom BB Code Question
 
1 Attachment(s)
Hey everyone,

I'm trying to create a custom BB code to make tables without cellpadding or cellspacing.

Long story short, I want to link map an image without having to enable HTML on the forum, so I figured tables using BB code were the way to go.

I've currently input the following as my custom code, but it's not working:
Code:

<table cellpadding="0" cellspacing="0">{param}</table>
Any suggestions you have would be most appreciated.

I attached an image so you can visualize my problem as well.

Thanks!

Dirks 03-03-2016 02:08 PM

It recently struck me that I could probably create a table class without creating a new BBcode by adjusting CSS.

I added this to my additional.css
Code:

.nstable {

padding:0px; margin:0px;

}

And I put this into the editor:
Code:

[table="class: nstable"]
It's still not working, but I'm no good at CSS. Maybe someone here could help with this method rather than editing BBcode.

trollshrooms 03-04-2016 12:29 PM

editor:

<div class="nstable">


All times are GMT. The time now is 06:08 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.00951 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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