Members: 16,810
Threads: 38,939
Posts: 160,329
Online: 204

Newest Member: partner123


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 16.03.2005, 14:56   #11 (permalink)
ufo
Senior Mamber
 
ufo's Avatar
 
Join Date: May 2004
Location: Romania
Posts: 180
ufo is an unknown quantity at this point
Default Re: Simple logo rotator

By doing an extensive search I found this:
http://weblogtoolscollection.com/arc...-image-header/
I have no time now for testing but soon I will try it.
Code:
 I did this;
- Created a folder on the server called ‘headers’
- Into that, I uploaded several different images that would suit as a header image.
- I saved the script above as a php file (call it what you will - mine is ‘rotate.php’) and uploaded into the same ‘headers’ folder.

  	 Now I edited the CSS file.
In WP, there is a line in #header which can be used to specify a url for the image to be loaded. This needs a light alteration:

  	 Mine was
#header {
background-image: url(image.jpg)

  	 and it is now

  	 background-image: url(headers/rotate.php);

  	Now, when the CSS is called, the background image is chosen randomly by the script.
Good luck!
__________________
Dont'use excessive force, pick a bigger hammer!
Supported by buyhttp.com
Where free means FREE!: Codename-Web HQ
ufo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 17.03.2005, 01:41   #12 (permalink)
Senior Mamber
 
doctorj's Avatar
 
Join Date: Jan 2005
Location: California, U.S.A.
Posts: 242
doctorj is on a distinguished road
Send a message via AIM to doctorj Send a message via MSN to doctorj Send a message via Yahoo to doctorj
Chat Re: Simple logo rotator

Nice, seems like a neat trick. I will play with it and what I get.

Thanks,
__________________
until next time,

ThA DoC
www.gotgtek.com
Expose Project Admin
doctorj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 17.03.2005, 01:46   #13 (permalink)
Senior Mamber
 
doctorj's Avatar
 
Join Date: Jan 2005
Location: California, U.S.A.
Posts: 242
doctorj is on a distinguished road
Send a message via AIM to doctorj Send a message via MSN to doctorj Send a message via Yahoo to doctorj
Default Re: Simple logo rotator

Quote:
Originally Posted by ufo
By doing an extensive search I found this:
http://weblogtoolscollection.com/arc...-image-header/
I have no time now for testing but soon I will try it.

Good luck!
I actually got it to work using this in the CSS file:

PHP Code:

background-image: url(<?php echo "templates/$cur_template/images/",rand(1,2),".jpg" ?>)
Hope this helps someone. Never used PHP in a CSS file, but hey we all learn something new.
__________________
until next time,

ThA DoC
www.gotgtek.com
Expose Project Admin
doctorj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 17.03.2005, 07:43   #14 (permalink)
Junior Mamber
 
Join Date: Jun 2004
Location: Ringkoebing Denmark
Posts: 31
solsikkehaven is on a distinguished road
Default Re: Simple logo rotator

doctorj:

OK, lets rename the images to [itemid].jpg - then I could be sure what image was shown on what page, right.

how would the php line be then ?
something like (what to write where ????????"
Code:
 background-image: url(<?php echo "templates/$cur_template/images/",???????????,".jpg" ?>)
__________________
Morten Knudsen AKA Solsikkehaven
mambo@solsikkehaven.dk
www.solsikkehaven.dk
"LET'S DO THE MAMBO !"
solsikkehaven is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 17.03.2005, 09:52   #15 (permalink)
ufo
Senior Mamber
 
ufo's Avatar
 
Join Date: May 2004
Location: Romania
Posts: 180
ufo is an unknown quantity at this point
Default Re: Simple logo rotator

How about using the built in function of Mambo for generating dynamic titles for the pages?
"_head['title']"
Just an ideea.
__________________
Dont'use excessive force, pick a bigger hammer!
Supported by buyhttp.com
Where free means FREE!: Codename-Web HQ
ufo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 17.03.2005, 11:12   #16 (permalink)
Junior Mamber
 
Join Date: Jun 2004
Location: Ringkoebing Denmark
Posts: 31
solsikkehaven is on a distinguished road
Default Re: Simple logo rotator

jifor:

Could you elaborate on that (give an example).
the idea that you just set this up in your CSS looks nice to me, that's why I asked about the imageID.....

????
__________________
Morten Knudsen AKA Solsikkehaven
mambo@solsikkehaven.dk
www.solsikkehaven.dk
"LET'S DO THE MAMBO !"
solsikkehaven is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 13.04.2005, 00:10   #17 (permalink)
Senior Mamber
 
doctorj's Avatar
 
Join Date: Jan 2005
Location: California, U.S.A.
Posts: 242
doctorj is on a distinguished road
Send a message via AIM to doctorj Send a message via MSN to doctorj Send a message via Yahoo to doctorj
Default Re: Simple logo rotator

Quote:
Originally Posted by solsikkehaven
doctorj:

OK, lets rename the images to [itemid].jpg - then I could be sure what image was shown on what page, right.

how would the php line be then ?
something like (what to write where ????????"
Code:
 background-image: url(<?php echo "templates/$cur_template/images/",???????????,".jpg" ?>)
Place allof your images inanother folder like images2 or header and it will pick up all the .jpg files in that folder. If it is set for rand(1,2),".jpg" . Does this help at all?
__________________
until next time,

ThA DoC
www.gotgtek.com
Expose Project Admin
doctorj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07.05.2005, 09:27   #18 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 8
vknid is on a distinguished road
Default Re: Simple logo rotator

Can something like this work for within the Mambo Banner module?

I have tried using the same code, but I have not been able to get it to work. Any suggestions?
vknid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08.05.2005, 00:12   #19 (permalink)
Senior Mamber
 
doctorj's Avatar
 
Join Date: Jan 2005
Location: California, U.S.A.
Posts: 242
doctorj is on a distinguished road
Send a message via AIM to doctorj Send a message via MSN to doctorj Send a message via Yahoo to doctorj
Default Re: Simple logo rotator

Never Tried playing with the module. What happens when you edit the CSS it calls? You can also try to edit the actual module. Have you tried these yet? What have you done so far?
__________________
until next time,

ThA DoC
www.gotgtek.com
Expose Project Admin
doctorj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08.05.2005, 01:09   #20 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 8
vknid is on a distinguished road
Default Re: Simple logo rotator

I have not tried to edit the internal code.. I try and stay away from doing that because I wouldnt know what i'm doing hehe.

I have tried adding the code from the first page into the " Custom banner code " box. making the changes to point to my banners (standard location for the banner module).

Thats all that I have tried.
vknid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm looking for a SIMPLE chat room! drunkenantics Mambo 4.5.1 'How Do I' Questions 1 01.12.2004 17:53
Designer für Template und Logo gesucht thefifa Jobs 4 26.11.2004 10:31
Simple Gallery mikegiles Mambo 4.5.1 General Talk 1 25.11.2004 09:39
Logo problems a1nerd Mambo 4.5.1 'How Do I' Questions 1 10.10.2004 02:32
Logo problems a1nerd Mambo 4.5.1 'How Do I' Questions 0 29.09.2004 08:38


All times are GMT +2. The time now is 13:22.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.