Members: 16,800
Threads: 38,937
Posts: 160,303
Online: 279

Newest Member: janoosik


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 08.05.2005, 09:36   #21 (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

I will play with some diff. things and if I come up with anything I will post it here. Sorry I could not be of more help.
__________________
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
Sponsored Links
Old 09.05.2005, 17:13   #22 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 8
vknid is on a distinguished road
Default Re: Simple logo rotator

thanks, I appreciate it
vknid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10.05.2005, 13:50   #23 (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
Question Re: Simple logo rotator

Ok try this in the header's CSS section

PHP Code:
background-imageurl("../rotate.php"
Then create a file called rotate.php and copy this information into it:

PHP Code:
<?php
/*
    By Matt Mullenweg > http://photomatt.net
*/

// Make this the relative path to the images, like "../img" or "random/images/".
// If the images are in the same directory, leave it blank.
$folder '';

// Space seperated list of extensions, you probably won't have to change this.
$exts 'jpg jpeg png gif';

$files = array(); $i = -1// Initialize some variables
if ('' == $folder$folder './';
$handle opendir($folder);
$exts explode(' '$exts);
while (
false !== ($file readdir($handle))) {
    foreach(
$exts as $ext) { // for each extension check the extension
        
if (preg_match('/\.'.$ext.'$/i'$file$test)) { // faster than ereg, case insensitive
            
$files[] = $file// it's good
            
++$i;
            }
        }
    }
closedir($handle); // We're not using it anymore
mt_srand((double)microtime()*1000000); // seed for PHP < 4.2
$rand mt_rand(0$i); // $i was incremented as we went along

header('Location: '.$folder.$files[$rand]); // Voila!
?>
Did this work for you It worked for me Good Luck
__________________
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 11.05.2005, 01:35   #24 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 8
vknid is on a distinguished road
Default Re: Simple logo rotator

great, but with fear of sounding like a total noob, where am I putting this stuff? heh.

within the banner component folder? template folder?
vknid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11.05.2005, 05:17   #25 (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

Well the first one goes in the CSS property of the area you would like to edit. For example you look for the banner section in your CSS file and edit the the background for the rotate.php script. Then you place that script in the Active template folder (or the path you specified in the CSS background). After you have created the rotate.php file per the above directions then create a folder for your images you should beready to go. I's kind of hard to explain but it is pretty simple once you start doing it. I would recommend playing with after you have a complete website backup and MySQL backup as well. Good Luck!
__________________
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 11.05.2005, 07:00   #26 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 8
vknid is on a distinguished road
Default Re: Simple logo rotator

ok thanks.
yeah I have a full back up running locally on my hd.

thanks again, if I can get it to work i'll let ya know!
vknid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 14.05.2005, 22:54   #27 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 22
random2005 is on a distinguished road
Default Re: Simple logo rotator

This may not be the answer you are looking for but will work to accomplish the exact same thing.

Just place an animated gif in your css that rotates banners and set rotation to whatever time you like.

Just to clarify, this was in response to a user on a different page of this thread, I resonded but did not realize that there were more posts, sorry for the odd placement.

Last edited by random2005 : 15.05.2005 at 04:57.
random2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15.05.2005, 03:17   #28 (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

It works fine for me as the PHP script I posted above. Here is a link to my template. If you refresh the page you can see the header image changing.

http://www.gotgtek.com/cms/index.php

If you need help with it further let me know and I can always set it up for you.
__________________
until next time,

ThA DoC
www.gotgtek.com
Expose Project Admin

Last edited by doctorj : 15.05.2005 at 11:04.
doctorj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 17.11.2005, 10:20   #29 (permalink)
Baby Mamber
 
wasson's Avatar
 
Join Date: Jun 2005
Location: Fatoni State
Posts: 7
wasson is on a distinguished road
Default Re: Simple logo rotator

thanks..
i will try this
wasson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04.04.2006, 14:42   #30 (permalink)
Bub
Baby Mamber
 
Join Date: Apr 2006
Posts: 1
Bub is on a distinguished road
Thumbs up Re: Simple logo rotator

Quote:
Originally Posted by doctorj
It works fine for me as the PHP script I posted above. Here is a link to my template. If you refresh the page you can see the header image changing.

http://www.gotgtek.com/cms/index.php

If you need help with it further let me know and I can always set it up for you.
Thanks, it works great for me
Bub 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 00:02.

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.