The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

aggregate double-posts double-loads pages hides favicon

View previous topic View next topic Go down

Solved aggregate double-posts double-loads pages hides favicon

Post by DVAted on October 26th 2015, 5:37 pm

Technical Details


Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Mozilla Firefox
Screenshot of problem : http://i.imgbox.com/AepmUT54.png
Who the problem concerns : All members
When the problem appeared : After applying a new script to aggregate double posts.
Forum link : www.gunetwork.org

Description of problem

Hello

So I've used the "Aggregate Double Posts" script from here:
http://help.forumotion.com/t136448-phpbb-aggregate-double-posts

Unfortunately, every page on my site now is double-loaded. This also has the nasty side-effect of hiding my custom favicon into the default one.

Bothers me that this happens on Firefox and not on Chrome.

I know I have two quick fixes - use Chrome or remove the double-post script.

I just wanted to report the bug and hope for a third solution from one of the many great scripters here like Twisted and Ange.


Last edited by DVAted on October 26th 2015, 8:27 pm; edited 1 time in total

DVAted
Forumember

Posts : 50
Reputation : 3
Language : English

http://gunetwork.org

Back to top Go down

Solved Re: aggregate double-posts double-loads pages hides favicon

Post by Ange Tuteur on October 26th 2015, 6:20 pm

Hi @DVAted,

It looks like the script reassigns the location hash so your browser focuses on the correct post ( or edit ) after the posts have been combined. You can try replacing the script with the one below if you like :
Code:
$(function() {
  var c = "", a, d = 0, b = 0;
  $("tr.post").each(function() {
    var e = $("> td:first span.name", this).text();
    e != c ? (d++, b++, a = $(this), b % 2 != d % 2 && $("> td", a).add($("> td", a.next())).toggleClass("row1 row2"), c = e) : (b++, $(a).find("div.signature_div").remove(), $("> td:last", a).append($("> td:last > table ", this).addClass("doublepost").attr("id", $(this).attr("id").replace(/^p([0-9]+)$/, "$1"))), $(this).next().remove(), $(this).remove())
  });
});
I removed the modification of the location hash which pushed another state in the history.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: aggregate double-posts double-loads pages hides favicon

Post by DVAted on October 26th 2015, 8:27 pm

Thank you! That fixed it! I'm so happy to have it fixed Very Happy

Now, I would have a few more things I need some help with. Do I make individual topics for them, or do I make one master-topics for all my troubles?

They involve (but aren't limited to):

Having a short .mp3 file uploaded to some type of host which gives me a direct link so I can use it as a Chatbox notification sound. I've spent about 3 hours today trying to figure out how to get a compatible direct link to my own mp3 file from a hosting site. Mediafire, 4shared, pocosong, everything failed. They give me either links to their own player, or to the download, never to the direct .mp3 file. So I can't replace
http://illiweb.com/fa/fdf/zelda.mono.mp3
with anything that I want. I tried finding out how to upload to illiweb but couldn't figure it out. Alternatively, do you have a catalog of alternative notification sounds on illiweb?

Also, I'd need a way to deny access to members below 30 posts on the chatbox and an auto-login script as well. I've scouted a few on previous topics here which other people have made, but they were either for phpbb3, for 3rd party chatboxes, or simply did not work.

Lastly, I had two great scripts for my forums:
1. allowing any staff-made edit to another user's post to be auto-logged by PM to that user.
2. denying members the chance to double-post by hiding the "reply" button and neutralizing the "quick reply" box if theirs was the last post made in the topic. It was very effective, cut double-posting down to 90% (the only slips were internet hiccups/accidental identical double posts. but not more intentional consecutive posting)
They were quite effective!
The problem there is that a few months ago they both stopped working and/or glitched out, and the man who's scripted them went off the grid and can't help anymore.

I disabled them, but I'd dearly like to have them back, in working form. I may copy/paste our source for overview with detailed description of the glitching/bugs.

The real question to all of this is:
Do I make individual topics for these issues, or a master topic?
Many thanks, Ange, you're a legend!
Here's a topic where I've name-dropped you quite a few times:
http://www.gunetwork.org/t8056-halloween-site-improvements
Thank you for everything cheers

DVAted
Forumember

Posts : 50
Reputation : 3
Language : English

http://gunetwork.org

Back to top Go down

Solved Re: aggregate double-posts double-loads pages hides favicon

Post by Ange Tuteur on October 26th 2015, 11:28 pm

@DVAted no problem and thanks. ^^ Yes, it would be a good idea to create separate topics for multiple problems. It keeps things organized and easier to find via searching.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: aggregate double-posts double-loads pages hides favicon

Post by SLGray on October 27th 2015, 2:00 am

Topic solved and archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum