A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
page template doesn't match tutorial
Jun 4, 2009
6:47 pm
Member
Forum Posts: 7
Member Since:
Jun 5, 2009
Offline

please delete… need to repost

Jun 4, 2009
7:09 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

unfortunately, the tutorial cant cover every possible wp theme, but is meant as a guideline as the general process is the same…

the following seems to work…

find the first occurance of:

<div class=”forum”>

and change it to

<div class=”post forum”>

the find the second one and change it to

<div class=”postentry”>

and then add in to your styles.css file (anywhere)

.forum {width: 730px;}

try that and let me know how it goes (works in firebug)…

btw, dont copy and paste the above code without fixing the double quotes as they get messed up…

Jun 4, 2009
7:10 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

well, you deleted your page template, but my fixes are still the suggestion…

Jun 4, 2009
8:30 pm
Member
Forum Posts: 7
Member Since:
Jun 5, 2009
Offline

Hi Mr Papa,

Sorry about the delete, I made some errors in my post and wanted to correct first. I tried what you replied with and am still having some problems.

My forum.php file looks like this:

<?php
/*
Template Name: forum.php
*/
?>

<?php get_header(); ?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post forum”>
        <h1 id=”post-<?php the_ID(); ?>”><?php the_title(); ?></h1>
        <div class=”postentry”>
        <?php the_content(”<p>__('Read the rest of this page &raquo;')</p>”); ?>
        <?php wp_link_pages(); ?>
       
        <?php edit_post_link(__('Edit'), '<p>', '</p>'); ?>
        </div>
</div>

   
    <?php endwhile; endif; ?>

<?php get_footer(); ?>

The original page.php looked like this:

<?php get_header(); ?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post”>
        <h1 id=”post-<?php the_ID(); ?>”><?php the_title(); ?></h1>
        <div class=”postentry”>
        <?php the_content(”<p>__('Read the rest of this page &raquo;')</p>”); ?>
        <?php wp_link_pages(); ?>
       
        <?php edit_post_link(__('Edit'), '<p>', '</p>'); ?>
        </div>
</div>

   
    <?php endwhile; endif; ?>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

If you look here: http://simfonik.com/forum
I'm trying to get rid of that left side nav “recent additions” and have the forum take up the entire 1000px width. I was able to successfully remove the right side nav, since it was a proper sidebar. Unfortunately, this theme has that left side nav as part of the header.
Any help is appreciated.
Thanks!
Jun 4, 2009
10:09 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

well now…  you didnt say both sidebars Wink

thats going to be more complex since the first column is likely declared in the header.php file…

I would, edit the header.php file, find where the right sidebar is displayed (id of column1) and add a check for the forum page something like:

if (is_page('forum'))
{
    # remove column 1 stuff
    # add a new id of forum to the id of content
} else {
    # put the current stuff here
}

so when on the forum page, you redefine to not use column1 and not use column (480px width)…  you will need to define the forum id styling so it uses the full width…

Hard to be too specific when I dont see the header.php file…   If you would rather PM me a temp WP admin account, I could make the changes for you if you get stuck…  or paste the header.php file here…

Jun 5, 2009
5:09 pm
Member
Forum Posts: 7
Member Since:
Jun 5, 2009
Offline

First let me say that you guys are awesome for providing this level of support.

I'm going to give it a try, but just in case here's my header.php code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<meta name="verify-v1" content="uBseZuRSsCu9DJUvIqNFDXBw7dmz8EDvrySCCJJ2ebw=" />

<title><?php bloginfo('name'); ?></title>

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<style type="text/css" media="screen">

    @import url( <?php bloginfo('stylesheet_url'); ?> );

</style>

<link rel="alternate" type="application/rss+xml" title="simfonik" href="http://www.simfonik.com/?feed=rss2" />

<?php wp_head(); ?>

   

<body>

<div id="headerwrap">

    <div id="headercolumn1"><h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1></div>

    <div id="headercolumn2"></div>

    <div id="headercolumn3"><?php include (TEMPLATEPATH . '/searchform.php'); ?> </div>

</div>

<div id="wrapper">

    <div id="column1">

    <h3>Recent Additions</h3>

    <ul><?php wp_get_archives('type=postbypost&limit=20');�?></ul>

<div>

    </div>

    </div>

    <div id="content">

Jun 5, 2009
11:05 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

first, to remove the sidebar, try deleting these lines:

    <div id=”column1″>

    <h3>Recent Additions</h3>

    <ul><?php wp_get_archives('type=postbypost&limit=20');�?></ul>

<div>

    </div>

    </div>

and then add the forum class such that

    <div id=”content” class="forum">

and define the styling as I said before…  might need some additional tweaking since I did that yesterday Laugh

Jun 6, 2009
9:32 am
Member
Forum Posts: 7
Member Since:
Jun 5, 2009
Offline

I made the changes and my header looked like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<meta name="verify-v1" content="uBseZuRSsCu9DJUvIqNFDXBw7dmz8EDvrySCCJJ2ebw=" />

<title><?php bloginfo('name'); ?></title>

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<style type="text/css" media="screen">

    @import url( <?php bloginfo('stylesheet_url'); ?> );

</style>

<link rel="alternate" type="application/rss+xml" title="simfonik" href="http://www.simfonik.com/?feed=rss2" />

<?php wp_head(); ?>

   

<body>

<div id="headerwrap">

    <div id="headercolumn1"><h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1></div>

    <div id="headercolumn2"></div>

    <div id="headercolumn3"><?php include (TEMPLATEPATH . '/searchform.php'); ?> </div>

</div>

<div id="wrapper">

   

    <div id="content" class="forum">

That removed the left sidebar, but did so across the site (not just on /forum). I'm not sure how to make the removal conditional on the page being /forum

Jun 6, 2009
12:11 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

thats why I said use the conditional page check…

<?php
if (is_page('forum'))
{
?>
<div id=”content” class=”forum”></div>
<?php
} else {
?>
    <div id=”column1″>
    <h3>Recent Additions</h3>
    <ul><?php wp_get_archives('type=postbypost&limit=20');�?></ul>
<div>
    </div>
    </div>
<div id=”content”></div>
<?php
}
?>

or something similar… cant really test it out here…  you still need to define .forum in your styles.css to be full width too…

as usual, beware of the single and double quotes if you copy the above…

Jun 6, 2009
2:52 pm
Member
Forum Posts: 7
Member Since:
Jun 5, 2009
Offline

Getting closer now! :)

<div id="column1"> is now gone when on /forum but still there everywhere else… perfect!

The forum is still nested within <div id="content">. How can I make it so it isn't, or at least make it so that <div id="content">, for /forum, is the same width as <div id="wrapper">? The width of <div id="content"> is 480px, which is what I want everywhere except /forum, so I end up with those vertical dashes (from line 289 of style sheet) cutting through the background on /forum right now.

Hope that makes sense. Thanks again for your help.

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: Sander58, SPQC, MacBravO
67 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 502

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2626

Members: 7363

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10895

Posts: 79576

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22236), Mr Papa (23688)