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)

Elenna 07-27-2009 05:57 PM

Quote:

Originally Posted by DGF (Post 1855396)
hi there,

i am trying to do a legue table, and trying to do it so that it does sort after how many played match and how many points and witn name of the club and a rank order, but cannot getting to work proberly.

heres my eg..

[table="head;sort=16d,15;autonumtitle=Rank;width=12 em"]#|CLUBNAME|MATCHES|POINTS

1|a|0|0
2|b|0|0
3|c|0|0
etc etc etc
16|q|0|0[/table}

what i then want is if club b has played 1 match and gets 3 points, this team is sorted as number 1 at the top like this

1|b|1|3
2|a|0|0
3|c|0|0
etc etc etc
16|q|0|0

So it has to sort from more than one thing, both #, Clubname,Match and points at the same time

i hope you get what i mean and is this possible??

should say that i use this on vbadvanced as a left coloumn info


Auto Number - Don't forget to add in "autonum=1" to your table definition.

For the sorting, it goes by column number. In your example, you are using column 15 and 16, with 16 sorting in descending order, and then by column 16 in ascending order.

If you do not have 16 columns, change those numbers to the column number.

If you want to sort it by number of points (descending) and then number of matches played (ascending), then your code could look like this:

[table="head;sort=4d,3;autonum=1;autonumtitle=Rank; width=12em"]#|CLUBNAME|MATCHES|POINTS
1|Team A|3|16
2|Team B|3|18
3|Team C|4|20
4|Team D|3|13
5|Team E|5|23
6|Team F|4|21
7|Team G|3|25[/table]

But if you wanted it to sort by the number of matches played (descending) and then number of points, it would look like this:

[table="head;sort=3d,4;autonum=1;autonumtitle=Rank; width=12em"]#|CLUBNAME|MATCHES|POINTS
1|Team A|3|16
2|Team B|3|18
3|Team C|4|20
4|Team D|3|13
5|Team E|5|23
6|Team F|4|21
7|Team G|3|25[/table]

DGF 07-27-2009 08:58 PM

Quote:

Originally Posted by Elenna (Post 1856677)
Auto Number - Don't forget to add in "autonum=1" to your table definition.

For the sorting, it goes by column number. In your example, you are using column 15 and 16, with 16 sorting in descending order, and then by column 16 in ascending order.

If you do not have 16 columns, change those numbers to the column number.

If you want to sort it by number of points (descending) and then number of matches played (ascending), then your code could look like this:

[table="head;sort=4d,3;autonum=1;autonumtitle=Rank; width=12em"]#|CLUBNAME|MATCHES|POINTS
1|Team A|3|16
2|Team B|3|18
3|Team C|4|20
4|Team D|3|13
5|Team E|5|23
6|Team F|4|21
7|Team G|3|25[/table]

But if you wanted it to sort by the number of matches played (descending) and then number of points, it would look like this:

[table="head;sort=3d,4;autonum=1;autonumtitle=Rank; width=12em"]#|CLUBNAME|MATCHES|POINTS
1|Team A|3|16
2|Team B|3|18
3|Team C|4|20
4|Team D|3|13
5|Team E|5|23
6|Team F|4|21
7|Team G|3|25[/table]

Fu.... fantastic Elenna thaank you very much..

Brathamike 08-09-2009 02:17 AM

NOMINATED very useful mod ... thank you sir

Brathamike 08-09-2009 04:53 AM

Is there a update for the language file to be used with 3.8? everything else seems to work but unable to install language pack

Brathamike 08-09-2009 05:13 AM

Quote:

Originally Posted by ArnyVee (Post 1855486)
Completed my first table that uses links to other parts of the site, images and colspan. :D

http://www.waltdisneyboards.com/walt...es-videos.html

This is a great enhancement to our site! :up:

very very impressive table. would you like to share to us the table bbcode you use?

ArnyVee 08-09-2009 11:54 AM

Thanks Brathamike, I've responded to your PM :up:

Brathamike 08-10-2009 05:37 AM

starting to bugs or errors. nice mod though i can get to work on the latest vb version but unable to upload the language pack and when i try to edit the tabels after i save. it mess everything all up

DGF 08-10-2009 04:16 PM

Quote:

Originally Posted by Brathamike (Post 1864367)
starting to bugs or errors. nice mod though i can get to work on the latest vb version but unable to upload the language pack and when i try to edit the tabels after i save. it mess everything all up

about the messing eveythin up, by edit, is it olso when you center the table, because it is the only time i got the mess up.

carsomyr 08-21-2009 09:26 AM

Love this mod but im having real problems getting the sorttable working properly
The table contains a lot of numbers and when you click the heading it sorts them by first digit only.

For example
1008,6,201,704,500,304,

Would be sorted to
1008,201,304,500,6,704

I'd want it to be sorted like:
6,201,304,500,704,1008

How do I make it look at the whole number?

kiwivc 08-22-2009 06:37 AM

Quote:

Originally Posted by carsomyr (Post 1871526)

I'd want it to be sorted like:
6,201,304,500,704,1008

How do I make it look at the whole number?

I tried your numbers in a table and the column sorted properly. I've found that sometimes sortability is affected by blank spaces between the |'s. Check that there are no blank spaces.


All times are GMT. The time now is 11:51 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.02191 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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