[SPLIT FROM] How can i change this on my forum.. ?

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
duigor
Registered User
Posts: 4
Joined: Mon Jan 01, 2018 4:27 pm

[SPLIT FROM] How can i change this on my forum.. ?

Post by duigor »

I hope that somebody would help me about background banner. Background header banner should be clickable not just picture as it right now.

I am using 3.1.5 phpBB forum

overall header part where is background image inserted looks like this

Code: Select all

<style>
body {
    background: #444 url("banner link") no-repeat scroll center 10px !important;
    color: #828282 !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 10px !important;
    padding-top: 218px;
Banner looks great above forum but its not linked to page that I would like to add.

Is there any solution to modify this part of background line or somethnig else is needed
Last edited by duigor on Fri Jan 05, 2018 1:30 am, edited 1 time in total.
User avatar
PlanetStyles.net
Former Team Member
Posts: 4809
Joined: Wed Nov 04, 2009 11:16 pm
Location: Way up in the sky close to the stars
Name: Christian
Contact:

Re: [SPLIT FROM] How can i change this on my forum.. ?

Post by PlanetStyles.net »

Hello :)

Can I ask what the link to your forum is? I checked http://beobuild.rs/forum/ but it seems the banner there is already clickable?
duigor
Registered User
Posts: 4
Joined: Mon Jan 01, 2018 4:27 pm

Re: [SPLIT FROM] How can i change this on my forum.. ?

Post by duigor »

Tnx Christian2.0,
That's the right link in your post. Problem is solved.

My solution is pretty much simple. In overall_header.html put this code at the beginning of the page

Code: Select all

<!DOCTYPE html>
<html dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}">
<style type="text/css">
#head-banner a {
    width: 100%;
    display: block;
    margin: 0 auto;
    max-width: 1154px;
    text-align: center;
}
#head-banner a img {
    width: 100%;
    max-width: 1154px;
}
in the middle of the same document after head put this one:

Code: Select all

</head>
<div id="head-banner" style="margin:0 auto; display:block;"><a href="link of banner target" target="_blank"><img src="banner picture link.jpg"/></a></div>
vixxeN_LEGEND
Registered User
Posts: 19
Joined: Wed Oct 18, 2017 10:44 am

Re: [SPLIT FROM] How can i change this on my forum.. ?

Post by vixxeN_LEGEND »

Thanks about this, but now i will make another support topic for another prob ;..;
Post Reply

Return to “phpBB Custom Coding”