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

inkys

#940
Good evening, installed your great mod on our website. I`d like to reduce the padding of an iframe put on the header.

You can see what I m talking about with this examples:

hxxp:wiki.softwarelivre.org/InkscapeBrasil/Forum [nonactive](Iframe in a correct position on the top)

hxxp:inkscapeforum.it/index.php [nonactive](Iframe with a padding on the top)

How to change the iframe with border: 0 padding-top: 0 ?

Thanks a lot for your aswers

iain sherriff

HI. I want to put a banner in my footer (your mod installed and been working well). The banner asks for a script to be placed on the page's <head>

How do i do that with the mod ?
SMF 2.0.12

vbgamer45

Is there a head section for headers in the mod? If not then currently not a way.
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

Ed2

#943
I am using this mod with other web site links at the bottom, problem is that the content is visible to non member guests at the sign in page...any way to hide this mods contents until signed in?

Thanks

SMF 2.0.5

vbgamer45

Not with the headers/footers mod at the moment. Requires custom php code to do so in the template files of SMF.
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

richconner

I made a major error in my content header below the link map that is disabling my site from loading completely.  I can't event load into the admin menu to fix this.  Please help for a have a live stream event later tonight.

hxxp:leagueoflegendschicago.com/forum/index.php [nonactive]

Above is the errored forum.

Any help is greatly appreciated.


vbgamer45

Edit the headers/footer file in your root of your forum
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

Matthew K.

With the amount of people that screw something up by entering foul content, it might be nice to write a quick SSI tool to remove the file contents.

SNAFU0185

#948
using this mod I have put a header above my smf and it works well but I have put in a link that I only want certain members to see and although it works well when used in pages on my website when entered in this mod it creates problems
<?php if (in_array(11, $user_info['groups']) or in_array(1, $user_info['groups'])) { echo '</li>              <li class="parent"><a href="#"><span>Menu</span></a>               <ul class="sub-menu">                        <li class="first"><a href="http://mysite/1.php"><span>button 1</span></a></li>                        <li class="last"><a href="http://www.mysite/2.php"><span>button 2</span></a></li>                                            </ul>'; } else { echo ''; } ?>
the problem I get is although it displays the menu item I get the last chunck of code appearing  next to it
';
}
else
{
echo '';
}
?>

any help would be greatly appretiated

SoftwareSamurai

I like this mod, but I have one tiny bug to report: When I switch to the Core theme, the menu icon for the Configuration->Global Headers and Footers  menu entry is broken. :(

Matthew K.

Copy the image from this modification to the core theme directory...modifications don't have to support core theme.

SNAFU0185

Has anyone got any ideas on how to solve my bug as posted above

Matthew K.

Sure, it's not a bug. It's design. You can't put PHP in the fields. HTML Markup only.

SNAFU0185

Thanks for your reply  :)
would there be another way to make one of those buttons only viewable to members with out using php

Kindred

Сл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."

Matthew K.

Uh, using permissions, but that's not incorporated into this system. I did write a modification called "Advanced Head Content" which is permission based I do believe, however, I never released it and it was specifically for insertion of CSS and JavaScript.

A portal block as Kindred has suggested is a good route, or just coding it yourself, as it does look like you may have enough knowledge to do so - however, make sure to backup prior to touching the code so you don't break your forum!

SoftwareSamurai

Whenever I put in the following:


<script type="text/javascript">
alert("hi");
</script>


and hit "Save Settings", instead of seeing the green "Settings Successfully Saved!" banner, all I get is a blank page, and my url says "data:," - Any ideas what's wrong?

Note: If I then hit the back button, the little script does seem to be saved and working. So the save itself appears to be working. Just the refreshing of the data seems to be totally blank.

(SMF 2.0.6, clean install, no mods.)

vbgamer45

No idea what would cause that. Maybe a browser issue or hosting issue.

If you put something else do you get the same issue?
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

SoftwareSamurai

If I don't put in the alert() call, it works fine.

Just tested with Firefox and IE 10 - they don't do this. So it appears to be a Chrome browser issue I guess.

SoftwareSamurai

I did a little more snooping. Chrome appears to be getting all confused when the redirectexit() call is made without refresh being enabled. If I force refresh on, Chrome works just like the other browsers.

Odd, but whatever.

Advertisement: