Weekly Summary page

Post here to discuss topics relate to the 4.x version for the ASP Football Pool software program. All support topics should go here.
Post Reply
User avatar
Stutgrtguy
Posts: 167
Joined: Sun Oct 20, 2013 3:54 pm
Location: Colorado

Weekly Summary page

Post by Stutgrtguy »

We run our pool to year end, week wins go towards tie-breaks. I would really like to clean up our weeklysummary.asp page, by removing the columns- "cost, winnings, net" I wouldnt even mind if we removed the bottom row "overall pot"

Ive tried a couple times and I must be missing something. Can anyone help?
User avatar
philwojo
Posts: 143
Joined: Mon Aug 26, 2013 4:22 pm

Re: Weekly Summary page

Post by philwojo »

Doesn't seem to hard to me, just playing around with it. I would first save a current copy of your weeklySummary.asp file in case things go really wrong so you can just upload it back to your site.

Open up the weeklySummary.asp file and look for this:

Code: Select all

var statisticsCostSort = {
		tbodyID     : "statisticsBody",
		theadID     : "statisticsHead",
		sortColumns : [
			{ column : 3, descending : true },
			{ column : 0, descending : false }
		],
		highlightColumns : {
			bodyColumns : [3],
			headColumns : [3]
		}
	}
Now just comment it out or delete it, to comment it out make it look like this:

Code: Select all

	<!-- var statisticsCostSort = {
		tbodyID     : "statisticsBody",
		theadID     : "statisticsHead",
		sortColumns : [
			{ column : 3, descending : true },
			{ column : 0, descending : false }
		],
		highlightColumns : {
			bodyColumns : [3],
			headColumns : [3]
		}
	}
	-->
Now find this in the same file:

Code: Select all

<th align="center"><a href="#" onclick="this.blur(); return tableSort.sort(statisticsCostSort);" title="Sort by cost.">Cost</a></th>
Again, either delete it or comment it out, to comment it out make it look like this:

Code: Select all

<!-- <th align="center"><a href="#" onclick="this.blur(); return tableSort.sort(statisticsCostSort);" title="Sort by cost.">Cost</a></th> -->
Lastly, look for this in the same file:

Code: Select all

td><% = FormatAmount(cost) %></td>
Again, comment it out or delete it, here is how I commented it out:

Code: Select all

<!-- <td><% = FormatAmount(cost) %></td> -->
Now save the changed file and reload your page that should remove the "Cost" column from that page.

You can then do the same for any other columns you want to remove, just change the words to match what you are removing.

Hope this helps,
Phil
User avatar
Stutgrtguy
Posts: 167
Joined: Sun Oct 20, 2013 3:54 pm
Location: Colorado

Re: Weekly Summary page

Post by Stutgrtguy »

Thank you Phil, I played with a little tonight, had the three columns deleted, but then the table wouldnt sort at all, (even the week winners) and I usually have default sort to "overall picks" Ill try to play with it a bit more this weekend if I get time :)
User avatar
philwojo
Posts: 143
Joined: Mon Aug 26, 2013 4:22 pm

Re: Weekly Summary page

Post by philwojo »

Oh sure add in extra variables for things you want to work! :) lol

I honestly didn't test that part if it sorry.

I'll try and look at it more tomorrow if I can though.

Phil
User avatar
philwojo
Posts: 143
Joined: Mon Aug 26, 2013 4:22 pm

Re: Weekly Summary page

Post by philwojo »

Not sure, played a little more with it today and couldn't figure it out. I do know it is pointing to s java script file from there, not very familiar with java at all, though I hardly know ASP either! :) I can follow what is being done to a point, but this is a bit beyond my skill set.

Phil
Post Reply