Recent Topics

1 Oct 13, 2008 22:12    

My b2evolution Version: 2.x

I've recently moved a blog across from another site, and updated from 2.4.1 to 2.4.2. I've added a contact form link as a widget, but when I click on the link, the only thing that shows up is the 'send an email' message: but no form to fill in and no buttons to send. I'm sure my skin matches up with the new code (I'm using a very old 1.x skin), but I can't seem to figure out what's wrong... check it out here:

http://puppetsinmelbourne.com.au/bumpinproject/?disp=msgform&recipient_id=1&redirect_to=http%3A%2F%2Fpuppetsinmelbourne.com.au%2Fbumpinproject%2F%3Fblog%3D17

Can anyone help me?

Thanks,

Na

2 Oct 13, 2008 22:21

Have you included the file msgform.disp.php ?

BTW, I deleted your duplicate post on this topic.

3 Oct 13, 2008 22:28

Yes I've got the msgform file, in both /skins and in skins/myskin.

Thanks for deleting the duplicate - my connection kicked out just as I was posting.

4 Oct 13, 2008 22:34

Ok...
Have you included masgform.disp in the index.main.php file for that skin...
eg:

<?php
		// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
		skin_include( '$disp$', array(
				'disp_posts'  => '',		// We already handled this case above
				'disp_single' => '',		// We already handled this case above
				'disp_page'   => '',		// We already handled this case above
				'disp_msgform'			=> '_msgform.disp.php',
				'disp_plugins'			=> '_plugins.disp.php',
			) );
		// Note: you can customize any of the sub templates included here by
		// copying the matching php file into your skin directory.
		// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
	?>

5 Oct 14, 2008 09:34

Ah.... no! I was thinking that I needed something like that but I couldn't figure it out.

Thanks John!

6 Oct 14, 2008 09:51

Ok, I've added that in and am still getting nothing.

9 Oct 15, 2008 08:04

Still getting no form using that link.

10 Oct 15, 2008 08:34

na3 wrote:

Still getting no form using that link.

shoot.. can you pass an exact link of your blog contact form that is problematic ..

and btw are you sure that you ve added 'disp_msgform' => '_msgform.disp.php',
and included _msgform.disp.php in your /yourskin folder

11 Oct 15, 2008 11:03

I'm using a contact form menu link widget, which is what is creating the url - I simply copied and pasted it (see first post) above.

http://puppetsinmelbourne.com.au/bumpinproject/?disp=msgform&recipient_id=1&redirect_to=http%3A%2F%2Fpuppetsinmelbourne.com.au%2Fbumpinproject%2F%3Fblog%3D17

As mentioned above, yes, the skin now has the disp_msgform code, and msgform.disp is in both /skins and in skins/myskin.

Funnily enough, the Announcements page is on a different skin, doesn't have the disp_msgform code in the skin, but that works fine. So I just copied over the second skin and now it works... have no idea what the difference was.

Anyway, thanks, seems I've solved it...

[/code][/quote]

12 Nov 29, 2008 08:29

I just ran into this problem w/ a new skin I wrote for b2evo 2.4.5. You need these lines to display the contact form

	<?php
				// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
				//skin_include( '$disp$', array() );
				skin_include( '$disp$', array(
					'disp_posts'  => '',            // We already handled this case above
					'disp_single' => '',            // We already handled this case above
					'disp_page'   => '',            // We already handled this case above
                       ) );
				// Note: you can customize any of the sub templates included here by
				// copying the matching php file into your skin directory.
				// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
			?>


Form is loading...