FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

codyf posts

Feed 14 posts

CKEditor

To clarify, I get a “p is undefined” error. Happens all the time in Safari and about about 90% of the time in Firefox.

I get the feeling it’s caused when the page loads too fast. When my connection is acting up and pages load slower, the editor is more reliable. I can’t explain it.

 

CKEditor

I like CKEditor a lot more than the other WYSIWYG editors, but I’m having trouble getting multiple areas loading (using with Page Part Forms). Is anyone else running into trouble with this?

 

page part forms (custom fields)

@M I’m in Mountain Standard (MST)

 

page part forms (custom fields)

Sure, no problem. I’m working on a site for a law firm. For each area of practice (e.g. real-estate law) they’d like to list which lawyers work in that specialty. The lawyers (currently about 15) are in a Page Part Forms list.

 

page part forms (custom fields)

@M While you’re making changes, it may make sense to limit the size of the list box to 10 if there are more than 10 items in the list. i.e.,

<select size="10">....</select>
 

page part forms (custom fields)

Alright, I figured it out. It depends on the limit and the number of items in a list.

For select, limit defaults to 1. So if limit is 1 and…

  • You have less than 5 items in your list, the widget is radio boxes
  • You have between 5 and 10 items in your list, the widget is a list box
  • You have 10 or more items, the widget is a dropdown box

If the limit is greater than 1 and …

  • You have less than 5 items in your list, the widget is check boxes
  • You have between 5 and 10 items in your list, the widget is a list box
  • You have 10 or more items, the widget is a dropdown box (I think this is supposed to be a list box as well)

To make that last item into a list box change line 66 of PagePartFormsController.php from

array(self::SELECT_TYPE_CHECKBOX, self::SELECT_TYPE_LIST_MORE, self::SELECT_TYPE_DROPDOWN),

to

array(self::SELECT_TYPE_CHECKBOX, self::SELECT_TYPE_LIST_MORE, self::SELECT_TYPE_LIST_MORE),
 

page part forms (custom fields)

I’m trying to create a multi-select, but I can’t figure out how to set up the YAML to produce this. Can you post some examples as well what you need to generate radio buttons, checkboxes, and the other select options.

Thanks!

 

page part forms (custom fields)

I don’t suppose there’s a way to handle uploads/images with this plugin??

 

Plugin activate/deactivate confirmation

I agree, all destructive action should be flagged very loudly as such.

 

Reference for database functions

Thanks Bdesign. That’s kind of what I was after. I discovered the records class after digging around some other plugins. Is there any documentation or tutorials available for it or should I just dive into the source code?

 

Themr - Solution to your theming problem

For what it’s worth, I joined Assembla but couldn’t find a way to report bugs. Probably something I missed. If you point me to the correct page, I can post these there as well. Thanks!

 

Themr - Solution to your theming problem

This looks really promising. I’m sure you already have a hefty to-do list for this plugin, but here are a few more:

1) Broken images – The plugin assumes that Frog is installed is in a top level directly. Thankfully this is an easy fix (I just went into the view sub-directory and added the URL_PUBLIC constant to the image src’s)

3) The settings page is visible to non-admin users – I believe this is an easy fix as well.

2) Refused to uninstall one of my themes – Not sure what went wrong here. Frog refused to uninstall it as well claiming it was being used (but it wasn’t). Maybe a problem with the theme???

 

Reference for database functions

I haven’t really worked with PDO, so that’s maybe why I didn’t recognize the functions. I guess I was expecting something more complicated.

Thanks.

 

Reference for database functions

I’m planning on creating a plugin to deal with a existing database table. Unfortunately I’m having trouble finding a reference for how I should be interacting with the database and what functions are available. I’ve looked at the code for a couple existing plugins but they often aren’t easy to follow and how they approach it seems to vary quite a bit.

Can someone point me in the right direction? Thx!

 

[Sticky] Frog Hosting (the good, the bad and the ugly)

Ditto on MediaTemple. Not worth the frustration.

Mosso is excellent especially if you’re running a business. Frog CMS runs flawlessly on their service.