Topic: mbContact

Just posting to let people know that I'm releasing my contact form plugin.
You'll need 0.6.0 so make sure you're up to date!

You can download it from my site at www.mikebarlow.co.uk

If you run into any problems / suggestions then either drop me an email using the form on the site (yes i know i'm not using my own plugin, need to upgrade wolf first tongue) or post a reply here.

@davidhund
It's not as flexible as I said it was in your topic. I did make the changes described but at some point of the last few days I've deleted that copy and can't retrieve it, I think it was when I was upgrade to 0.6.0 final from RC.
SO it's hard-coded with the fields at the moment, I will work on updating it when I can to be a "custom field contact form" like discussed.

2

Re: mbContact

snsmurf:
Will be nice to have on your website some screenshots - just to take a deeper look how it looks like. It is just my small suggestion.

--
Piotr

Re: mbContact

Would be a good idea, could have screenies of all my plugins.
I'm going to be working on a new design for the site soon so i'll see about implementing it then.

In the meantime you can view the demo at http://wolftest.mikebarlow.co.uk

Last edited by snsmurf (2010-02-04 13:34)

Re: mbContact

@snsmurf good job! (and quick too ;-) )

For me personally, being able to define various different fields is a huge plus. It is trivial to implement a simple contact form, but often you'd want a more 'custom' form.

It would absolutely rock to be able to 'build' a form out of various fields. This, of course, is not difficult, but the value of such a plugin would be in the form validation, anti-spam measures and reporting etc.

Thanks again, I will take a look

Re: mbContact

davidhund wrote:

It would absolutely rock to be able to 'build' a form out of various fields.

actually.... working on building that into the core.

Wolf CMS founder and lead developer
Please always check the Support forums and Wiki before asking. (My Ohloh account.)
Like Wolf CMS? Consider making a financial contribution.

Re: mbContact

@mvdkleijn that's wonderful news.

Is this the 'custom contenttypes' functionality that I've come across before? That would be an *awesome* add-on to Wolf!

Martijn, can you give us any more info on the progress? When can we expect this to be ready?
Is there anything we can do to help?

Re: mbContact

davidhund wrote:

@mvdkleijn that's wonderful news.

Is this the 'custom contenttypes' functionality that I've come across before? That would be an *awesome* add-on to Wolf!

Martijn, can you give us any more info on the progress? When can we expect this to be ready?
Is there anything we can do to help?

Oof.. A rough indication of what I'm planning can be found on the wiki.

I never give progress reports nor dates when its final. wink

Help? Hmm... dunno, not *yet*. I'm working on something locally at the moment. I will most certainly need LOTS of help testing once its done at the very least. The main reason this isn't here yet is because I didn't want it in 0.6.0. Too many big core changes at the same time is not a good thing.

Wolf CMS founder and lead developer
Please always check the Support forums and Wiki before asking. (My Ohloh account.)
Like Wolf CMS? Consider making a financial contribution.

Re: mbContact

Small update to this plugin for anyone using it.

www.mikebarlow.co.uk/wolf-cms.html#mbcontact

Re: mbContact

The download link for this plug-in in the plug-in section of the WolfCMS website is pointing to the mbBlog plug-in instead of mbContact.

Thumbs up

Re: mbContact

Ahh so it is, I didn't even know it had been posted on that page!
Cheers who ever put them on!

mbContact download: http://www.mikebarlow.co.uk/downloads/mbcontact.zip

11

Re: mbContact

@Forage - Drat! Now fixed - thanks!

@snsmurf - That would be me. wink

Re: mbContact

Well i've just installed the mbContact plugin but it doesn't use the theme I choose in the backend, instead it uses Wolf's default theme.

It seems related to the executeFrontendLayout() function and probally this:

$sql = 'SELECT content_type, content FROM '.TABLE_PREFIX.'layout WHERE name = '."'$this->frontend_layout'";

I've tried

<?php echo $this->frontend_layout; ?>

on a page to see if it would print something, but it won't.

Anyone with a solution for this unwanted default theme usage?

13

Re: mbContact

Fortron wrote:

Anyone with a solution for this unwanted default theme usage?

I discovered the exact same issue yesterday :-) I didn't have the time to search for a generic solution yet but as a quick fix:
Change the 'wolf' part in line 47 '$this->setLayout('wolf');' of the file MbcontactController.php to the theme you are using.

@snsmurf: The same line should be changed to use 'Wolf' instead of 'wolf' if people are using the default theme as well. The latter does not exists causing no theme to be found.
A second issue is line 5 in the file form.php.

'<form method="post" action="<?php echo URL_PUBLIC; ?>contact/">'

BASE_URL should be used instead of URL_PUBLIC, to prevent issues for people who are not using mod_rewrite ;-)

Thumbs up

Re: mbContact

Yeah, Forage is correct with the setLayout part.

I'll amend this to pull it from the database and release an update in the next day or two.
Also thanks for the heads up about the constant! Will get that fixed up aswell.

Re: mbContact

Ok, the documentation says "Now all you need to do is add a link to the contact form in your frontend layout."

How? Example please.

Thumbs up

16

Re: mbContact

jupiter8 wrote:

Ok, the documentation says "Now all you need to do is add a link to the contact form in your frontend layout."

Please re-read that quote again, very slowly, part by part ;-)

1) add a link
2) to the contact form
3) in your frontend layout

Hint: http://www.mysite.com/contact/








I.e. add a link wherever you want a link to the contact page. This could be in the content of a pages on your website, in a snippet, or in a layout.

<a href="/contact/">Contact me</a>

Thumbs up