Search found 247 matches

by Simon66
Tue Dec 03, 2019 4:48 am
Forum: Modules/Add-Ons
Topic: CGBetterForms honeypot
Replies: 1
Views: 509

CGBetterForms honeypot

CGBetterForms module help says there is a built in honeypot. How do I use this? I can create one from scratch using the tutorial on cmscanbesimple.org But CGBetterForms doesn't have a Field Validation of "Doesn't match Regular Expression". Any suggestions on how to work around that? Cheers Simon66
by Simon66
Sun Jul 07, 2019 1:39 am
Forum: Modules/Add-Ons
Topic: CGContentUtils Multiselect Box problem
Replies: 5
Views: 762

Re: CGContentUtils Multiselect Box problem

Digi3, I did try your solution. You also mentioned it in this post:
viewtopic.php?f=7&t=78619

It does work, and I'll just have to hope this 'bug' doesn't get fixed any time soon.

Cheers
Simon66
by Simon66
Sat Jul 06, 2019 11:40 pm
Forum: Modules/Add-Ons
Topic: CGContentUtils Multiselect Box problem
Replies: 5
Views: 762

Re: CGContentUtils Multiselect Box problem

Thanks guys,
I'm going to try a UDT to achieve the same thing.

Cheers
Simon66
by Simon66
Sat Jul 06, 2019 8:29 am
Forum: Modules/Add-Ons
Topic: CGContentUtils Multiselect Box problem
Replies: 5
Views: 762

CGContentUtils Multiselect Box problem

I have created a Multiselect Box block in CGContentUtils. It works perfectly with an option list in the options field: Test 1|test_1 Test 2|test_2 Test 3|test_3 Test 4|test_4 It also works perfectly with this smarty generated list in the options field: {foreach item=i from=0|@range:9} Test {$i}|test...
by Simon66
Mon Jul 01, 2019 9:56 pm
Forum: Modules/Add-Ons
Topic: CGBetterForms radio button Label errors
Replies: 2
Views: 444

Re: CGBetterForms radio button Label errors

Thanks Calguy!
by Simon66
Mon Jul 01, 2019 6:19 am
Forum: Modules/Add-Ons
Topic: CGBetterForms radio button Label errors
Replies: 2
Views: 444

CGBetterForms radio button Label errors

When I scan my form I get multiple errors about missing labels on all radio buttons. This is my code: <div class="option-group field"> <div class="smart-option-group smart-option-list group-vertical"> <label for="male" class="option"> <input type="radio" name="gender" id="male" value="Male" data-cgb...
by Simon66
Wed Jun 12, 2019 11:35 pm
Forum: Modules/Add-Ons
Topic: CGBetterForms problems
Replies: 3
Views: 624

Re: CGBetterForms problems

Thanks CalGuy I figured out the problem. I had the {CGBetterForms form="Contact Form"} in the template instead of the content. So I switched 'Display form inline' to yes and 'Upload files asynchronously' to yes. With data attributes I had copied the example from the module help: data-cgbf-accept="im...
by Simon66
Wed Jun 12, 2019 6:17 am
Forum: Modules/Add-Ons
Topic: CGBetterForms problems
Replies: 3
Views: 624

CGBetterForms problems

I'm having a few problems with CGBetterForms. I'm using the latest version 1.9.5. CMSms 2.2.10 & PHP 7.3 I can't save form results to a flat file. Everything in the templates gets replaced with HTML entities. Which causes an error message on the front end. data-cgbf-extension - this data attribute g...
by Simon66
Mon May 13, 2019 11:32 pm
Forum: Modules/Add-Ons
Topic: CGBetterForm inside Widget not working properly
Replies: 0
Views: 602

CGBetterForm inside Widget not working properly

I have a very simple contact form in CGBetterForms that works perfectly when placed in page content. I have 'inline' set to no and the form output displays a message after submit. If I set 'inline' to yes I get an error alert, on submit, saying "Please specify a form name when calling CGBetterForms"...
by Simon66
Mon May 06, 2019 10:41 pm
Forum: Tips and Tricks
Topic: Simple tag cloud using Search and News
Replies: 3
Views: 1741

Re: Simple tag cloud using Search and News

Thanks CalGuy I'll try that.
by Simon66
Thu Apr 18, 2019 2:27 am
Forum: Tips and Tricks
Topic: Simple tag cloud using Search and News
Replies: 3
Views: 1741

Simple tag cloud using Search and News

In News settings I created a text field called Comma_Separated_Tags. In Design Manager I create a Search Form Template: {$startform} <input class="button button-3d button-mini button-rounded" id="{$search_actionid}searchinput" name="{$search_actionid}searchinput" value="holder" type="submit" /> {if ...
by Simon66
Fri Apr 12, 2019 11:42 pm
Forum: Tips and Tricks
Topic: A UDT to convert HEX color to RGB
Replies: 3
Views: 1380

Re: A UDT to convert HEX color to RGB

Thanks to Jo Morg it's been updated to use multiple times on a page. $hex = $params['hex']; $alpha = $params['alpha']; $hex = str_replace('#', '', $hex); $length = strlen($hex); $rgb['r'] = hexdec($length == 6 ? substr($hex, 0, 2) : ($length == 3 ? str_repeat(substr($hex, 0, 1), 2) : 0)); $rgb['g'] ...
by Simon66
Fri Apr 12, 2019 9:12 pm
Forum: Modules/Add-Ons
Topic: UDT can only be used once per page
Replies: 2
Views: 568

Re: UDT can only be used once per page

Thanks Fernando

That works perfectly!

Cheers
Simon66
by Simon66
Fri Apr 12, 2019 12:41 pm
Forum: Modules/Add-Ons
Topic: UDT can only be used once per page
Replies: 2
Views: 568

UDT can only be used once per page

I created a UDT to convert HEX colors to RGB which works OK:
viewtopic.php?f=4&t=80592

The problem is that I can only use it once per page.
It breaks everything if I use it twice with different HEX colors.

Any ideas?

Simon66
by Simon66
Thu Apr 11, 2019 4:58 am
Forum: Tips and Tricks
Topic: A UDT to convert HEX color to RGB
Replies: 3
Views: 1380

Re: A UDT to convert HEX color to RGB

I hadn't thought of it. I came up with this UDT so I could to use the colorpicker in Custom Global Settings (CustomGS) for changing the color of the 'filter_colorize="r,g,b[,alpha]"' in CGSmartImage. I've created a section where an Editor can upload & custom colorize a photo. I'll play around with i...

Go to advanced search