News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Header Rotator

Started by Informatics, February 23, 2008, 08:16:02 PM

Previous topic - Next topic

Audion

Quote from: cyclon on April 09, 2008, 04:53:57 AM
thank you gonil... my header rotator is just fine.

The problem appeared to be a missing semicolon ; after

echo '
<a href="', $boardurl,'" target="_self" title="',$context['forum_name'],' - ',$boardurl,'">
<img src="', $boardurl, '/' , $settings['header_logo_url'], '" width="100%" height="120px" alt="', $context['forum_name'], '" />
                </a>


Since 'echo' is a PHP command it needed the semicolon to close the command statement.... without it strangely enough PHP was parsing the command but instead of giving a parse error it was just improperly parsing the command in a weird way.  Popping in the semicolon fixed the problem and then the width=100% etc was getting processed properly.

Nice mod, thanks for creating it.

Informatics

hi Audion, thanx for you feedback.


You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id




Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

Informatics

This mod is compatible with 1.1.5


You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id




Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

Apllicmz




Informatics

thanx joomlamz for comment...


You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id




Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

Mechanical Karasu

#25
It doesn't work for me for some reason.

I downloaded and installed the package, and changed my header's URL to (header/rotator.php) but now the header isn't showing.

I tried changing the "rotator.php" to the names of one of the images in the header file, and that worked. So, for some reason it's the rotator.php that won't work for me.

Informatics

Quote from: Mechanical Karasu on July 11, 2008, 05:48:08 PM
It doesn't work for me for some reason.

I downloaded and installed the package, and changed my header's URL to (header/rotator.php) but now the header isn't showing.

I tried changing the "rotator.php" to the names of one of the images in the header file, and that worked. So, for some reason it's the rotator.php that won't work for me.

INSTRUCTIONS
   1. Modify the $folder setting in the configuration section below.
   2. Add image types if needed (most users can ignore that part).
   3. Upload this file (rotate.php) to your webserver.  I recommend
      uploading it to the same folder as your images.
   4. Link to the file as you would any normal image file, like this:

         <img src="http://example.com/rotate.php">

   5. You can also specify the image to display like this:

         <img src="http://example.com/rotate.php?img=gorilla.jpg">
      
      This would specify that an image named "gorilla.jpg" located
      in the image-rotation folder should be displayed.
   
   That's it, you're done.




Set $folder to the full path to the location of your images.
   For example: $folder = '/user/me/example.com/header/';
   If the rotate.php file will be in the same folder as your
   images then you should leave it set to $folder = '.';


You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id




Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

Mechanical Karasu

That doesn't help me at all. The rotator.php is already in the same folder as the images, and I don't need to change the url because it works when I put in the image names, just not rotator.php.

Informatics

try to reconfigure your HEADER folder permission.
change it to... i dont know which one?... maybe you could try it to 777 first...

if its nothing happen, try change it to 755 ... or 664


You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id




Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

mashsmash

I installed this mod through the admin panel, and did everything your directions say to do, but when i do that, it causes a parsing error saying that there was an unexpected "/"  and i have to reload up a backup of my index.template.php file.  I'm using a different theme then the default, so i tried just using the default, but i get the same error as above.

www.relicwow.com/forum is my site, and i'm using 1.1.5v smf.

Informatics

Quote from: mashsmash on August 25, 2008, 04:04:42 PM
I installed this mod through the admin panel, and did everything your directions say to do, but when i do that, it causes a parsing error saying that there was an unexpected "/"  and i have to reload up a backup of my index.template.php file.  I'm using a different theme then the default, so i tried just using the default, but i get the same error as above.

www.relicwow.com/forum is my site, and i'm using 1.1.5v smf.

Please supply with downloaded theme, so i can analyze it.
Thanx.


You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id




Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

mashsmash

the theme was calling the header with CSS, so i just had to change the location it was looking for it in the css to the rotator.php and it worked. 

Informatics



You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id




Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

john123

Hello everybody !

This modification would be really interesting for my Forum especially because i designed two different header logos !
My question is : Is it possible to make a rotation depending on time ? (like for example day logo , and night logo ?)

Thanks for everything,
John

Informatics

Nothing impossible :) everything is possible.
But, i still dont have any clues about it yet...


You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id




Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

john123

Okay, thank you for your anwer cyclon !

tampaba1

#36
Would it be possible to edit this mod to rotate background images and if so, how would I do that? Any step by step help would be appreciated, I'm a total newbie.
www.lightamillioncandles.com
Light a candle against online child abuse!!

Informatics

i think the background images is already rotating. Can you explain it more specifically? Thanx.


You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id




Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

tampaba1

#38
I have designed a template, with transparent attributes, that uses a fixed background image. What I want is to be able to change the background image at will or on refresh of the page.

The question is, would it be possible to modify your mod to allow me to do this and then incorporate it as part of the design? I have been using javascript but, as you know, not all browsers support it and everything else, including the original script your mod is based on, hasn't worked.

Any help would be appreciated.

www.lightamillioncandles.com
Light a candle against online child abuse!!

Informatics

In my site, the header is always changing randomly on each page (by refresh or new page).
The thing that i dont understand is about your theme... actually i really dont understand about theme design, i just use some php scripts for rotating some images on any folder. that's all.

I hope other members that expert on design can help you.


You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id




Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

Advertisement: