Support Forums

Who knows how to make a right column??

This is a discussion on Who knows how to make a right column?? within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hello, I am using the 68 green template and just want a right column to put display ads in. I ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 09-05-2007, 01:00 PM   #1
Member
 
 
Join Date: Jun 2007
Posts: 66
Rep Power: 17
dphibb is on a distinguished road
Default Who knows how to make a right column??

Hello, I am using the 68 green template and just want a right column to put display ads in. I think I need a CSS code, and have played around a little, but I can't get anything to work. Anyone know what I can do?
dphibb is offline   Reply With Quote
Old 09-05-2007, 01:41 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 133
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Hi,

It should be pretty easy. What you can do is open the layout template file and locate this section:
Code:
<td valign="top" class="padding">
                <!-- // Content // -->
                {* This includes the content portion *}
                {include file=$body}
                <!-- // End Content // -->
            </td>
        </tr>
  </table>
Then replace that with:
Code:
<td valign="top" class="padding">
                <!-- // Content // -->
                {* This includes the content portion *}
                {include file=$body}
                <!-- // End Content // -->
            </td>
            <!-- // RIGHT SIDE // -->
            <td> Right side text or whatever can go here.
            </td>
            <!-- // END RIGHT SIDE // -->
        </tr>
  </table>
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-05-2007, 03:51 PM   #3
Member
 
 
Join Date: Jun 2007
Posts: 66
Rep Power: 17
dphibb is on a distinguished road
Default

Oh my word...that was easy!! I had such a complicated thing going and it wasn't going where I wanted it anyway! Thanks so much!!
dphibb is offline   Reply With Quote
Old 09-05-2007, 04:08 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 133
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Glad to help!
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-06-2007, 11:03 AM   #5
Member
 
Join Date: Mar 2007
Posts: 51
Rep Power: 18
goose is on a distinguished road
Default

I just tried it out and noticed afterwards that on the searchresults header tab (Title, Price, etc) the font is now the same color as the rest of the text on the site. They used to be different. I looked back and noticed the original code had the "<div id...." (see below) which isn't in your modified code for the right column. Should this me included in the new modified code?

Code:
	
<td valign="top" class="padding">
<div id="content">
                <!-- // Content // -->
                {* This includes the content portion *}
                {include file=$body}
                <!-- // End Content // -->
</div>
            </td>
        </tr>
  </table>
goose is offline   Reply With Quote
Old 09-06-2007, 11:09 AM   #6
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 133
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Yes that could be the case. You would probably need to check the style sheet and see what the #content does. I believe it is different for each template.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-06-2007, 12:33 PM   #7
Member
 
 
Join Date: Jun 2007
Posts: 66
Rep Power: 17
dphibb is on a distinguished road
Default

Yeah, I didn't have any problems with that. The only issue I ran into was that I had to do a "width="150" because on the category pages the right column took up half the page and squished the categories.
dphibb is offline   Reply With Quote
Old 09-20-2007, 07:29 PM   #8
Member
 
Join Date: Mar 2007
Posts: 51
Rep Power: 18
goose is on a distinguished road
Default

Any tips on how to make a left hand column on a regular .php page? When I try adding a left column it's either above or below the main page content.
goose is offline   Reply With Quote

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0