Header banner
5 posters
Page 1 of 1
Header banner
Hi everyone.
When I try and add an HTML banner into the homepage message area the banner is the size it is in the code but it appears in a box the width of the forum with the same boarder and background color.
I obviosly don't want to change the colour of this as it will effect the rest of the forum. All we want is a banner ad at the top of the homepage. Any ideas?
Hope that makes sense.
Thanks.
James
When I try and add an HTML banner into the homepage message area the banner is the size it is in the code but it appears in a box the width of the forum with the same boarder and background color.
I obviosly don't want to change the colour of this as it will effect the rest of the forum. All we want is a banner ad at the top of the homepage. Any ideas?
Hope that makes sense.
Thanks.
James
jamski- Forumember
- Posts : 105
Reputation : 0
Language : English
Re: Header banner
Not sure what you really want? Can you post a screen shot or a link to your forum?
MrMario- Helper
- Posts : 22186
Reputation : 1839
Language : test
Re: Header banner
I don't have the code we were using here, it's on my work computer, but I'll post some pics tomorrow.
Thanks,
James.
Thanks,
James.
jamski- Forumember
- Posts : 105
Reputation : 0
Language : English
Re: Header banner
yh i got the same problem...can anyone help us out?
venomz3- New Member
- Posts : 19
Reputation : 0
Language : english
Re: Header banner
Hello,
You can put the banner via template editing (only for phpBB2 and punBB).
GO to Admin CP > Display > 'General' under 'Templates' > Click 'Modify' button of 'index_body'
Notice this part in the beginning...
You have to put your banner code right after that. Don't forget to hit the '+' button to submit your changes and make it work.
Hope this helps.
You can put the banner via template editing (only for phpBB2 and punBB).
GO to Admin CP > Display > 'General' under 'Templates' > Click 'Modify' button of 'index_body'
Notice this part in the beginning...
- Code:
{JAVASCRIPT}
<!-- BEGIN message_admin_index -->
You have to put your banner code right after that. Don't forget to hit the '+' button to submit your changes and make it work.
Hope this helps.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Header banner
I think my forum is just phpBB, does this mean I can't do it!
jamski- Forumember
- Posts : 105
Reputation : 0
Language : English
Re: Header banner
I've checked, you are using phpBB2 and you can edit the template.
Just follow my instructions above.
Just follow my instructions above.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Header banner
I feel I'm close to getting sorted, can anyone help?
Thanks,
James.
Thanks,
James.
jamski- Forumember
- Posts : 105
Reputation : 0
Language : English
Re: Header banner
Please provide a link to your forum.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Header banner
www.surreynewmini.co.uk
(there's no banner up there at the moment though, would you like me to add it?)
(there's no banner up there at the moment though, would you like me to add it?)
jamski- Forumember
- Posts : 105
Reputation : 0
Language : English
Re: Header banner
The template editing option should be right below the avatar settings in Admin CP > Display.
Try clearing you cache..
https://help.forumotion.com/frequently-asked-questions-f5/how-to-clear-the-cache-in-ff-ie-t22597.htm
Try clearing you cache..
https://help.forumotion.com/frequently-asked-questions-f5/how-to-clear-the-cache-in-ff-ie-t22597.htm
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Header banner
Brilliant, I can get in there now, but the code doesn't work!! But that could be the code although it did work putting it where I was before??!!
jamski- Forumember
- Posts : 105
Reputation : 0
Language : English
Re: Header banner
This is the code (in bold) but nothing appears?? Thanks for all the help.
{JAVASCRIPT}
<!-- BEGIN message_admin_index -->
<script type="text/javascript">
var imgs1 = new Array("https://i.servimg.com/u/f83/14/23/16/43/tm_ban10.jpg","https://i.servimg.com/u/f83/14/23/16/43/snm_ba10.jpg","https://i.servimg.com/u/f83/14/23/16/43/mini_b10.jpg");
var lnks1 = new Array("http://www.totalmini.com/forum/","http://www.surreynewmini.co.uk","http://www.mini.co.uk/");
var alt1 = new Array();
var currentAd1 = 0;
var imgCt1 = 3;
function cycle1() {
if (currentAd1 == imgCt1) {
currentAd1 = 0;
}
var banner1 = document.getElementById('adBanner1');
var link1 = document.getElementById('adLink1');
banner1.src=imgs1[currentAd1]
banner1.alt=alt1[currentAd1]
document.getElementById('adLink1').href=lnks1[currentAd1]
currentAd1++;
}
window.setInterval("cycle1()",5000);
</script>
<a href=""http://www.totalmini.com/forum/" target="_blank" id="adLink1" target="_top">
<img src="https://i.servimg.com/u/f83/14/23/16/43/tm_ban10.jpg" id="adBanner1" border="0" width="468" height="60"></a>
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
{JAVASCRIPT}
<!-- BEGIN message_admin_index -->
<script type="text/javascript">
var imgs1 = new Array("https://i.servimg.com/u/f83/14/23/16/43/tm_ban10.jpg","https://i.servimg.com/u/f83/14/23/16/43/snm_ba10.jpg","https://i.servimg.com/u/f83/14/23/16/43/mini_b10.jpg");
var lnks1 = new Array("http://www.totalmini.com/forum/","http://www.surreynewmini.co.uk","http://www.mini.co.uk/");
var alt1 = new Array();
var currentAd1 = 0;
var imgCt1 = 3;
function cycle1() {
if (currentAd1 == imgCt1) {
currentAd1 = 0;
}
var banner1 = document.getElementById('adBanner1');
var link1 = document.getElementById('adLink1');
banner1.src=imgs1[currentAd1]
banner1.alt=alt1[currentAd1]
document.getElementById('adLink1').href=lnks1[currentAd1]
currentAd1++;
}
window.setInterval("cycle1()",5000);
</script>
<a href=""http://www.totalmini.com/forum/" target="_blank" id="adLink1" target="_top">
<img src="https://i.servimg.com/u/f83/14/23/16/43/tm_ban10.jpg" id="adBanner1" border="0" width="468" height="60"></a>
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
jamski- Forumember
- Posts : 105
Reputation : 0
Language : English
Re: Header banner
Did you hit the '+' button after you saved you template.
You need to hit the + button to make your changes appear.
You need to hit the + button to make your changes appear.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Header banner
When you modify the template will it automatically be used? Do I have to change anything else to use it, or activate something for java script to show??
We're sooooo close!
We're sooooo close!
jamski- Forumember
- Posts : 105
Reputation : 0
Language : English
Re: Header banner
Yes, When you modify template, add your script, save it, publish it....it should show up in your index page.
Try putting your script below this part in your template...
Try putting your script below this part in your template...
- Code:
<!-- END message_admin_txt -->
</table>
<!-- END message_admin_index -->
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Header banner
YES! It works. Now how do I centre it [centre] CODE HERE [/centre] doesn't work?!
That's all I know!
Thank you very much,
That's all I know!
Thank you very much,
jamski- Forumember
- Posts : 105
Reputation : 0
Language : English
Re: Header banner
Use <center> </center> code.
Last edited by ankillien on August 19th 2009, 5:44 pm; edited 1 time in total
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Header banner
Perfect, thank you, I was nearly there, I'm learning!
jamski- Forumember
- Posts : 105
Reputation : 0
Language : English
Re: Header banner
Since this thread appears to be solved, I will lock this thread and mark it as solved.
Sanket
Sanket
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» How to put header banner like this?
» Banner/Header
» Banner/Header
» using a swf for my header banner
» Banner/Header
» Banner/Header
» Banner/Header
» using a swf for my header banner
» Banner/Header
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum