News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Header Rotator

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

Previous topic - Next topic

tampaba1

I just about have it worked out. I can get the images rotating in the header or footer areas but, can't figure how to get them in the overall body. If it was html it would be easy but, I'm lost when it comes to php.

Thanks for trying to help.
www.lightamillioncandles.com
Light a candle against online child abuse!!

Informatics

Maybe you could show me your idea about this html stuff.


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

I've given up on it and went back to using javascript. Thanks.
www.lightamillioncandles.com
Light a candle against online child abuse!!

Informatics

OK. I hope you find your own soution. :)


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]

oriee

How to change header rotator image? I try to change in header folder but it can't change (permission denied) then i try to change the permission, but it couldn't work. Pls Help me,  look into my forum hxxp:investpassport.com [nonactive]

:( :( :( :( :(

Informatics

Just delete the old (default) images on HEADER folder. Put it with your own images.

But, dont delete the rotator.php file


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]

stingerman

I get an error -

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

1.     Extract Tree     ./header     
2.    Execute Modification    ./Themes/default/index.template.php    Test failed
3.    Execute Code    install.php

B u m u™

Than you (sen türk müsün)

Informatics

Quote from: stingerman on October 10, 2008, 03:05:54 AM
I get an error -

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

1.     Extract Tree     ./header     
2.    Execute Modification    ./Themes/default/index.template.php    Test failed
3.    Execute Code    install.php

I think, there is a mod that change some script on index.template.php file that should be changed by my mod... there is incompatible...

maybe you could try it / install it on new fresh instal SMF... try it on localhost first. oK.


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]

Worfor

Please help
I like the mod but its not the right thing for the site I have however now that i have uninstalled it I have now lost my Logo.gif in the header area how do I get it back.
In advance thank you

Informatics

it cant, dont you notice it when youn wanna uninstall this mod... you have to backup all of your header folder...
When you uninstalling this mod, it will erase HEADER 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]

Worfor

Hi cyclon
I am really new at this and of course stupid me didnt notice that, just getting excited about things. so how do i now re install my header folder I cant even find it. Sorry to sound so stupid but I am a little lost.

LOADING...

Cool mod but is it possible to put flash files instead of images?

Informatics

Just install usually... but, the files inside this header folder is not your PICs anymore, its my images as sample.

Btw, it will change the image/header path.
You could change it with yours.

Just go here:
Administration > Current Theme, fill your image on Logo image URL:

Hope your problem is fixed.


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

Quote from: LOADING... on October 19, 2008, 06:17:59 AM
Cool mod but is it possible to put flash files instead of images?

Thanx. But, it will be more complex on coding.
You could read the rotator.php file... i'm not sure if it will support some flash files. 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]

Worfor

Thank you Cyclon
All is well now

sorry to be such an idiot but a lesson a day..........

Reverend Jeremiah

Check out my site and see what I did with your mod:

http://www.jesuschristarcade.com

I absolutely LOVE this mod Cyclon, but in my opinion your rotating header is for people with more experience in PHP. I have been teaching myself PHP for about a year now and I found a few good tweeks for your mod if anyone watching this board is interested.

I didnt like the way the image was set at 100% width. It makes the header grainy. So I decided to go with a fixed width and height of 468x60 (Thats a common image size standard on the net so it makes it easier for you to add new images in the future)

I also didnt care much for the removal of <td class="catbg" height="32">, which leaves a white background if you decide to tweek the image size. So I put <td class="catbg" height="32"> back into the file.

For those of you who have been tweeking around this WONDERFUL mod and are getting a bit frustrated, I hope this code will make it easy for you

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">';

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
echo '
<center><a href="', $boardurl,'" target="_self" title="',$context['forum_name'],' - ',$boardurl,'">
<img src="', $boardurl, '/' , $settings['header_logo_url'], '" width="468px" height="60px" alt="' , $context['forum_name'], '" /></center>
            </a>';

echo '
</td>
</tr>
</table>';


With that code replacing the original code, It makes it easy on the admin to size up the image however he/she wants without loosing the background image integrity of the theme. All you have to do is change your height and width to suit your standards.

I hope this helps some people. I love SMF and I plan on trying to do my part in this community.

Reverend Jeremiah

To strengthen the header rotator, I centered my Navigation Bar by accessing ./themes/default/index.template.php

Find this...
// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">


Replace it with this...
// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin: 0 auto;">


So I hope this helps out alot of people  :D

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]

Reverend Jeremiah

One question Cyclon: On the rotating header mod, is there a limit to the amount of images you can put in your ./header folder? I would love to pop out about 10 different headers with all of them having the same design except for a comment at the bottom of them such as;

Jesuschristarcade - Its not just for breakfast anymore
Jesuschristarcade - My God! Its full of stars.
Jesuschristarcade - Because that other arcade sucks!
Jesuschristarcade - Guzzle it down with beer and call me in the morning.

Well, you get the idea I hope. Is there an upper limit to the amount of header images you can place in the folder?

Advertisement: