|
Post by tunescool on Aug 7, 2011 13:42:54 GMT -8
i thought i was using the remove Re code but i just went thru my footers and its not there. but Re still doesnt show up in replies. anyway, titles are getting cut off in replies thenotablenook.com/index.cgi?board=celebsam&action=display&thread=11100could it have something to do with these codes, or can anything be done <script type="text/javascript"> <!-- /* Remove Author Title Row And Place Read */
/* By Alex - Open Source */
var tunescool_Request={
Font_Colour: "6D6D6D", //Font Colour Smilies_Message: "Please Try To Have A Date In The Title For The Archives", //Smilies Message
Location: function(){ if(window.location.href.match(/action=(display|(user)?recent|viewprofile|(calendar|pm)view)/)){ this.Execute_Read(); } if(document.postForm){ this.Execute_Smilies(); } }, Execute_Read: function(){ var Td=document.getElementsByTagName('td'); var i=Td.length-1; do{ if(Td.item(i).vAlign=="middle" && Td.item(i).align=="left" && Td.item(i).className=="catbg" && Td.item(i).width=="80%" && Td.item(i).innerHTML.match(/\(Read (.+?) time(s)?\)/)){ var Times_Span=document.createElement('span'); Times_Span.innerHTML='<font size="2" color="'+this.Font_Colour+'"><b>Read '+RegExp.$1+' Times</b></font> '; var Parent = Td.item(i+1).nextSibling.getElementsByTagName('td').item(1); Parent.insertBefore(Times_Span, Parent.firstChild.nextSibling.nextSibling); Td.item(i).parentNode.style.display='none'; } i--; } while(i>5); }, Execute_Smilies: function(){ var Smilies = document.postForm.subject.parentNode.parentNode.nextSibling; var New_Row=Smilies.cloneNode(true); New_Row.getElementsByTagName('font').item(0).innerHTML='Note:'; New_Row.getElementsByTagName('td').item(1).innerHTML='<font size="2"><b>'+this.Smilies_Message+'</b></font>'; if (pb_username!='Guest') Smilies.parentNode.insertBefore(New_Row, Smilies.nextSibling); } } tunescool_Request.Location();
//--> </script> <script type="text/javascript"> // Post Title Cell Expand for (tds=document.getElementsByTagName('td'), t=0; t<tds.length; t++) { if (tds[t].width=='55%' && tds[t].vAlign=='middle' && tds[t].align=='left') { if (tds[t].nextSibling.width=='40%') { tds[t].width='75%'; tds[t].nextSibling.width='20%'; //these 2 must add to 95% } } } </script>
|
|
|
Post by Wormopolis on Aug 7, 2011 17:09:17 GMT -8
neither of those 2 codes, but this one:
<script type="text/javascript"> <!-- // Remove Re From Thread Titles var input = document.getElementsByTagName("input"); for(i = 0; i < input.length; i++){ if(input.name == "subject"){ input.value = input.value.replace(/Re:\s/i, ''); } } //--> </script>
the problem is that the server is what returns the text in that cell. if the text was already at max length, then when it adds the "RE: " to it, it truncates the end of the string. removing the added text wont bring back the original text however.
even trying to store the thread title before hitting reply would bug if someone were to manually change the thread title, and it ended up being the top post on a new page, since the code would find it first and not know that was not the original title.
|
|
|
Post by tunescool on Aug 7, 2011 19:55:29 GMT -8
the Re code isnt even in my footers. no matter what nothing can be done, longer titles replied to are gonna show up like that? they would show up without the code alex made because it would just be the normal proboards title on 2 lines? im pretty sure on any proboards, reply has never been cutoff like mine, ive been on proboards forums since like 2003
|
|
|
Post by Wormopolis on Aug 8, 2011 0:59:25 GMT -8
I got that code I posted FROM your footers. serach for "Re:" in your global footers (or it mightjust be in that board footer?)
add &NOHEADERS=1 to the end of the url when you go to reply to that thread you posted. you will see the "Re:" is in the subject title, and the right end of it is cut off.
|
|
|
Post by tunescool on Aug 8, 2011 2:00:17 GMT -8
well i looked but didnt see it, i dont need to see it if you said it was in there. is there anyway to modify it so replies dont get cut off
|
|
|
Post by Wormopolis on Aug 8, 2011 10:42:18 GMT -8
its not that code that cuts off the titles. you get 50 characters for the title. the example thread you linked to is at 49 characters.
PB adds "Re: " to the beginning of the title on replies and cuts off the last 4 characters. it does this BEFORE any code even runs. its just how it comes from the server.
|
|
|
Post by tunescool on Aug 8, 2011 11:03:28 GMT -8
so nothing can be done
|
|
|
Post by Wormopolis on Aug 8, 2011 12:07:19 GMT -8
nothing on client side. if the text is that close to 50 characters, its always going to get cut off on replies.
|
|
|
Post by tunescool on Aug 8, 2011 12:35:53 GMT -8
alrite
|
|