Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 09:23:52 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155554 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: 1 [2]   Go Down
Print
Author Topic: Different background image for every single page  (Read 5887 times)
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #25 on: October 03, 2006, 12:36:57 PM »

I see but hat one you can also fix yourself.

change this line here:
Code:
$module_description = 'This snippet shows a random image from directory - RandomImage(directoryname to show images from) The output of the original has been modified and can be used to display a random background.?>

to this here:
Code:
$module_description = 'This snippet shows a random image from directory - RandomImage(directoryname to show images from) The output of the original has been modified and can be used to display a random background.';

in the file info(.)php

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Fredflintstone

Offline Offline

Posts: 74


« Reply #26 on: October 03, 2006, 05:42:04 PM »

Step by Step (I might put that one up in the WIKI)

  • exchange the body tag with:<body background="<?php RandomBackground ('/media/background'); ?>">
  • place the Random Image call where you want it.
[li]test the template[/li]
[li]donate $25 to website Baker via paypal (optional)[/li]
[/list]
evil

Think I'm almost there except for the Random Image call .
I guess I will have to put it in the header ( if I want the random picture to show in the header) but I don't know where to find that call ( I went through this topic over and over again, but I don't think you gave it here and I've got no clue how i should write it myself).

Txs for all the trouble you've gone through!

Edwin





Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #27 on: October 03, 2006, 09:03:18 PM »

Positioning is up to you, this is the code:

Code:
<?php RandomImage ('/media//randomimage'); ?>

don't forget to create the folder and to upload pictures.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Fredflintstone

Offline Offline

Posts: 74


« Reply #28 on: October 04, 2006, 10:48:23 AM »

YES!!!

Works great! Have a look( www. elephantcoasttouris m.com/wb/  ...still under construction, but like it already! )

Is there another way to make a donation instead of through paypall? Paypall can not except payments from South Africa due to monetary exchange restrictions.

Awaiting your answer!

Txs a lot !

Edwin

Logged
erikp01

Offline Offline

Posts: 44



« Reply #29 on: March 08, 2008, 12:02:33 PM »

Give each page his own header image using this code line in the index.php
<img src="http://www.yourwebsite.com/media/headers/<?php echo page_title('','[PAGE_TITLE]'); ?>.jpg"></img>

You need to put in the folder named media/headers images named according to the page titles , for ex Home.jpg


Logged
Pages: 1 [2]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!