The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Javascript activation problem

3 posters

Go down

Solved Javascript activation problem

Post by Rius March 2nd 2024, 1:48 pm

Technical Details


Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome, Other
Screenshot of problem : https://i.imgur.com/GSoUgBS.jpeg
Who the problem concerns : All members
When the problem appeared : When activating javascripts
Forum link : ( link is hidden, you must reply to see )

Description of problem

Hello,

The sceditor-toolbar disappears when I activate the javascripts and click the 'yes' button. It doesn't matter what scripts I enter, the problem persists. Currently there are: full text selected, avatar of the last registered member and avatar of recent topics. My question is, is there a way to make the sceditor not appear as shown in the picture above, but as it does when javascripts are deactivated. As follows: https://i.imgur.com/dU2NKdR.jpeg
Sorry for my English, I hope my question is understandable.
Rius
Rius
New Member

Female Posts : 5
Reputation : 1
Language : Hungarian, English
Location : Hungary

https://skintest99.hungarianforum.com

Back to top Go down

Solved Re: Javascript activation problem

Post by skouliki March 2nd 2024, 3:03 pm

Hello

Probably one script is causing this conflict
Try to disable one at a time to check which one is causing this
skouliki
skouliki
Manager
Manager

Female Posts : 15399
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Javascript activation problem

Post by Rius March 2nd 2024, 3:35 pm

skouliki wrote:Hello

Probably one script is causing this conflict
Try to disable one at a time to check which one is causing this

I tried the scripts one by one. If everything is true, the problem is caused by the avatar of the last registered member. The javascript code for this is as follows:
Code:
$(function(){$.get($("#dernier_membre a[href^='/u']")[0].href,function(d){(a=$("#avatar_membre img",$(d))).length&&$("#avatar_dernier_membre").html(a)})});
Is there a solution to this? Or should I get rid of this and be ready to compromise? Help me
Thank you for your help so far Hug
Rius
Rius
New Member

Female Posts : 5
Reputation : 1
Language : Hungarian, English
Location : Hungary

https://skintest99.hungarianforum.com

Back to top Go down

Solved Re: Javascript activation problem

Post by skouliki March 2nd 2024, 3:53 pm

skouliki
skouliki
Manager
Manager

Female Posts : 15399
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Javascript activation problem

Post by Rius March 2nd 2024, 4:07 pm


No, that's how sceditor works.
Actually, the tutorials I've used from here don't cause any problems.

The "Who's online?" The tutorial for the last registered user's avatar, which can be inserted into the section, is the one I followed from the French forumotion page, and this script is the cause of the problem.
As you can see in the script embedded in the code, avatar_dernier is the name of the script. I don't know if this can be found here because I haven't found it yet. I also thought that maybe the problem is caused by the fact that this is the only script that is from somewhere else.
Rius
Rius
New Member

Female Posts : 5
Reputation : 1
Language : Hungarian, English
Location : Hungary

https://skintest99.hungarianforum.com

Back to top Go down

Solved Re: Javascript activation problem

Post by skouliki March 2nd 2024, 4:15 pm

ok i assume for this code you must have modified the templates "index_body" and "profile_view_body right?
skouliki
skouliki
Manager
Manager

Female Posts : 15399
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Javascript activation problem

Post by Rius March 2nd 2024, 4:20 pm

skouliki wrote:ok i assume for this code you must have modified the templates "index_body" and "profile_view_body right?

Yes, both.
Rius
Rius
New Member

Female Posts : 5
Reputation : 1
Language : Hungarian, English
Location : Hungary

https://skintest99.hungarianforum.com

Back to top Go down

Solved Re: Javascript activation problem

Post by TheCrow March 2nd 2024, 4:39 pm

Rius wrote:
skouliki wrote:Hello

Probably one script is causing this conflict
Try to disable one at a time to check which one is causing this

I tried the scripts one by one. If everything is true, the problem is caused by the avatar of the last registered member. The javascript code for this is as follows:
Code:
$(function(){$.get($("#dernier_membre a[href^='/u']")[0].href,function(d){(a=$("#avatar_membre img",$(d))).length&&$("#avatar_dernier_membre").html(a)})});
Is there a solution to this? Or should I get rid of this and be ready to compromise? Help me
Thank you for your help so far Hug

Hello there,

Sorry, but do you have the Last Registered Member information shown on every page? Because usually this information is shown only on the homepage (index).
If it's only in the index, then all you have to do is set that javascript to Index only and it will resolve the problem if that's the javascript conflicting.

TC.


phpBB2 - Javascript activation problem Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Javascript activation problem

Post by Rius March 2nd 2024, 4:46 pm

TheCrow wrote:
Rius wrote:
skouliki wrote:Hello

Probably one script is causing this conflict
Try to disable one at a time to check which one is causing this

I tried the scripts one by one. If everything is true, the problem is caused by the avatar of the last registered member. The javascript code for this is as follows:
Code:
$(function(){$.get($("#dernier_membre a[href^='/u']")[0].href,function(d){(a=$("#avatar_membre img",$(d))).length&&$("#avatar_dernier_membre").html(a)})});
Is there a solution to this? Or should I get rid of this and be ready to compromise? Help me
Thank you for your help so far Hug

Hello there,

Sorry, but do you have the Last Registered Member information shown on every page? Because usually this information is shown only on the homepage (index).
If it's only in the index, then all you have to do is set that javascript to Index only and it will resolve the problem if that's the javascript conflicting.

TC.

Thank you very much, the sceditor and the script are now working! You guys are super cool. Thank you very much once again. Problem solved <3
Rius
Rius
New Member

Female Posts : 5
Reputation : 1
Language : Hungarian, English
Location : Hungary

https://skintest99.hungarianforum.com

Back to top Go down

Solved Re: Javascript activation problem

Post by skouliki March 2nd 2024, 4:47 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
skouliki
skouliki
Manager
Manager

Female Posts : 15399
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

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