Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 01-23-2004, 07:33 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default BBcode for WYSWYG

I got a [TABLE] bbcode working and I would like to have this work on the wysiwyg. My question is which files would I have to modify to get this to work (similar to the [B], [CENTER], [URL], etc, etc bbcodes that currently work with the wysiwyg).

I know I'll probably won't get much help on this but I thought I'd post here before posting @ vbulletin.com.

thank you
Reply With Quote
  #2  
Old 01-23-2004, 07:53 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by princeton
I got a [TABLE] bbcode working and I would like to have this work on the wysiwyg. My question is which files would I have to modify to get this to work (similar to the [B], [CENTER], [URL], etc, etc bbcodes that currently work with the wysiwyg).

I know I'll probably won't get much help on this but I thought I'd post here before posting @ vbulletin.com.

thank you
i dont see why it wouldnt work on the wysiwyg
Reply With Quote
  #3  
Old 01-23-2004, 07:58 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I probably wasn't clear enough ...
The bbcode [TABLE] does work if I insert [TABLE] directly into wysiwyg; but, that is not what I am asking. I want the [TABLE] bbcode to render similar to the bold, italic, indent, etc, etc. tags ... I want it to be a true wysiwyg.
Reply With Quote
  #4  
Old 01-23-2004, 08:47 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you did the BBcode correctly i dont see why it wouldnt work...
Reply With Quote
  #5  
Old 01-23-2004, 08:54 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

type something in the quickreply (wysiwyg) ... highlight the text and click B; this will convert all text to bold lettering (what you see is what you get)

now, highlight the text and click ... you will see that it wraps the text with [quote.] tags. This is not what I want.

I would like the [TABLE] bbcode to work similar to the B button.

Reply With Quote
  #6  
Old 01-23-2004, 08:57 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you added a button for it in the BB Code Manager?
Reply With Quote
  #7  
Old 01-23-2004, 09:13 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the button will just wrap the text with the bbcode ... this is not what I want.
I want it to actually build the table (visually).

To make this work, I need to modify a few files. I was hoping that somebody would know which files to edit.

I do know that most of the work is done via client-side before sending it to the database (at least the Midas (gecko) version does) ... I think.

When you use bold within the wysiwyg, the editor saves this as [b]bold[/b]. I would like to enable the wysiwyg editor to do the same with the [table] bbcode.

PS. The table tag can have multiple rows and/ or columns.
Reply With Quote
  #8  
Old 01-23-2004, 09:20 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From what I understand, I don't use or even have WYSIWYG enabled on any of my sites, is that the text thats formated in the text area is all HTML, ie pressing B generates <b>text</b> in the editor and then convert_wysiwyg_html_to_bbcode() is run when submitting the post (the function is in functions_wysiwyg.php) to convert the HTML to BB Code as the name suggests.

This is all just am assumption though, but gives you somewhere to look at least

---

Edited to add: Also take alook at the JS file for the WYSIWYG editor, that probably performs all the client side processing.
Reply With Quote
  #9  
Old 01-23-2004, 09:45 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahhh .... that's a good place to start. thank you
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04710 seconds
  • Memory Usage 2,235KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete