Insert a banner in the header of the index page

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Anti-Spam Guide
fifahub
Registered User
Posts: 150
Joined: Mon Oct 29, 2012 12:05 pm

Insert a banner in the header of the index page

Post by fifahub » Sun Nov 18, 2012 10:10 am

Hi, I want to insert a banner like this:
Image
What can I do?
Last edited by _Vinny_ on Tue Nov 20, 2012 2:06 pm, edited 1 time in total.
Reason: Topic icon changed

fifahub
Registered User
Posts: 150
Joined: Mon Oct 29, 2012 12:05 pm

Re: Insert a banner in the header of the index page

Post by fifahub » Mon Nov 19, 2012 11:24 am

I readed the code of this page (where there is the banner) and isolated the concerned code:

Code: Select all

<div style="position:relative;">
	<h2 style="width: 65%"><a href="./viewforum.php?f=46">3.0.x Support Forum</a></h2>

	
	<div>
		<!-- NOTE: remove the style="display: none" when you want to have the forum description on the forum body --><div style="display: none !important;">Get help with installation and running phpBB 3.0.x here. Please do <span style="font-weight: bold">not</span> post bug reports, feature requests, or MOD-related questions here.<br /></div>
	</div>
	
	<a href="/get-involved/?from=upper_ad"><img style="position:absolute; bottom:0px; right:0px;" src="./styles/prosilver/theme/ads/upper_get_involved.png" alt="Get Involved"/></a>
	
		<div class="rules" style="width: 60%">
			<div class="inner"><span class="corners-top"><span></span></span>

			
				<strong>Forum rules</strong><br />
				<span style="font-weight: bold">READ: <a href="http://www.phpbb.com/rules/" class="postlink">phpBB.com Board-Wide Rules and Regulations</a></span>
			

			<span class="corners-bottom"><span></span></span></div>
		</div>
	
</div>
Well, there is another code that change the image every update. Where do I found it?


Using only this code, does it works yet or I have to edit other code?

Code: Select all

[code]<a href="/get-involved/?from=upper_ad"><img style="position:absolute; bottom:0px; right:0px;" src="./styles/prosilver/theme/ads/upper_get_involved.png" alt="Get Involved"/></a>
	
		<div class="rules" style="width: 60%">
			<div class="inner"><span class="corners-top"><span></span></span>	

			<span class="corners-bottom"><span></span></span></div>
		</div>
	
</div>
[/code]

User avatar
_Vinny_
Style Customisations
Style Customisations
Posts: 8355
Joined: Tue Aug 11, 2009 12:45 am
Location: Brazil
Name: Marcus Vinicius
Contact:

Re: Insert a banner in the header of the index page

Post by _Vinny_ » Mon Nov 19, 2012 6:34 pm

Open template/viewforum_body.html
Find:

Code: Select all

<h2><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2>
Replace with:

Code: Select all

<h2 style="width: 65%"><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2>
Find:

Code: Select all

<!-- IF S_FORUM_RULES -->
	<div class="rules">
Replace with:

Code: Select all

<a href="YOUR_LINK_HERE"><img alt="" src="YOUR_IMAGE_URL_HERE" style="float: right; bottom:0px; right:0px;" /></a>
<!-- IF S_FORUM_RULES -->
	<div class="rules" style="width: 60%">
Do the same in viewtopic_body.html.

fifahub
Registered User
Posts: 150
Joined: Mon Oct 29, 2012 12:05 pm

Re: Insert a banner in the header of the index page

Post by fifahub » Mon Nov 19, 2012 8:47 pm

Thank you very much for the help.
I edited the file "template/viewforum_body.html" and everything work fine but I want to show this banner only in the index page. What can I do? Thanks again.

User avatar
_Vinny_
Style Customisations
Style Customisations
Posts: 8355
Joined: Tue Aug 11, 2009 12:45 am
Location: Brazil
Name: Marcus Vinicius
Contact:

Re: Insert a banner in the header of the index page

Post by _Vinny_ » Mon Nov 19, 2012 11:10 pm

Open template/index_body.html
Find:

Code: Select all

<!-- INCLUDE overall_header.html -->
Add your code after in a new line.

fifahub
Registered User
Posts: 150
Joined: Mon Oct 29, 2012 12:05 pm

Re: Insert a banner in the header of the index page

Post by fifahub » Tue Nov 20, 2012 10:49 am

Perfect, now it's ok. Thanks!

eliaaas
Registered User
Posts: 7
Joined: Sun Apr 21, 2013 9:58 am

Re: Insert a banner in the header of the index page

Post by eliaaas » Mon Apr 22, 2013 3:49 am

thanks :)

beglerbeg
Registered User
Posts: 6
Joined: Fri Oct 25, 2013 12:27 pm

Re: Insert a banner in the header of the index page

Post by beglerbeg » Sat Oct 26, 2013 3:09 pm

this is great. but i would to ask about multi banner. how can i add more pic banner with link to code?

beglerbeg
Registered User
Posts: 6
Joined: Fri Oct 25, 2013 12:27 pm

Re: Insert a banner in the header of the index page

Post by beglerbeg » Sat Oct 26, 2013 3:23 pm

i have a problem. How to solve that with line like on this site... look how look like on my forum...
Attachments
Screen Shot 2013-10-26 at 17.22.22.png
Screen Shot 2013-10-26 at 17.22.22.png (30.09 KiB) Viewed 2671 times

beglerbeg
Registered User
Posts: 6
Joined: Fri Oct 25, 2013 12:27 pm

Re: Insert a banner in the header of the index page

Post by beglerbeg » Thu Nov 07, 2013 11:24 am

anyone please? i need this. Tnx for help.

MrC
Registered User
Posts: 857
Joined: Mon Jun 30, 2003 4:11 pm
Location: The Netherlands
Name: Ivo
Contact:

Re: Insert a banner in the header of the index page

Post by MrC » Thu Nov 07, 2013 11:58 am

If you give a link to your forum someone can have a look at it
Now it's guessing what you did.

timeforhelp1
Registered User
Posts: 212
Joined: Thu Feb 19, 2009 5:34 pm

Re: Insert a banner in the header of the index page

Post by timeforhelp1 » Sun Feb 28, 2016 3:43 pm

I've tried but can't get this to work in 3.1.x, yes I know this is for 3.0.x.
Any ideas?

User avatar
Lumpy Burgertushie
Registered User
Posts: 66479
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Insert a banner in the header of the index page

Post by Lumpy Burgertushie » Sun Feb 28, 2016 4:15 pm

it works, you just have to adjust the instructions to fit the new code in the files.



find:

Code: Select all

<h2 class="forum-title">
replace with:

Code: Select all

<h2 style="width: 65%" class="forum-title">
find:

Code: Select all

<!-- IF S_FORUM_RULES -->
above, add:

Code: Select all

<a href="YOUR_LINK_HERE"><img alt="" src="YOUR_IMAGE_URL_HERE" style="float: right; bottom:0px; right:0px;" /></a>
find:

Code: Select all

<div class="rules<!-- IF U_FORUM_RULES --> rules-link<!-- ENDIF -->">
replace with:

Code: Select all

<div class="rules<!-- IF U_FORUM_RULES --> rules-link<!-- ENDIF -->" style="width: 60%">
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

enter a valid email
Registered User
Posts: 276
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact:

Re: Insert a banner in the header of the index page

Post by enter a valid email » Sun Jun 12, 2016 9:32 pm

:shock: dont work here.
What does I do wrong? Are there any settings in the Forum them self?
How does an "internal" path to an image have to look like?

User avatar
Lumpy Burgertushie
Registered User
Posts: 66479
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Insert a banner in the header of the index page

Post by Lumpy Burgertushie » Mon Jun 13, 2016 7:09 pm

you can't just say it doesn't work. what does that mean? does nothing show up at all? does only part of it show up?
does it show up in the wrong place? does it show up on the wrong page? does it show up and then jump off the page? what?
give us a screen shot if you can't give us a link and or tell us exactly what you did, what file you were editing, what you used to make the edits, did you upload the file properly, etc. etc.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

Locked

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