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

Elysia

kosher_travel, use the Ads_mod instead as this does what you want it to do. :)

bassbass

I am adding this code in the header section, and all i get is blank space, the right size for what i want to diplay but no flash comes up.  do i have anything in the code that is not right?  here is the code,



<html>
<head>
<body topmargin=0 leftmargin=0 rightmargin=0 bgcolor=#ffffff>
<P align=center>
<table width=100% height=100% cellpadding=0 cellspacing=0>
<tr>
<td valign=middle align=CENTER>
<P align=center>
<script src=http://www.greek-turkish-clarinet.com/tmp/site.js></script>
</p>
</td>
</tr>
</table>
</P>
</body>
</html>


TrueSatan

I'd stsrt by debugging what you have there by means of saving it to your server somewhere and browsing to it to see if it works.

writerrobert680

#163
Erm, I cannot view the link in my admin section... :-/


EDIT:

Problem solved. It was the language problem.

AdrenalineRider

Guys, somthing wrong here as after installing the Mod.. its working well but appears twice ...

More like a copy of the same HTML repeating itself...
Seems like the mod is displaying twice...

TrueSatan

Using the same process as a manual installation check to see that none of the files edits the mod makes have been duplicated and if any have edit accordingly.

Official documentation for manual installation:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

You may also find this helpful:

http://modparser.dev.dansoftaustralia.net/

writerrobert680

Quote from: drenalineRider on July 26, 2007, 11:47:57 AM
Guys, somthing wrong here as after installing the Mod.. its working well but appears twice ...

More like a copy of the same HTML repeating itself...
Seems like the mod is displaying twice...

That's what happened to mine too.

AdrenalineRider

Quote from: writerrobert680 on July 26, 2007, 06:22:39 PM
Quote from: drenalineRider on July 26, 2007, 11:47:57 AM
Guys, somthing wrong here as after installing the Mod.. its working well but appears twice ...

More like a copy of the same HTML repeating itself...
Seems like the mod is displaying twice...

That's what happened to mine too.

I guess, somthing wrong with the index.php as it repeats the same process.

Can some one get the script for this mod as I think I might have the codes repeating ..


OZSlayer

Hi guys the mod works great with 1.1.3

Heres some basic code for a simple stretchy divider you can use in the header. just add your url for the gifs you use and then it works fine, it expands and shrinks as needed.


<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td width="1%" height="90"> <img src="/mirrortab_first.gif" width="20" height="90"> </td>
    <td width="50%" style=" background-image: url(/mirrortab_back.gif);  background-repeat: repeat-x;">  </td>
    <td width="0%"> <img src="/mirrortab_back.gif" width="6" height="90"> </td>
    <td width="50%" style=" background-image: url(mirrortab_back.gif);  background-repeat: repeat-x;"> </td>
    <td width="1%"> <img src="/mirrortab_last.gif" width="6" height="90"> </td>
  </tr>
</table>

I will add a link here to the site when it goes live so you can see for yourself


avidum

Quote from: writerrobert680 on July 26, 2007, 06:22:39 PM
Quote from: drenalineRider on July 26, 2007, 11:47:57 AM
Guys, somthing wrong here as after installing the Mod.. its working well but appears twice ...

More like a copy of the same HTML repeating itself...
Seems like the mod is displaying twice...

That's what happened to mine too.

I am also getting double displays.

TrueSatan

To fix it check as per a manual installation and remove any duplicate code the mod may have added...it works properly in my testing BTW.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/

avidum

Quote from: TrueSatan on August 04, 2007, 11:00:37 AM
To fix it check as per a manual installation and remove any duplicate code the mod may have added...it works properly in my testing BTW.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/

I did read this but I am a total dork so I wasn't sure what to check off on the smf parser. Do I uninstall the mod first or what?

TrueSatan

You would do best to allow the parser to show all edits and don't do any automatic uninstall... manually go through the edits and make sure that each edit is there in each file but once only...fix where needed to make this so.

At the end of the above you should have the mod installed properly (if you got the edits right) and you can then either keep it or uninstall via the Package Manager as normal.

ViRo

Sorry I am very new when it comes to smf. I uploaded the zip and installed it via package manager. It doesnt show up in the admin panel. Possible help here?

TrueSatan

@ viro

Please go to ACP>Server Settings and make sure that the language for your forum is set to English and not English utf8.

If this doesn't fix it do you have a couple of lines of gap in the ACP configuration area or any mention of the mod there?

ComputerLady

Thanks to the help provided here, I was able to manually uninstall this mod for the most part. (No way to uninstall from within SMF.) The issue I have with it is the global header and footer are not appearing in the template where I want them. That is, at the top and bottom of the forum. Rather, they are coming up below the menu bar inside the forum itself.

What I want to do is have my universal header/footer - with links - that appear at the top of other web apps on my site appear in SMF. No, I don't want to 'wrap' SMF inside the CMS, as then everything gets squished and squeezed. Besides, that doesn't cover anything. Back to hunting for manual instructions on inserting header/footer code into template I guess...
The Computer Lady!
Design Works Internet - CEBUG
Custom Web Design & Programming, Video Tutorials

ComputerLady

I should also add that using the Mod Parser suggested:
http://modparser.dev.dansoftaustralia.net/
Did not get rid of this mod completely. The menu option for it is still visible in the Admin section. I'm not sure how to correct that, short of a new install.
The Computer Lady!
Design Works Internet - CEBUG
Custom Web Design & Programming, Video Tutorials

TrueSatan

@ ComputerLady,

This mod is designed so that it will work in all themes without additional editing being needed so the code is in Subs.php not Display.template.php...the downside of this is that it can't, by default, display the images placed as you require them...the Ad Management mod might well suit you better if that is the placement you require though Subs.php could be edited to do what you want with this mod.

You appear not to have removed all the edits this mod makes judging by the remaining ACP parts you mention. The editing of Subs.php is in three parts are you sure you reversed all of them?

ComputerLady

Quote from: TrueSatan on August 23, 2007, 09:12:27 AM
...the Ad Management mod might well suit you better if that is the placement you require though Subs.php could be edited to do what you want with this mod.
I can try this mod again, crossing fingers that it will do what I want. 

Quote
You appear not to have removed all the edits this mod makes judging by the remaining ACP parts you mention. The editing of Subs.php is in three parts are you sure you reversed all of them?

Yes, I did.
The Computer Lady!
Design Works Internet - CEBUG
Custom Web Design & Programming, Video Tutorials

Advertisement: