Advertisement:

Author Topic: applying smf patches...php not acceptable?  (Read 977 times)

Offline airdave

  • Semi-Newbie
  • *
  • Posts: 32
Re: applying smf patches...php not acceptable?
« Reply #20 on: January 11, 2019, 11:45:32 AM »
okay, right click and choose edit.

first option is the "character encoding" it is set to utf-8 right now, but theres a whole long list of choices

I already downloaded the thing, so I guess thats my emergency backup?

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,628
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: applying smf patches...php not acceptable?
« Reply #21 on: January 11, 2019, 11:45:54 AM »
In the menu above, there's "Edit". And select the one you have selected in the picture, the other one with the ~ in the end is a backup copy.

EDIT:
Okay, you found it - now in this section

Code: [Select]
// Future versions will make some of this configurable. This is primarily a 'safe' configuration for most cases for now.
header('X-Frame-Options: SAMEORIGIN');
header('X-XSS-Protection: 1');
header('X-Content-Type-Options: nosniff');

Just comment out the first header row.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline airdave

  • Semi-Newbie
  • *
  • Posts: 32
Re: applying smf patches...php not acceptable?
« Reply #22 on: January 11, 2019, 12:01:06 PM »
   "Just comment out the first header row."
Sorry...I don't know what this sentence means.

Are you saying to delete the first row of text?
Line 105?
How do I delete it?

This is what I see:

104    // Future versions will make some of this configurable. This is primarily a 'safe' configuration for most cases for now.
105   header('X-Frame-Options: SAMEORIGIN');
106   header('X-XSS-Protection: 1');
107   header('X-Content-Type-Options: nosniff');

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,560
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: applying smf patches...php not acceptable?
« Reply #23 on: January 11, 2019, 12:02:32 PM »
Just remove the whole line
header('X-Frame-Options: SAMEORIGIN');
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline airdave

  • Semi-Newbie
  • *
  • Posts: 32
Re: applying smf patches...php not acceptable?
« Reply #24 on: January 11, 2019, 12:10:03 PM »
just highlight and delete the text?

now its just a blank site at line 105.

okay, I hope I haven't messed things up. lol

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,628
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: applying smf patches...php not acceptable?
« Reply #25 on: January 11, 2019, 12:10:25 PM »
Or what I meant, save it for future so you know what you "removed" and add // in front of it. :)

So

104    // Future versions will make some of this configurable. This is primarily a 'safe' configuration for most cases for now.
105   // header('X-Frame-Options: SAMEORIGIN');

Both work.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline airdave

  • Semi-Newbie
  • *
  • Posts: 32
Re: applying smf patches...php not acceptable?
« Reply #26 on: January 11, 2019, 12:16:11 PM »
lol don't tell me things AFTER I have deleted stuff!!!! LOL

anyway, I just checked the domain www.papermodelforum.com, and it works again!!!!
So thats all that matters.

I apologize for my ignorance.
I get by with most things, but when people start telling me what to do in tech-speak, I get totally lost.
You guys think its plain and simple, but to me it an alien language!

anyway, thanks again for your assistance.
Its really appreciated.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,628
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: applying smf patches...php not acceptable?
« Reply #27 on: January 11, 2019, 12:19:16 PM »
I apologize for my ignorance.
I get by with most things, but when people start telling me what to do in tech-speak, I get totally lost.
You guys think its plain and simple, but to me it an alien language!
No need to apologize, we've all been there once. And that's what we're here for :)
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas