Script Src
4 posters
Page 1 of 1
Script Src
Hello!
I have a very simple question.
How to/ where to add something like this:
I have done this before by just adding it to templates.
Is there a way to add it to Javascript code I'm writing directly? How it would look there.
Thank you in advance!
Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : Yourself
I have a very simple question.
How to/ where to add something like this:
- Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
I have done this before by just adding it to templates.
Is there a way to add it to Javascript code I'm writing directly? How it would look there.
Thank you in advance!
Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : Yourself
Last edited by Kami-sama on December 10th 2016, 11:53 am; edited 1 time in total
Re: Script Src
Have you tried to add it to your forum's description?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Script Src
I don't use the description (deleted it).
Basically, I know that it will work if I add it to any template.
I was wondering if it can be added directly in the JQ or in the Portal widget I am using it in?
Basically, I know that it will work if I add it to any template.
I was wondering if it can be added directly in the JQ or in the Portal widget I am using it in?
Re: Script Src
Yes, you can add it to a widget.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Script Src
What exactly does it do?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Script Src
It's a toggle event. To show and hide div.
http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_toggle
http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_toggle
Re: Script Src
Do you see the part that starts with the dollar sign and the last part that end with the }); that is the JavaScript.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Script Src
Lol Yeah I understand.
What I meant was, the JavaScript page in forumotion admin panel
lol
What I meant was, the JavaScript page in forumotion admin panel
lol
Re: Script Src
That is what you would add.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Script Src
The only thing is that if you add it through JavaScript it will effect all hide/show buttons, including the one in the text editor.
Last edited by SLGray on December 10th 2016, 1:45 am; edited 1 time in total
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Script Src
HI there,
You don't need to install this anywhere on the site since Forumotion uses JQuery by default.
You don't need to install this anywhere on the site since Forumotion uses JQuery by default.
- Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
Re: Script Src
The only thing is that it effects all hide/show buttons on the forum.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Script Src
SLGray wrote:The only thing is that it effects all hide.show buttons on the forum.
The code that she showed, yes, but I am talking about this one.
- Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
All this does is allow all JQuery functions as a plug-in, it's not the show/hide effect itself.
Re: Script Src
Draxion wrote:HI there,
You don't need to install this anywhere on the site since Forumotion uses JQuery by default.
- Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
Oh great! Good to know that.
But talking in general, IF I want to install something it is best to do in the code/templates?
Or can I add the source like this to JavaScript page?
Re: Script Src
But when I added it to my forum, the hide/show button in the text editor was open.Draxion wrote:SLGray wrote:The only thing is that it effects all hide.show buttons on the forum.
The code that she showed, yes, but I am talking about this one.
- Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
All this does is allow all JQuery functions as a plug-in, it's not the show/hide effect itself.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Script Src
SLGray wrote:But when I added it to my forum, the hide/show button in the text editor was open.Draxion wrote:SLGray wrote:The only thing is that it effects all hide.show buttons on the forum.
The code that she showed, yes, but I am talking about this one.
- Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
All this does is allow all JQuery functions as a plug-in, it's not the show/hide effect itself.
If you added the JQuery plug-in manually on your site, it isn't necessary since the plug-in is already in the default coding. It would just make other Jquery functions malfunction. If that hasn't to you yet, you are lucky. hah
Re: Script Src
Kami-sama wrote:Draxion wrote:HI there,
You don't need to install this anywhere on the site since Forumotion uses JQuery by default.
- Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
Oh great! Good to know that.
But talking in general, IF I want to install something it is best to do in the code/templates?
Or can I add the source like this to JavaScript page?
Yes, you can put the source in JavaScript but you need to specify where you want it to target.
Re: Script Src
I mean this:
- Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Script Src
SLGray wrote:I mean this:
- Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
Yes, I know. That is the plug-in that allows all JQuery functions to function. Without it, no JQuery codes would work.
Similar topics
» Suggested Script (Need Someone that can read script)
» register Script (I Need The Script)
» Where would i add this script?
» SCRIPT:
» script help
» register Script (I Need The Script)
» Where would i add this script?
» SCRIPT:
» script help
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum