How to?

Support for IntegraMOD 141

Moderator: Integra Moderator

How to?

PostAuthor: Karl-D » Sat Dec 13, 2008 9:25 am

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?
User avatar
Karl-D
Integra Supporter
Integra Supporter
 
Posts: 104
Likes: 0 post
Liked in: 0 post
Joined: Tue May 30, 2006 5:23 am
Cash on hand: 0.00
Location: Cornwall UK

Re: How to?

PostAuthor: Helter » Sat Dec 13, 2008 6:48 pm

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
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: How to?

PostAuthor: Karl-D » Sun Dec 14, 2008 10:45 am

Thanks HelterSkelter, now have the banner working great.
Out of interest whats the alt="" bit for?
User avatar
Karl-D
Integra Supporter
Integra Supporter
 
Posts: 104
Likes: 0 post
Liked in: 0 post
Joined: Tue May 30, 2006 5:23 am
Cash on hand: 0.00
Location: Cornwall UK

Re: How to?

PostAuthor: Karl-D » Sun Dec 14, 2008 12:41 pm

Done some more alterations on the color etc.
Very happy with the banner feature <img>
[attachment=0:1cfzgrce]Noname2.jpg[/attachment:1cfzgrce]
User avatar
Karl-D
Integra Supporter
Integra Supporter
 
Posts: 104
Likes: 0 post
Liked in: 0 post
Joined: Tue May 30, 2006 5:23 am
Cash on hand: 0.00
Location: Cornwall UK

Re: How to?

PostAuthor: Helter » Mon Dec 15, 2008 1:29 am

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
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: How to?

PostAuthor: Karl-D » Wed Dec 17, 2008 11:53 am

How hard would it be to have the banner auto rotate every 10 seconds or so?
User avatar
Karl-D
Integra Supporter
Integra Supporter
 
Posts: 104
Likes: 0 post
Liked in: 0 post
Joined: Tue May 30, 2006 5:23 am
Cash on hand: 0.00
Location: Cornwall UK

Re: How to?

PostAuthor: Helter » Wed Dec 17, 2008 6:24 pm

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
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: How to?

PostAuthor: obiku » Thu Dec 18, 2008 11:54 am

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.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 10:22 am
Cash on hand: 0.00
Location: level 8

Re: How to?

PostAuthor: Karl-D » Thu Dec 18, 2008 12:56 pm

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.
User avatar
Karl-D
Integra Supporter
Integra Supporter
 
Posts: 104
Likes: 0 post
Liked in: 0 post
Joined: Tue May 30, 2006 5:23 am
Cash on hand: 0.00
Location: Cornwall UK

Re: How to?

PostAuthor: Teelk » Thu Dec 18, 2008 7:41 pm

The file you are looking for is overall_header.tpl, that is what creates the top of the HTML output.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: How to?

PostAuthor: Helter » Fri Dec 19, 2008 12:26 am

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/
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3


Return to IntegraMOD 141

Who is online

Registered users: Bing [Bot], Google [Bot], Vendethiel