Page 1 of 1

How to?

PostPosted: Sat Dec 13, 2008 10:25 am
Author: Karl-D
I wonder if anybody can help here?
Within the index_body.tpl I have altered the tables to my requirements were the members are online, members in the last 24hours etc. are located please see pick below.
[attachment=0:1x454x9x]Noname.gif[/attachment:1x454x9x]

With the blank table table on the right of the members visited table I am interested in including another feature within that table i.e. one with red cross.
I was thinking of maybe a possible of 3 options, a rotating banner, rotating images or the latest posts block.

I would imagine for the first 2 options it would be a simple java script piece code, do you have any recommendation on any available scripts for these, baring in mind there are no head tags in the index_body.tpl?

But how if I was to go for the latest posts block, how would I go about inserting the block code in to this area? is it a big process?

Re: How to?

PostPosted: Sat Dec 13, 2008 7:48 pm
Author: Helter
an easy way to add rotating banners it so upload "tall_banners" to forum root/images/tall_banners
and add this td to your new table

Code: Select all
<td><img></td>  


add new banners to the folder and they will rotate randomly on new page loads.

Make them all the same size and edit the above code to their size or IE will not display them correctly

Re: How to?

PostPosted: Sun Dec 14, 2008 11:45 am
Author: Karl-D
Thanks HelterSkelter, now have the banner working great.
Out of interest whats the alt="" bit for?

Re: How to?

PostPosted: Sun Dec 14, 2008 1:41 pm
Author: Karl-D
Done some more alterations on the color etc.
Very happy with the banner feature <img>
[attachment=0:1cfzgrce]Noname2.jpg[/attachment:1cfzgrce]

Re: How to?

PostPosted: Mon Dec 15, 2008 2:29 am
Author: Helter
looks good!
alt="" is an html standard for naming an image. If the browser cannot find the image, it instead displays the alt text. You can name your images like alt="banner" or whatever you choose, but if you do not include the alt tag your page will not validate and most browsers available today will report an error on the page

Re: How to?

PostPosted: Wed Dec 17, 2008 12:53 pm
Author: Karl-D
How hard would it be to have the banner auto rotate every 10 seconds or so?

Re: How to?

PostPosted: Wed Dec 17, 2008 7:24 pm
Author: Helter
the current script is activated by page refresh. Im sure you can find a script to work by time, but im not aware of one atm

Re: How to?

PostPosted: Thu Dec 18, 2008 12:54 pm
Author: obiku
I think the best way to do this, is by using javascript. Thats also better for your server. I think your hoster will not be happy if you refresh every 10 seconds. And also the users are more happy. If you refresh every 10 seconds, and someone was just typing something in the shoutbox, the change is that the message he just typed is gone after the refresh.

Re: How to?

PostPosted: Thu Dec 18, 2008 1:56 pm
Author: Karl-D
Hi thanks for your input, I don't want the forum to refresh every 10 seconds only the actual image rotation.
Unfortunately I cant find a java version that does not use the header and the index_body.tpl doesn't have header tags, so not really sure how to insert the java version.

Re: How to?

PostPosted: Thu Dec 18, 2008 8:41 pm
Author: Teelk
The file you are looking for is overall_header.tpl, that is what creates the top of the HTML output.

Re: How to?

PostPosted: Fri Dec 19, 2008 1:26 am
Author: Helter
this should give you everything you need to do it in ajax. This will allow the banner to refresh/rotate without refreshing the entire page

http://www.phpied.com/ajax-banner-rotation/