completed Advertisement Placement?

Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
How do i place ads above the header and below the footer ? so they are visible site wide?
updated by @zachary-moonshine: 09/25/15 07:36:50AM
paul
@paul
10 years ago
4,335 posts
Edit and place the ads in your active skin header.tpl and footer.tpl templates.


--
Paul Asher - JR Developer and System Import Specialist
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
Sorry to jump in but- if we want the ad to appear ONLY on the site's Home/index page, then we'd be putting the ad code in the skin's index.tpl template instead, is that correct Paul?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
douglas
@douglas
10 years ago
2,804 posts
You can still add the ad code to the header and footer and if you only want the ads to show on the home/index page, add this if statement around your ad code...

{if isset($selected) && $selected == 'home'}
Your ad code goes here...
{/if}

that should work for the Ningja skin, for the Elastic skin, you'll want to add this to the top of the index.tpl file in addition to the above code.

{assign var="selected" value="home"}



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 07/05/15 12:25:32PM
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
Great thank you Douglas!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
on my home page or custom pages i figure i will throw some in modules but i need one at the top and bottom of screen on every page of the entire site... this reminds me on ning we had to place a custom code in a diff area in order to use ads i guess a tracking code similar to analytics, where do we put that code on jamroom ?
michael
@michael
10 years ago
7,800 posts
There's a module for Google Analytics:

"Google analytics"
https://www.jamroom.net/the-jamroom-network/networkmarket/80/google-analytics

To get the code out to the skins, but yeah you could add it manually to the footer if you liked.

If it was me and I wanted a bunch of different ads in different places, I'd probably create a new file in the skin to include, then in there some code to determine which ad should be displayed.

something like:
/skins/YOUR SKIN/advert_460x120.tpl

Then in there have all the different 460x120 advert code.
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
i cant test this out yet since my domain has not been switched over yet but after it switches over i will see what i can do, i have accounts with Admedia and google adsence but i will be leaving google ads behind since they restrict what content you have on site and id rather this site be a bit more free range. Admedia has some codes for ads that will slide out from the sides too that could be another option if i wanna leave the header alone ? I dont know will have to play around with this when its ready and see.
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
ok so i have a code for a popunder ad to put on site just put it anywhere in footer code?
paul
@paul
10 years ago
4,335 posts
Zachary Moonshine:
ok so i have a code for a popunder ad to put on site just put it anywhere in footer code?

Pretty well. You might want to put it in its own div tag to make sure it doesn't interfere with anything else in the footer.


--
Paul Asher - JR Developer and System Import Specialist
paul
@paul
10 years ago
4,335 posts
Also, if its a javascript put it inside {literal}{/literal} smarty tags


--
Paul Asher - JR Developer and System Import Specialist
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
is this the correct code ?

{if isset($css_footer_href)}

{/if}
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
yes its java
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
ha well it wont let me post the code here but this is a snap shot i guess it is wrong
Capture.PNG.png
Capture.PNG.png  •  7KB

Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
paul:
Also, if its a javascript put it inside {literal}{/literal} smarty tags

Like this paul ?
Capture.PNG.png
Capture.PNG.png  •  8KB

Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
ok i see i had to change the second part and add the / top it
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
it says i just generated some change so i guess its working although i dont see any adds
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
now i stuck this in the footer in my skin template does that mean it will be sitewide or do i need to repeat what i did on the footer template for profiles as well ?
paul
@paul
10 years ago
4,335 posts
If its in the footer.tpl template it'll be site-wide unless you wrap it in a conditional test as Douglas suggested above.


--
Paul Asher - JR Developer and System Import Specialist
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
ok perfect
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
Zach, maybe not so 'perfect'. I had my FF browser completely TAKEN OVER last night by a phishing/scam/ad when i went to look at your site for the first time and clicked around looking. I was not on any other sites at the time aside from my own and googlenews. It was a real NASTY experience and I lost an hour of my workday going through precautions and malware scans afterwards to make sure my computer was clean. UGH. --If-- that's the paying 'ad' you put on then I suggest you remove it immediately. If you want me to describe the experience in full gory detail, just ask.




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 08/04/15 08:51:37AM
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
No idea I have not heard this from anyone else on the site I don't think it is linked to the advertisement or else I would be getting many emails and messages about it. I did remove it the other day though it was not making enough money per click for my use to have it on site. Will have to figure some other ideas out for monetization. Sorry you had that experience but I seriously doubt it was from my site, you can catch stuff like that from anywhere sometimes without even being on a page it just comes through the internet, I highly recommend Super Anti Spyware http://www.superantispyware.com/index.html It is the best program I have ever used and finds stuff even when others don't and it is not corporate owned like the other big names which I do not always trust.
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
Thanks Zach. I do have firewalls in place and some serious antivirus coverage. Like I said, my computer tested uninfected afterwards. Just suggesting that you be real careful about what 3rd party stuff you put on your site that promises to bring in money from clicking on it. Not sure if it helps, but the endless looping 'multiple new tab' sh*t started happening by the time i clicked around to the 'blogs' section of your site...that timing could be random or related.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
I added a banner add like google in my footer and i see it now but its to the left how do i center it ?
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
ahh never mind i figured out the code ! yayy hahahaha
ok now i need one on the top of the site above everything at the very top i tried it but it lowers the menu and not the logo ? Is there a specific place to put a banner ad at the top of the site?
michael
@michael
10 years ago
7,800 posts
nope, no designated space to ad adverts. Just work it in wherever you think it looks good.