IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
2 Pages V   1 2 >  
Reply to this topicStart new topic

Wordpress Sitebar At Botton


Hafdis
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 12
Joined: 24-March 07
From: Iceland
Member No.: 40,580



Post #1 post Mar 25 2007, 10:15 PM
Hi

jlhaslip! i have upload all the files and get this this http://www.koddinn.com
Go to the top of the page
+Quote Post
jlhaslip
no avatar
<?php $answer = googleit( $question ) ; ?>
*******************
Group: [MODERATOR]
Posts: 4,434
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:80.50



Post #2 post Mar 25 2007, 11:06 PM
That is because the #content div needs to be placed after the #navigation div in the source of the html file (so that the float works properly).

Compare the files and you will see what I mean.
In the sample you post, the #content is before the #navigation in the Source code. My sample is a different code structure than yours, I think.
The floats are removed from the normal flow of the page and then put back into the page according to the floats and contained by their width attributes, so when the posting you have is positioned in the code first, it assumes the full page width and then the Navigation is placed below it. Reverse their positions in the source and it behaves differently. Or should. smile.gif

*edit*

Here is a simplified version of your page which might be easier to understand. The Topic contains more information explaining the set-up you need to understand.

http://www.trap17.com/forums/index.php?s=&...st&p=314404
Reason for edit: add linked reference
Go to the top of the page
+Quote Post
Hafdis
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 12
Joined: 24-March 07
From: Iceland
Member No.: 40,580



Post #3 post Mar 26 2007, 10:18 PM
HI

this is working fine, but how do i split this to the right files, header.php footer.php sidebar.php index.php

This post has been edited by Hafdis: Mar 26 2007, 10:23 PM
Go to the top of the page
+Quote Post
jlhaslip
no avatar
<?php $answer = googleit( $question ) ; ?>
*******************
Group: [MODERATOR]
Posts: 4,434
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:80.50



Post #4 post Mar 27 2007, 12:38 AM
That I don't know. I have never dealt with Wordpress and their methods. I usually write my own in php. I am familiar with how I would do it, but they are likely different in their methods.

Perhaps another member will come along and explain how to split them up into the includes that Wordpress needs.

QUOTE
i am Carpenter smile.gif

Me too...
Go to the top of the page
+Quote Post
Hafdis
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 12
Joined: 24-March 07
From: Iceland
Member No.: 40,580



Post #5 post Mar 27 2007, 04:22 PM
Yup, i have been working as Carpenter since 1980, building houses, kitchen and more. Now i am rebuilding my house, so many kids, need more rooms, smile.gif

got this !

The gallery uses the fim_photos.php template. For any theme that you use, you have to get fim_photos.php to look like the structure of that theme.
You're done with installation. Now you need to customize.

this is the fim_photos.php
CODE
<?php define('FIM', true); ?>

<?php include("../../../wp-blog-header.php"); ?>
<?php require_once("functions/fim_functions.php"); ?>

<?php get_header(); ?>

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

        <div class="entry">
            <?php echo fim_get_the_content(); ?>
        </div>    
</div>
<?php get_sidebar(); ?>

<?php get_footer(); ?>


how do i let it look like the structure of the theme i am using.?

This post has been edited by Hafdis: Mar 27 2007, 08:17 PM
Go to the top of the page
+Quote Post
Hafdis
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 12
Joined: 24-March 07
From: Iceland
Member No.: 40,580



Post #6 post Mar 27 2007, 09:13 PM
New info wink.gif

the fim_photos.php use its own default template structure. you need to tweak that default structure to match the structure of whatever WordPress theme you're going to use.

For example, fim_photos has <div id=\"content\" class=\"narrowcolumn\">. My Basic Concept theme doesn't have that.

so, dry.gif
Go to the top of the page
+Quote Post
Blessed
no avatar
Advanced Member
*******
Group: Members
Posts: 144
Joined: 22-March 07
Member No.: 40,472



Post #7 post Mar 28 2007, 08:55 AM
Can i get Wordpress for free ??
Go to the top of the page
+Quote Post
Hafdis
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 12
Joined: 24-March 07
From: Iceland
Member No.: 40,580



Post #8 post Mar 28 2007, 09:50 AM
yes its free

http://www.wordpress.org
Go to the top of the page
+Quote Post
Hafdis
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 12
Joined: 24-March 07
From: Iceland
Member No.: 40,580



Post #9 post Mar 28 2007, 07:55 PM
ok lets try again...

see here http://www.koddinn.com/myndir

i got the sidebar to the right, now i need to move it up, here is the code

CODE
<?php define('FIM', true); ?>

<?php include("../../../wp-blog-header.php"); ?>
<?php require_once("functions/fim_functions.php"); ?>

<?php get_header(); ?>

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

                    <div class="entry">
            <?php echo fim_get_the_content(); ?>
        </div>
        <div class="main-narrow">

            <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
            
                    <?php the_content(); ?>
    
            
            <?php endwhile; ?>

            <?php include (TEMPLATEPATH . '/browse.php'); ?>

            <?php else : ?>
            <div class="post">
                <h2><?php _e('404 Error: Not Found'); ?></h2>
            </div>
            <?php endif; ?>

        </div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>


This post has been edited by Hafdis: Mar 28 2007, 07:57 PM
Go to the top of the page
+Quote Post
michaelper22
no avatar
-=Hybrid Bus=-
*********
Group: Members
Posts: 742
Joined: 2-November 05
From: My hybrid bus (in NYC), a computer
Member No.: 13,709
Spam Patrol



Post #10 post Mar 28 2007, 10:58 PM
This is similar to what has to be done to get my WP Ultimate Static Front Page technique to work properly. Within the index.php template, look for the code from the beginning of the file until you see something like this:
CODE
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

Copy everything above that line, and replace this code in fim_photos.php with the copied code:
CODE
<?php define('FIM', true); ?>

<?php require_once("functions/fim_functions.php"); ?>

[b]PASTE THE COPIED CODE HERE[/b]

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

        <div class="entry">
            <?php echo fim_get_the_content(); ?>
        </div>    
</div>
<?php get_sidebar(); ?>

<?php get_footer(); ?>


Now look for the code after this:
CODE
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>


Copy everything after that, and replace this code:
CODE
<?php get_sidebar(); ?>

<?php get_footer(); ?>

With the code you just copied.

If anyone feels that there is something missing, let me know. I'm a bit tired right now, and might be a bit off.
Go to the top of the page
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts 8 bthaxor 654 12th December 2007 - 08:10 AM
Last post by: serverph
No New Posts   5 musicmaza 993 6th September 2008 - 09:43 AM
Last post by: OHFIENA
No New Posts 0 champagne 353 22nd November 2004 - 06:12 PM
Last post by: champagne
No New Posts   8 tricky77puzzle 758 5th February 2008 - 04:56 PM
Last post by: serverph
No New Posts   1 kkrizka 605 21st September 2007 - 07:21 PM
Last post by: delivi
No New Posts   0 mik 350 8th August 2006 - 04:42 PM
Last post by: mik
No New Posts 5 MusicOnly 641 9th February 2007 - 04:48 PM
Last post by: darran
No New Posts 3 mahesh2k 571 8th July 2006 - 02:29 PM
Last post by: rvalkass
No New Posts   5 shigajet 443 9th May 2005 - 09:04 AM
Last post by: shigajet
No New Posts   1 dodgerblue 721 12th May 2005 - 10:24 AM
Last post by: dodgerblue
No New Posts   7 Tyssen 646 14th May 2005 - 01:07 AM
Last post by: unfortunate
No New Posts 1 eXtreme 1,194 18th May 2005 - 05:52 PM
Last post by: dodgerblue
No New Posts   4 snlildude87 668 11th June 2005 - 12:56 AM
Last post by: snlildude87
No new