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
Install simple-press in single column page
Jul 5, 2010
5:50 am
A5PHALT
Guest

I uses two column wp template (one column for post, one column for side bar), how to install simple-press forum page in one collumn page (wihout side bar).Cool

Jul 5, 2010
7:05 am

SP Master
Forum Posts: 22240
Member Since:
Nov 9, 2008
Offline

Well some Wp themes come with a full width page template so that's the first thing to check for.
Failing that it is fairly easy to create a full width page template and if you visit our wiki and click on the FAQ you will find a general tutorial on how to do that. There is also a guide on the WP codex.

Yellow Swordfish
Jul 6, 2010
2:11 am
Member
Forum Posts: 103
Member Since:
May 8, 2010
Offline

1) Create a template.php file and put that in your theme dirctory.

2) You can name the file whatever you want, but including the work FORUM in the filename makes it easier to overview/index your file/folder etc. ie. my-single-collum-template-file.php

3) The "identifier" / "display name" (wich you will use to select wich template for your forum in WP backend -> pages) is the "Template Name" – wich in this download example is: Template Name: One Collum Forum Template

You can rename the Template Name: to anything you like .. just call it something that you see fit.

I cant seem to get the code displayed here, so you can download a ready to go example here and put in your theme directory: http://www.chono.dk/filebox/te…..-forum.zip

 

Remember to give the DIVs in the file (around php the content) the right ID or Class that complies with your theme … this is usually something like main, padder, or container etc .. just open up your themes index.php file or use Firebug – Firefox (http://getfirebug.com/)  to look up the main content ID or Class … lemme know if it works out ^^

Jul 6, 2010
4:01 am

SP Master
Forum Posts: 22240
Member Since:
Nov 9, 2008
Offline

What was the problem displaying code please? Were you using the 'code' toolbar button?

Yellow Swordfish
Jul 6, 2010
5:33 am
Member
Forum Posts: 103
Member Since:
May 8, 2010
Offline

Hehe i need to get me some spectacles soon .. that button is TOO small ^^

Here is code:

<?php
/*
Template Name: One Collum Forum Template
*/
?>

<?php get_header(); ?>
       
    <!-- Content Starts -->
        <div id="PUT DIV ID HERE" class="PUT CLASS HERE">
             <?php the_content(); ?>
        </div>
    <!-- Content Ends -->
        
<?php get_footer(); ?>
Jul 6, 2010
8:51 am

SP Master
Forum Posts: 22240
Member Since:
Nov 9, 2008
Offline

:)
No title?

Yellow Swordfish
Jul 6, 2010
11:04 am
A5PHALT
Guest

I follow the tutorial on :

http://wiki.simple-press.com/f…..-template/

I found  on my theme style.css :

/*

LAYOUT: One column, no sidebar

DESCRIPTION: One centered column with no sidebar

*/

.one-column #content {

    margin: 0 auto;

    width: 640px;

}

 

I changed to :

/*

LAYOUT: One column, no sidebar

DESCRIPTION: One centered column with no sidebar

*/

.one-column #content {

    margin: 0 auto;

    width: 100%;

}

 

then I  update that file. After that I edit the forum page, change the template atribut to

one column, no side bar template. Then update this page.

I did it as you can see at http://www.asphaltforums.com/forum

Thanks 4U all

Jul 6, 2010
11:24 am

SP Master
Forum Posts: 22240
Member Since:
Nov 9, 2008
Offline

excellent and you are welcome.
Glad it worked out.

Yellow Swordfish
Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: Conrad_Farlow, steve.engelking, jawaulk, irlandes1, joelrob
77 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: 10897

Posts: 79582

Moderators: Brandon C (162)

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