The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Add an Image to the Header Punbb

+3
Richard.
nasko7
runawayhorses
7 posters

Go down

Solved Add an Image to the Header Punbb

Post by runawayhorses June 12th 2013, 8:51 pm

Hi, I have a new forum version punbb and I'm trying to figure out how to add a small gif image at the top right-hand side of the header. I have the area marked with a red X where I would like to place the image. I'm new to punbb template editing and nothing I tried worked so far. Anyone know of the best way to go about this? thanks

Add an Image to the Header Punbb Sshead11


https://i.servimg.com/u/f80/12/28/94/48/sshead11.jpg


Last edited by runawayhorses on June 13th 2013, 2:50 pm; edited 1 time in total
avatar
runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 166
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by nasko7 June 12th 2013, 9:23 pm

You cannot add one more image.
But you'll can, if you edit your logo. Smile
nasko7
nasko7
Forumember

Male Posts : 99
Reputation : 1
Language : Bulgarian

http://www.bgminecrafters.bulgarianforum.net

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by runawayhorses June 12th 2013, 11:09 pm

The logo already as an image thats the text image you see on the left. Yes there is a way to add an another image to the right.
avatar
runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 166
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by Richard. June 12th 2013, 11:40 pm

Sure you can, what is the image that you want up there?
Richard.
Richard.
Forumember

Male Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.

http://forum.phpbbonline.com/

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by runawayhorses June 13th 2013, 12:14 am

Does it matter? I'd prefer to not post it right now.
avatar
runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 166
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by Spyro Dragon™ June 13th 2013, 12:22 am

Theres a way you can Add the imiage and make it disapeer too , kinda like this.
Look at the picture for a minute...something should pop up verry slow, and then disapeer.
I had this for my website a long time ago.

Add an Image to the Header Punbb GIFLOGOOGOGOGOGOOGOGOGOOGGOGOGAGET
Spyro Dragon™
Spyro Dragon™
Forumember

Male Posts : 202
Reputation : 2
Language : English

http://SpyroDragon.com

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by runawayhorses June 13th 2013, 1:08 am

that's otherwise known as a animated gif image.

I'm looking for a code to place in the template or CSS code.
avatar
runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 166
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by Spyro Dragon™ June 13th 2013, 1:13 am

Im not sure what your trying to ask for, can you edite this through photoshop and and screenshot of what your trying to do with the site?


Last edited by Spyro Dragon™ on June 13th 2013, 1:23 am; edited 1 time in total
Spyro Dragon™
Spyro Dragon™
Forumember

Male Posts : 202
Reputation : 2
Language : English

http://SpyroDragon.com

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by Spyro Dragon™ June 13th 2013, 1:22 am

Try cutting your picture, and putting the rest of your picture into this code.

Code:
<a href=WEBSITELINK><img src=BUTTONPICTURE></a>
Spyro Dragon™
Spyro Dragon™
Forumember

Male Posts : 202
Reputation : 2
Language : English

http://SpyroDragon.com

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by Richard. June 13th 2013, 2:20 am

alright .. i dont see anything wrong with giving me the imagine,but making my job harder, here ill make a cod.

put this in overall_header

Code:
<div class="second-image"><img src="LINK IMAGE"></div>



CSS:


Code:
.second-image{
height: 0px;
position: relative;
float: right;
}

after you put this code, let see your site to see how to change the code to make ur imagine in da place u want.
Richard.
Richard.
Forumember

Male Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.

http://forum.phpbbonline.com/

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by SLGray June 13th 2013, 2:53 am

Spyro Dragon™ wrote:Im not sure what your trying to ask for, can you edite this through photoshop and and screenshot of what your trying to do with the site?


Spyro Dragon™ wrote:Try cutting your picture, and putting the rest of your picture into this code.

Code:
<a href=WEBSITELINK><img src=BUTTONPICTURE></a>
Please do not double/triple post. Use the edit button.

Second Reminder


Add an Image to the Header Punbb Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by runawayhorses June 13th 2013, 3:11 am

@ Richard, thank you I tried your code but nothing showed. I tried adding the image the header same place you suggested but it just seems to be the wrong place. I add it before the closing body and html tags.

I don't get it..
avatar
runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 166
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by Richard. June 13th 2013, 4:16 am

Code:
<div class="second-image"><img src="LINK IMAGE"></div>



   
Code:
.second-image{
    height: 0px;
    position: relative;
    top: -100px;
right: -500px;
    }
Richard.
Richard.
Forumember

Male Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.

http://forum.phpbbonline.com/

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by runawayhorses June 13th 2013, 4:44 am

No it wasn't the CSS positioning I know how to write css, and I know how to write ID classes, thank you. I think its another issue that has to do with location within the template.
avatar
runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 166
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by Mr.EasyBB June 13th 2013, 4:54 am

Runawayhorses my friend, simple as asking me Very Happy

Go to ACP>DISPLAY>TEMPLATES>GENERAL>OVERALL_HEADER

Find this code

Code:
<div id="pun-intro" class="clearfix">
<a href="{U_INDEX}" id="pun-logo"><img src="{LOGO}" alt="{L_INDEX}" /></a>
<!-- BEGIN switch_h1 -->
<div id="pun-title">{switch_h1.MAIN_SITENAME}</div>
<!-- END switch_h1 -->
<!-- BEGIN switch_desc -->
<p id="pun-desc">{switch_desc.SITE_DESCRIPTION}</p>
<!-- END switch_desc -->
</div>

Change to this

Code:
<div id="pun-intro" class="clearfix">
<a href="{U_INDEX}" id="pun-logo"><img src="{LOGO}" alt="{L_INDEX}" /></a>
<img class="animate" src="yourSRC" title="yourTITLE" />
<!-- BEGIN switch_h1 -->
<div id="pun-title">{switch_h1.MAIN_SITENAME}</div>
<!-- END switch_h1 -->
<!-- BEGIN switch_desc -->
<p id="pun-desc">{switch_desc.SITE_DESCRIPTION}</p>
<!-- END switch_desc -->
</div>

Now change the yourSRC and yourTITLE

Add this CSS


Code:
#pun-intro{position:relative}
.animate{position:absolute;right:10px;top:5px;display:block}

Now if the image doesn't show let me know ok man
avatar
Mr.EasyBB
Forumember

Posts : 71
Reputation : 9
Language : HTML/CSS/JS/JQUERY/MOOTOOLS

http://www.avacweb.com

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by runawayhorses June 13th 2013, 2:49 pm

Thanks Easy that worked like a charm! Yeah I would have asked you but you were kinda busy so I thought I'd come here and ask it.. lol

So it was location within the template I thought so. Smile

thanks again,
avatar
runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 166
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Add an Image to the Header Punbb

Post by Sanket June 13th 2013, 4:12 pm

Topic Solved & Archived.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum