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

Matthew K.

You have to add the image tags...
<div class="floatleft" style="width: 50%;"><img src="http://www.leverfamilysite.com/images/Hidden_Pictures/FIE-Ad-small.gif" alt="" /></div><div class="floatright" style="width: 50%;"><img src="http://www.leverfamilysite.com/images/Hidden_Pictures/VRS3.jpg" alt="" /></div><br class="clear" />

GlennLever

Ok, two problems, the right image is over the top of the text for the "Members: 83  •  Posts: 201  •  Topics: 71 Please welcome Mod, our newest member.", and they do not scroll.

I could live with the no scroll but would like the "Members: 83  •  Posts: 201  •  Topics: 71 Please welcome Mod, our newest member." not to be obscrued.

If the two images were next to each other that might just give us enough room to allow that text to be visable.

Thanks!



Matthew K.

Here ya go :)
<div class="floatleft"><img src="http://www.leverfamilysite.com/images/Hidden_Pictures/FIE-Ad-small.gif" alt="" /></div><div class="floatleft" style="margin-left: 12px;"><img src="http://www.leverfamilysite.com/images/Hidden_Pictures/VRS3.jpg" alt="" /></div><br class="clear" />

GlennLever

Quote from: Labradoodle-360 on February 05, 2013, 01:47:19 PM
Here ya go :)
<div class="floatleft"><img src="http://www.leverfamilysite.com/images/Hidden_Pictures/FIE-Ad-small.gif" alt="" /></div><div class="floatleft" style="margin-left: 12px;"><img src="http://www.leverfamilysite.com/images/Hidden_Pictures/VRS3.jpg" alt="" /></div><br class="clear" />

It moved it over but the "members" is still covered up. I could put a white strip at the bottom of the images that would allow the text to be seen but that would be a different color from the board background.

I have another request from the board sponor to make his image (FIE) a clickable link.

Would this work?
<a border=0 href="http://fuelinjectionent.com">="http://www.leverfamilysite.com/images/Hidden_Pictures/FIE-Ad-small.gif"</a>

Could you send the complete text string???

I am really out of my element here, ask me a question about an engine and I'm good, but this is a real strech for me.

Matthew K.

It looks fine to me...and to make it clickable just wrap the img tag with an anchor tag: <a href="URL_HERE"><img tag here /></a>.

GlennLever

Quote from: Labradoodle-360 on February 05, 2013, 02:07:59 PM
It looks fine to me...and to make it clickable just wrap the img tag with an anchor tag: <a href="URL_HERE"><img tag here /></a>.

Please see below.

Would you code the string for me?

This is the link to his site http://fuelinjectionent.com/

Need a donation for your time, PayPal account?

Matthew K.

I'll send you a PM so we get out of this mod's support topic...

melakabikers

Hi Guys

I have Global Headers and Footers installed on my site and have been using it to show my Adsense Links and Banner but just recently the adsense is not showing but if you log-in as Admin and when you click on Header Footers to edit you can see the Adsense link working fine. I'm not sure what happened and I've never modified anything

hxxp:www.melakabikers.com [nonactive]

RustyBarnacle

I sent in a feedback after uninstalling this mod.  You can ignore it as I was wrong.  I said that when this mod was installed I got a white bar that overwrote my menu about 10% of the time.  Well after I uninstalled it the first time this issue went away I thought and when I reinstalled it the problem came back so I thought I'd figured it out.  After uninstalling it the second time this white bar still occurs about 10% of the time so it must not be this mod after all.

Matthew K.

Not a problem Rusty, glad to hear it wasn't an issue with this modification :)

safesoft

I want to use this mod to include my google analytics code, because I have some customizations that are not supported with the google analytics mod.

However, when I insert the code, it appears not to work, and the single quotes in the JS are replaced with the escape code for the single quote (I presume this is why it does not work.)

Suggestions?


<!-- Google Analytics Begin -->

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push([\'_setAccount\', \'UA-123456-7\']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<!-- Google Analytics End -->

Daemon_Magic

Hi, safesoft

Just find global-hf.php, there in function GlobalHFCheckSaving at line 63 replace ENT_QUOTES with ENT_NOQUOTES

GreetZ,
   Daemon_Magic.

nikan

The problem is that $smcFunc['htmltrim'] erases 0 and &#039; becomes &#39;
It's safer to change $smcFunc['htmltrim'] with trim

vbgamer45

Hmm I would report that bug nikan to SMF very strange.
Community Suite for SMF - Grow your forum with 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

Elaneor

Hello all!
Thank you for the gorgeous mod.
But i have a question - what if i want to use the global headers/footers on the main page of the forum only?
Is it possible to set things up as i'd like to?

Kindred

That rather defeats the purpose of GLOBAL header/footers...

What you are asking for is something supported by the Portal Mods...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Elaneor

Mmm.. okay. I understand.
May be you could help me out with the following:
I'd like to insert the collapsible module in the global header.
But something goes wrong. I just used the script alike that collapses my newsblock.

Quote<div id="chatroom">
   <div class="catbar">
      <h3 class="catbg">
            <img id="chatupshrink" src="hxxp:souzwiccan.ru/forum/Themes/green-flowers/images/collapse.gif [nonactive]" alt="Свернуть/Развернуть" title="Свернуть/Развернуть" align="bottom" style="cursor: pointer;">
            Викканский чатик
         </h3>
      </div>
   <script type="text/javascript" src="hxxp:wicca.chatovod.ru/widget.js?height=450 [nonactive]" charset="UTF-8"></script>
</div>
<script type="text/javascript"><!-- // --><![CDATA[
// Create the chat  toggle.
      var smfNewsFadeToggle = new smc_Toggle({
         bToggleEnabled: true,
         bCurrentlyCollapsed: false,
         aSwappableContainers: [
            'smfFadeScroller'
         ],
         aSwapImages: [
            {
               sId: 'newsupshrink',
               srcExpanded: smf_images_url + '/collapse.gif',
               altExpanded: 'Свернуть/Развернуть',
               srcCollapsed: smf_images_url + '/expand.gif',
               altCollapsed: 'Свернуть/Развернуть'
            }
         ],
         oThemeOptions: {
            bUseThemeSettings: true,
            sOptionName: 'collapse_news_fader',
            sSessionVar: 'eb8366b1',
            sSessionId: 'ad5cbd59bce183d4f5e752631c5b3008'
         },
         oCookieOptions: {
            bUseCookie: false,
            sCookieName: 'newsupshrink'
         }
      });
   // ]]></script>

Kindred

well, you can't just copy a script like that....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: