Recent Topics

1 Jun 20, 2009 05:47    

My b2evolution Version: Not Entered

I'm kind of a newb when it comes to php and i am having a problem with the custom skin i'm making for my blog http://brutalgeeks.com/blog/blog1.php

every time the page loads i get this error

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/brutal7/public_html/blog/inc/_core/_template.funcs.php on line 190

Fatal error: Call to undefined function posts_nav_link() in /home/brutal7/public_html/blog/skins/brutalgeeks/index.main.php on line 194

any help with this would be really appreciated.

also this is the code in my index.main.php file

<?php
/**
 * This is the main template. It displays the blog.
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
?>
<!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=UTF-8" />
<title>Brutal Geeks</title>
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.brutalgeeks.com/comic_rss.xml" />
 
  <link rel="stylesheet" type="text/css" href="file:///C|/Program Files/Apache Software Foundation/Apache2.2/htdocs/blog/skins/brutalgeeks/style.css" />  
    
  <?php $Plugins->trigger_event( 'SkinBeginHtmlHead' ); ?>
        <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $io_charset; ?>" />
        <title><?php
                $Blog->disp('name', 'htmlhead');
                request_title( ' - ', '', ' - ', 'htmlhead' );
        ?></title>
        <?php skin_base_tag(); /* Base URL for this skin. You need this to fix relative links! */ ?>
        <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 $app_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="file:///C|/Program Files/Apache Software Foundation/Apache2.2/htdocs/blog/skins/brutalgeeks/style.css" type="text/css" />
        <?php
                $Blog->disp( 'blog_css', 'raw');
                $Blog->disp( 'user_css', 'raw');
        ?>
     



</head>

<body background="http://www.brutalgeeks.com/images/bg.gif" bgproperties="fixed" bgcolor="#111111"
      text="#FFFFFF" 
      link="#888888"
      alink="#888888"
      vlink="#888888"
      >


<p></p>


<table width="952" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="952" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top" width="221" rowspan="2"><a href="http://www.brutalgeeks.com/index.php"><img src="http://www.brutalgeeks.com/images/logo_main.gif" border="0"/></a></td>
        <td valign="top" width="728" height="90">
        
        
        <?php /*
 include("file:///C|/Program Files/Apache Software Foundation/Apache2.2/htdocs/blog/skins/brutalgeeks/ad_top.inc");
*/?>
        
        
        </td>
      </tr>
      <tr>
        <td height="58"><table bgcolor="#000000" width="728" border="0" cellspacing="0" cellpadding="0">
  <tr valign="middle">
    <td width="96"><a href="http://www.brutalgeeks.com/comic_rss.xml"><img src="http://www.brutalgeeks.com/images/feedbar_comic.gif" border="0"/></a></td>
    <td width="115"><a href="http://brutalgeeks.mypodcast.com/rss.xml"><img src="http://www.brutalgeeks.com/images/feedbar_podcast.gif" border="0"/></a></td>
    <td width="102"><a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=303978216"><img src="http://www.brutalgeeks.com/images/feedbar_itunes.gif" border="0"/></a></td>
    <td width="98"><a href="mailto:brutalgeeks@gmail.com"><img src="http://www.brutalgeeks.com/images/feedbar_email.gif" border="0"/></a></td>
    <td width="97"><a href="http://www.twitter.com/brutalgeeks/" target="_blank"><img src="http://www.brutalgeeks.com/images/feedbar_twitter.gif" border="0"/></a></td>
    <td width="89"><a href="http://www.vimeo.com/user1865624/videos" target="_blank"><img src="http://www.brutalgeeks.com/images/feedbar_vimeo.gif" border="0"/></a></td>
    <td width="72"><a href="http://digg.com/submit/" target="_blank"><img src="http://www.brutalgeeks.com/images/feedbar_digg.gif" border="0"/></a></td>
    <td width="59"><a href="http://www.stumbleupon.com/help/How_do_I_submit_a_site_to_StumbleUpon/" target="_blank"><img src="http://www.brutalgeeks.com/images/feedbar_stumble.gif" border="0"/></a></td>
  </tr>
</table>
</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table id="border_black" width="952" border="1" cellspacing="0" cellpadding="0">
  <tr>
    <td><table bgcolor="#000000" width="952" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="65"><a href="http://www.brutalgeeks.com/index.php"><img src="http://www.brutalgeeks.com/images/nav_comic.gif" border="0"/></a></td>
    <td width="55"><a href="http://www.brutalgeeks.blogspot.com"><img src="http://www.brutalgeeks.com/images/nav_blog.gif" border="0"/></a></td>
    <td width="69"><a href="http://www.brutalgeeks.com/videos.php"><img src="http://www.brutalgeeks.com/images/nav_videos.gif" border="0"/></a></td>
    <td width="78"><a href="http://www.brutalgeeks.mypodcast.com" target="_blank"><img src="http://www.brutalgeeks.com/images/nav_podcast.gif" border="0"/></a></td>
    <td width="67"><a href="http://www.brutalgeeks.proboards.com" target="_blank"><img src="http://www.brutalgeeks.com/images/nav_forum.gif" border="0"/></a></td>
    <td width="83"><a href="http://www.brutalgeeks.com/about.php"><img src="http://www.brutalgeeks.com/images/nav_about_us.gif" border="0"/></a></td>
    <td width="72"><a href="http://www.brutalgeeks.com/link.php"><img src="http://www.brutalgeeks.com/images/nav_link_us.gif" border="0"/></a></td>
    <td background="http://www.brutalgeeks.com/images/nav_bg.gif" width="463">&nbsp;</td>
  </tr>
</table></td>
  </tr>
</table>
</td>
  </tr>
  <tr>
    <td height="6" bgcolor="#1d1d1d"><img src="http://www.brutalgeeks.com/images/spacer.gif" border="0"/></td>
  </tr>
  <tr>
    <td bgcolor="#2d2d2d"><table width="952" border="0" cellspacing="14" cellpadding="0">
  <tr>
    <td valign="top" width="750">
    
    
    <!-- =================================== START OF MAIN AREA =================================== -->

<?php
        // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
        if( empty( $preview ) ) $Messages->disp( );
        // --------------------------------- END OF MESSAGES ---------------------------------
?>

<?php
        // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
        request_title( '<h2>', '</h2>' );
        // ------------------------------ END OF REQUEST TITLE -----------------------------
?>

<?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();
        ?>
        <div class="bPost bPost<?php $Item->status( 'raw' ) ?>" lang="<?php $Item->lang() ?>">
                <?php
                        locale_temp_switch( $Item->locale ); // Temporarily switch to post locale
                        $Item->anchor(); // Anchor for permalinks to refer to
                ?>
                <div class="bSmallHead">
                <?php
                        $Item->permanent_link( '#icon#' );
                        echo ' ';
                        $Item->issue_time();
                        echo ', by ';
                        $Item->author();
                        $Item->msgform_link( $Blog->get('msgformurl') );
                        echo ', ';
                        $Item->wordcount();
                        echo ' ', T_('words');
                        echo ', ';
                        $Item->views();
                        echo '   ';
                        locale_flag( $Item->locale, 'h10px' );
                        echo '<br /> ', T_('Categories'), ': ';
                        $Item->categories();
                ?>
                </div>
                <h3 class="bTitle"><?php $Item->title(); ?></h3>
                <div class="bText">
                        <?php $Item->content(); ?>
                        <?php link_pages() ?>
                </div>
                <div class="bSmallPrint">
                        <?php $Item->permanent_link( '#', '#', 'permalink_right' ); ?>

                        <?php $Item->feedback_link( 'comments' ) // Link to comments ?>
                        <?php $Item->feedback_link( 'trackbacks', ' &bull; ' ) // Link to trackbacks ?>
                        <?php $Item->feedback_link( 'pingbacks', ' &bull; ' ) // Link to trackbacks ?>
                        <?php $Item->edit_link( ' &bull; ' ) // Link to backoffice for editing ?>

                        <?php $Item->trackback_rdf() // trackback autodiscovery information ?>
                </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( dirname(__FILE__).'/_feedback.php' );
                        // ---------------- END OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. ----------------

                        locale_restore_previous();      // Restore previous locale (Blog locale)
                ?>
        </div>
        <?php
        } // ---------------------------------- END OF POSTS ------------------------------------
        ?>

        <p class="center"><strong>
                <?php posts_nav_link(); ?>
                <?php
                         previous_post( '<p class="center">%</p>' );
                         next_post( '<p class="center">%</p>' );
                ?>
 </strong></p>

<?php
        // ---------------- START OF INCLUDES FOR LAST COMMENTS, ETC. ----------------
        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 'msgform':
                        // this includes the email form if requested
                        require( dirname(__FILE__).'/_msgform.php');
                        break;

                case 'subs':
                        // this includes the subscription form if requested
                        require( dirname(__FILE__).'/_subscriptions.php');
                        break;
        }
        // ------------------- END OF INCLUDES FOR LAST COMMENTS, ETC. -------------------
?>

    
   
                 
    
    
    </td>
    <td valign="top" width="160">
    
    
    <?php /*
 include("file:///C|/Program Files/Apache Software Foundation/Apache2.2/htdocs/blog/skins/brutalgeeks/ad_right.inc");
*/?>
    
    
    </td>
  </tr>
</table>
</td>
  </tr>
  <tr>
    <td height="6" bgcolor="#1d1d1d"><img src="http://www.brutalgeeks.com/images/spacer.gif" border="0"/></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#000000"><div align="center"><span class="style2">© Copyright 2009 Brutal Geeks</span></div></td>
  </tr>
</table>
<br />



</body>
</html>

3 Jun 20, 2009 09:19

i replaced the "posts_nav_link()" with

// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links( array(
        'block_start' => '<table class="prevnext_post"><tr>',
        'prev_start'  => '<td>',
        'prev_end'    => '</td>',
        'next_start'  => '<td class="right">',
        'next_end'    => '</td>',
        'block_end'   => '</tr></table>',
    ) );
// ------------------------- END OF PREV/NEXT POST LINKS ------------------------- 


only now instead of getting this for an error

Fatal error: Call to undefined function posts_nav_link() in /home/brutal7/public_html/blog/skins/brutalgeeks/index.main.php on line 194

i get this for an error

Fatal error: Call to undefined function previous_post() in /home/brutal7/public_html/blog/skins/brutalgeeks/index.main.php on line 206

4 Jun 20, 2009 15:32

Hi Raz,
If I was you I'd start with one of the default install skins that's close enough to your desired end results and then just add the bits you want ;)

Also, you may wish to avoid hard linking to files on your pc as these have a habit of going tits up once you upload

¥

5 Jun 20, 2009 18:11

thanks i will give that a try


Form is loading...