Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1096)
-------------------------------------------
|
Header Rotator| By: CyclonBoy
| http://if.web.id (http://if.web.id)
-------------------------------------------
Mod Information:
- Mod HeaderRotator.v.1.1.0.zip is for SMF 1.1.x
- Mod HeaderRotator.v.2.1.zip is for SMF 2.0
Used for:
- Set a full header for our image without SMF logo.
- Rotate any images on the header folder.
How to use:
- Please change all images in the header folder with yours
- For sample, i use image with size 800 x 120 px
- The URL for header (logo) changed with rotator.php that is included in this mod
If your pic have different height, you can change it at this code:
<img src="', $boardurl, '/' , $settings['header_logo_url'], '" width="100%" height="120px" alt="', $context['forum_name'], '" />';
Change the height value with your image height properly...
But, if you have many images with different height or width, you can remove the height value. So lets just write it like this:
<img src="', $boardurl, '/' , $settings['header_logo_url'], '" width="100%" alt="', $context['forum_name'], '" />';
And finally, whenever you change the folder name or address, please fill the new value of Logo image URL value on the
Current Setting Theme.
For now, lets just fill it with:
header/rotator.phpNOTESPlease check your
Logo image URL: value on
Current Theme setting.
If empty (my mistake :) ), please fill it manually with text:
header/rotator.phpThanx to open source script for rotator:
Quote
AUTOMATIC IMAGE ROTATOR
Version 2.2 - December 4, 2003
Copyright (c) 2002-2003 Dan P. Benjamin, Automatic, Ltd.
All Rights Reserved.
http://www.hiveware.com/imagerotator.php (http://www.hiveware.com/imagerotator.php)
http://www.automaticlabs.com/ (http://www.automaticlabs.com/)
UNINSTALL ALERT!Please backup all of your header images first before uninstalling! Thanx.
UPDATED INFOs - 28 August 2009
-------------------------------------------------
- Nothing changed on this mod.
- Its still compatible with the newest SMF version, just choose your forum version :) .
v.2.1
-------
- Update version info for SMF 2.0 RC1-1
v.2.0
-------
- Make it compatible with SMF 2.0.RC1
v.1.1.0
---------
- Fix some minor bugs, i'm forget throwing away my site forum name... lol :) Thanx SMF Mod Team
v.1.0.0
--------
- Its just beta released
Do NOT download this mod, it should NOT have got the green light it will ruin your site.
BUGS!!!!!!!!!!!
intersting this
doesnt work for me either
Will keep an eye on this.
Have seen something similar through another site.
The Banner/Header rotator that is :)
Quote from: Sabre™ on February 24, 2008, 04:00:34 PM
Will keep an eye on this.
Have seen something similar through another site.
The Banner/Header rotator that is :)
As I await contact about this have reported it unsfafe one can only hope its removed ASAP.
Quote from: mynewusername on February 24, 2008, 05:26:25 AM
Do NOT download this mod, it should NOT have got the green light it will ruin your site.
BUGS!!!!!!!!!!!
What is the bug? Can you mention it!
What it would be ruin?
Please take a look my site.
Btw, this mod has been approved by SMF Customization Team, are u underestimate them?
Quote from: m4n_in_bl4ck on February 24, 2008, 12:25:02 PM
doesnt work for me either
Whats happen mate? Are you see any errors?
I have a problem with this mod. I just installed it and it works fine but the resolution is a problem.
I use 1152x864 on my screen. When i use pics with the samplefile size the picture looks stretched.
When i Change my resolution to 1024x768 the header pic looks fine. Is there a way to solve this?
Yeah, the sample pics is made with low/medium quality.
Their size is suitable for 1024x768. You must make your own images that suitable for your site.
All images attach with this mod is just a sample.
Dont forget, maybe you can also change the width & height value manually at index.template.php manually for suiting with your images, but becarefull.
Hi buddy :)
I just tested this on a fresh install of version 1.1.4
Here is the result [CLICK HERE] (http://fernside.hammersway.com/test/index.php?action=admin).
Its a test site, so means nothing to me. :)
I installed the mod.. No errors. But no image(s) Not even your default.
So, Im not sure whether I was supposed to do this, but did this part.
Quote from: cyclon on February 23, 2008, 08:16:02 PM
Original code in index.template.php (after <body>) is:
<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 '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';
echo '
</td>
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';
Lets change some codes like this:
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>';
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
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>
echo '
</td>
</tr>
</table>';
The above link is what happened after altering the original code.
Was I not meant to do this??
Cheers :)
Quote from: Sabre™ on February 25, 2008, 03:30:05 AM
Hi buddy :)
I just tested this on a fresh install of version 1.1.4
Here is the result [CLICK HERE] (http://fernside.hammersway.com/test/index.php?action=admin).
Its a test site, so means nothing to me. :)
I installed the mod.. No errors. But no image(s) Not even your default.
So, Im not sure whether I was supposed to do this, but did this part.
Quote from: cyclon on February 23, 2008, 08:16:02 PM
Original code in index.template.php (after <body>) is:
<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 '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';
echo '
</td>
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';
Lets change some codes like this:
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>';
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
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>
echo '
</td>
</tr>
</table>';
The above link is what happened after altering the original code.
Was I not meant to do this??
Cheers :)
What? Are you trying to modify the code manually?
Please dont do it! There is some other just changing that code.
Its just for some programmer that want change the height and width of image's attributes.
Btw, i suggest you change back that code to the original code.
And install it properly via packages installer. OK.
Please, after do that, posting here.. OK buddy. Thanx. ;D
Working demo please.
Quote from: seek2501 on February 25, 2008, 11:49:59 PM
Working demo please.
Please refer to my site: http://if.web.id
You'll see the image's header is change randomly.
Quote from: cyclon on February 25, 2008, 08:14:04 PM
Quote from: Sabre™ on February 25, 2008, 03:30:05 AM
Hi buddy :)
I just tested this on a fresh install of version 1.1.4
Here is the result [CLICK HERE] (http://fernside.hammersway.com/test/index.php?action=admin).
Its a test site, so means nothing to me. :)
I installed the mod.. No errors. But no image(s) Not even your default.
So, Im not sure whether I was supposed to do this, but did this part.
Quote from: cyclon on February 23, 2008, 08:16:02 PM
Original code in index.template.php (after <body>) is:
<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 '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';
echo '
</td>
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';
Lets change some codes like this:
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>';
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
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>
echo '
</td>
</tr>
</table>';
The above link is what happened after altering the original code.
Was I not meant to do this??
Cheers :)
What? Are you trying to modify the code manually?
Please dont do it! There is some other just changing that code.
Its just for some programmer that want change the height and width of image's attributes.
Btw, i suggest you change back that code to the original code.
And install it properly via packages installer. OK.
Please, after do that, posting here.. OK buddy. Thanx. ;D
Huh??
Sorry, mustve been my bad typing o.O
I have only followed the step above. Where YOU stated:
"Lets change some codes like this:"
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>';
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
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>
echo '
</td>
</tr>
</table>';
Even before I did this, your example headers werent working.
I h a v e d o n e n o t h i n g e l s eSo
that is the part I shouldnt need to alter??
Quote from: cyclon on February 25, 2008, 08:14:04 PM
Its just for some programmer that want change the height and width of image's attributes.
If so.. Why didnt it still work?
QuoteEven before I did this, your example headers werent working.
The Image doesnt appear? Rotating images doesn't works?
1. Please check your index.template.php, does the file changed like the mod i write.
2. Check the Logo URL on your current theme, is it filled with
header/rotator.
3. Check that the folder
header is on your web root.
4. Check that all images is still there :D
5. Check the permisson of
rotator.php, is it 644.
Thanx.
In next time error, can you capture the result? Thanx for feedback.
I am not quite sure what the problem is that some are having with this wonderful mod. I am not really mod/code literate but it installed on my forum and is working just fine. All I did was follow the directions.
My forum is www.moderatedsciastroamateur.org and the mod can be found working there with two very simple, yet aesthetically pleasing, banner-type images.
thanx for let me know that this mod is working.
If you got any error, just please reply here, OK.
Btw, its nice forum.
Your code for the rotator is this
<a href="http://www.gonil.org" target="_blank"><img src="header/rotator.php" style="margin: 4px;" alt="GONIL DEVELOPMENT SITE" />
as I can see the width and height is missing, maybe you can try this code for your rotator
<a href="http://www.gonil.org" target="_blank"><img src="header/rotator.php" width="100%" height="120px" alt="GONIL DEVELOPMENT SITE" />
the height depends of the size of the images you will use. I use the rotator too but our images are larger in their heights. ;)
thank you gonil... my header rotator is just fine.
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.
hi Audion, thanx for you feedback.
This mod is compatible with 1.1.5
nice mod
good work
thanx joomlamz for comment...
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.
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 = '.';
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.
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
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.
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.
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.
i'm glad to hear that :)
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
Nothing impossible :) everything is possible.
But, i still dont have any clues about it yet...
Okay, thank you for your anwer cyclon !
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.
i think the background images is already rotating. Can you explain it more specifically? Thanx.
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.
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.
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.
Maybe you could show me your idea about this html stuff.
I've given up on it and went back to using javascript. Thanks.
OK. I hope you find your own soution. :)
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 http://investpassport.com (http://investpassport.com)
:( :( :( :( :(
Just delete the old (default) images on HEADER folder. Put it with your own images.
But, dont delete the rotator.php file
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
Than you (sen türk müsün)
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.
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
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.
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.
Cool mod but is it possible to put flash files instead of images?
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.
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.
Thank you Cyclon
All is well now
sorry to be such an idiot but a lesson a day..........
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.
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
Thanx, Reverend...
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?
i dont have it try yet... :) Maybe it's unlimited.
So far I have 6 header images on it, all JPEG, and it is working fine :D
Thank you VERY much for this mod.. so far it seems limitless with the images!
you're welcome :)
Good to see you happy with it lolz
Thank u for this mod
Work great in my site with 1.1.7 smf
A question : what is ur opinion ?
What is the better size for header image and what is the best typy ( png , jpg , gif ) ??
Quote from: villasg on November 15, 2008, 02:40:50 PM
A question : what is ur opinion ?
What is the better size for header image and what is the best typy ( png , jpg , gif ) ??
I like width and height of 468x60 only because it is a standard set image size on the net. As far as file type I would say your options with this WONDERFUL mod isnt bound by file types like other mods (such as Joomla) may offer.
I would suggest that you ask yourself a question; "Do I want animation or high picture quality?" If you want a rotating animated header, you have to go with a GIF. If you want anything else, I suggest you make your first header in JPEG *AND* PNG and decide which one you like best.. if JPEG suits your fancy more than PNG, then go with that...IF PNG suits your fancy more than JPEG then go with that.
This is the same choice system I use on my sites and it has never failed me. I tried all 3 file types and decided that JPEG was the best choice for me because it made my simple header look good and it wasnt a very large file, meaning it would load faster in the rotator better. If you look at my site, you will see that EVERY header Image I have has the same website title at the top, but a different comment on the bottom of it. But you may have a different experience. Perhaps the headers you use will look better in PNG, in such a case you should use PNG. Perhaps the headers you use will look better in JPEG, in such a case you should use JPEG.
PNG is usually a more bigger file than JPEG, which means a longer loading time.
I hope this helps ;D
Is there a possibility that rather than rotating the header, members can choose it (the header)?
Everything possible... but, i think it will bother your members if each time they visit your site, they must choose the header :)
Maybe other mod developer can help it.
Hi and thanks for the MOD. Couple questions I cannot figure out from reading the information. You say.
"Please change all images in the header folder with yours
- For sample, i use image with size 800 x 120 px
- The URL for header (logo) changed with rotator.php that is included in this mod"
Where or what is the "header folder" or is downloaded with the mod?
So we manually go in and make the code change to the index.template file?
So if I have 10 images I would upload them all in the "header folder" and remove the ones already in the folder?
Thanks for your time I am not too good with php :)
Quote from: Filipina on December 10, 2008, 10:59:21 PM
Hi and thanks for the MOD. Couple questions I cannot figure out from reading the information. You say.
"Please change all images in the header folder with yours
- For sample, i use image with size 800 x 120 px
- The URL for header (logo) changed with rotator.php that is included in this mod"
Where or what is the "header folder" or is downloaded with the mod?
So we manually go in and make the code change to the index.template file?
So if I have 10 images I would upload them all in the "header folder" and remove the ones already in the folder?
Thanks for your time I am not too good with php :)
1. The folder name is HEADER, its automatically created by this mod.
2. Just upload you imaes into that folder
That's all.
Quote from: Reverend Jeremiah on November 07, 2008, 04:11:59 PM
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;
I use 47 images with no problem ;D
thanks cyclon and villasg I will try the MOD out this weekend :) Already created my banners :)
Had major problem with the MOD. After uploading it would not let me delete any of the images in the header folder. I tried to Chmod file permissions to 777 in my Cpanel and it said something like "File Op failure permissions not allowed". I tried to go in with an FTP program and upload my image into the header folder and it said "Critical Error".
First time this has ever happened and all the other files allow me to change permissions and delete images out of them. I could not do anything to the header so I just uninstalled the mod. Any ideas?
Never mind problem solved. Tech support told me
"These files were showing up as owned by "nobody," probably due to the method you used to install them. I have changed the permission"
Not sure why I just used the package manager to install. Oh well works great now!
Hi I see that the header on this link http://if.web.id/index.php
the header shricks when you minimized the screen .
will that be happening with my banners also?
or do i have to do something to the banners?
i like the way you have it
Quote from: elforoof on December 12, 2008, 06:04:33 PM
Hi I see that the header on this link http://if.web.id/index.php
the header shricks when you minimized the screen .
will that be happening with my banners also?
or do i have to do something to the banners?
i like the way you have it
Nope, not needed something manually.
Just install like the way it is... and prepare your images... then upload.
one more thing!
1.before i ruin my forum, will it work on this theme? Dilber MC Theme by HarzeM
2. how can i make the header like 200 pixels instead of 120 like you have it?
1. i dont know if you install it on Dilber MC Theme by HarzeM, it will be compatible.
please follow the manual, try it at home (localhost) first :)
2. Do you mean the height of the images? i think its just fine.
All image's width is stretched for suiting with your monitor i think. lol.
Quote from: cyclon on December 12, 2008, 08:50:45 PM
1. i dont know if you install it on Dilber MC Theme by HarzeM, it will be compatible.
please follow the manual, try it at home (localhost) first :)
2. Do you mean the height of the images? i think its just fine.
All image's width is stretched for suiting with your monitor i think. lol.
im a newbie how can i try it at home first?
or i dont understand what you meen,!!
Just install it and let see ... if you feel it doesn't worked, just let me know. thanx.
o
Quote from: cyclon on December 12, 2008, 09:26:54 PM
Just install it and let see ... if you feel it doesn't worked, just let me know. thanx.
ok thank you
Can you make him ******ch with a 20 min space?
And sorry my ingles is horrible
Pardon me? Please explain more!
Can you edit this file for me please? Is Cargo from DzinerStudio
Thanks a lot!
Are you a paid up member of the DzinerStudio Theme Club? If you are you'll have access to the Cargo support board.
Please open a thread there if you require help with editing the templates.
If you aren't a member then your copy of the theme is illegal.
Also Bikken prefers (to put it mildly) that templates for the premium themes are not posted publicly.
They are for the sole use of the purchaser and definitely not for redistribution.
Please note this section from the
terms of use: (http://www.dzinerstudio.com/index.php?page=Terms_of_Use)
Quote5. Unauthorized use
You may not place any of our products, modified or unmodified, on a disk, CD, website or any other medium and offer them for re-distribution or re-sale of any kind without prior written consent from DzinerStudio.com. Please contact us if you require more information.
Quote from: Antechinus on February 02, 2009, 05:45:09 PM
Are you a paid up member of the DzinerStudio Theme Club? If you are you'll have access to the Cargo support board.
Please open a thread there if you require help with editing the templates.
If you aren't a member then your copy of the theme is illegal.
Also Bikken prefers (to put it mildly) that templates for the premium themes are not posted publicly.
They are for the sole use of the purchaser and definitely not for redistribution.
Is from my cousin but he doesn't used it just i
is attached 1 file no one can do nothing with that right?
Quote from: Became17 on February 02, 2009, 06:14:33 PM
Is from my cousin but he doesn't used it just i
If your cousin purchased the theme, he should be able to provide you access to the support area for it.
Quote from: Became17 on February 02, 2009, 06:14:33 PM
is attached 1 file no one can do nothing with that right?
Be is one file or ten, it's still a violation of the creator's copyright to post it to the public if they specify you cannot (actually, the converse - it's a violation unless they specify you
can). According to the snippet that Antechinus posted, unless you got written permission, it's in violation. As SMF can potentially be in trouble for hosting the file, we have to remove it.
Quote from: Motoko-chan on February 02, 2009, 08:38:02 PM
Quote from: Became17 on February 02, 2009, 06:14:33 PM
Is from my cousin but he doesn't used it just i
Sorry about that, i didn't know
I already spoke to my cousin he wil solve this
thanks
If your cousin purchased the theme, he should be able to provide you access to the support area for it.
Quote from: Became17 on February 02, 2009, 06:14:33 PM
is attached 1 file no one can do nothing with that right?
Be is one file or ten, it's still a violation of the creator's copyright to post it to the public if they specify you cannot (actually, the converse - it's a violation unless they specify you can). According to the snippet that Antechinus posted, unless you got written permission, it's in violation. As SMF can potentially be in trouble for hosting the file, we have to remove it.
dz themes use css for headers. install the header rotator. Then open the css file for that theme find your header image in it and change it to http://www.yoursite.com/header/rotater.php should work fine.
Man can you make this header rotator to be compatible with 2.0RC1?
Nice modz!
Quote from: Electro-X- on March 28, 2009, 10:27:15 AM
Man can you make this header rotator to be compatible with 2.0RC1?
Nice modz!
I'll try it, when i've got time... thanx.
Thanks man....
Quote from: Electro-X- on March 29, 2009, 11:58:40 PM
Thanks man....
HeaderRotator v.2.0 for SMF 2.0 RC1 is done!
Please check it out and give me some feedback.
Thanks I'll try it now!!
Where do i edit this?
<img src="', $boardurl, '/' , $settings['header_logo_url'], '" width="100%" height="120px" alt="', $context['forum_name'], '" />';
I manage to put it and it works great but please tell me how do i edit the height?
thanks, the new 2.0 works great!
EDIT : Its not working on the babylon theme? How to fix it...?
Find it on index.template.php file
Please read the readme file, you'll be guided.
Its working now. Thanks mate. Nice mod. Hope you release it when the new version of smf comes out!
you're welcome.
help how do i set the size i want it that's confusing????????????
Quote from: juniorj23 on April 12, 2009, 04:45:33 PM
help how do i set the size i want it that's confusing? ??? ??? ??? ??
Open your
index.template.php on your default theme.
After install this mod you can find this code at that file:
SMF 1.1.8echo '
<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>';
SMF 2.0 RC1echo '
<a href="', $boardurl,'" target="_self" title="',$context['forum_name_html_safe'],' - ',$boardurl,'">
<img src="', $boardurl, '/' , $settings['header_logo_url'], '" width="100%" height="120px" alt="', $context['forum_name_html_safe'], '" />
</a>';
Change the width / height values with yours, and save. :D
Thanx.
Great Mod.
The only issue I'm having is that the images doesnt want to show up when I use IE browsers, but when I use Firefox everything is a ok.
Any Suggestions?
Thanks -Sevacycles-
Quote from: sevacycles on April 18, 2009, 04:36:12 PM
Great Mod.
The only issue I'm having is that the images doesnt want to show up when I use IE browsers, but when I use Firefox everything is a ok.
Any Suggestions?
Thanks -Sevacycles-
i'm not sure yet about your problem, because everything is fine on my side.
btw, i use IE8... and i attach some screen capture of our site that using Header Rotator on SMF 1.1.8 and SMF 2.0 RC1.
Im gonna try it with IE8 but i just cant figure out why it doesnt want to show.
sevacycles.com (http://sevacycles.com) is my site url. maybe you can try and see if it comes up on IE8.
Yeah, you're right, the header on your forum is not showed on my IE8, but everything is fine on Firefox and Opera.
I just try this link:
http://www.sevacycles.com/header/rotator.php
Btw, please check that the permission for rotator.php file should be set to 644.
The image files : 644
Header folder: 755
You can change it n your control panel.
Just check the file permission. only the rotator.php file wasn't correct. it was on 666
After I check the file permission and what not still no go.
Are you got any error reports, on your SMF log or CPanel log. Please check, maybe the problem can be seen.
Its really weird.
Btw, when i open our forum with just...
http://DOMAIN/header/ , it will show the directory that contain our header images.
But, when i open your
http://sevacycles.com/header/ , it shows information like this:
QuoteForbidden
You don't have permission to access /header/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.33 Server at sevacycles.com Port 80
I think this issue may been mod related. I just started a test forum and installed your mod and everything worked great even with IE8.
OK. i hope your problem is finished. :)
Hello,
I have multiple banners for the header section
I want to try this mod but it hasn't instruction for manual installation :(
Any ideas?
Am using smf 1.1.8
you can download it, and read the readme file
thank you.
With header rotator I made the changes on the index.template
the folder with the banners and the rotator.php, is there any specific location to upload it?
or I just go to the settings and fill as banner url
something like that http....default theme/header/rotator.php
Ok, I done a trial but the smf went out
something with the syntax it said
what have I done wrong? :(
Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
1. Open your index.template.php file
2. Find this code (i use default theme)
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';
echo '
</td>
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';
3. I change the code above into this code:
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
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>';
echo '
</td>
</tr>
</table>';
Assumed that your logo have height at 120px.
4. Create the folder on your forum root directory (public html) named header . Notes: The folder is not on your theme directory!
5. Put your header images on that folder
6. After you've downloaded the package, put the rotator.php file on the header folder.
7. Go to the your Administration Center, then on the Current Theme, put the rotator.php file on the Logo image URL: field.
Example:
header/rotator.php
8. Done!
Good luck with this manually installation.... btw, you are using non default theme, right?
Cyclon Boy you are the best!!!! :)
Look the script is not working so I put the old one
BUT
BUT
BUT
I used only the rotator link in the url area and is working PERFECTLY
(Who cares about the script, the rotator is working fine)
Yo bro did I say you are the best ;D
i'm glad to hear that. thank you.
Hi all!
I have a problem with header rotator too. I read a lot of comment about this mod tried to get answern from Hungarian Simplemachines community but i didnt get any usefull tip. Now i would like to ask you to help. My problem is that my theme is NOT DEFAULT!
Firstly i copied the header folder to my ftp.
Secondly i wanted to try to find the code in index.template but i was NOT Able to do it becuase it is different from that what ReadMe file say.
SO my code is the following
<body>';
}
function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<div id="wrapper">
<div id="header">
<div id="head-l">
<div id="head-r">
<div id="userarea" class="smalltext">';
if ($context['user']['is_logged'])
{
echo '<b>', $txt['hello_member'], ' ', $context['user']['name'], '</b><br />';
I wanted to write in style.css where rewroted the background link to header/rotator.php but i didnt work as well. But fortunately i can earn the rotator.php but im not able to place it in my site.
www.kolbert.atw.hu/header/rotator.php
PLEASE HELP!!:(:(:(
Quote from: andris11 on May 26, 2009, 04:16:21 PM
Hi all!
I have a problem with header rotator too. I read a lot of comment about this mod tried to get answern from Hungarian Simplemachines community but i didnt get any usefull tip. Now i would like to ask you to help. My problem is that my theme is NOT DEFAULT!
Firstly i copied the header folder to my ftp.
Secondly i wanted to try to find the code in index.template but i was NOT Able to do it becuase it is different from that what ReadMe file say.
SO my code is the following
<body>';
}
function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<div id="wrapper">
<div id="header">
<div id="head-l">
<div id="head-r">
<div id="userarea" class="smalltext">';
if ($context['user']['is_logged'])
{
echo '<b>', $txt['hello_member'], ' ', $context['user']['name'], '</b><br />';
I wanted to write in style.css where rewroted the background link to header/rotator.php but i didnt work as well. But fortunately i can earn the rotator.php but im not able to place it in my site.
www.kolbert.atw.hu/header/rotator.php
PLEASE HELP!!:(:(:(
Please attach the index.template.php file.
Thanx.
Quote from: Cyclon Boy on May 26, 2009, 09:15:19 PM
Quote from: andris11 on May 26, 2009, 04:16:21 PM
Hi all!
I have a problem with header rotator too. I read a lot of comment about this mod tried to get answern from Hungarian Simplemachines community but i didnt get any usefull tip. Now i would like to ask you to help. My problem is that my theme is NOT DEFAULT!
Firstly i copied the header folder to my ftp.
Secondly i wanted to try to find the code in index.template but i was NOT Able to do it becuase it is different from that what ReadMe file say.
SO my code is the following
<body>';
}
function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<div id="wrapper">
<div id="header">
<div id="head-l">
<div id="head-r">
<div id="userarea" class="smalltext">';
if ($context['user']['is_logged'])
{
echo '<b>', $txt['hello_member'], ' ', $context['user']['name'], '</b><br />';
I wanted to write in style.css where rewroted the background link to header/rotator.php but i didnt work as well. But fortunately i can earn the rotator.php but im not able to place it in my site.
www.kolbert.atw.hu/header/rotator.php
PLEASE HELP!!:(:(:(
Please attach the index.template.php file.
Thanx.
Attached
i've downloaded the file... can you show me, which template do you use now?
or the download link.
Thanx.
Quote from: Cyclon Boy on May 27, 2009, 10:03:19 PM
i've downloaded the file... can you show me, which template do you use now?
or the download link.
Thanx.
http://custom.simplemachines.org/themes/index.php?lemma=1370
this is 20rc.zip
Quote from: andris11 on May 28, 2009, 08:39:55 AM
Quote from: Cyclon Boy on May 27, 2009, 10:03:19 PM
i've downloaded the file... can you show me, which template do you use now?
or the download link.
Thanx.
http://custom.simplemachines.org/themes/index.php?lemma=1370
this is 20rc.zip
I have to share this news with you.... When i want to modifiy theme on site and go to style.css It shows in a little windows how the site looks like. When i check it i CAN SEE THE HEADER!!! But on the real site (so not in style.css little editable window) I CANT!! Maybe you can tell me a tip what to do
i'm afraid i cant modify the index.template.php file because your theme have different structure with the default one.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2F1syvyc.jpg&hash=f87c7b4a0a225793094300d428ecc6116abb3bdc)
I suggest you just provide some logos... and then we just can rotating those logos, not the entire header.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2F20s85fl.jpg&hash=090705c6a61534e139217cccb29efbfaedcbe1cb)
HOW TO:1. Make some logos, you can use the provided logo template (.psd)
2. Create a folder on your image directory on your theme.
e.q: \smf\Themes\Airy_midnight118\images\
logo3. Put all your logos and the rotator.php file there.
4. Open your style.css (on your selected theme directory), the default is:
Quote#logo {
position: absolute;
top: 20px;
left: 20px;
display: block;
width: 210px;
height: 116px;
cursor: pointer;
background: url(./images/logo.png) no-repeat;*/
Change the
./images/logo.png with
./images/logo/rotator.php5. Done!
Quote from: Cyclon Boy on May 30, 2009, 03:17:02 AM
i'm afraid i cant modify the index.template.php file because your theme have different structure with the default one.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2F1syvyc.jpg&hash=f87c7b4a0a225793094300d428ecc6116abb3bdc)
I suggest you just provide some logos... and then we just can rotating those logos, not the entire header.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2F20s85fl.jpg&hash=090705c6a61534e139217cccb29efbfaedcbe1cb)
HOW TO:
1. Make some logos, you can use the provided logo template (.psd)
2. Create a folder on your image directory on your theme.
e.q: \smf\Themes\Airy_midnight118\images\logo
3. Put all your logos and the rotator.php file there.
4. Open your style.css (on your selected theme directory), the default is:
Quote#logo {
position: absolute;
top: 20px;
left: 20px;
display: block;
width: 210px;
height: 116px;
cursor: pointer;
background: url(./images/logo.png) no-repeat;*/
Change the ./images/logo.png with ./images/logo/rotator.php
5. Done!
Thanks for the help!
Maybe i change my theme because i wanna to create nice headers. Where I will be able to choose that theme which structure is good for header rotator? Or myabe can you suggest one?
Sorry, i dont know which theme that have same structure with the default one.
I never use theme other than default.
Cyclon,
I already installed your mod in my website,
I am using SMF 2.0 RC 1.2
for some reason it does not show anything on the website
my address is
http://forums.all-google-android.com
Please let me know what is wrong or what steps do I need to follow to know that everything is right.
thanks on advance.
Hi rayosx, thanx for using my mod.
I've checked your forum, and everything is going well, isn't it?
Just put your headers on the HEADER folder in the root (public html or your forum directory).
Regards.
Cyclon,
your mod is awesome, :)
I was missing the
"Please check your Logo image URL: value on Current Theme setting.
If empty (my mistake ), please fill it manually with text: header/rotator.php"
I added it, and voila it worked like a charm !!!!
thanks again for everything.
You're welcome. Nice forum :) .
Sorry. i dont understand. what do you want?
instead of it being above everything how do i move it below shoutbox
Quote from: evolution25 on July 30, 2009, 09:32:36 PM
instead of it being above everything how do i move it below shoutbox
Add the code after the shoutbox code
Quote from: evolution25 on July 30, 2009, 09:33:38 PM
and how do you add to different theme
Edit that themes index.template.php
^
Thanx for info.
Hop, it helps evolution25
Please visit my site and see what is wrong with my rotator i have tried reading all the help and for some reason cant get it to work
also when i goto current theme in admin panel i get the following error
Template Parse Error!
There was a problem loading the /Themes/default/Settings.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
Parse error: syntax error, unexpected ';', expecting ')' in .../Themes/default/Settings.template.php on line 21
12: 'default' => true,
13: ),
14: array(
15: 'id' => 'show_children',
16: 'label' => $txt['show_children'],
17: 'default' => true,
18: ),
19: array(
20: 'id' => 'show_no_pictures',
21: 'label' => $txt['hide_img_contents'];
22: 'default' => true;
23: ),
24: array(
25: 'id' => 'show_no_avatars',
many thanks in advance
www.brooklynreefs.com
The end of line 21 should be a comma, not a semicolon.
Thanks that fixed the current theme error but the rotator still wont work
what do you need from me or maybe you can look and see why its not working?
many thanks again
Quote from: dv8 on September 07, 2009, 01:05:04 PM
Thanks that fixed the current theme error but the rotator still wont work
what do you need from me or maybe you can look and see why its not working?
many thanks again
Hi, i'm sorry for my belate reply.
I'm just visiting your site, your header image link is http://www.brooklynreefs.com/header/rotator.php , ant its correct.
Have you put at least 2 images on the header folder?
Because, i just saw 1 image after all.
Dont forget about the image, it should be: JPG, GIF, PNG
When I'm building my banners, I'm using the 800 x 120 settings and the banner losses its quality. Its also seems a bit too big for our use.
I've resized it several times but the MOD still sits in online all the way across the header and I loose even more quality.
Where can I change the header size its self and how?
If you want to see....
www.cbatournament.com/forums
Thanks
Quote from: CBA BBass on October 17, 2009, 11:31:32 AM
When I'm building my banners, I'm using the 800 x 120 settings and the banner losses its quality. Its also seems a bit too big for our use.
I've resized it several times but the MOD still sits in online all the way across the header and I loose even more quality.
Where can I change the header size its self and how?
If you want to see....
www.cbatournament.com/forums (http://www.cbatournament.com/forums)
Thanks
Open the
index.template.php file, and find this code:
if (empty($settings['header_logo_url']))
echo '<h1>' . $context['forum_name_html_safe'] . '</h1>';
else
echo '
<a href="', $boardurl,'" target="_self" title="',$context['forum_name_html_safe'],' - ',$boardurl,'">
<img src="', $boardurl, '/' , $settings['header_logo_url'], '" width="100%" height="120px" alt="', $context['forum_name_html_safe'], '" />
</a>';
You can modify the value of the header width or height, please make it suit with your logo size.
Thanx.
Will it center it also?
Thanks Man!
Its getting there. Can you take a look?
www.cbatournament.com/forums
I sortalike the blue background going on but need to center the banner and get rid of the Simple Machines logo on the right.
I'm taking notes on this so I dont have to go through this again..LOL
I got it!
Thanks to Cyclon and the Reverend!
Nice forum and header :).
Hi There.
My hosts are claiming that this mod is zaPPING MY BANDWIDTH. I doubt this to be true and I really love the mod but need to uninstall it for a week or 2 just to rule this out.
Sadly I get an error when I go to uninstall. Could you please advise on the best way forward.
1. Delete Tree header
* 2. Execute Modification ./Themes/default/index.template.php Test failed
1. Replace ./Themes/default/index.template.php Test successful
2. Replace ./Themes/default/index.template.php Test failed
3. Execute Code uninstall.php
Cheers - Glenn
Actually, the bandwidth for this mod is came out your images size, the bigger you images size, the bigger your bandwidth.
You must unintall it accordingly when you install your mods....
Maybe like this case, assume you install your mods like this:
1. Mod a
2. Header Rotator
3. Mod b
You just can't install the Header Rotator, because it mays the script (index.template.php file) has been modified by the third mod.
You have to unsintall like this:
3. Mod b
2. Header Rotator
Thanx.
Ok,
I have now uninstalled all other mod. Howevere Im still getting an error. Could you advise on how I manually remove this.
Best regards - Glenn
When you uninstall all mods, is it any error or incompatibility or failed?
Btw, which version of SMF do you have? 1.x.x or 2.
hi there. Im on smf 2rc1. I really like your mod. My bandwidth has almost doubled though. I am just uninstaling tempeorary as my host says its related to the mod (Which I doubt)
I get this error :
1. Delete Tree header
* 2. Execute Modification ./Themes/default/index.template.php Test failed
1. Replace ./Themes/default/index.template.php Test successful
2. Replace ./Themes/default/index.template.php Test failed
3. Execute Code uninstall.php
Quote from: glennk on October 25, 2009, 10:13:01 AM
hi there. Im on smf 2rc1. I really like your mod. My bandwidth has almost doubled though. I am just uninstaling tempeorary as my host says its related to the mod (Which I doubt)
I get this error :
1. Delete Tree header
* 2. Execute Modification ./Themes/default/index.template.php Test failed
1. Replace ./Themes/default/index.template.php Test successful
2. Replace ./Themes/default/index.template.php Test failed
3. Execute Code uninstall.php
1. Open the index.template.php file on any text editor, find
function template_body_above()2. This is the original code before applying this mod:
<div class="catbg">
<img class="floatright" id="smflogo" src="' , $settings['images_url'] , '/smflogo.gif" alt="Simple Machines Forum" />
<h1>';
if (empty($settings['header_logo_url']))
echo $context['forum_name_html_safe'];
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" />';
echo '
</h1>
</div>';
And this is the code after this mod applied:
<div>
';
if (empty($settings['header_logo_url']))
echo '<h1>' . $context['forum_name_html_safe'] . '</h1>';
else
echo '
<a href="', $boardurl,'" target="_self" title="',$context['forum_name_html_safe'],' - ',$boardurl,'">
<img src="', $boardurl, '/' , $settings['header_logo_url'], '" width="100%" height="120px" alt="', $context['forum_name_html_safe'], '" />
</a>';
echo '
</div>';
Just replace the second code with the first (original)....
And just emptying or put your new image link on
Logo image URL: on
Current Theme setting.
Sorry, I dont understand this bit
QuoteAnd just emptying or put your new image link on Logo image URL: on Current Theme setting.
After make a modification manually, login as admin on Administration Section, go to Current Theme setting, and you can put any header path or just put nothing on Logo image URL: value
If still confusing, just skip it...
thankyou. I now understand
You're welcome, sorry for the inconveniences
any plans with updating the banner rotator to work with SMF 2.0 RC2. when i try and install the current smf 2.0 package i get test fails on
1. Extract Tree ./header
2. Execute Modification ./Themes/default/index.template.php Test failed
1. Add After ./Themes/default/index.template.php Test successful
2. Replace ./Themes/default/index.template.php Test failed
3. Execute Code install.php
Quote from: mafiakid on December 03, 2009, 04:41:20 AM
any plans with updating the banner rotator to work with SMF 2.0 RC2. when i try and install the current smf 2.0 package i get test fails on
1. Extract Tree ./header
2. Execute Modification ./Themes/default/index.template.php Test failed
1. Add After ./Themes/default/index.template.php Test successful
2. Replace ./Themes/default/index.template.php Test failed
3. Execute Code install.php
thanx for the the antusiasm for this mod
actually, i really want to apply this mod for SMF 2 RC2, unfortunately, i really bad on web design, CSS, and so forth.... especially for SMF 2 RC 2 that has a pretty design :'(
maybe somebody else want to share his/her ideas.... we are always waiting for it.
i found that you don't need to install. just use the rotate.php that you have included and it works flawless! just need to include the header/rotator.php in the banner field in the admin menu.
Quote from: mafiakid on December 04, 2009, 03:17:34 AM
i found that you don't need to install. just use the rotate.php that you have included and it works flawless! just need to include the header/rotator.php in the banner field in the admin menu.
Can you give step by step instructions how to do this please.
Quote from: Cyclon Boy on December 03, 2009, 06:42:21 AM
Quote from: mafiakid on December 03, 2009, 04:41:20 AM
any plans with updating the banner rotator to work with SMF 2.0 RC2. when i try and install the current smf 2.0 package i get test fails on
1. Extract Tree ./header
2. Execute Modification ./Themes/default/index.template.php Test failed
1. Add After ./Themes/default/index.template.php Test successful
2. Replace ./Themes/default/index.template.php Test failed
3. Execute Code install.php
thanx for the the antusiasm for this mod
actually, i really want to apply this mod for SMF 2 RC2, unfortunately, i really bad on web design, CSS, and so forth.... especially for SMF 2 RC 2 that has a pretty design :'(
maybe somebody else want to share his/her ideas.... we are always waiting for it.
I realllllllllllllllllllllly want you to update this for SMF 2.0 RC 2. In the past I have used v1.x.x forums and it has been a really big feature for me and my users to be able to have a nice image on the forum! So, that's what my forum is missing at the moment, since I have RC2. Please update! :)
i'm on my way now, and its really hard for me until now.... please wait.
thanx for supporting this mod. :)
This mod does not work with 1.1.11.Spent two hours trying but no luck.What am i doing wrong.It should work?I have read all these post in this topic.
may i see your forum?
please check these stuffs:
1. Make sure that your Header URL (current theme) is filled with header/rotator.php
2. Make sure that the permission of rotator.php file and the header folder is set with 755
http://demo.if.web.id
thanx.
Quote from: mafiakid on December 04, 2009, 03:17:34 AM
i found that you don't need to install. just use the rotate.php that you have included and it works flawless! just need to include the header/rotator.php in the banner field in the admin menu.
Yes I found this too. I had a area that displayed news at the right hand side of the header which I did not want so in the forum theme area I edited the index.template.php to the following which seems to work fine. I kept my images at 124 x 124 pixels.
// Random news, desu. comented out by nax
//if (!empty($settings['enable_news']))
// echo '
// <div id="news">
// <h2>', $txt['news'], '</h2>
// <p>', $context['random_news_line'], '</p>
// </div>';
// Rotating images by nax
echo '
<div>
<img src="http://my.domain.com/myforum/Themes/brightforest_21/rotate/rotate.php" align="right" style="width: 124px; height: 124px"; >
</div>';
Cyclon Boy - Just wanted to let you know this mod is compatible with 1.1.11
I did have a issue with the rotator but funny enough I changed the logo to header/header2.jpg and it worked so I changed it back to header/rotator.php and it started working fine!
Awesome mod btw!
you're welcome. thanx for info.
Will this ever work for 2.0RC2?
^
Nope... if you use the curve theme, its only works with the default (core) theme... the old one.
That is dumb... ...no offence, but the core theme is boring!
Will someone else take this on, I would love it for my website, one of my friends make great images, and he could make headers!
Any chance of an update to RC3? Forum looks bland as mud with no logo :/
i just installed this mod, however nothing is happening. I was under the impression, there were some sample headers with this mod. I found a folder named "header" with 3 images and rotator.php. Should these 3 images be rotating that are in this folder? thank you,Chuck
http://palmettoperformancediesels.com
since its not working, i guess i need to change the url to this new folder...where would i do this? Thanks
On your Current - Themes and Layout Settings, set the Logo image URL: value to http://palmettoperformancediesels.com/header/rotator.php if you have installed the mod.
current themes>Theme Options and Preferences>Logo image URL:(this is where i placed that link)
(leave blank to show forum name or default logo.)
still doesnt seem to work, it was set to header/rotator.php...i changed it to the above link you posted Cyclon
Please check these stuffs:
1. Make sure that your Header URL (current theme) is filled with header/rotator.php
2. Make sure that the permission of rotator.php file and the header folder is set with 755
Quote from: Cyclon Boy on March 30, 2010, 11:46:22 AM
Please check these stuffs:
1. Make sure that your Header URL (current theme) is filled with header/rotator.php
2. Make sure that the permission of rotator.php file and the header folder is set with 755
ok, now im lost...where and how do i change the permissions? ive never done that before. ill put the header/rotator.php back in the URL place...but lost on the second part, thanks for fast reply,Chuck
Use your FTP client or login to your CPanel manually.
im there now,where are the permissions?
file manager? I see the header folder and to the far right"permissions" but it only says"web visible"
Please read this:
(CPanel)
http://www.siteground.com/tutorials/cpanel/file_permissions.htm (http://www.siteground.com/tutorials/cpanel/file_permissions.htm)
http://www.centaurhosting.com/web-hosting-india/cpanel-tutorials/change-file-folder-permissions.html (http://www.centaurhosting.com/web-hosting-india/cpanel-tutorials/change-file-folder-permissions.html)
http://www.wonderhowto.com/how-to-change-chmod-file-permissions-ftp-175902/ (http://www.wonderhowto.com/how-to-change-chmod-file-permissions-ftp-175902/)
(FTP)
http://www.siteground.com/tutorials/ftp/ftp_chmod.htm (http://www.siteground.com/tutorials/ftp/ftp_chmod.htm)
http://www.networksolutions.com/support/how-to-change-file-or-directory-permissions-via-ftp/ (http://www.networksolutions.com/support/how-to-change-file-or-directory-permissions-via-ftp/)
Indonesian, but good:
http://blog.dapurhosting.com/tutorial-cpanel/directory-and-file-permissions.html (http://blog.dapurhosting.com/tutorial-cpanel/directory-and-file-permissions.html)
ok, i think i understand...however i use "godaddy" for hosting...and they dont have anything like that "change permissions" described.
I check the "header folder", then "permissions"
Set permissions for selected files and/or folders.
Web Visible Allows users to browse files and directories using the Web.
Executable Allows users to execute files as scripts.
then click the "advance permissions" and see this...
Web user permissions
Read Write Execute(Directory)
Removing the directory execute permission prevents access to the directory's contents.
Owner permissions
Read Write Execute(Directory)
i dont see any number boxes or 9 boxes for me to check or un-check. just 2 boxes on permissions, then the 6 boxes under "advance permissions".....am i doing something wrong?? thanks for your help again
I suggest you manage it via FTP, please read the previous post. Thanx.
See you tomorrow.
@blazinchuck:
GoDaddy uses plesk, not cPanel, I know, I have them...
Quote from: Kcmartz on March 30, 2010, 01:18:00 PM
@blazinchuck:
GoDaddy uses plesk, not cPanel, I know, I have them...
well, i had to call them(godaddy) and ask how to change them...we verified "header"folder and "rotator.php" were set to 755. the header still wont change and then we changed each pic in that header folder to the same permissions...and no luck there either.
Folders: 755
Files (in folders): 644
ok, thanks...i'll try one more time. also...should the logo URL just be"header/rotator.php" or the whole link"http://palmettoperformancediesels.com/header/rotator.php"
since your forum is in root directory, it should be:
/header/rotator.php
okey dokey...will try it now
Um, why not try to load that file directly in the browser and see if it works? That cuts SMF out entirely, which simplifies troubleshooting.
well, i changed it, now says"/header/rotator.php" but nothing is happening. guess the permissions are not right for the images in the folder now. i'll probably wait til i get home to use filezilla...since godady has a weird way of setting those
Quote from: blazinchuck on March 30, 2010, 01:41:00 PM
ok, thanks...i'll try one more time. also...should the logo URL just be"header/rotator.php" or the whole link"http://palmettoperformancediesels.com/header/rotator.php"
dang, i just dont get it...^^^^^this link works the way it should, i know im missing something
Yeah, it works for me, hmmm.....
ok, I made sure the header folder and rotator.php are set to 755, and the images within the folder are set to 644. I have tried the URL for logo as "header/rotator.php" "/header/rotator.php" and http://palmettoperformancediesels.com/header/rotator.php nothing is working still, where else should i be looking. its like it doesnt know the header rotator has even been installed...weird?
Quote from: Kcmartz on March 30, 2010, 02:00:17 PM
Yeah, it works for me, hmmm.....
But aren't you running RC3? o_O I'd love to get this working on RC3
Quote from: blazinchuck on March 30, 2010, 04:52:12 PM
ok, I made sure the header folder and rotator.php are set to 755, and the images within the folder are set to 644. I have tried the URL for logo as "header/rotator.php" "/header/rotator.php" and http://palmettoperformancediesels.com/header/rotator.php (http://palmettoperformancediesels.com/header/rotator.php) nothing is working still, where else should i be looking. its like it doesnt know the header rotator has even been installed...weird?
The http://palmettoperformancediesels.com/header/rotator.php (http://palmettoperformancediesels.com/header/rotator.php) link is just fine:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi42.tinypic.com%2Fn2bw3k.png&hash=58157d112c4287421f21a1907c9065456cf0a405)
It can be assumed that the file & folder permission is alright. Can you just how the demo, so we can check that the code is on the right place. Thanx.
UPDATE(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.tinypic.com%2F11l3l8l.jpg&hash=b770ff2356a7a5781aa7241edc0dabc5f5b21e57)
I think your problem is solved.
Cyclon, I did everything the way I should have. uploaded the mod through package manager, then corrected the permissions for header/rotator.php (755)and the images in that folder(644), and tried three different URL settings for the logo image...
after all that, it still would not work. A friend of mine, walk me through the indextemplates...we found the original "<img=src",'brlogo.gif"<<<(that may not be it exactly-but you get the idea) link and replaced it with "http://palmettoperformancediesels.com/header/rotator.php"....once we did this...it began working. For some reason, it was like the mod did chane that in the templates to make it look for the new header mod, maybe im wrong? lemme know if there was something else i should have done, thanks again for the help guys,Chuck
Its works. Just put all your images (for header) on the HEADER folder, that's all.
Any chance this will be updated for RC3?
I think, its still compatible with the classic style (any version), but NOT on curve style.
Quote from: Cyclon Boy on April 25, 2010, 10:34:43 PM
I think, its still compatible with the classic style (any version), but NOT on curve style.
That's unfortunate for me.
Sorry, its also unfortunate for me, i hope anyone else want to develop this mod. I'm not expert on design.
Thanx.
OK Im really wanting to use this mod BUT It says TEST failed on index.template.php, so I tried to install manually, and on the 3rd step it says..
FIND:
echo '
</td>
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
BUT That does not exist on my index.template.php
Any ideas?? Thanks
UPDATE:
I got the rotator to work WITHOUT modifying index.template.php at ALL! The mod messes up the index. I backed up my index.template.php before installing the mod, Installed the mod, then put the original index.template.php back, and works fine.
This mod is not compatible with the design structure of SMF2, especially the curve theme, but i think it still compatible with the classic (core) theme.
i made all this a few days ago manually, because i did not know this script...i even used the same php code!!!
yet this mod is unsipported on RC3.... if anyone wants the code just askme....
the only problem i found is that the images can not be cached :(
^ Thanx.
What part of the code, which you modify?
May be you can attach here.
i used the same source :)
http://www.alistapart.com/d/randomizer/rotate.txt
put that in
/forum/logos/
as rotator.php along with some logos with the same size and pointed the logo to:
forum.com/logos/rotator.php
easy as that! :)
Downloaded and installed, works great. Can I make the banners clickable? Thanks.
Silly question I know, but can anyone tell me how you change the images on this, not sure how to remove the issued ones and replace it with some of my own,
Thanks
Just put your header images on the HEADER directory. And remove the sample images.
Hello there.
I wanted to use this mod but unfortunately it isn't working for some reason.
I've done the manual installation and stuff, but it didn't work either. I'm using a modification of the DS Natural theme for SMF 1.1, more info in my previous thread: topic=412838.0
Can you help me anyhow? I'll do whatever you ask.
Thanks a lot. :)
1. Check whether the images (rotator.php) link in your pages is correct.
2. Check whether the image files permission is 644
More info: http://www.simplemachines.org/community/index.php?topic=224543.msg1444502#msg1444502
I did all the steps in the other post and it still doesn't work... Any other idea on how to solve it? :\
I even tried using it with the Default Theme, which is pretty weird...
If I try to put the header as an image inside the header folder, it works. If it's the rotator, it doesn't...
Edit:
I noticed a thing. My board for some reason is accepting ONLY jpg files in the header. Do you know if I can change this config or something like that? I'm also trying to ask in the general theme support about this...
Edit 2:
I DID IT! After some manipulation with the help of the member Scrooge I could do that. It may help people who had the same problem as me:
http://www.simplemachines.org/community/index.php?topic=412838.msg2879802#msg2879802
Well, thanks for the help. :) And thanks for the mod! (Even tho I had to setup everything manually. :P)
edited:
Hi there... This may sound crazy but how can I make this script to display a certain img for a let say fix time...
For example. I have 30 images & I want a special image to just appear on a scheduled time let say beetween 1- 4 pm, 6 7pm
Or by order instead of random
Any update for the smf 2.0.10 ?