SMFHacks.com
SMFHacks
Community Suite
SMF Gallery Pro
SMF Store
SMF Classifieds
Newsletter Pro
Downloads System Pro
Ad Seller Pro
Badge Awards
Hacks and Mods
Latest SMF Hacks
TopTen Hacks
Styles and Themes
Add a Hack
Manage Hacks
Earn Money from Your Forum with these tips
SMF Theme Generator
SMF Package Parser
Free SMF Hosting
Buy Website Traffic
Site Showcase
Email Marketing Software
Search Forums
Advanced search
User
Welcome,
Guest
. Please
login
or
register
.
May 22, 2013, 02:03:13 pm
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Stats
Members
Total Members: 10766
Latest:
Heater Sajid
Stats
Total Posts: 32381
Total Topics: 5479
Online Today: 67
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 45
Total: 45
SMFHacks.com
Forum
Modifications/Themes
Modifications Talk
Modification Showcase
4. Global Headers and Footers
0 Members and 1 Guest are viewing this topic.
« previous
next »
Pages:
1
2
[
3
]
4
Author
Topic: 4. Global Headers and Footers (Read 50046 times)
denaon
Inline PM Customer
Offline
Posts: 3
Re: 4. Global Headers and Footers
«
Reply #30 on:
October 02, 2006, 05:41:56 pm »
This mod does not work in 1.0.8, does it?
BTW, I'm so glad I found you!!! SMFHacks rocks!!!
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 10998
Re: 4. Global Headers and Footers
«
Reply #31 on:
October 02, 2006, 07:05:08 pm »
Only for SMF 1.1
Logged
brightstarpro
Inline PM Customer
Offline
Posts: 8
Re: 4. Global Headers and Footers
«
Reply #32 on:
October 30, 2006, 06:35:30 am »
Quote from: rbh on June 14, 2006, 10:16:18 am
i love this mod, except one thing. it won't allow you to edit the header and footer data you placed. what i means is, i added a banner script to my footer. it works nicely, but when i went into the global header footer today to change the banner, the boxes are empty. you should make this similiar to how proboards works where the data entered remains static so that it can be easily edited. if it is suppose to be like that then i may have something not setup right.
Yeah, same problem for me as well. Was a solution ever found for this?
Logged
Nite
Inline PM Customer
Offline
Posts: 45
Re: 4. Global Headers and Footers
«
Reply #33 on:
October 30, 2006, 12:51:54 pm »
ftp into your account and edit smfheader.php or smffooter.php directly.
Logged
The Simple Machines Forum Directory
::
The phpBB Forum Directory
The Invision Power Board Forum Directory
::
The vBulletin Forum Directory
GameSocket
Jr. Member
Offline
Posts: 79
NZ Made
Re: 4. Global Headers and Footers
«
Reply #34 on:
October 30, 2006, 02:41:02 pm »
If you are going to do that ya might as well do it to index.template and forget headers and footers mod.
Logged
(\__/)
(O.o ) *If You need help, best not to ask me*
(> < )
Nite
Inline PM Customer
Offline
Posts: 45
Re: 4. Global Headers and Footers
«
Reply #35 on:
November 03, 2006, 08:19:19 pm »
Yes, but if that's all you had to do, then this mod would have never been created in the first place. For the sake of ease, there are two files that are descriptively named.
Logged
The Simple Machines Forum Directory
::
The phpBB Forum Directory
The Invision Power Board Forum Directory
::
The vBulletin Forum Directory
SMFHacks
Administrator
Hero Member
Offline
Posts: 10998
Re: 4. Global Headers and Footers
«
Reply #36 on:
November 03, 2006, 08:31:43 pm »
I need to look into that one day not sure what causes that probably some kind of linux path issue that it is not reopening the file.
Logged
Bill White
Inline PM Customer
Offline
Posts: 2
Re: 4. Global Headers and Footers
«
Reply #37 on:
November 17, 2006, 02:12:34 pm »
Quote from: SMFHacks on June 14, 2006, 11:15:20 am
Hmm, It shouldn't be empty. It should always load the code that you last entered.
SMFHacks.com
I get the same problem. And maybe this will help to solve it:
When I navigate to index.php?action=globalhf;sesc I get an error message in the error log as follows:
<my name Today at 01:47:54 PM
<my IP address> <my session number>
http://<mysite.com/smf/index.php?action=globalhf;sesc
8: Undefined index: sa
File: /.../.../public_html/smf/Sources/globalhf.php
Line: 29
That suggests that, when I go to edit the headers and footers, the routine is unable to successfully execute a line that locates existing data so that it can be pulled and presented for editing. Maybe the code can be adjusted?
Logged
Bill White
Inline PM Customer
Offline
Posts: 2
Re: 4. Global Headers and Footers
«
Reply #38 on:
November 17, 2006, 02:38:44 pm »
I ran into another little problem with Global Headers and Footers. I uninstalled and reinstalled the module. Now any header shows up twice. If I delete the header, nothing shows up, but when I reenter it, it shows up twice again.
Maybe the install enters some code, and the uninstall does not remove it, but removes the data. So then the reinstall enters duplicate code that displays whatever header data a second time. That's my guess.
Logged
lplettie
Inline PM Customer
Offline
Posts: 1
Re: 4. Global Headers and Footers
«
Reply #39 on:
November 23, 2006, 10:32:12 pm »
Quote from: brightstarpro on October 30, 2006, 06:35:30 am
Quote from: rbh on June 14, 2006, 10:16:18 am
i love this mod, except one thing. it won't allow you to edit the header and footer data you placed. what i means is, i added a banner script to my footer. it works nicely, but when i went into the global header footer today to change the banner, the boxes are empty. you should make this similiar to how proboards works where the data entered remains static so that it can be easily edited. if it is suppose to be like that then i may have something not setup right.
Yeah, same problem for me as well. Was a solution ever found for this?
Quote from: Bill White on November 17, 2006, 02:12:34 pm
Quote from: SMFHacks on June 14, 2006, 11:15:20 am
Hmm, It shouldn't be empty. It should always load the code that you last entered.
SMFHacks.com
I get the same problem. And maybe this will help to solve it:
When I navigate to index.php?action=globalhf;sesc I get an error message in the error log as follows:
<my name Today at 01:47:54 PM
<my IP address> <my session number>
http://<mysite.com/smf/index.php?action=globalhf;sesc
8: Undefined index: sa
File: /.../.../public_html/smf/Sources/globalhf.php
Line: 29
That suggests that, when I go to edit the headers and footers, the routine is unable to successfully execute a line that locates existing data so that it can be pulled and presented for editing. Maybe the code can be adjusted?
I also have both problems. Is there a cure for this yet?
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 10998
Re: 4. Global Headers and Footers
«
Reply #40 on:
November 23, 2006, 11:20:36 pm »
No cure for linux servers.
Logged
buhaychat.com
Inline PM Customer
Offline
Posts: 5
Re: 4. Global Headers and Footers
«
Reply #41 on:
December 08, 2006, 11:48:49 pm »
Quote from: SMFHacks on May 23, 2006, 03:47:07 pm
Header for most themes would be located under the menu bar.
Footer is right above the copyright line.
Is there a way we can change the location of the header that instead of beneath the menu bar, the entered header code goes someplace else towards the top of the page, say above all the user info, before any of the table for the board starts?
Thanks in advance...
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 10998
Re: 4. Global Headers and Footers
«
Reply #42 on:
December 09, 2006, 12:05:16 pm »
You would need to edit the location of the code.
Logged
buhaychat.com
Inline PM Customer
Offline
Posts: 5
Re: 4. Global Headers and Footers
«
Reply #43 on:
December 09, 2006, 02:58:45 pm »
Quote from: SMFHacks on December 09, 2006, 12:05:16 pm
You would need to edit the location of the code.
Thanks for the reply! It's the index.template.php that I should be editing right?
I did try that, but can't seem to have much success; I keep getting template parse errors... Is this the code we'd need to edit/move?
(located in <head> section):
Code:
// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';
function shrinkHeader(mode)
{';
// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]></script>
I can't seem to locate it in the body... the place where I "think" it should be, but is not:
Code:
// Show the menu here, according to the menu sub template.
template_menu();
echo '
</div></div>';
//If the user is below the minimum required posts, then show the annoying message.
global $user_info;
if (($context['user']['is_logged']) && ($user_info['posts'] < $modSettings['MinReqPostCount']))
echo '
<div align="center"><table align="center" style="width: 650px; padding: 20px; text-align: left; vertical-align: middle; margin: 2ex 1ex 2ex 1ex; border: 2px dashed ', $modSettings['PostCountWarningBorderColor'],'; background-color: ', $modSettings['PostCountWarningBackgroundColor'],';">
<tr>
<td width="64">
<img style="vertical-align: middle;" src="'.$settings['images_url'].'/pcWarn.gif" alt="Attention!" />
</td>
<td style="color: ', $modSettings['PostCountWarningTextColor'],';">
<strong>', $modSettings['PostCountWarningMessageTitle'], '</strong><br />', $modSettings['PostCountWarningMessage'], '
</td>
</tr>
</table></div>
';
A little nudge in the right direction, maybe? What's the code I'd need to move around to where I want it to show?
Thanks again.
«
Last Edit: December 09, 2006, 03:00:45 pm by buhaychat.com
»
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 10998
Re: 4. Global Headers and Footers
«
Reply #44 on:
December 09, 2006, 03:12:31 pm »
Its actually not in the index.template.php the code is located in Sources/Subs.php that's why it can work for every theme.
Logged
Pages:
1
2
[
3
]
4
« previous
next »
Jump to:
Please select a destination:
-----------------------------
SMFHacks.com
-----------------------------
=> News
=> Site Discussion
===> Suggestions
===> Bugs
-----------------------------
SMF Gallery Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
SMF Store
-----------------------------
=> Announcements
=> Presales
=> Support
===> Guides and Tips
===> Feature Requests
===> Bugs
-----------------------------
SMF Classifieds
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
Downloads System Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Feature Requests
===> Bugs
-----------------------------
Ad Seller Pro
-----------------------------
=> Presales
=> Support
-----------------------------
Menu Editor Pro
-----------------------------
=> Presales Menu Editor Pro
=> Bug Reports
-----------------------------
Inline Personal Messages
-----------------------------
=> Presales
=> Support
=> Bug Reports
-----------------------------
Newsletter Pro
-----------------------------
=> Presales
=> Support
===> Feature Requests
-----------------------------
Badge Awards
-----------------------------
=> Presales
=> Support
-----------------------------
Tweet Topics/FB Post System
-----------------------------
=> Presales
-----------------------------
Social Login Pro
-----------------------------
=> Presales
-----------------------------
SMF Gallery Lite
-----------------------------
=> SMF Gallery Lite
-----------------------------
Modifications/Themes
-----------------------------
=> General SMF Forum
=> Modifications Talk
===> Latest Mods
===> Modification Showcase
=> Theme Talk
===> Theme Showcase
===> Latest Themes
Recent
news letter pro cant find...
by
SMFHacks
[
Today
at 10:44:26 am]
Help me program these awa...
by
Draffi
[
Today
at 03:03:31 am]
Code for ultimate Profile
by
Draffi
[May 21, 2013, 03:27:16 pm]
Parent and children Badge...
by
Draffi
[May 21, 2013, 02:11:10 pm]
Badge block
by
Draffi
[May 21, 2013, 01:18:58 pm]
[Request] - Award for any...
by
SMFHacks
[May 21, 2013, 12:22:02 am]
Changing the font
by
SMFHacks
[May 21, 2013, 12:20:41 am]
SMF vs PhpBB
by
gibranabahel
[May 19, 2013, 11:13:02 pm]
Upgrade SMF Gallery Pro
by
DTroup
[May 19, 2013, 08:18:27 pm]
sa facebook integration c...
by
murdocklawless
[May 19, 2013, 07:03:27 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Loading...