Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Feb 28, 2012 13:08:39 GMT -8
var blpauth= blstpst[1].split(/by /)[1]; var blptopic= blstpst[2].split(/in /)[1]; What do i do with this ?
|
|
|
Post by Wormopolis on Feb 29, 2012 0:04:08 GMT -8
change the 2 lines in the code you already have
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Feb 29, 2012 1:28:23 GMT -8
Okies i done that codwar.proboards.com/index.cgi It has only worked on the 1st category And it has appeared has white lines and not the original border colour
|
|
|
Post by Wormopolis on Feb 29, 2012 20:47:50 GMT -8
aw crap.. it saw an empty cell...
tds[c].innerHTML=nwcl_html; var blstpstCell= tds[c].nextSibling.nextSibling.nextSibling.firstChild; var blstpst= tds[c].nextSibling.nextSibling.nextSibling.firstChild.innerHTML; if (blstpst.match(/by/i)) { blstpst=blstpst.split(/<br>/i); var blpdate= (blstpst[0].match(/today/i) ? 'Today' : (blstpst[0].match(/yesterday/i) ? 'Yesterday': blstpst[0].split('on ')[1].split(',')[0] + blstpst[0].split('on ')[1].split(',')[1])); var blptime= (blstpst[0].match(/at/) ? blstpst[0].split(/at /)[1] : blstpst[0].split(', ')[2]); var blpauth= blstpst[1].split(/by /)[1]; var blptopic= blstpst[2].split(/in /)[1]; blstpstCell.innerHTML = '<center>Date: ' + blpdate + '<hr color="black">Time: ' + blptime + '<hr color="black">Author: ' + blpauth + '<hr color="black">Topic: ' + blptopic + '</center>'; } c+=4;
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Mar 1, 2012 2:07:28 GMT -8
aw crap.. it saw an empty cell... tds[c].innerHTML=nwcl_html; var blstpstCell= tds[c].nextSibling.nextSibling.nextSibling.firstChild; var blstpst= tds[c].nextSibling.nextSibling.nextSibling.firstChild.innerHTML; if (blstpst.match(/by/i)) { blstpst=blstpst.split(/<br>/i); var blpdate= (blstpst[0].match(/today/i) ? 'Today' : (blstpst[0].match(/yesterday/i) ? 'Yesterday': blstpst[0].split('on ')[1].split(',')[0] + blstpst[0].split('on ')[1].split(',')[1])); var blptime= (blstpst[0].match(/at/) ? blstpst[0].split(/at /)[1] : blstpst[0].split(', ')[2]); var blpauth= (blstpst[1].split(/by /)[1]; var blptopic= (blstpst[2].split(/in /)[1]; blstpstCell.innerHTML = '<center>Date: ' + blpdate + '<hr color="black">Time: ' + blptime + '<hr color="black">Author: ' + blpauth + '<hr color="black">Topic: ' + blptopic + '</center>'; } c+=4;
changed that its gone completely
|
|
|
Post by Wormopolis on Mar 1, 2012 16:06:36 GMT -8
change those 2 lines in reply 30 again. I copied them with the extra ( in there when I pasted
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Mar 1, 2012 17:24:02 GMT -8
change those 2 lines in reply 30 again. I copied them with the extra ( in there when I pasted Okies done that Author & Topic are showing as undefined Is that due to putting the code in before the posts Edit: In the Moderated by cell can we remove the Moderator: text so it just shows as >> <<Moderated by>> NAME HERE
|
|
|
Post by Wormopolis on Mar 2, 2012 1:11:20 GMT -8
where does it show undefined?
|
|
|
Post by Wormopolis on Mar 2, 2012 1:20:24 GMT -8
replace
nwcl_html+='<tr><td colSpan="2" class="windowbg2">« Moderated by » ' + bmods + '</td></tr>';
with
nwcl_html+='<tr><td colSpan="2" class="windowbg2"><center>« Moderated by » ' + bmods.replace(/moderator(s?):/i,'') + '</center></td></tr>';
replace
blstpst=blstpst.split(/<br>/i);
with
blstpst=blstpst.split(/<br\/?>/i);
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Mar 2, 2012 3:27:08 GMT -8
where does it show undefined? Ok done that If you take a look > codwar.proboards.comBoth the Author: and Topic: are undefined Can we also make the board information stretch to fit the board cell
|
|
|
Post by Wormopolis on Mar 2, 2012 20:15:38 GMT -8
what do you mean by stretch? you want it to go into the cell to the right where the sub-boards go?
in firefox and chrome the undefined doesnt show. IE apparently has an issue.
|
|
|
Post by Wormopolis on Mar 2, 2012 20:35:30 GMT -8
replace
var blpauth= (blstpst[1].split(/by /)[1]; var blptopic= (blstpst[2].split(/in /)[1];
with
var blpauth= blstpst[1].replace(/by /,''); var blptopic= blstpst[2].replace(/in /,'');
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Mar 3, 2012 17:04:09 GMT -8
what do you mean by stretch? you want it to go into the cell to the right where the sub-boards go? in firefox and chrome the undefined doesnt show. IE apparently has an issue. That looks good now and the undefined has gone so looks like the IE error has fixed I mean if you take a look at the main page it currently doesnt take up all the board cell for example the Black Ops board - Maybe we could move the sub boards below the board description and also add in the Sub-Boards: text in the cells
|
|
|
Post by Wormopolis on Mar 3, 2012 21:22:43 GMT -8
ah you meant height. I thought you meant width.
change this
nwcl_html='<table width="100%" class="bordercolor" cellSpacing="1"><tr><td width="50%" align="center" class="windowbg2" >';
to this
nwcl_html='<table width="100%" class="bordercolor" cellSpacing="1" height="100px"><tr><td width="50%" align="center" class="windowbg2" >';
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Mar 4, 2012 2:49:54 GMT -8
ah you meant height. I thought you meant width. change this nwcl_html='<table width="100%" class="bordercolor" cellSpacing="1"><tr><td width="50%" align="center" class="windowbg2" >'; to this nwcl_html='<table width="100%" class="bordercolor" cellSpacing="1" height="100px"><tr><td width="50%" align="center" class="windowbg2" >'; Done that looks perfect
|
|