vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   BB Code Enhancements - BB Code [table] (https://vborg.vbsupport.ru/showthread.php?t=107985)

War.Frog 10-17-2009 06:47 PM

Quote:

Originally Posted by AfterWorldForum (Post 1901244)
Ran into the same problem. I modified your Excelsheet to suit our needs, and then removed the additonal pipe char from the second sheet.

Whenever I tried copy/pasting, somehow I'd end up with an extra table head line. The problem is the internal Excel markup (I think). Problem can be solved by copy/pasting into notepad, then selecting all in there, and pasting into vB.

I fixed the extra bar issue in v 1.4. It works pretty well but I'm not sure if the extra returns affect different versions of vBulletin.

I'd love to include bold and colspan, but I don't know how I'd do cell-by-cell properties without making it clunky. I am, however, going to add bolding option to the header row and at column level.

Wired1 10-20-2009 12:08 AM

Keep us updated! I can think of some uses for this when polished.

trotskid 10-20-2009 06:26 AM

Hi. If sort a column of numbers with "." or "," (Project column), the values does not sort properly. For example:

30,274,388 will post higher than 101,274,388 (3>1).

How can I fix that with the current code?

Thank you


https://vborg.vbsupport.ru/

PHP Code:

[table="head;sort=2d;autonum=1;autonumtitle=Rank;width=65%"]xxxx|Project|Points|P/day|National

test1
|30,274,388|68,520|60|3|

test2|101,274,388|50,956|80|2|

test3|20,274,388|21,325|29|6|

[/
table


mickknutson 10-20-2009 11:07 AM

I am trying to get this to work with Vault Wiki.

http://www.blincmagazine.com/forum/w...cs?redirect=no

I used this code, but still only ever get 1 row and no head row:

Code:

[table="head;sort=2d,2;class=head;cellpadding=4;cellspacing=1;border=1"]ObjectType|Number
Building|0
Antenna|0
Span|0
Earth|23[/table]


BRotondi 10-20-2009 11:25 AM

1 Attachment(s)
Still did not work in 2007 because the simple copy now adds some differen CRs -> you would need to paste it as text only (through Notepad or in simple Editor mode)

I solved this and reduzed the 50 lines to "auto" in the attached version. Does it work on 2002?

Regards, Bruno

MagicThemeParks 10-20-2009 11:26 AM

Great work guys, keep at it! :up:

If you can get a true, glitch-free option for bringing the info straight over from Excel, then it would take this mod to the stratosphere! :D

BRotondi 10-20-2009 11:33 AM

Hmmm... but I don't get live sort to work...
- sorttable.js copied to clientscripts
- enabled in the settings

... still no clickable header...

Thanks for any help!
Bruno

BRotondi 10-20-2009 11:51 AM

O.K. Another "Known Bug" or "minor problem": Table will not be sortable after ajax-Editing the post. You have to reload the page!

And: Be sure to use [table="head"], else you have no head to sort ;)

Bruno

BRotondi 10-20-2009 11:57 AM

And another Bug: One CR will be deleted after [/table] each time you press "Preview"

Quote:

...[/table]

Text
->
Quote:

...[/table]
Text
->
Quote:

...[/table]Text
Greetings, Bruno

Edit: Interesting: Does not happen any more since I installed live sort...

BRotondi 10-20-2009 01:13 PM

1 Attachment(s)
Perhaps you've seen, that sorting will use the default asc/desc image which sometimes makes the next column header unreadable. Workaround: These little Icons from Windows Explorer. Save them e.g. on /images/sort*.png and change the path in sorttable.js:
Code:

    if (span.getAttribute("sortdir") == 'down') {
        ARROW = '&nbsp;<img src="/images/sortasc.png" />';
        newRows.reverse();
        span.setAttribute('sortdir','up');
    } else {
        ARROW = '&nbsp;<img src="/images/sortdesc.png" />';
        span.setAttribute('sortdir','down');
    }

Example

Greetings, Bruno


All times are GMT. The time now is 08:57 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.01739 seconds
  • Memory Usage 1,750KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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