Which file has Global Head and Body tags for a SSL Trust image?

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
scrawny
Registered User
Posts: 5
Joined: Mon May 29, 2017 12:02 pm

Which file has Global Head and Body tags for a SSL Trust image?

Post by scrawny »

I have a SSL Trust Certificate image which requires some code place before the </head> tag and a second bit of code to be placed before the </Body> tag.

I want the Trust image to appear near the login area, where the Private Messages and Notifications links are.

I thought I'd try the phpbb overall_header.html but either I placed the codes in the wrong places on several tries or something as I couldn't get the image to appear.

Code works fine on the Wordpress section of my site.

Any suggestion(s) as to where I could put this code? Polite suggestions that is.
User avatar
janus_zonstraal
Registered User
Posts: 6613
Joined: Sat Aug 30, 2014 1:30 pm

Re: Which file has Global Head and Body tags for a SSL Trust image?

Post by janus_zonstraal »

Did you purge the cache after the change?
Sorry! My English is bat ;) !!!
scrawny
Registered User
Posts: 5
Joined: Mon May 29, 2017 12:02 pm

Re: Which file has Global Head and Body tags for a SSL Trust image?

Post by scrawny »

Yes. Cleared cache.

First bit of code I added here:

<!-- EVENT overall_header_head_append -->

{$STYLESHEETS}

<!-- EVENT overall_header_stylesheets_after -->

<!-- ssl image placement -->
<script type="text/javascript"> //<![CDATA[
var tlJsHost = ((window.location.protocol == "https:") ?

"https://secure.xxxxxxxxblah blah .com/" : "http://www.xxxxxxxblah blah .com/");
document.write(unescape("%3Cscript src='" + tlJsHost +

"trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%

3C/script%3E"));
//]]>
</script>


The second part of the script, the one with the image source, I placed at bottom just to see if it would appear. If it did, then I'd play around and try to get it near the login section;

<!-- EVENT overall_header_content_before -->
<script language="JavaScript" type="text/javascript">
TrustLogo("https://xxxxxxxxxblah blah .com/comodo.png", "CL1",

"none");
</script>
<a href="https://www.positivessl.com/" id="comodoTL">Positive

SSL</a>

Hope that helps explain things better.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Which file has Global Head and Body tags for a SSL Trust image?

Post by david63 »

On the basis that all the code you are trying to use is around events why are you not using, or creating, an extension?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
scrawny
Registered User
Posts: 5
Joined: Mon May 29, 2017 12:02 pm

Re: Which file has Global Head and Body tags for a SSL Trust image?

Post by scrawny »

I just joined phpBB and don't know enough to write an extension. I can copy/paste code by fiddling about placing it somewhere until it works, but that's it.

Which extension would you recommend for placing this code where it will function?

The code I'm using is supplied by Comodo and I was told to place the first code before the </head> and the second code before the </body>.

I had search the support threads and that's where I learned about the overall_header.html as being the one which would display the Trust image in a permanent display position. I just can't get it to work there.
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52794
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve

Re: Which file has Global Head and Body tags for a SSL Trust image?

Post by stevemaury »

Perhaps Comodo would be the ones to ask. We know nothing of this code and did not create it.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
sakm
Registered User
Posts: 716
Joined: Sun Jan 21, 2007 8:14 pm
Location: Hull, uk
Name: Stu

Re: Which file has Global Head and Body tags for a SSL Trust image?

Post by sakm »

why all the script to show an image? is it supposed to do something?

Why not just show the image?

Return to “phpBB Custom Coding”