PDA

View Full Version : [Beta] bbcode Table Maker


Souli
11-10-2005, 10:00 PM
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 (http://www.clanforen.de/clanforen/images/eigene_Bilder/demos/bbcodetable.htm) ]

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

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 :
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/greentek/buttons/installed.gif (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=100568)

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
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
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
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
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":
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
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: if ($split >= 15) $split = 15;
Line 15: 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 :)
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
Parse error: parse error, unexpected T_STRING in /home/otiluke/public_html/forums/includes/functions_editor.php(349) : eval()'d code on line 2

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?

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!

ctsolutions
08-24-2006, 09:15 PM
Dont need to Bump.

The hack works on 3.6


The transfer from the popup to the WYSIWYG Editor doesn?t work at this time

The transfer from the popup to the WYSIWYG Editor works like a charm.

Many Thanks.
mike

pokerie
10-06-2006, 11:59 AM
I'm using 3.6.1 and can't see it in the WYSIWYG...???

Is there any way to edit the table at a later stage without having to deal in code as it's very difficult to see what you're doing at the moment. Perhaps in WYSIWYG or maybe an edit tag somewhere that opens the code in a pop up window and resubmits it?

za3bour
04-23-2008, 01:18 PM
this doesn't work on 3.6.4 , is there an update for it ? please

mgurain
05-11-2008, 04:07 AM
It was a wonderful mod,
but it is not working with 3.7 now, any update please?

Thanks for your great job,,

fuldon
06-21-2008, 08:36 AM
any update please?

akafi
12-17-2008, 10:35 AM
hi all
this hack when i install it then i determine the tr and td it gives me this message
Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.


help me please