We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Merge Double Posts; Opera - Firefox - IExplorer; By RedKrazyKid
Topic Started: Jan 23 2010, 01:04 AM (331 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: RedKrazyKid
Merge Double Posts; Opera - Firefox - IExplorer
 
Name
Merge Double Posts
Opera - Firefox - IExplorer

Description:
When a person double posts, their second post is merged in with the first one. Not just the second one, but any double post after that.
This script leaves the first post on the page alone.

I'd tell you it was by design to distinguish the first post in the topic, but that'd be a lie. Can't figure out what I did. xD

Preview
Tower City

In that topic, go to the parent forum. Notice the number of replies compared to the number of visible posts.

Code

Code:
 
<script language="javascript">if(window.location.href.match('showtopic=')) {var authorname = new Array();var track = 0;var x = document.getElementsByTagName('div');for(i=0;i<x.length;i++) {if(x[i].className == 'postcolor') {x[i].id = 'post' + track;authorname[track] = x[i].parentNode.parentNode.parentNode.parentNode.rows[0].cells[0].firstChild.firstChild.innerHTML;if(track > 1) {if(authorname[track] == authorname[(Math.floor(track) - 1)]) {document.getElementById('post' + (Math.floor(track) - 1)).innerHTML += '<br /><br />' + x[i].innerHTML;document.getElementById('post' + (Math.floor(track) - 1)).id = x[i].id;x[i].id = '';x[i].parentNode.parentNode.parentNode.parentNode.style.display = 'none';}}track = Math.floor(track) + 1;}}}</script>


It goes in the footer.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply