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

beres posts

Feed 27 posts

Form plugin with validation

@defunct sorry for my late replay, i’ll try to connect to irc this evening now i’m ate work (gmt +1)

 

Form plugin

@Luuk

There was a problem on a table name, and a redirect link, i’ve uploaded a new version

Form example:

name|true|string|Name
email|true|email|Email
phone|false|phone|Phone
subject|false|choices|Subject|Foo,Bar
text|true|text|Message

In page editing, type Form

<?= $this->form->form('_name_of_your_form', '_name_tab_with_template', 'name_tab_with_success_message'); ?>

Email template

To: foo@example.com
Subject: [example.com] contact form
From: noreplay@example.net

Form data:

%form%
 

Form plugin

People that desire to try/test/help the plugin can be downloaded here

Anyway:

  • it’s incomplete, working, but incomplete
  • at this time the admin interface is manual, not js yet
  • the help written in the sidebar, is fake, don’t trust it… i’m only plaing with frog’s api

The reply message and email template is inspired by tuupola’s plugin…in the next few days i hope to have time to finish it.

 

Form plugin

@tuupola

I had some problem using your jQuery wrapper, i don’t believe it depend of your mistake… but i’ve not investigated yet.

It seems that after loading some script, from a “page” i can’t call jquery function, for example.

I enclose the content of the script between:

file: foo.js
jQuery(function($) {
  functoin foo() {}
});

and when for another file or a “page” i try to call the function, it seems to have different scope.

<script src="foo.js" ...
jQuery(function($) {
  console.log(foo());
});

In my script i generate html code from js an bind some function on varius events etc… but for some reason that functions can’t found.

Why do not port Frog to jQuery instead of create wrapper, if many peoples seems to prefer them? :P
I’m joking, even if time ago i made this indecent propose to phillipe, i could have also a 80% ported tarball somewhere…

 

Form plugin

@david

sorry i read your previous message too fast :P
I tired tuupla’s jQuery plugin but i’had some problem with it (jQuery non UI) working with more files… i’m still playing with it btw.

I searched the plugin on my hd but i suppose to have trash it, sorry.

 

Multilingual sites

@philippe

While you take time to make the right decision…
consider also to keep the language selector, so people with a lot of pages can manage/view only the desired language tree. I thinks the choices could be Default(show all), English, French, etc …

 

Form plugin

@David

I’ve tried “BDContact”, “Email template” and “Contact form”. Please let me know if other exists.

 

Form plugin

The validation is server side, and actually there’s ajax support, but could be easy to add. The plugin sends email sends email only.

The form builder at this time it’s only an idea because my desire to learn/play with prototype…

 

Form plugin

I’m developing yet another plugin to manage contact forms, i try and play with every plugin i found, but no one “work”/fit my need/desire, so i try to explain my idea to know your opinion.

Al form solutions that i try doesn’t do any kind of error checking, some plugin even if fields are empty or logically incorrect (ex: numer on email field) accept input data and send me to another page, i think it’s not acceptable.

My idea is a “Form” controller that help to build forms definition, for example
field_type (number, email, etc..) and file_name…
After created a form from a page a people can call a function “render(form_name)” that create html code, and if submited show errors etc… or i can create a from by hand and call specific function to check or print errors.

The auto generated html code could be always personalized via css and probaly cover 99% of needs.

Yes, i know that i can write php code on the page, but on every site it’s always the same thing.. and i’m lazy and tired :P … also in this way event non coders (something like an editor ) could add form field or a new form.

What do you think about this approach?

Actually the plugin is already done, except for the Controller add/edit part that show a simple textarea where it’s possible to define the form in a sort of texttile way… my desire is to write a sort of form builder with a js interface, but don’t know prototype (i prefare jquery, sorry), so for my needs it is enough for now.

 

Multilingual sites

@Philippe

I understand your idea, but i think that removing the language part from the url, make the url probably a bit better, but it doesn’t so different for search engine, while it could create “problems” for editor… (es, i don’t want to call a page “contact_us” instead of “contact” because i’ve other languages).
Besides in languages different from english, time to time people use english word, because their language doesn’t have a “beautiful”/used translation.

In the example below:

index.html (/)
accueil.html (french)

if think that it’s not so natural, for example i would like to see your french version and i don’t find the link in th site… i can’t write:

/fr/

to see the home page, because i must to know how you call your index page.

I believe that your approach give too consideration to the search engine, loosing user and editor usability.

At the end this is what i prefer (suppose english as default language):

index.html (/)
contact_us.html
blog/
    first_post.html
    second_post.html
/fr/
    accueil.html (french)
    contactez_nous.html
    blogue/
        premier_post.html
        deuxieme_post.html
...

let me know what you think.

 

Multilingual sites

@Luuk

Look at the checkout page , you must to substitute trunk whit branches/phil.

 

Multilingual sites

@Luuk

You can try the brech of philippe in svn.

madebyfrogs.googlecode.com/svn/branches/phil

 

Multilingual sites

sorry, but i doesn’t think to understand. What do you meen for “loose on all your page the best place to put some rich keyword about your content” ?

For my personal experience, multi language site organized with languages “subdirectories” works fine, and google seems to like it, personally i also add lang attribute on meta tags.

besides the approach /, /fr is imho a “natural flowing hierarchy” that what’s google like ;)

just my 2 cents.

 

Multilingual sites

Why this strange approach “use the 2 chars lang code (en,fr,it,es,…) at the end of the url (only if there is url conflict)” ?

I believe that the classic hierarchy:

/
/services
/fr
/fr/services

it’s a better schema.

 

Multilanguage site

Hi philippe again, first of all thanks for your work, i use frog since a year happily…
i’ll take a look on your new branch.

 

Patch, mailing list etc...

Personally i think that the right solution is talk to Philippe, frog it's still a small project with few people and even less coders. So we could try to improve Frog before try to forking.

@Chrononaut: i agree with mvdkleijn, anyway i've read your short and long term goals and i agree. I've already ported frog to jquery and write additional code for my personally propose; sadly i not yet fully tested the code (this is the main reason because i've not sent a patch).

@mvdkleijn: Philippe made a really good job with frog, but i think that we need a developer plan or so, i would use frog at work, but i don't write/manage/develop a software alone, actually i don't have the time. I need to know that the software it's active and have an active community. Anyway I understand that this is for Philippe an hobby or something that really like to do on his spare time.

 

Multilanguage site

Hi,

You can import your data in the new database or simply updat ethe sql of your old db. You must to add language_id to table page, and add language_* data on settings table.

 

Multilanguage site

Hy Kud, Here*1 you can find the last version of the "patch"... the tarball include a complete version of Frog 0.9.2 with the patch already applied. So, if you currently use 0.9.2, you could simply replace all your files. I've also ported to the trunk version where anyway i've modified also other thinks... *1)http://ale.metaverso.org/frog/frog-languages-0.2.tgz

 

Page tree reordering problem

Here an example of a tree that work, with a very different implementation http://demo.silverstripe.com/

login in the backend and play with it, it's made with script.aculo.us

 

Page tree reordering problem

(try to format lists)

Hi, when i try to reorder a page, it can't be nested as child if the parent doesn't already has one.

root child A child A1 child B child C

So, child C, can be deragged as subchild of child A, but can't be subchild of B. Event if child A1 is dragged out of A, it's impossibile to bring it back.

I'll try to fix it, with minor update on js and a little bit of ccs, any way, it's not possible create something like that: root child A child A1 child A1.1

However i'm new to script.aculo.us, i prefare jQuery :P ... so any hint to fix it?

 

Page tree reordering problem

Hi, when i try to reorder a page, it can't be nested as child if the parent doesn't already has one.

root - child A -- child A1 - child B - child C

So, child C, can be deragged as subchild of child A, but can't be subchild of B. Event if child A1 is dragged out of A, it's impossibile to bring it back.

I'll try to fix it, with minor update on js and a little bit of ccs, any way, it's not possible create something like that: root - child A -- child A1 --- child A1.1

However i'm new to script.aculo.us, i prefare jQuery :P ... so any hint to fix it?

 

Multilanguage site

hi, this version should work, both backend and frontend.

http://ale.metaverso.org/frog/frog-languages-0.1.tgz

comments are appreciated

 

Page API

iI forgot, as "Tab" i think at those on the top of page edit... near title, dates etc...

 

Page API

Hi, What do you think to introduce api to manage/create new "tab" on the page edit... an example of a plugin could be one that add tab to specify (priority, and update frequency) to generate a google sitemap.xml ... on this "tab" a plugin could extend the page attributes on a simple way... i can write the code, if you think that could not be a waste of time :P

 

Multilanguage site

thx philippe, the frontend part it's not complete, it's really hackish... i post the new code soon...