News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Global Headers and Footers

Started by SMFHacks.com Team, August 02, 2006, 10:39:07 PM

Previous topic - Next topic

bugpage

Could I manually FTP/upload these ?

vbgamer45

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

bugpage

any other ideas why the Package Manager wont finish the job

L.G.S

Does the mod support php?

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

<?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


vbgamer45

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

L.G.S

Someway I could change the code so it would ?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


vbgamer45

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

L.G.S

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


vbgamer45

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

L.G.S

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


KGIII

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?

L.G.S

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


KGIII

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?

veldfire

Any idea why it's throwing this error in the log constantly ?

8: Undefined index: sa
File:/smf/Sources/globalhf.php
Line: 28


TIA,
Veldfire

vbgamer45

Quote from: veldfire on December 30, 2006, 10:24:51 PM
Any idea why it's throwing this error in the log constantly ?

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

veldfire

Quote from: vbgamer45 on December 31, 2006, 10:01:16 AM
Quote from: veldfire on December 30, 2006, 10:24:51 PM
Any idea why it's throwing this error in the log constantly ?

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 ?

vbgamer45

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

veldfire

Quote from: vbgamer45 on December 31, 2006, 10:22:17 AM
Download the file get the globalhf.php file and copy that to your sources folder.
Ok, thank you very much !

sparky33

Is there a way to set the header so it only appears on the board index rather than on every page?
www.dublinforums.org

www.renaultforums.co

vbgamer45

Quote from: sparky33 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?
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

Advertisement: