Search found 250 matches

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: 1293

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: 1293

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: 3919

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...
by Simon66
Thu Apr 11, 2019 12:27 am
Forum: Tips and Tricks
Topic: A UDT to convert HEX color to RGB
Replies: 3
Views: 3919

A UDT to convert HEX color to RGB

UDT titled hex2rgb: function hex2rgb($hex, $alpha = false) { $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'] = hexdec($length == 6 ? substr($hex, 2, 2) : ($length == 3...
by Simon66
Thu Mar 07, 2019 3:30 am
Forum: Modules/Add-Ons
Topic: CGBetterForms duplicate emails sent
Replies: 1
Views: 1287

CGBetterForms duplicate emails sent

I have CGBetterForms set up to send the form results to a specified address.

It sends 2 emails every time a form is submitted.
They have the same time stamp.

Latest versions of everything.

Any ideas why this might be happening?

Cheers
Simon66
by Simon66
Thu Sep 27, 2018 10:37 am
Forum: Modules/Add-Ons
Topic: CGFeedback comments not uploading from News Detail page
Replies: 0
Views: 1001

CGFeedback comments not uploading from News Detail page

I have installed the latest CMSMS 2.2.8 and the latest CGFeedback 2.2. I have included {CGFeedback key1="News" key2=$entry->id} in my News Detail page with default templates. I made sure {cge_form_csrf} was in the template after the form_start tag. Comments are not being uploaded and an er...
by Simon66
Thu Sep 20, 2018 12:11 pm
Forum: Modules/Add-Ons
Topic: Self Registration AJAX submit from modal window
Replies: 0
Views: 917

Self Registration AJAX submit from modal window

I've successfully installed and set up Self Registration 1.14 onto CMSMS 2.2.8. I've got the Registration Template 1 in a modal popup and when the form is filled in the popup closes on submit. The Success or Error message is only visible when I open the Self Reg popup again. Now I'm trying to write ...
by Simon66
Tue Sep 18, 2018 6:44 am
Forum: Modules/Add-Ons
Topic: Self Registration module template variables
Replies: 1
Views: 1064

Self Registration module template variables

I created a tutorial a few years ago about building Self Reg templates: https://forum.cmsmadesimple.org/viewtopic.php?f=4&t=67650 I am now building a new site that needs a Self Reg registration template. I used to use {$username->control} and {$password->control} etc. to build the templates, but...
by Simon66
Tue Jan 30, 2018 9:18 pm
Forum: CMSMS Core
Topic: assets_url is giving me an error
Replies: 4
Views: 1475

Re: assets_url is giving me an error

Thanks for the info.
by Simon66
Tue Jan 30, 2018 10:57 am
Forum: CMSMS Core
Topic: assets_url is giving me an error
Replies: 4
Views: 1475

assets_url is giving me an error

I checked the 'config.php Reference' and it said there was a default value ($config['root_url'].'/assets') for assets_url. I'm using cmsms 2.2.5 But when I use {assets_url} in my template it gives an error. I have also tried with/without setting it in config.php and it gives an error both times. Has...
by Simon66
Thu Sep 14, 2017 6:44 am
Forum: Modules/Add-Ons
Topic: Error sending form in CGBetterForms
Replies: 0
Views: 1075

Error sending form in CGBetterForms

I'm getting this error when sending a form from CGBetterForms. Deprecated: Non-static method CGBetterForms\utils::get_mailer() should not be called statically, assuming $this from incompatible context in /home/wasten47/public_html/modules/CGBetterForms/lib/Dispositions/class.EmailFixedAddressesDispo...
by Simon66
Mon Sep 04, 2017 11:21 pm
Forum: Modules/Add-Ons
Topic: Smarty processing in CGBetterForms question.
Replies: 2
Views: 1710

Re: Smarty processing in CGBetterForms question.

Thanks CalGuy,
I just tried again 24 hours later and its working perfectly.

I have no idea what I was doing wrong.

Sorry for wasting your time.

Simon66
by Simon66
Mon Sep 04, 2017 4:04 am
Forum: Modules/Add-Ons
Topic: Smarty processing in CGBetterForms question.
Replies: 2
Views: 1710

Smarty processing in CGBetterForms question.

I have been using CGBetterForms and it really is awesome and intuitive to use. Very flexible and quick. I have encountered my first problem. I have created a 'Download Brochure' form. It collects a Name and Email address then sends the download link. I used the 'Send email to user supplied address' ...
by Simon66
Wed Jul 26, 2017 2:39 am
Forum: CMSMS Core
Topic: Exporting Design in 2.2.2 gives a blank page
Replies: 2
Views: 1557

Re: Exporting Design in 2.2.2 gives a blank page

I have tried exporting Designs from 2 other sites with CMSMS 2.2.2 with different results.

A fresh install with no sample data. No CSS and few core templates exports to XML perfectly.

Another finished 2.2.2 site with multiple CSS and custom Templates gives me an error notification. Image attached.
by Simon66
Wed Jul 26, 2017 2:32 am
Forum: CMSMS Core
Topic: Exporting Design in 2.2.2 gives a blank page
Replies: 2
Views: 1557

Exporting Design in 2.2.2 gives a blank page

(Sorry for the double post, I must have posted the original to the wrong board). I'm trying to export a design as XML from a newly created site in CMSMS 2.2.2. The URL is: admin/moduleinterface.php?mact=DesignManager,m1_,admin_export_design,0&_sk_=d80dc3b38ba0d13705c&m1_design=1 This just gi...

Go to advanced search