Recent Topics

1 Jul 27, 2006 14:00    

Hello!

I am trying to get the author's email to work in nifty_corners. For some reason, when I click the icon, it goes to the page that says "send an email", but the form doesn't display. Any help would be greatly appreciated.

2 Jul 27, 2006 14:27

Ummm make sure you have all the files transferred for msgform.php
Open up the Custom skin and note the files under "skins" and also "skins"->"nifty_corners"

I think that the msgform.php files maybe missing in some skins

3 Jul 27, 2006 15:13

Yeah, I checked that... I copied and uploaded the msgform.php into the skin folder...

4 Jul 27, 2006 21:01

campbellkid, I added that to "nifty corners" on my blog. Here's the code (from _main.php) that I used. I included the code from the "start of posts" down to where I added the "email author" stuff.
Hope it helps,
William

<?php // ------------------------------------ START OF POSTS ----------------------------------------
	if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post

	if( isset($MainList) ) while( $Item = $MainList->get_item() )
	{
		$MainList->date_if_changed();
		locale_temp_switch( $Item->locale ); // Temporarily switch to post locale
	?>
	<div class="bTitle"><h3 class="bTitle"><?php $Item->title(); ?></h3></div>
	<div class="bPost" lang="<?php $Item->lang() ?>">
		<?php
			$Item->anchor(); // Anchor for permalinks to refer to
		?>
		<div class="bSmallHead">
		<?php
			$Item->permanent_link( '#icon#' );
			echo ' ';
			$Item->issue_time();
			echo ', ', T_('Categories'), ': ';
			$Item->categories();
			echo ' &nbsp; ';
			$Item->msgform_link( $Blog->get('msgformurl') );
			echo ' &nbsp; email author  ';
		?>
		</div>

5 Jul 27, 2006 21:08

that's what i have... did you have to do anything else aside from copying the msgform.php into the skin folder?

6 Jul 27, 2006 21:14

In _main.php:

	switch( $disp )
	{
		case 'comments':
			// this includes the last comments if requested:
			require( dirname(__FILE__).'/_lastcomments.php' );
			break;

		case 'arcdir':
			// this includes the archive directory if requested
			require( dirname(__FILE__).'/_arcdir.php');
			break;

		case 'profile':
			// this includes the profile form if requested
			require( dirname(__FILE__).'/_profile.php');
			break;

		case 'subs':
			// this includes the subscription form if requested
			require( dirname(__FILE__).'/_subscriptions.php');
			break;
	}

Add the message form bit:


		case 'msgform':
			// this includes the email form if requested
			require( dirname(__FILE__).'/_msgform.php');
			break;

7 Jul 27, 2006 22:01

Oh, yeah- forgot about that 'cause it was already present in the new version. (Which is just soooo wonderful) ;)

8 Jul 27, 2006 22:03

you rock! thank you so much!!


Form is loading...