~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 22, 2005 19:13:48 GMT -6
Okay I got the code in and put a thread up. The thead reads:
Hey guest, come here
So it isn't pulling my name, Naj.
|
|
|
Post by Lesa on Jun 22, 2005 19:20:18 GMT -6
I don't see the code anywhere in your source code. Where did you put it?
|
|
|
Post by Lesa on Jun 22, 2005 19:25:35 GMT -6
Ok, I see the code now.
Did you add any extra tables before the welcome table in the forum you're trying to get this to work? If you do, it'll throw off the whole td[2] count.
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 22, 2005 19:26:53 GMT -6
Well it half works. I can't go in and modify older threads with it because it stays as "guest". It also shows up as "guest" in the "last post" column. I did try it on a new thread up in ADMIN and it worked. It doesn't work on a forum title, though like I think you already said. i'll do a test thread in the HELP forum so you can see what happens.~Naj coldcase2.proboards21.com/index.cgi?action=display&board=help&thread=1119490366&page=1
|
|
|
Post by Lesa on Jun 22, 2005 19:33:03 GMT -6
Yep, I said that. I'm surprised you can access the main forum pages if you stuck it in the title, because I couldn't when I tried it.
The problems you describe are very odd as well. You should be able to modify the post because of this line:
if(!location.href.match(/(headersfooters|modify)/)){
That line says that if "modify" is seen anywhere in the URL, it won't convert [#username] to the actual username or to guest, and the url to modify a post contains "modifypost". I was able to modify my test post, as defined in the code.
Did you create an account with [#username] as the display name? If so, then the last post=guest would be caused by the same problem that's keeping the other [#username]'s from working correctly.
Where is this thread you created?
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 22, 2005 19:33:59 GMT -6
Ok, I see the code now. Did you add any extra tables before the welcome table in the forum you're trying to get this to work? If you do, it'll throw off the whole td[2] count. So this won't work anywhere in just any random forum on the board? It has to be a specific forum? ~Naj
|
|
|
Post by Lesa on Jun 22, 2005 19:34:59 GMT -6
Do I still have an account at your board? I tried the forgot password, but the usernames and email addresses I try don't exist there.
|
|
|
Post by Lesa on Jun 22, 2005 19:36:55 GMT -6
Ok, I see the code now. Did you add any extra tables before the welcome table in the forum you're trying to get this to work? If you do, it'll throw off the whole td[2] count. So this won't work anywhere in just any random forum on the board? It has to be a specific forum? ~Naj If you have tables above the welcome table in some forums but not in others, then it'll have to be done in each forum as well as for the main page instead of globally.
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 22, 2005 19:37:11 GMT -6
Do I still have an account at your board? I tried the forgot password, but the usernames and email addresses I try don't exist there. Have you ever registered at Look Again. The test board you posted as a guest. I think it was the test board. It only takes 1 minute to sign up if you wanna register at Look Again. I put the thread in the HELP forum.
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 22, 2005 19:38:42 GMT -6
I think this is too much work to get a code like that to work. We can just forget it. It's no big deal to me. I just thought if it was simple I'd put it up.
I think I'm just going to remove the code.
~Naj
|
|
|
Post by Lesa on Jun 22, 2005 19:39:19 GMT -6
Yes, I registered a long time ago so I could see the members only forums, but I never posted.
I guess I'll just have to register again so I can see what happens when I'm logged in.
BTW, I found your test thread. Are you sure you want to give up now, or do you want me to take a stab at it after registering?
|
|
|
Post by Lesa on Jun 22, 2005 19:42:11 GMT -6
You have an alert on the register2 page that says a temporary password was sent. Since we get to choose our own passwords upon registering now, you might want to change that.
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 22, 2005 19:44:44 GMT -6
Yes, I registered a long time ago so I could see the members only forums, but I never posted. I guess I'll just have to register again so I can see what happens when I'm logged in. BTW, I found your test thread. Are you sure you want to give up now, or do you want me to take a stab at it after registering? I just took the code out. Can you work on my board without being the admin? lol! Register page 2. I have no idea where that is.
|
|
|
Post by Lesa on Jun 22, 2005 19:47:47 GMT -6
Main Page Footer:
if(location.href.indexOf("=register2") != -1){ alert("Thank you for registering at Look Again: A Cold Case Message Board. An email has been sent to you containing a temporary password you will need to login. Once you have logged in, you can change your password in your 'Profile Section.' We hope you enjoy these boards and if you have any questions, please email us at coldcaseboards@yahoo.com") location.href="http://coldcase2.proboards21.com" }
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 22, 2005 19:50:51 GMT -6
Main Page Footer:if(location.href.indexOf("=register2") != -1){ alert("Thank you for registering at Look Again: A Cold Case Message Board. An email has been sent to you containing a temporary password you will need to login. Once you have logged in, you can change your password in your 'Profile Section.' We hope you enjoy these boards and if you have any questions, please email us at coldcaseboards@yahoo.com") location.href=" } Oh, Okay. I'll fix that tomorrow. I put the code back in the Global Footers at the top for the username code.
|
|
|
Post by Lesa on Jun 22, 2005 19:57:46 GMT -6
I think I found the problem. You have the deleteCell(1) (and width) code in there twice:
Take the first one out, and that might fix it. I saved your test thread to my HD, took out the first one, and it was fixed.
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 22, 2005 20:01:37 GMT -6
I have to go look. That could take me all night. Let me go look and see if I can fix it. ~Naj
|
|
|
Post by Lesa on Jun 22, 2005 20:01:44 GMT -6
Actually, you have a third table width code in there: You might want to decide on which one you'd like to keep.
|
|
|
Post by Lesa on Jun 22, 2005 20:03:12 GMT -6
I have to go look. That could take me all night. Let me go look and see if I can fix it. ~Naj Just copy your header or footer, paste it to NotePad, and do a quick find (Ctrl+F) for deletecell(1) and take the first full occurrence of that script out.
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 22, 2005 20:05:11 GMT -6
okay here's the codes as I have them in there. I don't see what you are saying is there twice.
<script type="text/javascript"> <!-- /* Code for user's display name in posts or PMs by california, http://socal.proboards26.com */
var usercode="\\[#username\\]";
var td=document.getElementsByTagName("td"); var dname = (td[2].innerHTML.match(/Hey, (.+?), you/i)) ? RegExp.$1 : 'guest'; var re = new RegExp(usercode,"g"); if(!location.href.match(/(headersfooters|modify)/)){ if(document.title.match(re)){ document.title=document.title.replace(re,dname); } for(i=0;i<td.length;i++){ if(td[i].innerHTML.match(re)){ td[i].innerHTML=td[i].innerHTML.replace(re,dname); } } } // --> </script> <script language="javascript"> <!-- tablew = document.getElementsByTagName('TABLE'); for(t=0;t<tablew.length;t++) { if(tablew[t].width=="92%"){ tablew[t].width='600'; } } document.getElementsByTagName('tr')[1].deleteCell(1); document.getElementsByTagName('font')[1].innerHTML=''; //--></script>
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 22, 2005 20:08:02 GMT -6
I have to go look. That could take me all night. Let me go look and see if I can fix it. ~Naj Just copy your header or footer, paste it to NotePad, and do a quick find (Ctrl+F) for deletecell(1) and take the first full occurrence of that script out. This isn't the code I put in for the username. Where are you talking? Main Header? Main footer? Global? ~Naj
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 22, 2005 20:12:47 GMT -6
I'm going to have to look at this tomorrow. I need to get offline for the evening. I'm not sure what header section you are referring to as of right now. Maybe tomorrow I will start fresh. Maybe not. ;D Thanks for looking at this. I'll get that register notice info changed too. ~Naj
|
|
|
Post by Lesa on Jun 22, 2005 20:13:14 GMT -6
I believe the deleteCell code is in your global footer. It's also causing a script error because the 2nd one is trying to delete a cell that has already been deleted by the first one. But take the first one out, and make sure the [#username] code is somewhere before it.
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 22, 2005 20:14:35 GMT -6
I believe the deleteCell code is in your global footer. Okay, I'll do it tomorrow. I must remember to copy and paste the code somewhere else while I'm messing around. ~Naj
|
|
|
Post by Lesa on Jun 22, 2005 20:17:33 GMT -6
Yes, definitely back them up first. I've got stuff to do now too, so I'll TTYL!
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 22, 2005 20:19:40 GMT -6
Yes, definitely back them up first. I've got stuff to do now too, so I'll TTYL! Okay. Some coder from SSD yelled at me one day about having two table widths or something like you are saying but I had no clue what or where. Thanks. ~Naj
|
|
|
Post by Lesa on Jun 22, 2005 20:25:54 GMT -6
It's in the code I posted above. If you read this particular code like English, it's actually quite simple.
if(tablew[t].width=="92%"){ tablew[t].width='600';
Means if the table width is 92% then make it 600 pixels.
if(Table[t].width=="92%"){Table[t].width="690"}
Means if the table width is 92% then make it 690 pixels.
The first one is in there twice (with the deleteCell code you used to get rid of the "Hey, #, you have" welcome cell). The 2nd code is in there once.
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 23, 2005 12:11:40 GMT -6
After coming back today and rereading just what "exactly" I am to delete for width and cell, I realize I don't understand the techincal lingo for all the width stuff and even the extra table you asked me to decide if I wanted in there. Here is the exact code as it is currently in my Global Footers. Just delete what needs deleted and I'll put your version back in my Global Footers and see what happens. I think it will be easier if you just do it because I'm pretty dense. <script type="text/javascript"> <!-- /* Code for user's display name in posts or PMs by california, http://socal.proboards26.com */
var usercode="\\[#username\\]";
var td=document.getElementsByTagName("td"); var dname = (td[2].innerHTML.match(/Hey, (.+?), you/i)) ? RegExp.$1 : 'guest'; var re = new RegExp(usercode,"g"); if(!location.href.match(/(headersfooters|modify)/)){ if(document.title.match(re)){ document.title=document.title.replace(re,dname); } for(i=0;i<td.length;i++){ if(td[i].innerHTML.match(re)){ td[i].innerHTML=td[i].innerHTML.replace(re,dname); } } } // --> </script> <script language="javascript"> <!-- tablew = document.getElementsByTagName('TABLE'); for(t=0;t<tablew.length;t++) { if(tablew[t].width=="92%"){ tablew[t].width='600'; } } document.getElementsByTagName('tr')[1].deleteCell(1); document.getElementsByTagName('font')[1].innerHTML=''; //--></script>
<script type="text/javascript"> <!-- /* vertically align board description cell to middle */ var td=document.getElementsByTagName("td"); for(i=0;i<td.length;i++){ if(td[i].width=="66%"){ td[i].vAlign="middle"; } } // --> </script>
<script type="text/javascript"> <!-- /* only staff can delete posts by california */ var link=document.getElementsByTagName("a"); if(location.href.match(/action=display/)){ for(i=link.length-1;i>0;i--){ if(link[i].href.match(/action=(move|lock|sticky)/i)){ break; }else if(link[i].href.match(/action=deletepost/)){ link[i].href="javascript:alert('This feature has been disabled.');"; } } } // --> </script>
<style type="text/css"> <!-- .group1:link,.group1:visited,.group1:hover { color: 696969 ; font-weight: bold; } .group2:link,.group2:visited,.group2:hover { color: 696969; font-style: italic; } --> </style>
|
|
|
Post by Lesa on Jun 23, 2005 23:22:56 GMT -6
No, I said to decide which width you want. Twice you have the same code to make the forum 600px wide and once you have a different code to make it 690px wide. That is, on one of the pages I looked at. You have something entirely different on another page I looked at. Good idea. Well, since it's showing up twice in the source code and it's only listed in your Global header once, then you obviously have it in all your other headers. You only need it in your Global header OR all your other headers, not both, since the Global header already appears on all pages. Since your main and board headers are set to appear before your global, you'll need to take the code out of all the individual board headers and out of the main header, leaving it only in the Global header.Oh, and if you want the staff link colors to show up immediately, you should move the style sheet (<style .....) to the header. It's fine where it is, though, it'll just take longer to load at the bottom. I just found yet another board width code this time to make it 700px wide: Every time you change the width of the forum, you only need to change the number in that code, not add a whole new code. If you want the forum to be the same width in every board, then you can just leave it in the Global footer and take it out of all the other footers. Doing a quick screen grab and putting it on paint, it looks like your forum listing on the main page is currently 700px, but the Help and Suggestions board, where this code is found: ...is 690 px wide. BTW, I color coded the two above codes so you can see that they both do the same thing. "borderWidth" and "Table" (the ones in blue, not red) are both the same thing, they were just given different names in the two different codes. Likewise for "bw" and "t". The stuff in red and black aren't something that can be named like the stuff in blue and green can.
|
|
~Naj
Whooshite Intermediate
Posts: 401
|
Post by ~Naj on Jun 24, 2005 9:29:40 GMT -6
Oh Lordy. What is easy for you isn't for me to figure this out. Our fourm should be the width that your forum is. Our logo at the top should be the width of our forum and it isn't. That has always bugged me. So is 700 the width you have?
I'm going to pm you.
|
|