Insert a banner in the header of the index page

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
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 » Mon Jun 13, 2016 8:05 pm

does nothing show up at all?
Yes
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
nothing happened.
I edited this file: Open template/viewforum_body.html

User avatar
Lumpy Burgertushie
Registered User
Posts: 66494
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 8:20 pm

after you edited the file, did you then upload it back to the proper place on the server?

are you editing from the admin panel or are you downloading the files and actually editing them?

what are you using to edit the files? what file editor?

did you purge the cache after you made the edits and uploaded the file back to the server?

did you refresh your browser afterwards so you can see the current version of the page?


we need more info to be able to help you.

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?

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 » Mon Jun 13, 2016 8:32 pm

did you then upload it back to the proper place on the server?
nope because i edit it directly "on my Server" who is an ordinary Laptop with Win7. :roll:
what are you using to edit the files? what file editor?
notepad++
did you purge the cache
Where I have to do it?
did you refresh your browser afterwards so you can see the current version of the page?
Yes and I deleted the browser cache.

User avatar
Lumpy Burgertushie
Registered User
Posts: 66494
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 11:21 pm

you purge the cache in the admin panel. main page button that says purge the cache.


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?

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 » Mon Jun 20, 2016 12:26 am

so in "template/viewforum_body.html" i cant find:
<h2><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2>

User avatar
Lumpy Burgertushie
Registered User
Posts: 66494
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 20, 2016 4:58 am

search for only part of that line.

in prosilver for 3.1 it is this line:
<h2 class="forum-title"><!-- EVENT viewforum_forum_name_prepend --><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a><!-- EVENT viewforum_forum_name_append --></h2>
line #3 in a stock file.


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?

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 » Mon Jun 20, 2016 1:48 pm

i know i have to add "style="width: 65%">" but where? :roll:
And how does the link work? Only internal Links or external links to?

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 » Tue Jun 21, 2016 9:17 pm

Does anyone have an idea how to fix it? :roll:

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

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

Post by Lumpy Burgertushie » Tue Jun 21, 2016 11:00 pm

just like it says here in the instructions:
viewtopic.php?p=13202399#p13202399
adjust for what your code is in your file.


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?

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 » Tue Jun 21, 2016 11:09 pm

i play arround but nothing happened.
the text: " 3 posts • Page 1 of 1 " are just some mm away and dont move. :roll:
and the forum softare try to open the link like that: forumurl.at/www.blablabla.at :roll:
And how to get the image rotating with other?!

i have no idea how does it work.

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

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

Post by Lumpy Burgertushie » Tue Jun 21, 2016 11:15 pm

I have no idea what you just said. how about a link to the board so we can see what you are doing wrong.


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?


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

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

Post by Lumpy Burgertushie » Wed Jun 22, 2016 5:48 am

ok, first you have not made the edits correctly. also the post with the instructions I linked to is not quite correct in the first place. the author of that post left out the semicolons in the inline style.

in viewtopic_body.html:
you have not made the first edit yet. you have this:

Code: Select all

<h2 class="topic-title"><!-- EVENT viewtopic_topic_title_prepend --><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><!-- EVENT viewtopic_topic_title_append --></h2>
and you should have this:

Code: Select all

<h2 style="width: 65%;" class="topic-title"><!-- EVENT viewtopic_topic_title_prepend --><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><!-- EVENT viewtopic_topic_title_append --></h2>
for the second edit, you have this: I have left out the real url as per your request.

Code: Select all

<a href="wrong link" target="_blank"><img alt="Sponsor Logo" src="/styles/prosilver/theme/images/sponsor/missing_feature.png" style="float: right; bottom:0px; right:0px;" /></a>
<!-- IF S_FORUM_RULES -->
	<div class="rules<!-- IF U_FORUM_RULES --> rules-link<!-- ENDIF -->" style="width: 60%">
this is what it should be:

Code: Select all

<a href="index.php" target="_blank"><img alt="Sponsor Logo" src="/styles/prosilver/theme/images/sponsor/missing_feature.png" style="float: right; bottom:0px; right:0px;" /></a>
<!-- IF S_FORUM_RULES -->
	<div class="rules<!-- IF U_FORUM_RULES --> rules-link<!-- ENDIF -->" style="width: 60%;">

also, if you want that banner to show up on the viewforum page then you have to do these same edits to the viewforum_body.html file.
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?

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 » Fri Jun 24, 2016 10:58 pm

:oops: sorry I was a little lazy in the last time...
Why just index.php and not an external Page? (The Forum Software handle every link as Internal?!)
And the "<!-- IF S_FORUM_RULES -->" dont appear. Are there any Settings in the Backend System require?

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

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

Post by Lumpy Burgertushie » Sat Jun 25, 2016 1:19 am

not sure what that post means, however,
ok, you are right, those instructions do not work correctly.

I did the research on how it is done here on phpbb.com.
so, undo everything you have done.
this will put it on the viewforum page only.
if you want it on other pages let me know.

just a little note, my part of this discussion is about how to do it in prosilver 3.1.9 even though this is a topic in the 3.0 forum.


1. open viewforum_body.html
find:

Code: Select all

<!-- INCLUDE overall_header.html -->
below it , add :

Code: Select all

<div class="phpbb-ads">
find:

Code: Select all

<!-- IF S_FORUM_RULES -->
before it, add:

Code: Select all

<a href="yourlink" class="phpbb-ads-ad"><img src="{T_THEME_PATH}/images/sponsor/sponsor.png" alt=""/></a>
find:

Code: Select all

<!-- IF S_HAS_SUBFORUM -->
before it, add:

Code: Select all

</div>

2. open common.css
add this to the very bottom of the file:

Code: Select all

.phpbb-ads {
    margin: 5px 0 10px;
    min-height: 88px;
    overflow: hidden;
    position: relative;
}

.phpbb-ads .phpbb-ads-ad {
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 36%;

.phpbb-ads h2 {
    margin-top: 10px;
    width: 63%;
}

.phpbb-ads .phpbb-ads-ad img {
    display: block;
    max-width: 100%;
}
by the way. the exacct same instructions work for putting it on the viewtopic page as well.


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”