Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 26

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Mambo 4.5.1 > Mambo 4.5.1 General Talk

Reply
 
LinkBack Thread Tools Display Modes
Old 29.04.2005, 13:25   #1 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 6
Mak3 is on a distinguished road
Default Custom Module Conflicts with Polls module

Hey all,
i have created a custom module, which is nothing more than a normal module which i stripped out and appended html code at the end, and i have inside it 2 drop down lists in the form:
Quote:
<select name="radiostation" size="1" onChange="window.open(this.options[this.selectedIndex].value,'_self')">
<option selected>Choose Radio Station</option>
<option value="hXXp://www.mysite.com/index.php?option=com_wrapper&Itemid=113">Radio FM</option>
</select>
Now, the problem is when a user wants to submit a vote at the Poll module..When he clicks the "VOTE" button he is redirected to
Quote:
hxxp://mysite.com/index.php?radiostation=Choose+Radio+Station&voteid =2&task_button=Vote&id=1&task=vote
When my custom module is unpublished the user can vote normally:
Quote:
hxxp://mysite.com/index.php?voteid=2&task_button=Vote&id=1&task=vote
I know i have a problem with my html code in the custom module..

Even the slightest hint would be appreciable

Regards,
Mak3
Mak3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 29.04.2005, 23:58   #2 (permalink)
gin
Elite Mamber
 
gin's Avatar
 
Join Date: Sep 2004
Location: Reggio Calabria (Italy)
Posts: 1,990
gin has a spectacular aura about
Default Riferimento: Custom Module Conflicts with Polls module

Could you indicate the url of your site in order to have a more precise idea of this behaviour?

Giorgio
__________________

gin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 30.04.2005, 13:12   #3 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 6
Mak3 is on a distinguished road
Default Re: Custom Module Conflicts with Polls module

www.gcsgrads06.com

My custom module is the "Online Media"..

Thanks for your interest..

Regards,
Mak3
Mak3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06.05.2005, 18:07   #4 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 6
Mak3 is on a distinguished road
Default Re: Custom Module Conflicts with Polls module

The same problem as when voting happens when i try to logout..

It seems that the conflict comes whenever the user submits data from within a module..

can anyone give me a hint?

Mak3
Mak3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06.05.2005, 18:18   #5 (permalink)
gin
Elite Mamber
 
gin's Avatar
 
Join Date: Sep 2004
Location: Reggio Calabria (Italy)
Posts: 1,990
gin has a spectacular aura about
Default Riferimento: Custom Module Conflicts with Polls module

Hi mak3,
sorry for my delay in answering.
My opinion is that something in the FORM tag of your module is missing or wrong.
Usually, to avoid to do a generic submit, is better to use a little javascript function which calls the submit method of your form which must be clearly identified with the name attribute.

If you copy or attach here all the whole code of your module, we can easily find the solution.

Bye,
Giorgio
__________________

gin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06.05.2005, 18:34   #6 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 6
Mak3 is on a distinguished road
Default Re: Custom Module Conflicts with Polls module

No problem for the delay...It's just that i am kind of lost and the only solution i can see is to unpublish the module..

Thanks for your time..

PHP Code:
<?php
//Radio Module//
/**
* Content code
* @package radio
* @Copyright (C) 2005 www.GcsGrads06.com
* @ All rights reserved
* @ radio is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version 1.0
*
*Written by Mak3
*
**/

defined'_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

//No need for php code. Just pure html code. Ask Mesariti how to write one! ;)//

?>
<center><IMG SRC="http://www.gcsgrads06.com/gcsadmin/radio2.gif"></center>
<form name="radio_stations">
<div align="center">
<select name="url" size="1" onChange="window.open(this.options[this.selectedIndex].value,'_self')">
<option selected>Choose Radio Station</option>
<option value="http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=113">Super FM</option>

<option value="http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=114">Mix FM</option>

<option value="http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=122">Sports 1</option>

</select>
</div>
</ form>
<br/>
<center><IMG SRC="http://www.gcsgrads06.com/gcsadmin/tv.gif"></center>
<form name="tv_stations">
<div align="center">
<select name="url" size="1" onChange="window.open(this.options[this.selectedIndex].value,'_blank')">
<option selected>Choose TV Station</option>
<option value="http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=124">Mega TV</option>

<option value="http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=129">Rik 1 SAT</option>

</select>
</div>
</ form>
<br/>
<font color=red>*</font> An <b>i-choice</b> 512 connection or above is <b>REQUIRED</b>
Mak3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07.05.2005, 08:59   #7 (permalink)
Mamber
 
GianniT's Avatar
 
Join Date: Oct 2004
Posts: 93
GianniT is on a distinguished road
Default Riferimento: Custom Module Conflicts with Polls module

I noticed your poll module hasn't a "form" tag so when you press the "vote" button the nearest form is submitted
__________________
PHPnews.it - Notizie dal mondo PHP e dintorni
PHPProjects.net - eXit-Poll official web site
GianniT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07.05.2005, 21:19   #8 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 6
Mak3 is on a distinguished road
Default Re: Custom Module Conflicts with Polls module

This is not my poll module..it's the code for the custom module..

Code:
<form name="radio_stations"> 
</ form>
aren't these the FORM Tags?

Regards,
Mak3
Mak3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07.05.2005, 21:27   #9 (permalink)
Mamber
 
GianniT's Avatar
 
Join Date: Oct 2004
Posts: 93
GianniT is on a distinguished road
Default Riferimento: Re: Custom Module Conflicts with Polls module

I think that the poll component has the problem, not your module.
GianniT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08.05.2005, 11:17   #10 (permalink)
gin
Elite Mamber
 
gin's Avatar
 
Join Date: Sep 2004
Location: Reggio Calabria (Italy)
Posts: 1,990
gin has a spectacular aura about
Default Riferimento: Custom Module Conflicts with Polls module

It was a trivial but annoying error in closing the FORM tag of your module.

It happened that that lines </ form> weren't recognized as </form> and so, the last correct tag </form> was meant as the closure of your first <form> tag, i.e. the radio_stations one.

Simply replace your code wuth the following and it should work.

Let me know if it is OK.
Regards,
Giorgio

Code:
<?php 
//Radio Module// 
/** 
* Content code 
* @package radio 
* @Copyright (C) 2005 www.GcsGrads06.com 
* @ All rights reserved 
* @ radio is Free Software 
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html 
* @version 1.0 
* 
*Written by Mak3 
* 
**/ 
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 
//No need for php code. Just pure html code. Ask Mesariti how to write one! ;)// 
?> 
<center><IMG SRC="<A href="http://www.gcsgrads06.com/gcsadmin/radio2.gif"></center">http://www.gcsgrads06.com/gcsadmin/radio2.gif"></center> 
<form name="radio_stations"> 
<div align="center"> 
<select name="url" size="1" onChange="window.open(this.options[this.selectedIndex].value,'_self');"> 
<option selected>Choose Radio Station</option> 
<option value="<A href="http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=113">Super">http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=113">Super FM</option> 
<option value="<A href="http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=114">Mix">http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=114">Mix FM</option> 
<option value="<A href="http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=122">Sports">http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=122">Sports 1</option> 
</select> 
</div>
</form> 
<br/> 
<center><IMG SRC="<A href="http://www.gcsgrads06.com/gcsadmin/tv.gif"></center">http://www.gcsgrads06.com/gcsadmin/tv.gif"></center> 
<form name="tv_stations"> 
<div align="center"> 
<select name="url" size="1" onChange="window.open(this.options[this.selectedIndex].value,'_blank')"> 
<option selected>Choose TV Station</option> 
<option value="<A href="http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=124">Mega">http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=124">Mega TV</option> 
<option value="<A href="http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=129">Rik">http://www.gcsgrads06.com/index.php?option=com_wrapper&Itemid=129">Rik 1 SAT</option> 
</select> 
</div> 
</form>
<br/> 
<font color=red>*</font> An <b>i-choice</b> 512 connection or above is <b>REQUIRED</b>
__________________

gin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mambo Custom Module Skumlingen Mambo 4.5.1 'How Do I' Questions 4 30.08.2005 14:29
Can i create a custom module that will not display in the standard mambo HTML table tjstuart Module 'How Do I' Questions 1 03.02.2005 07:14
Can i create a custom module that will not display in the standard mambo HTML table? tjstuart Module Development 0 03.02.2005 03:09
SEF - Polls Archive Module akuate Module Development 0 07.08.2004 00:26
Do I have to design *every* custom module position in my template? tamper Template Discussions 8 22.06.2004 16:47


All times are GMT +2. The time now is 13:52.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.