Advertisement:

Author Topic: Global Headers and Footers  (Read 370715 times)

Offline tpshow

  • Newbie
  • *
  • Posts: 1
Re: Global Headers and Footers
« Reply #1040 on: July 07, 2017, 06:56:51 PM »
Please can someone here help, i have Global header and Footer installed and added adsense code - hxxp:www.thebillioncoin.org.ng [nonactive] It displays on all pages including the login page. Adsense sent mail to remove the ads from the login page. How can i restrict only the login page from showing the adsense advert that i inserted via the Global header and footer mod.

Thanks
« Last Edit: July 07, 2017, 07:39:45 PM by tpshow »

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,587
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Global Headers and Footers
« Reply #1041 on: July 07, 2017, 07:54:37 PM »
 It would have to be custom php code
Or you have to modify headers and footers to not show on that action page.
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 desertcities

  • Semi-Newbie
  • *
  • Posts: 44
    • @AdventistNews7 on Twitter
    • Adventist Domains
Re: Global Headers and Footers
« Reply #1042 on: September 27, 2017, 10:41:45 PM »
Tried to install latest Global Headers and Footers package but got a warning not to install it. 

See the attached screenshot for the warning.

I'm using the latest Nebula Theme by SMFpacks. 

I tried adding just the Analytics code to my index.template.php file for the Nebula Theme, but also got errors. 

Any suggestions?

Thank you very much.

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,587
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Global Headers and Footers
« Reply #1043 on: September 27, 2017, 11:02:55 PM »
It's only failing on one of the admin.php changes. The template doens't matter.
Make the change manually to the sources file for the one that failed after you installed.
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 desertcities

  • Semi-Newbie
  • *
  • Posts: 44
    • @AdventistNews7 on Twitter
    • Adventist Domains
Re: Global Headers and Footers
« Reply #1044 on: September 28, 2017, 04:18:23 AM »
Thanks Man!

Got it working.

Peace.

Offline SaltedWeb

  • Sr. Member
  • ****
  • Posts: 830
  • Gender: Male
  • The Tired One
Re: Global Headers and Footers
« Reply #1045 on: November 30, 2017, 03:12:58 PM »
I have used this mod before in the past with no issues, I did find this last install
The  Head <head></head> area comes up  403 error when used.
However both
Header Content
Footer Content
are ok.
I have used simple scripts like even a marque to see if i could get it working.
Since it installed with no errors just fine and most of it works I am assuming its me doing something?
But maybe not any ideas what causes that ?

Thanks
« Last Edit: November 30, 2017, 03:45:35 PM by SaltedWeb »
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,587
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Global Headers and Footers
« Reply #1046 on: November 30, 2017, 03:28:57 PM »
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 SaltedWeb

  • Sr. Member
  • ****
  • Posts: 830
  • Gender: Male
  • The Tired One
Re: Global Headers and Footers
« Reply #1047 on: November 30, 2017, 03:46:25 PM »
So being the However both
Header Content
Footer Content
are ok.

The header script could cause that error from my server ?
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,587
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Global Headers and Footers
« Reply #1048 on: November 30, 2017, 03:52:17 PM »
yes it could
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 SaltedWeb

  • Sr. Member
  • ****
  • Posts: 830
  • Gender: Male
  • The Tired One
Re: Global Headers and Footers
« Reply #1049 on: November 30, 2017, 03:54:01 PM »
Ok I'll check that out thank you.
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Offline SaltedWeb

  • Sr. Member
  • ****
  • Posts: 830
  • Gender: Male
  • The Tired One
Re: Global Headers and Footers
« Reply #1050 on: November 30, 2017, 05:44:03 PM »
Probably a mod_security error
https://wiki.simplemachines.org/smf/Mod_security_-_Having_problems_with_mod_security


vbgamer45,
I checked with their support they found no error with my IP address or on my site logs. However in Cpanel I could disable the
Mod_security and the 403 error went away however the script did not show up in the forum anywhere.
Good news I know what causes the 403 error ( Thank You) . However the header section doesn't seem to work maybe why it was spitting out an error for me? Its not a big deal, i'll just use part of it and input some stuff manually.
Unless you have an idea why it wouldn't show up? Thanks again for all your help.

SW
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Online pepa

  • Jr. Member
  • **
  • Posts: 105
Re: Global Headers and Footers
« Reply #1051 on: February 14, 2018, 08:37:42 AM »
Is it possible to alter this mod so it only displays on the initial page of the forum and not on any boards, the login page or registration page?

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,587
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Global Headers and Footers
« Reply #1052 on: February 14, 2018, 09:06:14 AM »
Possible would require code changes.
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

Online pepa

  • Jr. Member
  • **
  • Posts: 105
Re: Global Headers and Footers
« Reply #1053 on: February 14, 2018, 06:05:26 PM »
Possible would require code changes.
Do you know which files are involved, or if we did that would it infringe a copyright?

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,587
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Global Headers and Footers
« Reply #1054 on: February 14, 2018, 06:34:51 PM »
I don't know offhand I would have to research.
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