vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [Beta] bbcode Table Maker (https://vborg.vbsupport.ru/showthread.php?t=100568)

Souli 11-10-2005 10:00 PM

[Beta] bbcode Table Maker
 
This Hack is in BETA Status!

Version: 0.3
I have test it in vb3.5.0 / vb3.5.1 and it works perfectly! :laugh:

Changelog:
*[12.11.2005] Version 0.3
- correct some code to insert the new vbcode tags
- build new bbcode cache
- set new permissions (only Admin, Mods and Supermods can use the popup)

On a german wbb board community www.web-dynamic.de i found a little javascript code (Thanks to Snoopy for this nice code) - that can translate the given html code to bbcode - and here is now my vb3.5.x Version.

To see how this hack works: [ Flash DEMO ]

Description:
We all can include own vbcodes like [table], [td] or [tr] but it is very hard to create a table because you need a lot of code like the follow:
Quote:

[table=50%][tr=tcat][td]1[/td][td]2[/td][td]3[/td][/tr][tr=alt2][td]A[/td][td]B[/td][td]C[/td][/tr][tr=alt1][td]F[/td][td]E[/td][td]WE[/td][/tr][tr=alt2][td]2w[/td][td]dd[/td][td]w[/td][/tr][/table]
Permissions:
When a user create a new tablecode and after he had transfered the code to the editor, he can delete some tags and your forum looks very bad after he save the post - i have set the permissons for the Popup so that only Admins, Mods and Supermods can use the PopUp.
=> product-bbcode-table-03.xml (15.2 KB) = only admins & mods can use the PopUp
=> product-bbcode-table-03_no_perm.xml (15.0 KB) = all usergroups can use this Popup

Installation:
After the Product Import you must only upload a small gif file for the Editor (look at the Attachments)
(copy it to ..../YOURFORUM/images/bbcode_table.gif)

Known BUGS:
The transfer from the popup to the WYSIWYG Editor doesn?t work at this time - i have try to find the correct code but i have no more time now :(. So when you have any ideas please help me to fix it.

Here is the old code from vb3.0.x :
HTML Code:

var bname = navigator.appName;
 if (bname == "Microsoft Internet Explorer")
 {
 var newins = opener.document.frames["htmlwindow"].innerHTML + insert;
 opener.document.frames["htmlwindow"].innerHTML = newins;
 opener.document.frames["htmlwindow"].focus();
 self.close();
 }
 else
 {
 var newins = opener.htmlbox.body.innerHTML + insert;
 opener.htmlbox.body.innerHTML = newins;
 opener.htmlbox.body.focus();
 self.close();
 }

I hope somebody can change it to run in the vb3.5.1 WYSIWYG Editor :ermm:

I will try to give my best support to you ... :nervous:

Don?t forget to click https://vborg.vbsupport.ru/images/gr.../installed.gif

gldtn 11-11-2005 02:45 AM

Just downloaded, will install later.. seems like just what I needed.

Awesome hack ;)

dan35 11-11-2005 02:57 AM

Nice! Will install it later.

Aaron RV 11-11-2005 04:22 AM

In 3.5.1 not work.

Souli 11-11-2005 05:24 AM

Quote:

Originally Posted by Aaron RV
In 3.5.1 not work.

Oh - this isn?t good - i will update to 3.5.1 in the next days so i can figure out the problem not yet .. Sorry

Omranic 11-11-2005 10:57 AM

yes not working with 3.5.1
when clicking the button creat bbcode nothing done & the popup stll shown up

COBRAws 11-11-2005 11:31 AM

wow! impressive.

will wait for 3.5.1 tho

Detomah 11-11-2005 12:07 PM

You really REALLY don't know how happy you will make me if you can get this functioning properly. Like seriously!!!! :D :D :D

I've been trying for days to get someone to port a table hack from vB3.0.x, as i'd tried all sorts of things and had failed miserably at every angle myself.

If there is anything I can do to help to get this one sorted let me know, i'll probably not be much use, but i'd try. :)

TheFocusElf 11-11-2005 12:12 PM

I am going to tag this for later reference.

Souli 11-11-2005 02:25 PM

In the next hours i will update my board to 3.5.1 and i hope i can change the code for 3.5.1


All times are GMT. The time now is 10:32 AM.

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.01335 seconds
  • Memory Usage 1,739KB
  • 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)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete