MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
A2Hosting
Moderators: Moderators
Forum RSS feedReply
How to change the Showbanner?
AuthorText
slashado
Donator

Posts: 323
Contributes: 350

Gender: _MALE_
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?
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Soon, Virtual Store with Modules and Templates for MemHT!
Eager for MemHT 5
Delete Edit Quote
 
slashado
Donator

Posts: 323
Contributes: 350

Gender: _MALE_
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?Smile
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Soon, Virtual Store with Modules and Templates for MemHT!
Eager for MemHT 5
Delete Edit Quote
 
rudykaka
Exalted Member

Posts: 574
Contributes: 677

Gender: _MALE_
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.
Delete Edit Quote
 
slashado
Donator

Posts: 323
Contributes: 350

Gender: _MALE_
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!Smile
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Soon, Virtual Store with Modules and Templates for MemHT!
Eager for MemHT 5
Delete Edit Quote
 
rudykaka
Exalted Member

Posts: 574
Contributes: 677

Gender: _MALE_
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.
Delete Edit Quote
 
slashado
Donator

Posts: 323
Contributes: 350

Gender: _MALE_
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!
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Soon, Virtual Store with Modules and Templates for MemHT!
Eager for MemHT 5
Delete Edit Quote
 
sisnox
Moderator
Developer


Posts: 1664
Contributes: 931

Gender: _MALE_
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
Delete Edit Quote
 
slashado
Donator

Posts: 323
Contributes: 350

Gender: _MALE_
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
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Soon, Virtual Store with Modules and Templates for MemHT!
Eager for MemHT 5
Delete Edit Quote
 
Reply
Tags Cloud
Twitter updates...
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.179.234

Username
Password
MemHT Wiki
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo