• Resolved aboehm

    (@aboehm)


    Hello again,
    now i´m stuck on editing functions.php
    I can´t find the contend you show on your tutorial.

    My functions.php looks like this(I only took the part which i thought might be important):

    if (function_exists('register_sidebars')) {
    	register_sidebars(3, array(
    		'before_widget' => '<!--- BEGIN Widget --->',
    		'before_title' => '<!--- BEGIN WidgetTitle --->',
    		'after_title' => '<!--- END WidgetTitle --->',
    		'after_widget' => '<!--- END Widget --->'
    	));

    When I edit it the way you mention, my whole site will show an error.

    Is there a way to get the full page widget with my theme?

    Sorry, but I´m a absolute noob, it is the first WP page I install.

    Thank you in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author nick50119

    (@nick50119)

    Depending on the theme, it may or may not include a full page sidebar. The default Twenty-Ten theme for example has multiple sidebars, some of which cover the full width of the page. If it does not exist, it will have to be created.

    Try adding the following. If it does not work, post the name of the theme you are using (if it is free) and I will take a look.

    if (function_exists('register_sidebars')) {
    	register_sidebars(3, array(
                    'name' => 'Original',
    		'before_widget' => '<!--- BEGIN Widget --->',
    		'before_title' => '<!--- BEGIN WidgetTitle --->',
    		'after_title' => '<!--- END WidgetTitle --->',
    		'after_widget' => '<!--- END Widget --->'
    	));
    	register_sidebars(array(
                    'name' => 'Full Page',
    		'before_widget' => '<!--- BEGIN Widget --->',
    		'before_title' => '<!--- BEGIN WidgetTitle --->',
    		'after_title' => '<!--- END WidgetTitle --->',
    		'after_widget' => '<!--- END Widget --->'
    	));

    Thread Starter aboehm

    (@aboehm)

    Wow, now i can see a new Sidebar in my Widget section.
    But again im stuck on the next step, there is no code like this in page.php:

    <?php the_content(); ?>

    Here is my page.php

    <?php get_header(); ?>
    <div class="contentLayout">
    <div class="sidebar1">
    <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
    </div>
    <div class="content">
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="Post">
        <div class="Post-body">
    <div class="Post-inner article">
    <h2 class="PostHeaderIcon-wrapper">
      <img src="<?php bloginfo('template_url'); ?>/images/PostHeaderIcon.png" width="32" height="32" alt="PostHeaderIcon" />
    <span class="PostHeader"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
    <?php the_title(); ?>
    </a></span>
    </h2>
    <?php ob_start(); ?>
    <?php $icons = array(); ?>
    <?php if (!is_page()) : ?>
    <?php ob_start(); ?>
    <?php the_time(__('F jS, Y', 'kubrick')) ?>
    <?php $icons[] = ob_get_clean(); ?>
    <?php endif; ?>
    <?php if (!is_page()) : ?>
    <?php ob_start(); ?>
    <img src="<?php bloginfo('template_url'); ?>/images/PostAuthorIcon.png" width="14" height="14" alt="PostAuthorIcon" />
    <?php _e('Author', 'kubrick'); ?>: <a href="#" title="<?php _e('Author', 'kubrick'); ?>"><?php the_author() ?></a>
    <?php $icons[] = ob_get_clean(); ?>
    <?php endif; ?>
    <?php if (0 != count($icons)): ?>
    <div class="PostHeaderIcons metadata-icons">
    <?php echo implode(' | ', $icons); ?>
    
    </div>
    <?php endif; ?>
    <?php $metadataContent = ob_get_clean(); ?>
    <?php if (trim($metadataContent) != ''): ?>
    <div class="PostMetadataHeader">
    <?php echo $metadataContent; ?>
    
    </div>
    <?php endif; ?>
    <div class="PostContent">
    <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
    
    </div>
    <div class="cleared"></div>
    <?php $icons = array(); ?>
    <?php if (!is_page()) : ?>
    <?php ob_start(); ?>
    <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
    <?php $icons[] = ob_get_clean(); ?>
    <?php endif; ?>
    <?php if (!is_page() && !is_single()) : ?><?php ob_start(); ?>
    <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
    <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
    <?php if (0 != count($icons)): ?>
    <div class="PostFooterIcons metadata-icons">
    <?php echo implode(' | ', $icons); ?>
    
    </div>
    <?php endif; ?>
    
    </div>
    
        </div>
    </div>
    
    <?php endwhile; endif; ?>
    
    </div>
    <div class="sidebar2">
    <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
    </div>
    
    </div>
    <div class="cleared"></div>
    
    <?php get_footer(); ?>

    i´m using theme baseball 2 1.0
    It is great that you can help me, but rather I would like to understand what the code is actually doing.

    Plugin Author nick50119

    (@nick50119)

    I will take a look when I get home this evening, but I am working on eliminating the need for this. To understand the code here, try googling “create wordpress 3 theme”. There are some awesome tutorials out there.

    Plugin Author nick50119

    (@nick50119)

    OK, there is a better solution now. Instead of having to worry about all of this, I have created shortcodes for each of the widgets. Just download version 1.0.5 and use the codes identified in the readme file. Just create a new page and put the shortcode in the content section.

    Thread Starter aboehm

    (@aboehm)

    Again a big thanks for this Update. It is a lot easier to place the content. Lets see how far I can go on my own!

    I read about the German translation, is it already in progress?
    Do you need any help by translating?

    Plugin Author nick50119

    (@nick50119)

    I haven’t done anything with the German translation. I contracted someone to port the old phpNuke version of BaseballNuke to WordPress. he was German and started the translation, I dont know if that part was ever completed (I am assuming not). I would love to set up the translation to whatever languages needed, but I am really not sure how to go about it. I will look into it some but would definitely need some help, so I may bug you about it at some point.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: baseballNuke] Full Page Widget’ is closed to new replies.