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

Inv_Trdr

I am using the Global Headers Footers mod to try to insert my infolinks code into. I inserted it into the footer section. I did see the code working on the pages. But when I am seeing the Page Source I do not see the code above the Google Analytics code. Why? Does the mod make a separate header.php and footer.php file? Why can't I see the code placed in this mod's footer section on the Page Source? Looks like the code is working as ads are shown as highlighted text. Visit any Topic at http://invictatrader.com/forums to see it in action.

I am still waiting on a reply as to how to insert the infolinks code directly into the index.template file itself above the Google Analytics code.

Thank you.
Passion for Trading

Inv_Trdr

Is it possible to add 2 scripts to the Header or Footer block? I wanted to add the Google Analytics code along with an infolinks.com code to my forum using this mod. Is this possible? Is there any particular way to separate the 2 scripts or just add the second one on a new line after the first?
Thank you.
Passion for Trading

Arantor

Holder of controversial views, all of which my own.


Inv_Trdr

I am using that mod also for Google Analytics. Just wanted to find out if I can use the Global Footers Headers instead so I can add both the infolinks.com code and the Analytics code below it. If so, how do i separate the 2 or no need to? Just add them on separate lines? Will it work that way? Does this mod create a header.php and footer.php file? I did not see them.
Thank you.
Passion for Trading

Arantor

The Google Analytics mod does not create separate files, it just adds it directly into your theme, out the way.
Holder of controversial views, all of which my own.


Inv_Trdr

Ahh. Thanks. So if say i am not using the mod for Analytics, will the Global Footer Header mod be able to handle 2 scripts in just say the Footer box? Will it work that way? Will the Analytics and Infolinks code inserted in the Footer box work with the default theme? Do i need to separate them in any way? Does this mod add footer.php or header.php files somewhere?
Thank you.
Passion for Trading

Arantor

Yes, it should be able to though if you already have the GA mod there's no need to put the code into the footer - the mods should co-exist anyway!
Holder of controversial views, all of which my own.


Inv_Trdr

I wanted to make sure just in case I do not use the Analytics mod and put both the Analytics code and the Infolinks code in the Footer mod box. So no need to do anything special to separate two scripts? And does adding the two create a footer.php file somewhere or it inserts them into the index.template.php file automatically? I ask because I did not the Infolinks code inserted using this mod in the index.template file.
Thank you.
Passion for Trading

Arantor

Only this mod has a footer.php - the GA mod does NOT require a separate file in any way, shape or form (at least, it didn't when I wrote it) - installing it just adds the relevant code to the default theme (and other themes in 2.0)

The infolinks code should be added to the footer added by *this* mod.
Holder of controversial views, all of which my own.


Inv_Trdr

Thanks. And there is no need for any kind of separator just in case if I decide to add both the GA and the Infolinks code to the Global Footer mod, correct? Where is the footer.php file? Just curious, could not find it on the surface.
Passion for Trading

Arantor

No separator, just both bits of code into the footer.

As for where footer.php is, no such file - this mod loads smffooter.txt and smfheader.txt in the same directory as SSI.php is.
Holder of controversial views, all of which my own.


Inv_Trdr

Thanks. And this way I will be able to see both in the Page Source? When I use this mod I do not the Infolinks code I added to it. But it still seems to work as I do see text highlighted. Why does the script inserted in this module's footer not show in the Page Source as Google Analytics does?
Thank you.
Passion for Trading

Arantor

If you added it to footer.php, that'll be why, this mod never touches that file.

The GA mod modifies your forum's code to make sure it's there.

Do you have an smffooter.txt? If so put it in there.
Holder of controversial views, all of which my own.


Inv_Trdr

I am not putting it in the footer.php file. I am using the GA mod and this mod here for the infolinks code. But I see the GA code in my Page Source but not the infolinks code put into the footer section of your mod. When I click "View Page Source" on any page at http://invictatrader.com/forums my forum.
Thanks.
Passion for Trading

Arantor

This isn't my mod ;)

And I *do* see the infolinks code in the footer of the source.

Taken from your site just now.

</form>
</td>
</tr>
</table>
</div>
</div><!--Footers--><script type="text/javascript">
   var infolink_pid = 64540;
   var infolink_wsid = 1;
</script>
<script type="text/javascript" src="http://resources.infolinks.com/js/infolinks_main.js"></script>
<!--End Footers-->
</div>

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;">


Right there in the middle. It even appears to be working.
Holder of controversial views, all of which my own.


Inv_Trdr

Duh! Thank you. I was only looking for it just above the Google Analytics code. Did not go higher to look for it. Thank you very much.
Passion for Trading

TheListener

Is there a way so the banners added don't show on the portal?

ekoree

I will be immensely glad if anyone can help out. Am on smf 1.1.11, with DK theme. Even though global headers and footers has seemingly installed, it is not showing in the configuration. What can i do to be able to enjoy the benefits of this mod.
Even the google adsense ads and adbrite ads are not showing, even though i pasted on ad mod.
Thanks for the assistance

talk2troy

Quote from: ekoree on May 14, 2010, 10:59:49 AM
...smf 1.1.11 - EDIT: USING DEFAULT CORE THEME
Even though global headers and footers has seemingly installed, it is not showing in the configuration.

ditto - what he said!

ADMIN AREA
Configuration:
Features and Options
Server Settings
Current Theme
Themes and Layout

vbgamer45

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

Advertisement: