Search found 296 matches

by sjg
Fri Aug 26, 2011 4:54 pm
Forum: Modules/Add-Ons
Topic: Cross Site scripting holes in Formbuilder
Replies: 9
Views: 2180

Re: Cross Site scripting holes in Formbuilder

Fixed in svn.

Edit action.default.php, and in line 156, change:

Code: Select all

$aeform->setFinishedFormSmarty();
to

Code: Select all

$aeform->setFinishedFormSmarty(true);
This will run htmlspecialchars on all submitted values (but will preserve the <br> tag).
by sjg
Tue Jun 07, 2011 9:27 pm
Forum: General Discussion
Topic: help for automatically writing the trademark symbol [SOLVED]
Replies: 2
Views: 1844

Re: help for automatically writing the trademark symbol

I'm glad you're enjoying the book!

RonnyK has an even easier solution for your problem. He suggests:

Code: Select all

{$node->menutext|replace:'Company Name':'Company Name&reg;'}
in you Menu Manager template.

Good Luck,
___Samuel___
by sjg
Thu Apr 28, 2011 9:23 pm
Forum: [locked] Installation, Setup and Upgrade
Topic: CMS Version: 1.9.4.1 install on RHEL6
Replies: 10
Views: 3910

Re: CMS Version: 1.9.4.1 install on RHEL6

I haven't actually used RHEL6, so I can't speak to it.

I've had success with Debian 5 or later, Ubuntu 10.04 or later, pretty much any recent Fedora, Windows Server 2003/IIS6, and Mac OS. I haven't tried on other platforms.
by sjg
Thu Apr 28, 2011 9:02 pm
Forum: [locked] Installation, Setup and Upgrade
Topic: CMS Version: 1.9.4.1 install on RHEL6
Replies: 10
Views: 3910

Re: CMS Version: 1.9.4.1 install on RHEL6

You won't have luck with CMSMS under stock Centos 5.5 or 5.6, since they compile PHP 5.1.x without RegexIterator support.

You'd need to build your own PHP instance, which is not that difficult, but it might be easier just to choose a different distro at this point.
by sjg
Wed Oct 13, 2010 5:54 pm
Forum: Modules/Add-Ons
Topic: [Solved] Filter out results from Formbrowser
Replies: 4
Views: 1455

Re: Filter out results from Formbrowser

Without seeing what the data and the form look like, it's hard to know exactly what it is you're trying to do. But it looks like you might be able to do it entirely in Smarty: {foreach from=$list item=entry}     {foreach from=$entry->fields item=status}         {if $status == 'Levande'}             ...
by sjg
Tue Sep 21, 2010 5:07 am
Forum: Locked: Geek Moot 2010
Topic: GeekMoot's photo's, video's and other stuff...
Replies: 7
Views: 17980

Re: GeekMoot's photo's, video's and other stuff...

This year's pictures: http://www.flickr.com/photos/_sjg_/sets/72157624877130381/ I've had one request to remove someone's name from the photo tagging. If I tagged a picture with your name and you want that removed, let me know! I also failed to tag a lot of names, so if you want me to add your name ...
by sjg
Wed Jun 30, 2010 5:38 pm
Forum: [locked] Quality Assurance
Topic: Please could Archiver be removed from the Module Manager
Replies: 2
Views: 10740

Re: Please could Archiver be removed from the Module Manager

It's actually a Core bug. To fix it, edit CMS_ROOT/admin/edithtmlblob.php Change line 137 from: Events::SendEvent('Core', 'EditGlobalContentPre', array('global_content' => &$blobobj)); to: Events::SendEvent('Core', 'EditGlobalContentPre', array('global_content' => &$the_blob)); and Archiver ...
by sjg
Tue Dec 29, 2009 5:50 pm
Forum: Modules/Add-Ons
Topic: Form Builder / Form Browser Beta
Replies: 20
Views: 21409

Re: Form Builder / Form Browser Beta

That should work, but it looks like I introduced a bug.

It now works on the field alias / DOM ID, the field name, or the field ID (fld_XX). It's fixed in svn, and should work in today's release.

Thanks,
___Samuel___
by sjg
Thu Dec 24, 2009 12:05 am
Forum: Modules/Add-Ons
Topic: Form Browser gives strange error
Replies: 8
Views: 5037

Re: Form Browser gives strange error

There is a newly fixed bug where the XNML parsing would crash if a field value had an ampersand "&" in it. That bug has been fixed in svn, and will be in the upcoming release.
by sjg
Fri Dec 18, 2009 7:15 pm
Forum: Modules/Add-Ons
Topic: Form Builder / Form Browser Beta
Replies: 20
Views: 21409

Re: Form Builder / Form Browser Beta

Rapp: it sounds like you're having some kind of module crash. It could be an outstanding bug of some sort.

Can you see anything in your php error log?
by sjg
Wed Dec 02, 2009 11:06 pm
Forum: Modules/Add-Ons
Topic: Form Builder / Form Browser Beta
Replies: 20
Views: 21409

Re: Form Builder / Form Browser Beta

Doh! Found it. Stupid bug... Try editing FormBuilder.module.php, and at line 685 change it from: function CreatePageDropdown($id,$name,$current='',       $addtext='',$markdefault =true)      {      // we get here (hopefully) when the template is changed      // in the dropdown. to function CreatePag...
by sjg
Wed Dec 02, 2009 10:52 pm
Forum: Modules/Add-Ons
Topic: Form Builder / Form Browser Beta
Replies: 20
Views: 21409

Re: Form Builder / Form Browser Beta

Thanks for the report.

This is using a FileUpload field and handling it with the Uploads module?

I have to admit, I'd only tested with the "native" file upload.
by sjg
Tue Dec 01, 2009 11:47 pm
Forum: Modules/Add-Ons
Topic: FormBuilder: Flat file name by variable
Replies: 4
Views: 2308

Re: FormBuilder: Flat file name by variable

If you want to use Smarty variables in the filespec, you could try doing something like: $filespec = $this->GetOption('fileroot',$options['uploads_root']).'/'.       preg_replace("/[^\w\d\.]|\.\./", "_", $this->GetOption('filespec','form_submissions.txt')); $filespec= $mod->Proce...
by sjg
Tue Dec 01, 2009 11:39 pm
Forum: Modules/Add-Ons
Topic: [SOLVED] Continue buttons in Form Builder
Replies: 2
Views: 1347

Re: Continue buttons in Form Builder

Try using a "-Page Break" field where you'd like the form to split.

Go to advanced search