1
fallenangel
More than one banner?
  • 2006/3/12 2:56

  • fallenangel

  • Just popping in

  • Posts: 2

  • Since: 2006/3/12


I have more than one banner that i want to use for my site, is there a way, that I can use all of them, by making them alternate everytime the page is refreshed?

2
MadFish
Re: More than one banner?
  • 2006/3/12 3:06

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


Yes it is possible - have a look in administration => system => banners. I think it rotates randomly though active banners, not 'in sequence' (could be wrong about that).

3
JoaoTapuia
Re: More than one banner?
  • 2006/3/12 3:33

  • JoaoTapuia

  • Just popping in

  • Posts: 17

  • Since: 2004/12/8


Hi, Fallenangel.

Do you know RWBANNER, the brazilian module for management and show of randomic banners.

Visithttp://www.bcsg.com.br/rwbanner (use Google for translation).

Excuse me my poor english.
JoaoTapuia

4
fallenangel
Re: More than one banner?
  • 2006/3/13 23:50

  • fallenangel

  • Just popping in

  • Posts: 2

  • Since: 2006/3/12


Oh, I dont mean the advertisement banner, im talking about the header banner in my theme, I have more than one header, and im looking for a code or something that alternates the header images whenever the browser is refreshed.

5
Lance_
Re: More than one banner?
  • 2006/3/14 0:26

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


Easily done, you can just add an include to a rotator script instead of you image now. This will cycle through images in a folder.
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

6
JoaoTapuia
Re: More than one banner?
  • 2006/3/19 3:54

  • JoaoTapuia

  • Just popping in

  • Posts: 17

  • Since: 2004/12/8


Hello, fallenangel.

See this website, its what you want.
http://www.comgenesis.com.br

Again, excuse me my poor english.
I don´t know if you understand, but, I try.

Use iframe in on the table in top of theme.html:

<iframe color="#FFFFFF" marginwidth="0" marginheight="0"
src="<{$xoops_imageurl}>iframe.htm" frameborder="0"
width="650" scrolling="no" height="180"></iframe>



You have create a file (called iframe.htm) and place in the same theme folder, with content:

<html>
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<
title>Comunidade Evangéliga Gênesis</title>
</
head>
<
body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
<
div align="center">
<
table border="0" cellspacing="0" cellpadding="0">
<
tr>
<
td align="center">
<
script language="JavaScript">
hoje = new Date()
numero_de_imagens 9
segundos 
hoje.getSeconds()
numero segundos numero_de_imagens
if (numero == 0){
banner "images/top01.jpg"
link "http://www.comgenesis.com.br"
alvo "_parent"
}
if (
numero == 01){
banner "images/top02.jpg"
link "http://www.comgenesis.com.br"
alvo "_parent"
}
if (
numero == 02){
banner "images/top03.jpg"
link "http://www.comgenesis.com.br"
alvo "_parent"
}
if (
numero == 03){
banner "images/top04.jpg"
link "http://www.comgenesis.com.br"
alvo "_parent"
}
if (
numero == 04){
banner "images/top05.jpg"
link "http://www.comgenesis.com.br"
alvo "_parent"
}
if (
numero == 05){
banner "images/top06.jpg"
link "http://www.comgenesis.com.br"
alvo "_parent"
}
if (
numero == 06){
banner "images/top07.jpg"
link "http://www.comgenesis.com.br"
alvo "_parent"
}
if (
numero == 07){
banner "images/top08.jpg"
link "http://www.comgenesis.com.br"
alvo "_parent"
}
if (
numero == 08){
banner "images/top09.jpg"
link "http://www.comgenesis.com.br"
alvo "_parent"
}
document.write('<a href="' link '" target="' alvo '" ><img src="' banner '" border=0></a>') </script>
</
td>
</
tr>
</
table>
</
div>
</
body>
</
html>


See the original topic about this in XOOPSTOTAL
This is made by DELGADO

Do you understand me (my bad english) ?
By.
JoaoTapuia

7
rplima2004
Re: More than one banner?
  • 2006/3/20 20:33

  • rplima2004

  • Just popping in

  • Posts: 70

  • Since: 2004/10/8


Hello fallenangel, all good?

I understood what you want. What you want are to show randomic images in header of its site without refresh in the pages, is not this?

The reply for its problem is ajax. Ajax uses of the XMLHttpRequest technology to create dynamic contents without giving refresh in the pages.

And now in the new version of rw_banner you will be able to use this therefore it comes with a block that shows banners using the technology ajax.

It waits, in briefing the new version will be available.

[]s
rplima

8
rplima2004
Re: More than one banner?
  • 2006/3/21 5:46

  • rplima2004

  • Just popping in

  • Posts: 70

  • Since: 2004/10/8


Hello fallenangel,

I implemented a new block in the module rw_banner that he accurately makes what you desire, it changes the image automatically without giving refresh in the page.

You can see it in functioning here.

The block was placed in the top header of the site and to each 30 seconds it changes the image.

This new version of rw-banner still is not available for download because it is in period of tests but until the end of the month it will be ready.



ps: The language of the site is Portuguese, but through the systems of google you will obtain translate it easily.

ps2: Sorry for my poor english, this text was translated by google.

[]s
Rodrigo

9
urbanspacema
Re: More than one banner?

hello I am trying the module "rw_banner" and I wanted to know like I can make in order to modify the template of block.

use a translator excused my English
http://www.ultrasonica.it
http://www.noisecollective.net

10
rplima2004
Re: More than one banner?

hi urbanspacema,

Unhappyly the current version does not have templates and in case that it wants to modify the layout of the block will have that to edit the archive blocks/banner.php manually.

Templates for the blocks already is ready, only lacks to create templates of the administrative area of the module.

These templates and new blocks and functions already will be enclosed in the new version that will be launched in briefing, also with translation for other languages.

Visits my site (http://www.bcsg.com.br/rwbanner) of some days and sees if the new version of the module already is available.


Rodrigo

Login

Who's Online

163 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 163


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits