[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: 2
Joined: Mon Jan 01, 2018 4:27 pm

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

Post by duigor » Mon Jan 01, 2018 4:36 pm

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
Christian 2.0
Former Team Member
Posts: 4428
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

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

Post by Christian 2.0 » Wed Jan 03, 2018 12:23 pm

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?
🚀 Premium phpBB Styles
Premium 3.2 Styles: Modern phpBB Style, Gaming phpBB Style
Custom work available on request

duigor
Registered User
Posts: 2
Joined: Mon Jan 01, 2018 4:27 pm

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

Post by duigor » Fri Jan 05, 2018 1:21 am

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: 16
Joined: Wed Oct 18, 2017 10:44 am

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

Post by vixxeN_LEGEND » Fri Jan 05, 2018 7:47 am

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

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: oBot and 3 guests