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

vbgamer45

Make sure you add $boarddir to globals
or after </body>';
Like
global $boarddir ;
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

dooodle

Beloved friends,

I am using SMF 2.0 and I had installed Global Headers and Footers mod without any problem. My query is I do not find it in configuration panel.

Solution for this is given as "Copy text from themes/default/languages/modifications.english.php to themes/default/languages/modications.yourlanguage.php" for SMF 1 version. Is this the same for SMF 2 tooo???

and if so how to copy text? ( i guess the text is the contents from the php file)

Forgive me for my ignorance.

jmille44

Quote from: vbgamer45 on July 25, 2011, 11:39:56 PM
Make sure you add $boarddir to globals
or after </body>';
Like
global $boarddir ;

Can you elaborate on this?  What file would this go in?  Subs.php ?

vbgamer45

no back in index.template.php where you try to add code before.
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

jmille44

I put it back in.  Now the header is at the very bottom of the page but everything is centered.
Just have to get it to the top.  Here is my code:

</body></html>';global $boarddir ;
// Global Headers
      $headercontents = '';
      
      $noheaders = false;
      if (isset($_REQUEST['action']))
      {
         if ($_REQUEST['action'] == 'dlattach')
            $noheaders = true;
      
      }
      
      
      if(!isset($_REQUEST['xml']) && $noheaders == false)
         if(file_exists($boarddir . '/smfheader.txt'))
         {
            $headercontents = file_get_contents($boarddir . '/smfheader.txt');
            echo '<!--Headers-->';
            echo $headercontents;
            echo '<!--End Headers-->';
         
         }
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..

jmille44

Figured it out.  Your placement was correct.

Dreamweaver messes up the code.

Had to use textedit for the file and then it worked fine.

Thanks for the help!

SN95Forums

Hey all,

Im having an issue, I exported my database with this deactivated but not un-installed.

What I need to know is what does this modify in my database so I can MANUALLY erase it?

Thanks in advance,
Matt

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

SN95Forums

So it has no effect on my database? You can see my problem here in this thread: http://www.simplemachines.org/community/index.php?topic=444329.0

your support and mods are greatly appreciated and I thank you in advance for the help!

vbgamer45

This mod does not change or affect the database of your forum
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


Inti31

#791
this mod works fine  - thx for that.

Just one thing: I don't have an icon for the header/footer area in configuration

see shot:


It would be nice if someone could assist me...

cheers Inti31

PS: solved: http://www.simplemachines.org/community/index.php?topic=103464.msg3086108#msg3086108
my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

vbgamer45

Someone post a fixed a couple posts back for that.
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


bstearns

Within the mod there is a place to donate using paypal.

The link did NOT work for me.  :o

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

bstearns


Monkey50

does the code have to be html is there a way to make picture and normal writing html

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

Monkey50


Advertisement: