|
Post by Curious George® on Jan 18, 2006 10:25:39 GMT -5
|
|
|
Post by deadlyassassin on Jan 20, 2006 12:57:36 GMT -5
i would like for it do to the same for the main page view but have it remove the last post section when inserted Do you mean the content inside the last post section, or just remove that section completely, and if so, where would you want the topic and posts to be displayed then?
|
|
|
Post by Curious George® on Jan 20, 2006 15:09:26 GMT -5
when inserted there is no last post section unless you want to include it into the code that so that it follows the design of the others
|
|
|
Post by deadlyassassin on Jan 20, 2006 15:24:34 GMT -5
Ok, so this is what you want:
code removed
|
|
|
Post by Curious George® on Jan 20, 2006 16:57:46 GMT -5
no where close...did you see how my threads look when you view one? Example
|
|
|
Post by deadlyassassin on Jan 20, 2006 17:25:26 GMT -5
so you want the same sort of look in that example for the main page then?
|
|
|
Post by Curious George® on Jan 20, 2006 19:54:58 GMT -5
yeah exactly
|
|
|
Post by deadlyassassin on Jan 21, 2006 5:30:49 GMT -5
Ok, now that i have understood, i hope the following meets your requirements: Main Footer<script type="text/javascript"> <!-- /* Main Page Remodel, By {XF}Äs$@§sîñ™, www.xf-clan.net/ */
var td = document.getElementsByTagName('td'); if(location.href.match(/com\/?((index\.cgi)?\??(action=(home|logout))?(#\w+)?)?$/)) { for (i=0; i<td.length; i++) { if (td.item(i).className.match(/windowbg2/i) && td.item(i).width == "66%") { var topics = td.item(i).nextSibling.firstChild.innerHTML; var posts = td.item(i).nextSibling.nextSibling.firstChild.innerHTML;
if (td.item(i).innerHTML.match(/<i>(.+?):\s(.+?)<\/i>/i)) { var modTxt = RegExp.$1; var newModTxt = '<\/i>\[<i>' + modTxt; td.item(i).innerHTML = td.item(i).innerHTML.replace(modTxt, newModTxt); td.item(i).appendChild(document.createTextNode(']')); }
td.item(i).nextSibling.style.display = 'none'; td.item(i).nextSibling.nextSibling.style.display = 'none';
td.item(i).appendChild(document.createTextNode(' [Topics: ' + topics + ']')); td.item(i).appendChild(document.createTextNode(' [Posts: ' + posts +']')); }
if (td.item(i).className.match(/titlebg/i) && td.item(i).width == "1%" && td.item(i).align == "center" && td.item(i).innerHTML.match(/Topics/i)) { td.item(i).style.display = 'none'; td.item(i).nextSibling.style.display = 'none'; td.item(i).nextSibling.nextSibling.setAttribute("align", "left"); } } } //--> </script>
|
|