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

Snake 11-11-2005 02:36 PM

Awesome! Installed. ;)

jugo 11-11-2005 07:53 PM

LMAO...I LOve the Flash tutorial...gives me a woody.

Will install as soon as the 3.5.1 version is good...Great hack.

Souli 11-11-2005 08:43 PM

My Hack is 100% compatible to 3.5.1 - i think you have try to use this hack in a Wysiwyg Editor?

memorex 11-11-2005 09:37 PM

Quote:

Originally Posted by Souli
My Hack is 100% compatible to 3.5.1 - i think you have try to use this hack in a Wysiwyg Editor?

did you change anything to make it work in 3.5.1? I can't get it to work properly with 3.5.0 :|

COBRAws 11-11-2005 09:55 PM

awesome!!!

/me clicks the install thingy

Souli 11-11-2005 10:23 PM

i have made now a fresh install , a new test.board to see whats going on.

This hack works only in STANDARD MODE perfectly - Product import and rdy to go

Check you vbcode Manager for older custum tags like (table/tr/td) and delete them before you installe this hack.

@all
for the future please wirte down a litte bit more about your errors, where ist the error, did the Popup open, can you see thw image in the edoitor ?

memorex 11-12-2005 02:10 AM

Quote:

Originally Posted by Souli
i have made now a fresh install , a new test.board to see whats going on.

This hack works only in STANDARD MODE perfectly - Product import and rdy to go

Check you vbcode Manager for older custum tags like (table/tr/td) and delete them before you installe this hack.

@all
for the future please wirte down a litte bit more about your errors, where ist the error, did the Popup open, can you see thw image in the edoitor ?

i checked the bbcode manager and couldn't find any other table related codes other then what the product installed. Heres a link to the post after testing. I don't know whats wrong here. Thanks for your help.

Souli 11-12-2005 07:28 AM

THX for your info about the problem , i found the error.

I must change some code in the Installroutine .. will create the version 0.3 later

memorex 11-12-2005 11:37 AM

Quote:

Originally Posted by Souli
THX for your info about the problem , i found the error.

I must change some code in the Installroutine .. will create the version 0.3 later

thanx :), much appreciated

Souli 11-12-2005 02:54 PM

I have test the new version 0.3 more than 30 times and i think now its time to give it to the public again ..

have fun ... :cool:
Souli

memorex 11-12-2005 04:41 PM

Awesome works great now :)

NuclioN 11-12-2005 05:40 PM

How to change the permissions so registered members can use this also? :)

Souli 11-12-2005 08:35 PM

You can delete the follow code in the plugin "bbcode_table_code":
PHP Code:

if(($vbulletin->userinfo['usergroupid'] != '5') AND ($vbulletin->userinfo['usergroupid'] != '6') AND ($vbulletin->userinfo['usergroupid'] != '7'))
{
eval(
"print_output(\"".fetch_template('bbcode_table_error')."\");");
exit();


or you can use the second version "=> product-bbcode-table-03_no_perm.xml"

ForYou 11-13-2005 09:53 AM

Hello ,

Sir ,

I was try to create more than 15 row but there is no , i mean we can't creat more than 15 row ,

please let me know if i need to creat more than 20 row how can i do that ,

Regards

memorex 11-13-2005 11:04 AM

Quote:

Originally Posted by ForYou
Hello ,

Sir ,

I was try to create more than 15 row but there is no , i mean we can't creat more than 15 row ,

please let me know if i need to creat more than 20 row how can i do that ,

Regards

I did 51 rows by just clicking at the end of the first generated table then clicking on the table making icon again to repeat the process. 15 at a time. but it works.

Souli 11-13-2005 02:49 PM

It is a litte security code - so nobody can include 10.000 rows or something else

but you can change it:

- Open your AdminCp
- Plugin Manager
- Search in the List of Plugin the Plugin = "bbcode_table_code"
- Edit "bbcode_table_code"
- Open the big texteditor
- Go to Line 13 and 15
Line 13:
PHP Code:

if ($split >= 15$split 15

Line 15:
PHP Code:

if ($lines >= 15$lines 15

- Change the 15 in the code to what you like
- Save the Plugin

For later version i will set this lines and splits to 25.

Detomah 11-13-2005 05:24 PM

Is there any way to get this to be able to merge cells, ignore the <cr> and not need to be one continuous string to work?

It's a fine table hack don't get me wong, but it works more like a formatted list than an actual table at the moment and it's seriously limiting with the use of the tables it can make. I'm not having a go, please don't think I am.

https://vborg.vbsupport.ru/showthread.php?t=72741

Is there no way someone could port that one over to 3.5 as well, giving us more options? That one allows you to have borders, cell spacing, merged cells, etc. I've tried to get it working in 3.5.x but can't I aint good enough.

Souli 11-14-2005 02:00 AM

I will include some more functions in later versions

mathias 11-24-2005 04:26 AM

hmm no attachment for the image

mathias 11-24-2005 04:28 AM

nm im retarded..

EasyTarget 11-28-2005 09:26 AM

nice job.. how'd I miss this?

/me installs

yessir 12-18-2005 05:51 PM

Bump for someone should help develop this great hack.

klaush 12-18-2005 06:47 PM

Fine work!

Thanks and...... installed

D.Ilyin 12-20-2005 06:50 AM

Nice, installed :)
and have some questions\sugestions :)
Quote:

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)
Maybe the "rigth" pass for copy this button : ./images/editor/bbcode_table.gif
and second...... is there any way to add colspan option? Maybe not in popup, but manualy with bbcode editing.

Rich 01-05-2006 06:33 PM

Hello,

I was going to install this, but there is a problem with this and my site. lol

I am an admin. (I own my sites) I am running 3.5.2 so this may be the reason btw. I imported the product, uploaded the gif and then gave it a whirl. No matter what forum I am in, I get this error:

"Sorry! This forum is not accepting new posts."

Considering i set up every forum, I know this is not a true statement. lol If this gets corrected, I may find it useful.

GamerJunk.net 01-05-2006 09:09 PM

That is an awesome hack!

kadafi_alive 01-06-2006 07:20 PM

Anyone tried making it work with wysiwyg editor?

Blind Guardian 01-15-2006 01:17 AM

Quote:

Parse error: parse error, unexpected T_STRING in /home/otiluke/public_html/forums/includes/functions_editor.php(349) : eval()'d code on line 2
[s]That's what I got after ramming it up on the product manager. All I did to edit the code was remove the permission for moderators to use it and change the image to point to somewhere outside of the forumserver.

Any ideas?[/s]

Forget that, I missed a \ infront of a " somewhere.

AshokForums.com 01-19-2006 09:41 AM

Please improve and develop this hack.. Merging cells is veyr important for me.. Someone please do it..

yessir 08-17-2006 02:15 PM

Bump for 3.6 and further development please!


All times are GMT. The time now is 04:54 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.01339 seconds
  • Memory Usage 1,827KB
  • 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
  • (3)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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