|
Post by dave on Nov 6, 2010 4:17:11 GMT -8
Hi Wormo Sorry for posting this here i could not find a code support board if i have posted in the wrong board sorry if you could move it for me that would be great You created a main page remodel code for me a while back i will post this below and id like a few changes to be made In the board cells where its divided in to 4 id like the topics and posts details in the top left hand corner replacing the Moderated by which would remove the topics/post columns and have the information displayed in the actual board cell and could these be on seperate lines please eg: 1 Thread 4 Posts The code you created was <script type='text/javascript'> <!-- // Dave's main page remodel // Coding by Wormopolis by request // Keep header intact - do not use without permission if(pb_action='home') { fj=document.getElementById('forumjump'); for(tds=document.getElementsByTagName('td'), c = 0 ; c < tds.length ; c ++ ) { if( tds[c].className == 'titlebg' && tds[c].innerHTML.match(/Forum\sName/) ) tds[c].parentNode.style.display='none'; if( tds[c].className == 'catbg' && tds[c].colSpan == '5' ) { tds[c].style.className='titlebg'; tds[c].style.textAlign='center'; } if( tds[c].className == 'windowbg2' && tds[c].width == '66%' ) { bthrCell=tds[c].nextSibling.firstChild; bpstCell=tds[c].nextSibling.nextSibling.firstChild; bthrCell.innerHTML+='<br>Thread'+(bthrCell.innerHTML!='1' ? 's' : ''); bpstCell.innerHTML+='<br>Post'+(bpstCell.innerHTML!='1' ? 's' : ''); bname=tds[c].getElementsByTagName('a')[0]; btemp=(bname.href.match(/index\.cgi\?(.*?)$/) ? RegExp.$1 : ''); bview=(bname.nextSibling && bname.nextSibling.innerHTML.match(/ - (\d+) Viewing/)) ? bname.nextSibling.innerHTML : ""; bsubs=''; for (fc=0; fc<fj.options.length; fc++) { if (fj.options[fc].value=='/index.cgi?'+btemp) { while (fj.options[fc+1] && fj.options[fc+1].innerHTML.match(/--- (.*?)$/)) { sbdname=RegExp.$1; sbdhref=fj.options[fc+1].value; bsubs+=(bsubs!= '' ? ', ' : '') + '<a href="'+sbdhref+'">'+sbdname+'</a>'; fc++; } break; } } bdesc=(tds[c].firstChild.nextSibling && tds[c].firstChild.nextSibling.nextSibling) ? tds[c].firstChild.nextSibling.nextSibling : ''; bmods= (bdesc && bdesc.getElementsByTagName('i')[0]) ? bdesc.getElementsByTagName('i')[0].innerHTML : ''; bdesc=(bdesc.innerHTML.split(/<br>/i)[0] ? bdesc.innerHTML.split(/<br>/i)[0] : bdesc.innerHTML); nwcl_html='<table width="100%" ><tr><td colspan="2" align="center" class="windowbg2" style="border-bottom: #FFFFFF 1px solid">'; nwcl_html+='<span style="margin-left: -64px; float: right">'+bview+'</span><a href="'+bname.href+'">'+bname.innerHTML+'</a>'; nwcl_html+='</td></tr><tr><td width="50%" rowspan="2" style="border-right: #FFFFFF 1px solid">'+bdesc+'</td><td>'; nwcl_html+=bmods+'</td></tr><tr><td width="50%" style="border-top: #FFFFFF 1px solid">'; nwcl_html+=bsubs+'</td></tr></table>'; tds[c].innerHTML=nwcl_html; c+=4; } } } // --> </script>
Thanks
|
|
|
Post by Wormopolis on Nov 7, 2010 19:40:22 GMT -8
where di you have this running currently so I can get a better visualization?
|
|
|
Post by dave on Nov 7, 2010 19:54:44 GMT -8
where di you have this running currently so I can get a better visualization? Erm x-box.proboards.com
|
|
|
Post by dave on Nov 9, 2010 14:46:50 GMT -8
Bump
|
|
|
Post by Wormopolis on Nov 9, 2010 22:18:25 GMT -8
ok.. see the board, but dont see where you are talking about moderators...
perhaps show me a table of how you want the board cell to look? use UBBC if you want.
|
|
|
Post by dave on Nov 10, 2010 12:38:00 GMT -8
ok.. see the board, but dont see where you are talking about moderators... perhaps show me a table of how you want the board cell to look? use UBBC if you want. Im not that good with UBBC Maybe this forum would be a better example though it isnt completely finished yet ultimateads.proboards.com Cheers Dave
|
|
|
Post by Wormopolis on Nov 12, 2010 16:23:36 GMT -8
so like: topics/posts | board title | blank | sub boards |
?
|
|
|
Post by Wormopolis on Nov 21, 2010 4:34:26 GMT -8
I think I lost Dave again...
|
|
|
Post by dave on Nov 21, 2010 6:57:02 GMT -8
so like: topics/posts | board title | blank | sub boards |
? like Board Name | # Threads & Posts | Description | sub boards (List on Hover) |
Board Name | # Threads & # Posts Description | Sub Board Listing (or your code) # Of sub boards on hover the list showing the sub board names
|
|
|
Post by dave on Nov 22, 2010 8:20:40 GMT -8
Just in case you forgot haha
|
|
|
Post by Wormopolis on Nov 23, 2010 7:10:50 GMT -8
havent forgot.. but I have to rewrite some stuff since its a major change
|
|
|
Post by dave on Nov 23, 2010 7:11:51 GMT -8
Ok cheers mate
|
|
|
Post by Wormopolis on Dec 11, 2010 19:16:52 GMT -8
sorry this took so long. I have been swamped with a bunch of other stuff it got put on the back burner.
<script type='text/javascript'> <!-- // Dave's main page remodel v2.0 // Coding by Wormopolis by request // Keep header intact - do not use without permission
if(pb_action='home') { fj=document.getElementById('forumjump'); for(tds=document.getElementsByTagName('td'), c = 0 ; c < tds.length ; c ++ ) { if( tds[c].className == 'titlebg' && tds[c].innerHTML.match(/Forum\sName/) ) tds[c].parentNode.style.display='none'; if( tds[c].className == 'catbg' && tds[c].colSpan == '5' ) { tds[c].style.className='titlebg'; tds[c].style.textAlign='center'; } if( tds[c].className == 'windowbg2' && tds[c].width == '66%' ) { bthrCell=tds[c].nextSibling.firstChild; bpstCell=tds[c].nextSibling.nextSibling.firstChild; bthrds=bthrCell.innerHTML+'<br>Thread'+(bthrCell.innerHTML!='1' ? 's' : ''); bpsts=bpstCell.innerHTML+'<br>Post'+(bpstCell.innerHTML!='1' ? 's' : '');
bname=tds[c].getElementsByTagName('a')[0]; btemp=(bname.href.match(/index\.cgi\?(.*?)$/) ? RegExp.$1 : ''); bview=(bname.nextSibling && bname.nextSibling.innerHTML.match(/ - (\d+) Viewing/)) ? bname.nextSibling.innerHTML : ""; bsubs=''; for (fc=0; fc<fj.options.length; fc++) { if (fj.options[fc].value=='/index.cgi?'+btemp) { while (fj.options[fc+1] && fj.options[fc+1].innerHTML.match(/--- (.*?)$/)) { sbdname=RegExp.$1; sbdhref=fj.options[fc+1].value; bsubs+=(bsubs!= '' ? ', ' : '') + '<a href="'+sbdhref+'">'+sbdname+'</a>'; fc++; } break; } } bdesc=(tds[c].firstChild.nextSibling && tds[c].firstChild.nextSibling.nextSibling) ? tds[c].firstChild.nextSibling.nextSibling : ''; bmods= (bdesc && bdesc.getElementsByTagName('i')[0]) ? bdesc.getElementsByTagName('i')[0].innerHTML : ''; bdesc=(bdesc.innerHTML.split(/<br>/i)[0] ? bdesc.innerHTML.split(/<br>/i)[0] : bdesc.innerHTML); nwcl_html='<table width="100%" class="bordercolor" cellSpacing="1"><tr><td width="50%" align="center" class="windowbg2" >'; nwcl_html+='<span style="margin-left: -64px; float: right">'+bview+'</span><a href="'+bname.href+'">'+bname.innerHTML+'</a>'; nwcl_html+='</td><td width="50%" align="center" class="windowbg2">'; nwcl_html+='<a href="'+bname.href+'">'+bthrds+'<br>'+bpsts+'</a></td></tr>'; nwcl_html+='<tr><td width="50%" class="windowbg2">'+bdesc+'</td>'; nwcl_html+='<td class="windowbg2" width="50%" >'; nwcl_html+=bsubs+'</td></tr></table>'; tds[c].innerHTML=nwcl_html; c+=4;
} } } // --> </script>
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Dec 4, 2011 8:22:52 GMT -8
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Dec 8, 2011 12:02:22 GMT -8
|
|