| How to change the Showbanner? |
| Author | Text |
slashado Donator
Posts: 323

Gender:  Online: No
Version: 4.0.1 Country: Brasil Languages: Português, Inglês (via Google), e todas as outras (via google) |
Date: 10/08/2009 07:48 How to change the Showbanner? | #post21678 | Site url: http://www.mscriacoes.com.br
MemHT version: 4.0.1
Hosting OS: Linux, Windows
PHP and MySQL versions: 5/5
Installed addons/scripts: yes
Error/Problem:
Hello Mem, friends of the community.
I'm trying to make a change in the banner but I can not succeed.
I try change the make is the following.
The banners are displayed 1 for 1 at random, ie each access the banner changes. Now, using JQuery, I developed a small randomized system of banners and would like to add the banners used in MemHT, the problem is that I could not make the Memht exhibit a quantity greater than 1 in showbanner (x)!
I tried to modify in the following location:
file: inc/inc_banners.php
| code |
if ($row = $dblink->get_row("SELECT id FROM memht_banners_banner WHERE enabled=1 AND posizione=$banpos ORDER BY RAND() LIMIT 1")) {
showBannerId(intval($row['id']));
}
|
I tried to change the LIMIT 1 to 5 or other value but still shows only 1 banner for access.
I would like to display more than 1 banner in the same category or client.
MemHT as the ability to add more banners for the same client in the same place, I would like to display them in random order using Jquery.
My difficulty is to ensure that it displays the banners without the 1 by 1!
Where am I missing? |
|
 |
| |
slashado Donator
Posts: 323

Gender:  Online: No
Version: 4.0.1 Country: Brasil Languages: Português, Inglês (via Google), e todas as outras (via google) |
Date: 10/08/2009 14:24 Re: How to change the Showbanner? | #post21687 | owww... anyone?  |
|
 |
| |
rudykaka Exalted Member
Posts: 574

Gender:  Online: No
Country: España Languages: English, Español Version: waiting for 5 |
Date: 10/08/2009 14:35 Re: How to change the Showbanner? | #post21688 | Hi, i'm using many banners for header or any place u want and i dnt have problem,each time i visit a page or refresh a page it display a different banner, there iz no need 4 coding. |
|
 |
| |
slashado Donator
Posts: 323

Gender:  Online: No
Version: 4.0.1 Country: Brasil Languages: Português, Inglês (via Google), e todas as outras (via google) |
Date: 10/08/2009 14:40 Re: How to change the Showbanner? | #post21689 | but there is that I want to change ... I do not want to wait for the refresh why I put a JQuery effects such as banners ... would expect a very ugly face to refresh the template to develop! The intention is to place a banner floating with random images of the sponsors, it is not waiting for the refresh ... I tried everything here but if he continues to display only 1 banner per refresh! I do not know where most stirring ... maybe I am the head warm or full, or I really missed in the code again! I only know I need help again!
It was really hard for me!  |
|
 |
| |
rudykaka Exalted Member
Posts: 574

Gender:  Online: No
Country: España Languages: English, Español Version: waiting for 5 |
Date: 10/08/2009 14:46 Re: How to change the Showbanner? | #post21690 | It's hard a bit coz this might need developing a mod, and mem is offline in august. |
|
 |
| |
slashado Donator
Posts: 323

Gender:  Online: No
Version: 4.0.1 Country: Brasil Languages: Português, Inglês (via Google), e todas as outras (via google) |
Date: 10/08/2009 14:55 Re: How to change the Showbanner? | #post21691 | Yeah ... Require a different modification on another site, but I will continue in another place, this still change when members return or someone give me a tip, otherwise I will create another module that!
But I love to use the very Memht, which has an exemplary administration! |
|
 |
| |
sisnox Moderator Developer
Posts: 1664

Gender:  Online: No
Version: 5 Country: Portugal Languages: Portuguese and english |
Date: 10/08/2009 16:35 Re: How to change the Showbanner? | #post21692 | Viva
Altera o get_row para get_list e cria um loop.
Abraços http://www.sisnox.com |
|
 |
| |
slashado Donator
Posts: 323

Gender:  Online: No
Version: 4.0.1 Country: Brasil Languages: Português, Inglês (via Google), e todas as outras (via google) |
Date: 11/08/2009 09:54 Re: How to change the Showbanner? | #post21704 | Olá Paulo.
Eu consegui resolver direitinho o problema com as datas...
mas esse LOOP aí eu não entendi, como eu poderia fazer esse LOOP??
Tentei apenas alterar o get_row para get_list mas deu erro.
Errno: 8
File: C:xampphtdocsmirctemplatesmirc20compiledhome_1249979649.php
Line: 501
Function: showBanner
Note: Undefined index: id
C pode me dar uma ajuda a mais sobre essa questão dos BANNERS?
super abraços |
|
 |
| |