• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ How-to (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Add a static image behind chat

A collection of how-to's, submitted by users for other users!

Moderator: re*s.t.a.r.s.*2

Post a reply
4 posts • Page 1 of 1

Postby Calman45 » Fri Oct 22, 2010 6:28 am

Hi folks,

This is a nice easy routine to add a static image to your chat window background. Of course, you would need to play around with the sizing of your own image/chat window parameters to obtain a perfect fit.

Simply open your style.css.php and adapt the top segment to the example below. You may also want to increase your chat font size, as a "busy" backdrop image can make text hard to read.

Code: Select all
div.pfc_chat {
  font-size: [b]15px;[/b]
  font-family: Comic Sans MS, Lucida Console, Tahoma
  background-color:#ffffff;
  background-image: url("<?php echo $c->getFileUrlFromTheme('images/[b]YOURIMAGE[/b].jpg'); ?>");
  background-repeat: repeat-y;
  background-attachment: fixed;
}

** Please back up your files, before attempting any alterations to these routines, thank you!

All the best,
Cal :)
Calman45
Support Team
 
Posts: 150
Joined: Sun Oct 26, 2008 11:09 pm
Location: Western Canada
  • Website
Top

Postby waiheke » Sun Oct 24, 2010 8:22 am

Thanks Cal

:)

And if it's a very small image, eg
http://www.fartyharty.com/chat/themes/d ... /panel.png
that you want to use as a whole edge-to-edge wallpaper, remove the line:
background-repeat: repeat-y;
(or remark it out, like this)
/*background-repeat: repeat-y;*/
waiheke
Member
 
Posts: 126
Joined: Sun Sep 12, 2010 4:33 pm
Top

Postby Averus » Thu Jun 09, 2011 10:05 am

Thanks
Averus
New member
 
Posts: 5
Joined: Thu Jun 09, 2011 9:55 am
Top

Re: Add a static image behind chat

Postby amy999 » Wed Nov 21, 2012 7:37 am

Does it have to be a .jpg image... or will it work with an .gif? Trying to do a graduated color change effect.
amy999
New member
 
Posts: 1
Joined: Wed Nov 21, 2012 7:35 am
  • Website
Top


Post a reply
4 posts • Page 1 of 1

Return to How-to (v1.x)

Who is online

Users browsing this forum: No registered users and 5 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub