Advertising column index page only

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Ideas Centre
User avatar
licensinglinks
Registered User
Posts: 132
Joined: Tue Aug 12, 2008 7:32 pm
Location: United Kingdom

Advertising column index page only

Post by licensinglinks »

Hi, could anyone please advise me how to create an advertising column? It must be only on the index page, and not on any of the subforums or topics.

I have made an image of what I would like to achieve. Please see the link below:

http://www.mechanicaldesignforum.com/adspec.html

If anyone can help it would be gratefully appreciated.
Last edited by Josh on Sun Nov 08, 2009 2:43 pm, edited 1 time in total.
Reason: Topic icon changed
User avatar
PlanetStyles.net
Former Team Member
Posts: 4590
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: Advertising column index page only

Post by PlanetStyles.net »

First, make a new (blank) html file called "sidebar.html" and upload it to /styles/echotech/template/

Then...

Open: /styles/echotech/template/index_body.html

Find:

Code: Select all

<!-- INCLUDE forumlist_body.html -->
Replace with:

Code: Select all

<div id="forumlist">
<!-- INCLUDE forumlist_body.html -->
</div>
<div id="sidebar">
<!-- INCLUDE sidebar.html -->
</div>

<div id="clear-both"></div>
Open: /styles/echotech/theme/colours.css

Find:

Code: Select all

input.disabled {
	color: #666666;
}
Below, Add:

Code: Select all

#forumlist {
	float: left;
	width: 645px;
}

#sidebar {
	width: 150px; /* choose width of sidebar here */
	float: right;
}

#clear-both {
	clear: both;
}
...now all you need to do is put stuff in the sidebar.html file. If you choose to increase the width of the sidebar, you need to decrease the width of #forumlist accordingly. :)
🚀 Premium phpBB StylesPremium phpBB 3.3 StylesphpBB sidebar Extension
Previously known as Christian 2.0
User avatar
licensinglinks
Registered User
Posts: 132
Joined: Tue Aug 12, 2008 7:32 pm
Location: United Kingdom

Re: Advertising column index page only

Post by licensinglinks »

Thanks so much. That worked perfectly first time! (once I'd remembered to refresh the template and theme in the ACP :D )

I'd been really struggling with this one, so thanks again for your help! :D :D :D
User avatar
licensinglinks
Registered User
Posts: 132
Joined: Tue Aug 12, 2008 7:32 pm
Location: United Kingdom

Re: Advertising column index page only

Post by licensinglinks »

Hi it's me again...

Unfortunately there a small fly in the ointment. :( On IE everything looks great. but in Firefox all my images are WAY too far apart. I had created a jpeg that 7px high to space thg images apart neatly. It works fine in IE, but strange things have happened in Firefox. The images are too far apart.

Can you help at all???

View of forum in IE: http://www.mechanicaldesignforum.com/ie.jpg :)

View of forum in Firefox: http://www.mechanicaldesignforum.com/firefox.jpg :(
User avatar
PlanetStyles.net
Former Team Member
Posts: 4590
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: Advertising column index page only

Post by PlanetStyles.net »

How are you separating the images?

Can you post your sidebar.html file? :)
🚀 Premium phpBB StylesPremium phpBB 3.3 StylesphpBB sidebar Extension
Previously known as Christian 2.0
User avatar
licensinglinks
Registered User
Posts: 132
Joined: Tue Aug 12, 2008 7:32 pm
Location: United Kingdom

Re: Advertising column index page only

Post by licensinglinks »

Hi again. Here is the html file. I have just renamed it so it doesn't appear on my forum whilst I'm messing around with it.

http://www.mechanicaldesignforum.com/fo ... -full.html

As you can see it looks OK on it's own in both Firefox and IE. Unfortunately the spacing goes all wacko as soon as I put it in the forum.

Oh and for some reason the alt tag doesn't seem to work in Firefox when you hover the curser over the image (works OK in IE though)

Cheers
macgos
Registered User
Posts: 75
Joined: Mon Nov 17, 2008 11:35 pm

Re: Advertising column index page only

Post by macgos »

I am trying this too - but my styles folder doesn't contain a colours.css file.

I had a style made for me - I have lost contact with the designer. There is only a stylesheet.css file Where would I put his code you mentioned?

Thanks so much for your time.... ;)

Mark
User avatar
PlanetStyles.net
Former Team Member
Posts: 4590
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: Advertising column index page only

Post by PlanetStyles.net »

Hi Mark,

Sounds like you're using a Subsilver2 based style, could you post a link to your board please? :)

Thanks
🚀 Premium phpBB StylesPremium phpBB 3.3 StylesphpBB sidebar Extension
Previously known as Christian 2.0
macgos
Registered User
Posts: 75
Joined: Mon Nov 17, 2008 11:35 pm

Re: Advertising column index page only

Post by macgos »

Hi Christian - thanks very much for replying. My forum is http://rcsoaringcommunities.co.nzthis will take you to our introduction page. If you click the Register Now - you will see a bit of the style....just not the index as you won't be registered. Feel free to register if you want - I will just need to activate your membership....

I think I know how to widen the forum to allow for the column...I was playing around with that today...I like the idea of having a separate HTML file for all the column stuff....


I really appreciate your time on this. ;)

Cheers

Mark
User avatar
PlanetStyles.net
Former Team Member
Posts: 4590
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: Advertising column index page only

Post by PlanetStyles.net »

Can you post login credentials for a test account please? :)

We shouldn't have to register in order to give accurate support. Thanks :)
🚀 Premium phpBB StylesPremium phpBB 3.3 StylesphpBB sidebar Extension
Previously known as Christian 2.0
macgos
Registered User
Posts: 75
Joined: Mon Nov 17, 2008 11:35 pm

Re: Advertising column index page only

Post by macgos »

That's a good idea...ok I have set up this account

username: Tester
Password: apple723f

Thanks ;)
User avatar
PlanetStyles.net
Former Team Member
Posts: 4590
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: Advertising column index page only

Post by PlanetStyles.net »

The code should work fine on your forum.
macgos wrote:There is only a stylesheet.css file Where would I put his code you mentioned?
At the bottom of stylesheet.css would be best :)
🚀 Premium phpBB StylesPremium phpBB 3.3 StylesphpBB sidebar Extension
Previously known as Christian 2.0
macgos
Registered User
Posts: 75
Joined: Mon Nov 17, 2008 11:35 pm

Re: Advertising column index page only

Post by macgos »

Great - I will try it now and report back....thanks very much ;)
macgos
Registered User
Posts: 75
Joined: Mon Nov 17, 2008 11:35 pm

Re: Advertising column index page only

Post by macgos »

That has worked very well. Thanks so much...one last quick question - if I wanted to add another column - say across the top - what would I need to do with the code to make it happen - ie: in the index_body and the style sheet?

Thanks Christian....awesome ;)
User avatar
PlanetStyles.net
Former Team Member
Posts: 4590
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: Advertising column index page only

Post by PlanetStyles.net »

For a banner across the top, just put your banner code or other code into either overall_header.html or index_body.html where you want it to appear on the page.

You'd probably be best putting it in its own div so that everything around it drops onto a new line. You could use something like this:

Code: Select all

<div style="text-align: center;">code here</div>
🚀 Premium phpBB StylesPremium phpBB 3.3 StylesphpBB sidebar Extension
Previously known as Christian 2.0
Locked

Return to “[3.0.x] Styles Support & Discussion”