add   between radio buttons feedback form?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
loosefast
Forum Members
Forum Members
Posts: 36
Joined: Sun Jan 29, 2006 7:06 pm

add   between radio buttons feedback form?

Post by loosefast »

how do I add   between radio buttons on the feedback form?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: add   between radio buttons feedback form?

Post by calguy1000 »

You may need to modify the source to do this..... don't know if there's a template for it.

If you find you do need to modify the source follow these steps:
a) download the latest svn (or get somebody to do it for you, and send you a tarball)
b) expand the tarball
c) rename the tarball to .orig
d) expand the tarball (again)
e) make your changes (test, test, test)
f) generate a "diff" between your version and the .orig version
g) send the diff as a patch to the forge, in the appropriate project, or
    post it in the forum.

This will help everybody,

Thanks.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
loosefast
Forum Members
Forum Members
Posts: 36
Joined: Sun Jan 29, 2006 7:06 pm

Re: add   between radio buttons feedback form?

Post by loosefast »

calguy1000 wrote: You may need to modify the source to do this..... don't know if there's a template for it.

If you find you do need to modify the source follow these steps:
a) download the latest svn (or get somebody to do it for you, and send you a tarball)
b) expand the tarball
c) rename the tarball to .orig
d) expand the tarball (again)
e) make your changes (test, test, test)
f) generate a "diff" between your version and the .orig version
g) send the diff as a patch to the forge, in the appropriate project, or
    post it in the forum.

This will help everybody,

Thanks.
Thanks for the reply. If anybody knows where to make the changes....RadioGroupInput.class.php looked promising...
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm

Re: add   between radio buttons feedback form?

Post by sjg »

FeedbackForm/classes/RadioGroupInput.class.php is indeed the correct file to edit.

Change line 45 from

Code: Select all

        echo CMSModule::CreateInputRadioGroup($id, $this->Alias, $opts,
 $this->Value,$this->mod_globals->UseIDAndName?'id="'.$this->Alias.$i.'"':'');
to

Code: Select all

        echo CMSModule::CreateInputRadioGroup($id, $this->Alias, $opts,
 $this->Value,$this->mod_globals->UseIDAndName?'id="'.$this->Alias.$i.'"':'',' ');
That should do it (at least in recent versions of the module API).

Good luck,
___Samuel___
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
User avatar
loosefast
Forum Members
Forum Members
Posts: 36
Joined: Sun Jan 29, 2006 7:06 pm

Re: add   between radio buttons feedback form?

Post by loosefast »

sjg wrote: FeedbackForm/classes/RadioGroupInput.class.php is indeed the correct file to edit.

Change line 45 from

Code: Select all

        echo CMSModule::CreateInputRadioGroup($id, $this->Alias, $opts,
 $this->Value,$this->mod_globals->UseIDAndName?'id="'.$this->Alias.$i.'"':'');
to

Code: Select all

        echo CMSModule::CreateInputRadioGroup($id, $this->Alias, $opts,
 $this->Value,$this->mod_globals->UseIDAndName?'id="'.$this->Alias.$i.'"':'',' ');
That should do it (at least in recent versions of the module API).

Good luck,
___Samuel___
Samuel,

That did it! Thank you.


Tom
Post Reply

Return to “CMSMS Core”