|
Post by Wormopolis on May 24, 2010 0:11:46 GMT -8
Browser tested: IE and FF placement: global footer
simply jumps to the post you just made after you submit. compatible with post merging codes.
<script type='text/javascript'> <!-- // Go to your post after posting. // Original code created by CrAzY_J // New Version by Wormopolis
if( location.href.match(/display&board=/)) { pst=''; if(!location.href.match(/#(\d+)/)) { if(document.referrer && document.referrer.match(/action=modifypost/) && document.referrer.match(/post=(\d+)/)) { pst=RegExp.$1; } else { for (lnks=document.getElementsByTagName('a'), ll=lnks.length-1; ll>0; ll--) { if (lnks[ll].href.match(/action=gotopost/) && lnks[ll].innerHTML.match(/link to post/i) && lnks[ll].href.match(/post=(\d+)/)) { pst=RegExp.$1; break; } } } } else { pst=RegExp.$1; } if (pst && document.getElementsByName(pst)[0]) { parentcheck=document.getElementsByName(pst)[0].parentNode.parentNode; while (parentcheck.style.display=='none') { parentcheck=parentcheck.previousSibling; pst=parentcheck.firstChild.firstChild.name; } document.getElementsByName(pst)[0].scrollIntoView(true); } }
// --> </script>
|
|
cmjavagirl
Not New Member
Posts: 5
cmjavagirl said 0 great things
|
Post by cmjavagirl on Sept 3, 2010 5:45:09 GMT -8
Mr. Moon,
I just installed this code at my site, and it works beautifully in my test. Now, let's see if my posters can grasp the concept of how I'd like them to use it!
I installed it along with directions to just place a character in this Quick Reply box and Post it, then they could hit the new "Toast" button on my site which is the "Like" code I took from you the other day. Hopefully if they follow directions I should be able to track the "Likes" as posts.
And then maybe when you have some time you could work on the code I asked about in yesterday's post.
Again, thanks so much for providing this great code!
Lisa
|
|
|
Post by Wormopolis on Sept 3, 2010 10:48:38 GMT -8
Mr Moon hasnt been here in over a year...
I have no idea what you are talking about here...
|
|