Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: lermontov - maaliskuu 16, 2011, 03:32:35 IP

Otsikko: header on top of pages
Kirjoitti: lermontov - maaliskuu 16, 2011, 03:32:35 IP
this should be an easy thing to do but I've been searching without success for quite a while.
I would like a few images and links on top of every smf page.
I've used smfheader.txt but it's way too low on the page. Is there a way to put it on top  with smfheader.txt or some other way?

RC5
Otsikko: Re: header on top of pages
Kirjoitti: kat - maaliskuu 16, 2011, 04:19:23 IP
This help?

http://custom.simplemachines.org/mods/index.php?mod=351
Otsikko: Re: header on top of pages
Kirjoitti: lermontov - maaliskuu 16, 2011, 04:31:13 IP
no
that is where smfheader.txt comes from...
Otsikko: Re: header on top of pages
Kirjoitti: kat - maaliskuu 16, 2011, 04:32:33 IP
Sorry.

My mindreading skills must've deserted me, there... ;)
Otsikko: Re: header on top of pages
Kirjoitti: lermontov - maaliskuu 16, 2011, 07:19:18 IP
actually I've installed that mod yesterday and many of other things and edits since then and I forgot about it.
so I didn't know where smfheader.txt came from (or even if it came with smf) when I was writing the message. that's why I wrote I used smfheader.txt instead of Global Headers and Footers mod... ;)

but is it supposed to put the header in the "middle" of the page or is my board just messed up?
Otsikko: Re: header on top of pages
Kirjoitti: lermontov - maaliskuu 17, 2011, 06:34:25 AP
this seems to do the trick - http://www.simplemachines.org/community/index.php?topic=103464.msg2594588#msg2594588
Otsikko: Re: header on top of pages
Kirjoitti: kat - maaliskuu 17, 2011, 07:58:30 AP
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc014.gif&hash=f74820123053ff9301b57a2ded5672bfa96b900b)
Otsikko: Re: header on top of pages
Kirjoitti: lermontov - toukokuu 08, 2011, 09:19:00 AP
is there another way to have a custom header and footer on every page?
global headers and footers mod breaks the preview and forum jump functions so I can't use that...
this seems really weird to me - such a basic function for a forum and so many problems :-\
Otsikko: Re: header on top of pages
Kirjoitti: Gary - toukokuu 08, 2011, 09:23:36 AP
You can always just force it in directly to the template.

Attach your index.template.php and the code you want included, and I'll insert the code for you...
Otsikko: Re: header on top of pages
Kirjoitti: lermontov - toukokuu 08, 2011, 09:42:04 AP
i've tried that too but it broke the whole forum, i guess i did it wrong.

i'm attaching the header and footer txts (the header should be on the very top of the page, before anything else and footer on the bottom after everything else) and the default template - let's see if it works there first.
thanks for your help...
Otsikko: Re: header on top of pages
Kirjoitti: Gary - toukokuu 08, 2011, 09:53:21 AP
This should do the trick, but I've not tested it...
Otsikko: Re: header on top of pages
Kirjoitti: lermontov - toukokuu 08, 2011, 10:10:55 AP
yeah we're halfway there :)
header is OK and there's no errors but the footer is not visible...
when i replace the script in the footer with ordinary text it becomes visible - maybe there are some problems with displaying javascript there?
Otsikko: Re: header on top of pages
Kirjoitti: lermontov - toukokuu 08, 2011, 10:23:21 AP
i've just realized that you have removed a few lines from the footer and that is why it is not working.
but if i put that lines back, the forum stops working alltogether - just shows blank screen...
why is that?
Otsikko: Re: header on top of pages
Kirjoitti: lermontov - toukokuu 14, 2011, 03:16:42 AP
still trying to figure this out :(
Otsikko: Re: header on top of pages
Kirjoitti: lermontov - toukokuu 21, 2011, 07:04:02 AP
not possible?
Otsikko: Re: header on top of pages
Kirjoitti: lermontov - kesäkuu 03, 2011, 04:32:27 AP
(https://www.simplemachines.org/community/Themes/default/images/post/question.gif)
Otsikko: Re: header on top of pages
Kirjoitti: kat - kesäkuu 03, 2011, 05:10:49 AP
If the global headers and footers mod does what you want, but breaks stuff, why not post in that mod's support topic and get it working?
Otsikko: Re: header on top of pages
Kirjoitti: lermontov - kesäkuu 03, 2011, 06:20:46 AP
I did that but there were no replies and I would be happy with any kind of solution, not just with that particular mod...