Post any bugs/issues here!
(This post was last modified: 10-11-2024, 08:31 PM by Kyng.)
(10-11-2024, 06:20 PM)Cory Wrote:
(10-11-2024, 12:32 PM)Kyng Wrote: I've tried two methods to prevent preloading

I may misunderstand what you mean by "preloading", but have you tried deferring the script?

https://www.w3schools.com/tags/att_script_defer.asp

Thanks - but unfortunately, neither 'defer' nor 'async' solved the problem.

To clarify, I'm using the following setting in Google Chrome:

[Image: YzRmSe7.png]

When I have this setting turned on, I run into the "You have already Liked this post" issue - and, this is what I get in the 'Network' tab of my Developer Tools:

Click to enlarge
(Click to enlarge)

However, when I have this setting turned, I don't run into the issue - and I only get the second line on the 'Network' tab:

Click to enlarge
(Click to enlarge)

I hope this additional information is useful :) !
[Image: XJXXxYq.png]

Board Information and Policies
Affiliation | Coffee Credits | Ranks and Awards | Name Changes
Account Deletion | BBCode Reference


Moonface (in 'Woman runs 49 red lights in ex's car')' Wrote: If only she had ran another 20 lights. :hehe:

(Thanks to Nilla for the avatar, and Detective Osprey for the sig!)
Quote

I'm stumped! I don't have any experience with MyBB coding and if it's a server-side type of thing and not a JavaScript thing, then I definitely won't be able to figure it out. All I know is keeping plugins up to date is generally recommended.
[Image: jCodesAdBar.png]

[Image: ub3.png]
Quote

(10-11-2024, 08:50 PM)Cory Wrote: I'm stumped! I don't have any experience with MyBB coding and if it's a server-side type of thing and not a JavaScript thing, then I definitely won't be able to figure it out. All I know is keeping plugins up to date is generally recommended.

Well, thanks for your input regardless :) !

Yeah, I still haven't made the plugin updates :lol: . I'll do them tomorrow at some point; I don't have much hope of them fixing the problem, but it's certainly worth a try (and worth doing even if there wasn't a problem to solve :lol: !)
[Image: XJXXxYq.png]

Board Information and Policies
Affiliation | Coffee Credits | Ranks and Awards | Name Changes
Account Deletion | BBCode Reference


Moonface (in 'Woman runs 49 red lights in ex's car')' Wrote: If only she had ran another 20 lights. :hehe:

(Thanks to Nilla for the avatar, and Detective Osprey for the sig!)
Quote

Well, the plugin updates have been made now - but unfortunately, they didn't fix the issues I was having :( .

Still, at least we've eliminated "outdated plugins" as a potential cause of the issue :lol: !
[Image: XJXXxYq.png]

Board Information and Policies
Affiliation | Coffee Credits | Ranks and Awards | Name Changes
Account Deletion | BBCode Reference


Moonface (in 'Woman runs 49 red lights in ex's car')' Wrote: If only she had ran another 20 lights. :hehe:

(Thanks to Nilla for the avatar, and Detective Osprey for the sig!)
Quote

(This post was last modified: 10-12-2024, 12:02 PM by Jane.)
I’ve mentioned this before Chris…I still cannot post an img link either on the forum or..if I wanted..to change my siggy. (which YOU had to do for me) I get a 404 error message. I use my ipad and post images everywhere else with no problems..any ideas? baffling..

“Monsters are real and ghosts are real too. They live inside of us and sometimes they win”

Stephen King.

https://friendlychatting.com


 [Image: IMG-8408.gif]
Quote

(10-12-2024, 12:02 PM)Jane Wrote: I’ve mentioned this before Chris…I still cannot post an img link either on the forum or..if I wanted..to change my siggy. (which YOU had to do for me) I get a 404 error message. I use my ipad and post images everywhere else with no problems..any ideas? baffling..

Unfortunately, I'm really not sure what the cause of that is :( . I've never had that problem myself, but if anyone has any ideas, then I am happy to look into it :) .

Also, an update on the Alerts/Likes: it appears that the plugin upgrade has fixed the Alerts bug after all :lol: . However, the Likes bug remains... so, one down, one to go, I guess!
[Image: XJXXxYq.png]

Board Information and Policies
Affiliation | Coffee Credits | Ranks and Awards | Name Changes
Account Deletion | BBCode Reference


Moonface (in 'Woman runs 49 red lights in ex's car')' Wrote: If only she had ran another 20 lights. :hehe:

(Thanks to Nilla for the avatar, and Detective Osprey for the sig!)
Quote

I don't know if this has been reported yet, but on the full alerts page when you click "Delete" to delete a single alert, you won't know it's deleted until you refresh the page.
[Image: jCodesAdBar.png]

[Image: ub3.png]
Quote

(This post was last modified: 10-19-2024, 10:47 AM by Kyng.)
(10-19-2024, 12:42 AM)Cory Wrote: I don't know if this has been reported yet, but on the full alerts page when you click "Delete" to delete a single alert, you won't know it's deleted until you refresh the page.

Thanks for reporting this :) . I did a bit of experimentation, and found that this only affects the responsive themes (i.e. it's working fine on the PC-based themes).

After doing a bit of digging, I found the following code in the MyAlerts.js file:

Code:
$.getJSON('xmlhttp.php?action=myalerts_delete', {
                accessMethod: 'js',
                id: alertId,
                my_post_key: my_post_key
            }, function (data) {
                if (data.success) {
                    deleteButton.parents('tr').get(0).remove();
                    MybbStuff.MyAlerts.prototype.updateVisibleCounts(data.unread_count_fmt, data.unread_count)
                }
                else {
                    for (var i = 0; i < data.errors.length; ++i) {
                        console.log(data.errors[i]);
                    }
                    alert(data.errors[0]);
                }
            });

This works fine on the PC-based themes, because the 'Alerts' page is structured using HTML tables. However, the responsive themes do not use HTML tables: they instead use a Bootstrap-based system. Therefore, when this script runs, there is no <tr> tag to remove - and thus, nothing happens until the page is refreshed.

I really don't want to go back to an HTML table-based layout - because, that'd defeat the entire point of a responsive theme. However, I haven't been able to find a fix for this myself.

If you have any ideas, let me know - otherwise, I guess I'll have to ask about this on the support board!
[Image: XJXXxYq.png]

Board Information and Policies
Affiliation | Coffee Credits | Ranks and Awards | Name Changes
Account Deletion | BBCode Reference


Moonface (in 'Woman runs 49 red lights in ex's car')' Wrote: If only she had ran another 20 lights. :hehe:

(Thanks to Nilla for the avatar, and Detective Osprey for the sig!)
Quote

Try adding this:
 
Code:
deleteButton.parents('div.alert-row').remove();
[Image: jCodesAdBar.png]

[Image: ub3.png]
Quote

(10-19-2024, 10:57 AM)Cory Wrote: Try adding this:
 
Code:
deleteButton.parents('div.alert-row').remove();

Thanks, but unfortunately, that didn't work: still nothing happens on the responsive themes :( .

After that failed, I then also tried adding the following (to match the syntax of the code that is working on the non-responsive themes):

Code:
deleteButton.parents('div.alert-row').get(0).remove();

But unfortunately, this didn't work either.
[Image: XJXXxYq.png]

Board Information and Policies
Affiliation | Coffee Credits | Ranks and Awards | Name Changes
Account Deletion | BBCode Reference


Moonface (in 'Woman runs 49 red lights in ex's car')' Wrote: If only she had ran another 20 lights. :hehe:

(Thanks to Nilla for the avatar, and Detective Osprey for the sig!)
Quote




Forum Jump:


Users browsing this thread: 1 Guest(s)