Advertisement:

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

Offline bugpage

  • Semi-Newbie
  • *
  • Posts: 13
Re: Global Headers and Footers
« Reply #40 on: December 21, 2006, 02:47:36 PM »
Could I manually FTP/upload these ?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,394
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Global Headers and Footers
« Reply #41 on: December 21, 2006, 02:51:16 PM »
Yes you can manually install it litttle bit complex though
Check out this article
http://docs.simplemachines.org/index.php?topic=400
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 bugpage

  • Semi-Newbie
  • *
  • Posts: 13
Re: Global Headers and Footers
« Reply #42 on: December 21, 2006, 02:53:22 PM »
any other ideas why the Package Manager wont finish the job

Offline L.G.S

  • SMF Hero
  • ******
  • Posts: 2,658
  • Gender: Male
  • RuthlessIntent.com !
    • GamesandGoals.com
Re: Global Headers and Footers
« Reply #43 on: December 22, 2006, 07:29:57 AM »
Does the mod support php?

I entered this into the header box, and it messed up my layout:

Code: [Select]
<?php

if ($context['user']['is_guest'])
<
table class="tborder" style="margin-bottom: 0ex;"
 
border="0" cellpadding="0" cellspacing="1"
 
width="100%">
  <
tbody>
    <
tr>
      <
td class="catbg"R-I Forums Network</td>
    </
tr>
    <
tr>
      <
td class="windowbg2" align="left" height="60"
 
valign="middle">
R-I is short for Ruthless IntentThe name was not chosen for reference to violencebut for reference to how our loyal members help keep our forum aliveWe strive to offer interesting and funny topics, as well as special events in-forum.<br /><br />If you decide to join our forumsthen you will get all that is mentioned as well as access to our growing downloads area (at 20 posts), access to our 100 game strong arcadeaccess to our script library and access to our shopwhere you can buy email addresses and even webspace for posts.<br /><br />Still not convincedHave a click on the tabs below-right and take a look at what we can off you.
      </
td>
    </
tr>
  </
tbody>
</
table>
<
table style="margin-right: 10px;" border="0" cellpadding="0" cellspacing="0" align="right">
  <
tbody>
    <
tr>
      <
td class="maintab_first"> </td>
      <
td class="maintab_active_first"> </td>
      <
td class="maintab_active_back" valign="top">
      <
span style="text-decoration: underline;"><a href="/board/">Home</a></span></td>
      <
td class="maintab_active_last"> </td>
      <
td class="maintab_back" valign="top">
      <
span style="text-decoration: underline;">
      <
a href="/board/index.php?action=arcadeinfo">Arcade</a></span>
      </
td>
      <
td class="maintab_back" valign="top">
      <
span style="text-decoration: underline;">
      <
a href="/board/index.php?action=shopinfo">Shop</a></span>
      </
td>
      <
td class="maintab_back" valign="top">
      <
span style="text-decoration: underline;">
      <
a href="/board/index.php?action=downloadsinfo">Downloads</a></span>
      </
td>
      <
td class="maintab_back" valign="top">
      <
span style="text-decoration: underline;">
      <
a href="/board/index.php?action=ffinfo">Fantasy Football</a></span>
      </
td>
      <
td class="maintab_back" valign="top">
      <
span style="text-decoration: underline;"><a href="/board/index.php?action=privacy">Your Privacy</a></span></td>
      <
td class="maintab_back" valign="top">
      <
span style="text-decoration: underline;">
      <
a href="/board/index.php?action=about">About Us</a></td>
      <
td class="maintab_last"> </td>
    </
tr>
  </
tbody>
</
table>
<
table style="margin-bottom: 5px;" width="100%">
<
td>
<
tr>
<
br />
</
td>
</
tr>
</
table>

?>
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,394
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Global Headers and Footers
« Reply #44 on: December 22, 2006, 11:17:35 AM »
It does not support PHP.
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 L.G.S

  • SMF Hero
  • ******
  • Posts: 2,658
  • Gender: Male
  • RuthlessIntent.com !
    • GamesandGoals.com
Re: Global Headers and Footers
« Reply #45 on: December 22, 2006, 11:31:59 AM »
Someway I could change the code so it would ?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,394
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Global Headers and Footers
« Reply #46 on: December 22, 2006, 11:37:14 AM »
You would need to change it probalby to eval from file_get_contents in Sources/Subs.php and then it will just support php code.
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 L.G.S

  • SMF Hero
  • ******
  • Posts: 2,658
  • Gender: Male
  • RuthlessIntent.com !
    • GamesandGoals.com
Re: Global Headers and Footers
« Reply #47 on: December 22, 2006, 02:26:56 PM »
So if I do this, I won't be able to use html? Hmm
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,394
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Global Headers and Footers
« Reply #48 on: December 22, 2006, 02:33:53 PM »
I think so I haven't tested it.
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 L.G.S

  • SMF Hero
  • ******
  • Posts: 2,658
  • Gender: Male
  • RuthlessIntent.com !
    • GamesandGoals.com
Re: Global Headers and Footers
« Reply #49 on: December 22, 2006, 03:19:12 PM »
Anyway I could have both?

Sorry to keep asking these questions, I just have some code I want only guests to see and not other members :)
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Offline KGIII

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,293
  • Gender: Male
  • If you can build it, I can wreck it.
    • Web Hosting
Re: Global Headers and Footers
« Reply #50 on: December 22, 2006, 06:47:34 PM »
L.G.S.:

In an effort to have something similar I ended up using the Ads mod which does support PHP, that worked fairly well and enabled me to put a nifty little critter at the bottom of my forum that only shows for guests or people who have 0 posts.
My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

Offline L.G.S

  • SMF Hero
  • ******
  • Posts: 2,658
  • Gender: Male
  • RuthlessIntent.com !
    • GamesandGoals.com
Re: Global Headers and Footers
« Reply #51 on: December 22, 2006, 08:07:30 PM »
Yeah I tried the ad mod, although when I added the code it changed the layout of my forum, just because of the php bit ???
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Offline KGIII

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,293
  • Gender: Male
  • If you can build it, I can wreck it.
    • Web Hosting
Re: Global Headers and Footers
« Reply #52 on: December 23, 2006, 02:09:53 AM »
L.G.S.:

Did you put it in nice pretty template form with tables and the likes? I spent a long time learning to move beyond tables and to try to learn to position everything with style sheets but SMF is like a step backwards there.

(I think you're one of the folks who's PMed me?)

If you want you can PM me again, tell me where you want it, tell me what you want it to look like, and I just /might/ be able to answer or you can ask here or in a thread in the coding section. If you have both the ads mod and the global headers and footer MOD installed it will likely make it easier.

I'm, by no means, a guru but I've got a wee bit of time tomorrow, tomorrow night, and again after Monday so I'd happily poke at it. My entire week, coming up, is set to "off" and everything I do is going to be something that I do just to enjoy myself for a while. That and setting up/finalizing the blog hosting, I should surely enjoy myself. :)
My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

Offline veldfire

  • Jr. Member
  • **
  • Posts: 159
  • Gender: Male
    • Corys "R" Us
Re: Global Headers and Footers
« Reply #53 on: December 30, 2006, 10:24:51 PM »
Any idea why it's throwing this error in the log constantly ?

Code: [Select]
8: Undefined index: sa
File:/smf/Sources/globalhf.php
Line: 28

TIA,
Veldfire

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,394
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Global Headers and Footers
« Reply #54 on: December 31, 2006, 10:01:16 AM »
Any idea why it's throwing this error in the log constantly ?

Code: [Select]
8: Undefined index: sa
File:/smf/Sources/globalhf.php
Line: 28

TIA,
Veldfire
Fixed.
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 veldfire

  • Jr. Member
  • **
  • Posts: 159
  • Gender: Male
    • Corys "R" Us
Re: Global Headers and Footers
« Reply #55 on: December 31, 2006, 10:20:15 AM »
Any idea why it's throwing this error in the log constantly ?

Code: [Select]
8: Undefined index: sa
File:/smf/Sources/globalhf.php
Line: 28

TIA,
Veldfire
Fixed.

Great ! And how can I fix it in mine without uninstalling and re-installing the whole hack and all the items in my header and footer ?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,394
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Global Headers and Footers
« Reply #56 on: December 31, 2006, 10:22:17 AM »
Download the file get the globalhf.php file and copy that to your sources folder.
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 veldfire

  • Jr. Member
  • **
  • Posts: 159
  • Gender: Male
    • Corys "R" Us
Re: Global Headers and Footers
« Reply #57 on: December 31, 2006, 10:30:00 AM »
Download the file get the globalhf.php file and copy that to your sources folder.
Ok, thank you very much !

Offline sparky33

  • Jr. Member
  • **
  • Posts: 315
    • Renault Forums
Global Headers and Footers
« Reply #58 on: January 11, 2007, 05:46:04 AM »
Is there a way to set the header so it only appears on the board index rather than on every page?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,394
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Global Headers and Footers
« Reply #59 on: January 11, 2007, 09:36:56 AM »
Is there a way to set the header so it only appears on the board index rather than on every page?
No option for that.

If you wish to do that edit BoardIndex.template.php in your themes folder.
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