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.

Script Src

View previous topic View next topic Go down

Solved Script Src

Post by Kami-sama on December 10th 2016, 1:05 am

Hello!

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
avatar
Kami-sama
Forumember

Female Posts : 317
Reputation : 7
Language : English, Russian, German, Lithuanian
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray on December 10th 2016, 1:19 am

Have you tried to add it to your forum's description?


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40877
Reputation : 2775
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Script Src

Post by Kami-sama on December 10th 2016, 1:21 am

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?
avatar
Kami-sama
Forumember

Female Posts : 317
Reputation : 7
Language : English, Russian, German, Lithuanian
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray on December 10th 2016, 1:24 am

Yes, you can add it to a widget.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40877
Reputation : 2775
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Script Src

Post by Kami-sama on December 10th 2016, 1:25 am

What about JavaScript it self?
It would seam to be the best place....
avatar
Kami-sama
Forumember

Female Posts : 317
Reputation : 7
Language : English, Russian, German, Lithuanian
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray on December 10th 2016, 1:28 am

What exactly does it do?


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40877
Reputation : 2775
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Script Src

Post by Kami-sama on December 10th 2016, 1:30 am

avatar
Kami-sama
Forumember

Female Posts : 317
Reputation : 7
Language : English, Russian, German, Lithuanian
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray on December 10th 2016, 1:40 am

Do you see the part that starts with the dollar sign and the last part that end with the }); that is the JavaScript.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40877
Reputation : 2775
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Script Src

Post by Kami-sama on December 10th 2016, 1:43 am

Lol Yeah Very Happy I understand.

What I meant was, the JavaScript page in forumotion admin panel Very Happy

lol
avatar
Kami-sama
Forumember

Female Posts : 317
Reputation : 7
Language : English, Russian, German, Lithuanian
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray on December 10th 2016, 1:44 am

That is what you would add.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40877
Reputation : 2775
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray on December 10th 2016, 1:45 am

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


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40877
Reputation : 2775
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Script Src

Post by Draxion on December 10th 2016, 1:45 am

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>


NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1840
Reputation : 230
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray on December 10th 2016, 1:46 am

The only thing is that it effects all hide/show buttons on the forum.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40877
Reputation : 2775
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Script Src

Post by Draxion on December 10th 2016, 1:48 am

@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.
avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1840
Reputation : 230
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Solved Re: Script Src

Post by Kami-sama on December 10th 2016, 1:49 am

@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?
avatar
Kami-sama
Forumember

Female Posts : 317
Reputation : 7
Language : English, Russian, German, Lithuanian
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray on December 10th 2016, 1:50 am

@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.
But when I added it to my forum, the hide/show button in the text editor was open.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40877
Reputation : 2775
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Script Src

Post by Draxion on December 10th 2016, 1:52 am

@SLGray wrote:
@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.
But when I added it to my forum, the hide/show button in the text editor was open.

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
avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1840
Reputation : 230
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Solved Re: Script Src

Post by Draxion on December 10th 2016, 1:52 am

@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.
avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1840
Reputation : 230
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray on December 10th 2016, 1:53 am

I mean this:


Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40877
Reputation : 2775
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Script Src

Post by Draxion on December 10th 2016, 1:55 am

@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.
avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1840
Reputation : 230
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Solved Re: Script Src

Post by Kami-sama on December 10th 2016, 11:52 am

Thank you all!

This is RESOLVED
avatar
Kami-sama
Forumember

Female Posts : 317
Reputation : 7
Language : English, Russian, German, Lithuanian
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by Nemo on December 10th 2016, 12:17 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
avatar
Nemo
Active Poster

Male Posts : 1201
Reputation : 119
Language : Greek, English, French

http://www.helpgr.forumgreek.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