Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: puggsy21 on January 10, 2017, 07:51:53 PM

Title: Jquery script location
Post by: puggsy21 on January 10, 2017, 07:51:53 PM
Hi all wondering if someone can help me i have just installed this forum to my site and noticed that the jquery file its pulling in from the header is using http but my site is using https i have been into index.template.php but couldnt find it.

I just need to find out what page is making the call to require jquery so i can just alter the http to https

Any help and replies are gratefully appreciated
Title: Re: Jquery script location
Post by: Kindred on January 10, 2017, 08:01:54 PM
SMF 2,0,x doesn't use jquery so it must be being called by a mod
Title: Re: Jquery script location
Post by: puggsy21 on January 10, 2017, 08:21:37 PM
Thanks for the quick reply, ok i only have 2 mods installed which are pretty URL's and Tinyportal other than that its all SMF
Title: Re: Jquery script location
Post by: vbgamer45 on January 10, 2017, 08:23:49 PM
I am guessing tinyportal since prettyurls doesn't use jquery.
I just checked the source of tinyportal.net and it has jquery calls.
Title: Re: Jquery script location
Post by: puggsy21 on January 10, 2017, 08:29:31 PM
Ok thanks for the info and checking that out for me, so now its a case of trying to find out which page is making the call for putting the jquery script into the header
Title: Re: Jquery script location
Post by: puggsy21 on January 10, 2017, 08:50:17 PM
Ok fixed, thanks to this topic  ;D http://www.simplemachines.org/community/index.php?topic=506732.20 (http://www.simplemachines.org/community/index.php?topic=506732.20) which i just found from writing so many different variations of my question.

anyone else thats interested to know the file to alter this is TPortal.php

// Load JQuery if it's not set (anticipated for SMF2.1)
if (!isset($modSettings['jquery_source']))
$context['html_headers'] .= '
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>';


Which is located within the sources folder of the main forum directory

Thansk for the responses guys and im going to mark this as resolved and hope it helps others that may have the same problem