Recent Topics

1 Sep 06, 2006 09:13    

Ok I have a very tweaked multiblog.php page that displays 3 different blogs in 3 parallel columns. It was working with "Alpha" but now the ne version give me the following error.

www.xsxtreme.com/blogs/multiblogs.php

Fatal error: Call to undefined function: permalink() in /home/xsxtreme/public_html/blogs/multiblogs.php on line 219

Here is the code: I also have the file if any of you pros need to take a look at it.

Thanks for the help.
Steve

<?php

# First blog will be displayed the regular way (why bother?)
$blog = 2;		// 2 is for "News Blog" or your upgraded blog (depends on your install)

# Tell b2evolution you don't want to use evoSkins
# (evoSkins are designed to display only one blog at once + optionnaly a linkblog)
$skin = '';

# This setting retricts posts to those published, thus hiding drafts.
# You should not have to change this.
$show_statuses = array();

# Here you can set a limit before which posts will be ignored
# You can use a unix timestamp value or 'now' which will hide all posts in the past
$timestamp_min = '';

# Here you can set a limit after which posts will be ignored
# You can use a unix timestamp value or 'now' which will hide all posts in the future
$timestamp_max = 'now';

# Additionnaly, you can set other values (see URL params in the manual)...
# $order = 'ASC'; // This for example would display the blog in chronological order...

/**
 * Let b2evolution handle the query string and load the blog data:
 */
require(dirname(__FILE__).'/b2evocore/_blog_main.php');

# Now, below you'll find the magic template...
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>"/>

	<head>
		
			<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
			<title>Expedition Sports Extreme<?php		single_cat_title( ' - ', 'htmlhead' );		single_month_title( ' - ', 'htmlhead' );		single_post_title( ' - ', 'htmlhead' );		arcdir_title( ' - ', 'htmlhead' );		last_comments_title( ' - ', 'htmlhead' );		profile_title( ' - ', 'htmlhead' );	?></title>
	
			<base href="<?php skinbase(); // You're not using any skin here but this won't hurt. However it will be very helpfull to have this here when you make the switch to a skin! ?>"/>
			<meta name="description" content="<?php $Blog->disp( 'shortdesc', 'htmlattr' ); ?>"/>
			<meta name="keywords" content="<?php $Blog->disp( 'keywords', 'htmlattr' ); ?>"/>
			<meta name="generator" content="b2evolution <?php echo $b2_version ?>"/>
			<!-- Please leave this for stats -->
			<link rel="alternate" type="text/xml" title="RDF" href="<?php $Blog->disp( 'rdf_url', 'raw' ) ?>"/>
			<link rel="alternate" type="text/xml" title="RSS .92" href="<?php $Blog->disp( 'rss_url', 'raw' ) ?>"/>
			<link rel="alternate" type="text/xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>"/>
			<link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>"/>
			<link rel="pingback" href="<?php $Blog->disp( 'pingback_url', 'raw' ) ?>"/>
		
		<link rel="stylesheet" href="xsxtreme/xsxtreme.css" type="text/css"/>

<style type="text/css">

body {
	background-image: url(xsxtreme/background.jpg);
}
.style3 {font-size: 14px}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
.style4 {color: #FF0000}
.style5 {color: #FF8811}
</style>
</head>


<!-- =================================== Start Ot top bar =================================== -->
<body>
	<div class="Topbar" align="center">
		<img src="xsxtreme/Top_title.png" width="800" height="162" />
    </div>
<!-- =================================== Start Of info bar =================================== -->	
<div class="TopMenu">	 
  <div class="TopMenuPosts">
		<h3 class="sideItemTitle"><?php echo T_('Travel log Site Search') ?></h3>
<p>
		  <?php form_formstart( $Blog->dget( 'blogurl', 'raw' ), 'search', 'searchform' ) ?>
  <input type="text" name="s" size="20" value="<?php echo htmlspecialchars($s) ?>" class="s1" />
</p>
<label for="sentAND"> <br />
<input type="radio" name="sentence" value="AND" id="sentAND" <?php if( $sentence=='AND' ) echo 'checked="checked" ' ?>/>
<?php echo T_('All Words') ?></label>
				<input type="radio" name="sentence" value="OR" id="sentOR" <?php if( $sentence=='OR' ) echo 'checked="checked" ' ?>/><label for="sentOR"><?php echo T_('Some Word') ?></label>
				<p>
		      <input type="submit" name="submit" value="<?php echo T_('Search') ?>" />
		      <input type="reset" value="<?php echo T_('Reset form') ?>" />
            </form>
                </p>
	</div>
 <div class="TopMenuPosts">
		<h3><?php $Blog->disp( 'name', 'htmlbody' ) ?></h3>
		<p>
		  <?php $Blog->disp( 'longdesc', 'htmlbody' ); ?>
		  <!--?php next_post(); // activate this if you want a link to the next post in single page mode ?-->
		  <!--?php previous_post(); // activate this if you want a link to the previous post in single page mode ?-->
		</p>
  </div>
	<div class="TopMenuPosts" align="center">
		<div align="center">
		  <?php // -------------------------- CALENDAR INCLUDED HERE -----------------------------
			require( get_path('skins').'/_calendar.php');
			// -------------------------------- END OF CALENDAR ---------------------------------- ?>	
	      </div>
	</div>
	<div class="TopMenuPosts">
			<p class="center"><span class="style5">Add Expedition Sports Extreme to your Yahoo! </span></p>
			<p class="center"><a href="http://e.my.yahoo.com/config/cstore?.opt=content&amp;.sid=516593&amp;lg=us" class="style4"><img src="/blogs/img/addtomyyahoo4.gif" width="91" height="17" border="0" /></a></p>
			<p class="center style5">-----------------------------------------------</p>
			<p class="center"><a href="../index.html"><strong>Expedition Sports Extreme </strong></a><a href="../index.html"><strong>Flash </strong></a></p>
			<h3 align="center"><?php echo T_('') ?></h3>
			<?php
				// Administrative links:
				user_login_link( '<li>', '</li>' );
				user_register_link( '<li>', '</li>' );
				user_admin_link( '<li>', '</li>' );
				user_profile_link( '<li>', '</li>' );
				user_logout_link( '<li>', '</li>' );
			?>
  </div>
</div>
<!-- =================================== START OF Video Blog =================================== -->
<div class="PictureSideBar">
	<div class="cSideItem" align="center">
		<?php
			// Dirty trick until we get everything into objects:
			$saved_blog = $blog;
			$blog = 5;	// Blog B now
			$Blog_B = Blog_get_by_ID( 5 );	// Blog B
		?>
		<h3 align="center"><a href="<?php $Blog_B->disp( 'blogurl', 'raw' ) ?>"><?php echo $Blog_B->disp( 'name', 'htmlbody' ) ?></a></h3>
	</div>				
	<div class="cSideItem" align="center">		
		<?php
			// You can restrict to specific categories by listing them in the two params below: '', array()
			// '', array(9,15) will restrict to cats 9 and 15
			// '9,15', array() will restrict to cats 9,15 and all their subcats
			$BlogBList = & new ItemList( $blog,	 $show_statuses, '', $m, $w, '', array(), $author, $order, $orderby, $posts, '', '', '', '', '', '', '', '3', 'posts', $timestamp_min, $timestamp_max );
			while( $Item = $BlogBList->get_item() )
			{
		?>
	</div>
	<div class="MultiPost" lang="<?php $Item->lang() ?>">
		<div class="PostInfo">
			<p>
			<?php $Item->issue_date(); ?>
			</p>
			<p><a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><img src="img/icon_minipost.gif" alt="<?php echo T_('Permalink') ?>" width="12" height="9" class="middle" /></a>
			<?php $Item->title(); ?>
			</p>
		</div>
		<div class="comments" align="center">
			<?php $Item->feedback_link( 'comments', '', ' &bull; ' ) // Link to comments ?>
			<?php $Item->trackback_rdf() // trackback autodiscovery information ?>
			<?php $Item->feedback_link( 'trackbacks', '', ' &bull; ' ) // Link to trackbacks ?>
			<?php $Item->feedback_link( 'pingbacks', '', ' &bull; ' ) // Link to trackbacks ?>
			<a href="<?php $Item->permalink() ?>" title="Permanent link to full entry"><?php echo T_('Permalink') ?></a>
		</div>						
		<div class="bText">
		  <?php $Item->content( 1, false ); ?>
		  <?php link_pages() ?>
		</div>				  
	</div>
      <div class="cSideItem" align="center">
	  <?php	} 
		// Restore after dirty trick: 
		$blog = $saved_blog;
		?>
      </div>
	  <p class="center"><strong><?php posts_nav_link(); ?></strong></p>
	  </div>
	  </div>				
<!-- =================================== Start of News Blog Center colume =================================== -->
<div class="MultiPosts" align="center">
	<div class="NewsBlogCategory">
	<a href="<?php $Blog->disp( 'blogurl', 'raw' ) ?>" class="style3"><?php echo $Blog->disp( 'name', 'htmlbody' ) ?></a>
	<?php
		single_cat_title();
		single_month_title();
		single_post_title();
		arcdir_title();
		last_comments_title();
		profile_title();
	?>
	</div>
	<span class="date">
		<?php
			if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post
			if( isset($MainList) ) while( $Item = $MainList->get_item() )
			{
		?>
	</span>
	<div class="MultiPost" lang="<?php $Item->lang() ?>">
		<div class="PostInfo">
			<?php $Item->issue_date();?>
		</p>
		<p><a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><img src="img/icon_minipost.gif" alt="<?php echo T_('Permalink') ?>" width="8" height="10" class="middle" /></a>
			<?php $Item->title(); ?>
		</p>
		</div>
	<div class="comments">
		<?php $Item->feedback_link( 'comments', '', ' &bull; ' ) // Link to comments ?>
		<?php $Item->trackback_rdf() // trackback autodiscovery information ?>
		<?php $Item->feedback_link( 'trackbacks', '', ' &bull; ' ) // Link to trackbacks ?>
		<?php $Item->feedback_link( 'pingbacks', '', ' &bull; ' ) // Link to trackbacks ?>
		<a href="<?php $Item->permalink() ?>" title="Permanent link to full entry"><?php echo T_('Permalink') ?></a></p>
	</div>
	<div class="bText">
		<span class="style2">
		<?php $Item->content(); ?>
		</span>
    <?php link_pages() ?></div>
	<?php // ---------------- START OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. ----------------
		$disp_comments = 1;					// Display the comments if requested
		$disp_comment_form = 1;			// Display the comments form if comments requested
		$disp_trackbacks = 1;				// Display the trackbacks if requested

		$disp_trackback_url = 1;		// Display the trackbal URL if trackbacks requested
		$disp_pingbacks = 1;				// Display the pingbacks if requested
		require( get_path('skins').'/_feedback.php');
		// ------------------- END OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. ------------------- 
		?>
	</div>
	<?php } // ---------------------------------- END OF POSTS ------------------------------------ ?>
	<p class="center"><strong><?php posts_nav_link(); ?></strong></p>
	<?php // ---------------- START OF INCLUDES FOR LAST COMMENTS, STATS ETC. ----------------
		switch( $disp )
		{
			case 'comments':
				// this includes the last comments if requested:
				require( get_path('skins').'/_lastcomments.php' );
				break;
			case 'arcdir':
				// this includes the archive directory if requested
				require( get_path('skins').'/_arcdir.php');
				break;
			case 'profile':
				// this includes the profile form if requested
				require( get_path('skins').'/_profile.php');
				break;
		}
	?>
</div>
<!-- =================================== Start Of Picture Blog right colume =================================== -->
<div class="PictureSideBar">
	<div class="cSideItem" align="center">
   		<?php
			// Dirty trick until we get everything into objects:
			$saved_blog = $blog;
			$blog = 6;		// Linkblog now
			$Blog_roll = Blog_get_by_ID( 6 ); // Blog roll
		?>
		<h3 align="center"><a href="<?php $Blog_roll->disp( 'blogurl', 'raw' ) ?>"><?php echo $Blog_roll->disp( 'name', 'htmlbody' ) ?></a></h3>
	</div>					
	<div class="cSideItem" align="center">
		<?php
			// You can restrict to specific categories by listing them in the two params below: '', array()
			// '', array(9,15) will restrict to cats 9 and 15
			// '9,15', array() will restrict to cats 9,15 and all their subcats
			$LinkblogList = & new ItemList( $blog,	$show_statuses, '', $m, $w, '', array(), $author, $order, $orderby, $posts, '', '', '', '', '', '', '', '3', 'posts', $timestamp_min, $timestamp_max );
			while( $Item = $LinkblogList->get_item() )
			{
		?>
	</div>
	<div class="MultiPost" align="left">
		<div class="PostInfo"><?php $Item->issue_date(); ?>
		<p><a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><img src="img/icon_minipost.gif" alt="<?php echo T_('Permalink') ?>" width="12" height="9" class="middle" /></a>
		<?php $Item->title(); ?>
		</p>
		</div>
		<div class="comments">
			<?php $Item->feedback_link( 'comments', '', ' &bull; ' ) // Link to comments ?>
			<?php $Item->trackback_rdf() // trackback autodiscovery information ?>
			<?php $Item->feedback_link( 'trackbacks', '', ' &bull; ' ) // Link to trackbacks ?><?php $Item->feedback_link( 'pingbacks', '', ' &bull; ' ) // Link to trackbacks ?><a href="<?php $Item->permalink() ?>" title="Permanent link to full entry"><?php echo T_('Permalink') ?></a>
		</div>												
		<div class="bText">
			<?php $Item->content( 1, false ); ?>
			<?php link_pages() ?>
		</div>					
	</div>
	<div class="cSideItem" align="center">
		<?php }
		// Restore after dirty trick:
		$blog = $saved_blog;
		?>		  
	</div>
	<p class="center"><strong><?php posts_nav_link(); ?></strong></p>
</div>
</div>
	</body>
</html>


Form is loading...