Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"  (Read 4487 times)

adminphp

  • Full Member
  • ***
  • Karma: 4
  • Posts: 150
  • you must be a great snewser .

hello i'am new in the forum i need a help : i have script snews 1.6 and i want add another column layout how i cant do that for example like this :


thanks
Logged
“Fifty years of programming language research, and we end up with C++?”

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca
Re: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"
« Reply #1 on: March 21, 2010, 08:06:31 PM »

That looks like one of Andreas Viklund's old templates... I remember using a modded version of it in 2006 or early 2007.
You should be able to use it with sNews 1.6 quite nicely. It would likely be easier to port Andreas' template for your site rather than try adding another side-bar to an existing 2-column template... all depending on your CSS skills of course.
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca
Re: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"
« Reply #2 on: March 22, 2010, 02:35:20 AM »

You will need to re-model your template using the CSS in its stylesheet file(s), so that it becomes a 3-column template.
You would need to add another division - maybe <div id="sidebar-right"> , give it the same width as your existing sidebar division, and remove that same amount of width from the main content divison where the center(); function-tag is now in.
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

jesth

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 66
Logged

adminphp

  • Full Member
  • ***
  • Karma: 4
  • Posts: 150
  • you must be a great snewser .
Re: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"
« Reply #4 on: March 23, 2010, 08:31:00 PM »

I've put code in my template, but does not work
I wish to give me a code that will put in the index file to cant edit right column


_________________________
Is there a code to add to the page <div id="sidebar" >
but for right column
_________________________

I want to know
Are magazine Snews possible way to work with them
2 columns right & left ... 


thank you again


« Last Edit: March 23, 2010, 09:10:54 PM by adminphp »
Logged
“Fifty years of programming language research, and we end up with C++?”

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca
Re: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"
« Reply #5 on: March 24, 2010, 01:12:45 AM »

I've put code in my template, but does not work
I wish to give me a code that will put in the index file to cant edit right column
_________________________
Is there a code to add to the page <div id="sidebar" >
but for right column
_________________________

thank you again

There is no sNews 'code' to give you a right sidebar division.
You need to create one if you want one.
We cannot do it for you because we do not have your index.php file and the CSS file that styles it.

This web page that Jesth gave a link to (above) provides you with a working example of the basic, bare-bones HTML template stuff that you need to make a 3 column template. You can copy the CSS code from it and make up your own HTML with it... learn what its parts do... and figure out how to modify the CSS for your existing template so it will give you the right sidebar.

Your only other option would be to bundle your index.php file, CSS file and any images your template is using... into a ZIP file... upload it to your website somewhere, and post a link to it here so one of us might be able to download and install it on one of our machines... play with a bit and maybe come up with a solution that works. There are a few sNoozers here who are pretty good with CSS.
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

nukpana

  • Hero Member
  • *****
  • Karma: 71
  • Posts: 663
Re: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"
« Reply #6 on: March 24, 2010, 12:16:46 PM »

Barebones 3 column template
Code: [Select]
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Three Columns</title>
<style type="text/css">
#wrapper {
margin: 0 auto;
}
#header {
}
#left {
float: left;
width: 20%;
}
#middle{
float: left;
width: 60%;
}
#right{
float: right;
width: 20%;
}
#footer{
clear: both;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="header">
<p>Header</p>
</div>
<div id="left">
<p>Left Column</p>
</div>
<div id="middle">
<p>Middle Column</p>
</div>
<div id="right">
<p>Right Column</p>
</div>
<div id="footer">
<p>Footer</p>
</div>
</div>
</body>
</html>
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca
Re: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"
« Reply #7 on: March 25, 2010, 02:33:13 PM »

@ adminphp... a few questions:

1. Who owns the domain aljazeera-rif.com?
2. Did you just copy the source and css from that website and you are trying to modify it for your own use.... or do you already own it?
3. What language does your website need to be in?

The code that you posted is full of tables and cells and, when I view http://aljazeera-rif.com/ in Firefox, it has all sorts of alignment problems. It displays better in IE7.

If I was building a website template from scratch, I would not 'copy' somebody else's template already being used as it is copyrighted to that person... and I would definitely stay away from tables and cells because straight CSS is much easier to work with.
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

adminphp

  • Full Member
  • ***
  • Karma: 4
  • Posts: 150
  • you must be a great snewser .
Re: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"
« Reply #8 on: March 25, 2010, 08:05:43 PM »


If I was building a website template from scratch, I would not 'copy' somebody else's template already being used as it is copyrighted to that person... and I would definitely stay away from tables and cells because straight CSS is much easier to work with.


It is my site and I did not copy or something else

I think you can help me

How do I want to explain to you that my

Thank you very much and I also thank the members of this forum and I hope that I dissect this problem
 mr. keyrocks i think you can help me so please explain me how i can do it

« Last Edit: March 25, 2010, 08:07:24 PM by adminphp »
Logged
“Fifty years of programming language research, and we end up with C++?”

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca
Re: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"
« Reply #9 on: March 25, 2010, 08:18:11 PM »

mr. keyrocks i think you can help me so please explain me how i can do it.

Well I do not have patience to work with tables and cells... I stopped doing that four years ago.  ;D
I also have no idea how to deal with text that reads right-to-left... English is my only language.

I would do a new template with CSS controlled divisions only - no tables and cells.
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

adminphp

  • Full Member
  • ***
  • Karma: 4
  • Posts: 150
  • you must be a great snewser .
Re: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"
« Reply #10 on: March 25, 2010, 10:27:50 PM »

mr. keyrocks i think you can help me so please explain me how i can do it.
@ adminphp... a few questions:

1. Who owns the domain aljazeera-rif.com?
2. Did you just copy the source and css from that website and you are trying to modify it for your own use.... or do you already own it?
3. What language does your website need to be in?




First, thank you for the answer ... There are many sites that used property right column & left


In terms of you said Is this your site that you've copied the source

I tell you that there is a big difference between the source code of the page
And  Contents index.php

Such codes do not appear in source page
like this:


<?php categories(); ?>

<?php center(); ?>

<?php extra(); ?>
« Last Edit: March 25, 2010, 11:53:35 PM by adminphp »
Logged
“Fifty years of programming language research, and we end up with C++?”

adminphp

  • Full Member
  • ***
  • Karma: 4
  • Posts: 150
  • you must be a great snewser .
Re: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"
« Reply #11 on: March 26, 2010, 12:07:13 AM »

________Just an idea________

Can I do I create a table on the right in index.php and I manage the column from other  page Not Home

Can I to link between the database "mysql" and another page I can add to it codes HTML
The codes will appear in the index.php "home"

____I am sorry for the inconvenience____

Thank you again
« Last Edit: March 26, 2010, 12:09:17 AM by adminphp »
Logged
“Fifty years of programming language research, and we end up with C++?”

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca
Re: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"
« Reply #12 on: March 26, 2010, 01:46:24 PM »

Your existing domain template at Al Jazeera-Rif.COM has some serious markup problems. These should be corrected before you start converting it to run with sNews 1.6. Judging from the high number of errors returned... you have some serious work to do if you want to work with what you have.

When I tested your current home page on the W3C Markup Validator page, it returns 446 errors and 2 warnings.

So my friendly advice is... if you want to work with what you already have... you need to work on fixing all those errors first.

Question - what are you using to write your HTML code?
« Last Edit: March 26, 2010, 01:48:07 PM by Keyrocks »
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

adminphp

  • Full Member
  • ***
  • Karma: 4
  • Posts: 150
  • you must be a great snewser .
Re: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"
« Reply #13 on: March 26, 2010, 02:29:09 PM »

Your existing domain template at Al Jazeera-Rif.COM has some serious markup problems. These should be corrected before you start converting it to run with sNews 1.6. Judging from the high number of errors returned... you have some serious work to do if you want to work with what you have.

When I tested your current home page on the W3C Markup Validator page, it returns 446 errors and 2 warnings.

So my friendly advice is... if you want to work with what you already have... you need to work on fixing all those errors first.

Question - what are you using to write your HTML code?


Question - what are you using to write your HTML code?

  ------- Answer : Sometimes I use the microsoft office front page 2003
and In some cases, using other dreamweaver cs4

I have checked the link you gave me

I want to tell you that these mistakes are not the reason to sabotage Page but

the problem is that I do not insert this codes in index file (template) :

<div id="content">
<div id="container">
<div id="bottom">


This is what makes it to sabotage in firefox & IE 8...

That is the  codes that control the External borders
« Last Edit: March 26, 2010, 02:35:51 PM by adminphp »
Logged
“Fifty years of programming language research, and we end up with C++?”

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • “I'm a self-made man and worships my creator.”
    • p-ahlqvist.com
Re: i want to create 2 column layouts -right & left '' PLEASE HELP ME '"
« Reply #14 on: March 26, 2010, 04:19:14 PM »

My highly friendly question must be: What is your level of knowledge in CSS/XHTML... ? It this something that you should pay someone to do for you, or are you willing to use this as a learning project ?

If the last applies, I'm sure you will find some help and tips here at the forum, but it seems we need to establish some ground "rules"
Logged
"It's only dead fish that goes with the flow... "
Updated
Pages: [1] 2