• This is a demo site for the purposes of showing and testing VaultWiki in a XenForo environment. If you have real questions or need support, please visit the real VaultWiki web site here: https://www.vaultwiki.org

a desperate suggestion for TABLE's

Sorry I feel your pain but I no longer do outside code jobs. You can try to switch to VW tables as they support sorting, but I imagine it will take a very long time to convert manually. You should find out what the plans are to update your mod to vB 4.1.4.
 
VW tables are the TABLE code that was bundled with VaultWiki. I believe you would just have to disable your other mod for it to take effect.
Code:
[TABLE] border="1"
|- style="background: yellow"
| style="color: red" | text
| text
|-
[/table]

Where |- denotes a new row, and | starts a new cell. Both must be at the start of a line or they are treated literally.

[TABLE] border="1"
|- style="background: yellow"
| style="color: red" | text
| text
|-
[/table]
 
So I am trying to use http://tablesorter.com/docs/ to sort my tables, but when I add the example code

This is in my headers:

Code:
<script type="text/javascript">
$(function() {		
   $("#sortable").tablesorter();
});	
</script>



I added this in the wiki page:
Code:
<table id="sortable" class="tablesorter">
<thead>
<tr>
    <th>Number Of Fatalities</th>
    <th>Year</th>
    <th>Month Of Incident(S)</th>
</tr>


But when the table renders, I get this:

Code:
<table id="sortable" class="tablesorter">[B]<div class="vw-div"> </div>[/B]<thead><div class="vw-div"> </div><tr><div class="vw-div"> </div>

Why are these DIV's added and is there a way to omit these to attempt to get this table sorter working?
 
Back
Top