PDA

View Full Version : Two columns left=directory, rigth=anything you want


logged
10-28-2005, 12:55 PM
Hello all, my first post ;)

Here is a way to make two columns in the directory:

New table goes before {* Calculate the number of categories per row *} and after {include file="top_bar.tpl"}. It should look like this:
Content visible to registered users only.

Then just scroll down to bottom and then just Before {include file="footer.tpl"} and After </script> add the following code:

Content visible to registered users only.

and then it should look like this:

Content visible to registered users only.

Step 3 is to create file called rigth.tpl and upload it to /templates directory
Here is a simple new table you can modify later:
Content visible to registered users only.

Well, I hope it will work for you too :wink:

edit: added -> align="top"

David
10-28-2005, 04:35 PM
Nice!
Do you have a demo?

logged
10-28-2005, 07:51 PM
Thanks, yes demo @ {non working link removed}

David
10-28-2005, 07:53 PM
Great contribution!
Thank you. :)

iluvm
11-13-2005, 12:36 PM
Hello,
I added this mod but it seemed to have no effect?
This is the two sections from my main.tpl
Content visible to registered users only.

and
Content visible to registered users only.

and this is contents of rigth.tpl
Content visible to registered users only.

Any idea's on what I'm doing wrong?

iluvm
11-14-2005, 09:13 PM
Found the error with the help of logged.

Thanks for the help,

A good little mod and would certainly recommend

ZOMP
01-04-2006, 01:01 PM
The preview isn't working anymore, can someone please show me what this modification does?

Im interested in keeping the body of my link directory on the homepage normal and at the same time have something on the other side. But when someone clicks on a link cat the page isn't devided, I just want the homepage to be affected.

So, atfer installing a new phpld and keeping everything the same except putting something (like an image for example) on the right side of the body, under the search and above the footer... this is what this mod does?

Thanks, I need help asap.

jay275
01-12-2006, 08:26 PM
This is a great mod, but I also am trying to tweak it so the column only displays on the homepage. Has anyone had any luck doing this? I know I haven't.

One more thing that might save some headaches for someone. If you copy and paste the code, note that right.tpl is mispelled rigth.tpl. Which is fine as long as you name your new file that you create rigth.tpl as well:)

Neticus
01-13-2006, 12:08 AM
@jay275

I had posted something but then realised it didn't exclude the search pages.

Sorry.

Net.

jay275
01-13-2006, 07:07 PM
Content visible to registered users only.

Thanks for trying anyways!

toolman
06-17-2006, 12:16 PM
Any ideas on how to make it a left column?

anon
06-17-2006, 08:18 PM
Content visible to registered users only.
were you able to get this accomplished? if you need help let us know.

Rob

bella0212
06-17-2006, 09:00 PM
Hi,

May I ask for some help in this column thing?

Have added a left column for "google like ads" and the page appears to just ok in IE . But in firefox the column is totally misplaced.

Using v3.05 springbreak

{non working link removed}

Thank You for any help!

Dee

anon
06-17-2006, 09:05 PM
where you added your column within the <td> tage add this:

rowspan="100%"


so it should look like: <td rowspan="100%">


and see how that works out for you in FF.

bella0212
06-17-2006, 09:15 PM
THANK YOU, THANK YOU, THANK YOU Anon!

Been at this most of the day and have tried almost everything I could find!

Have a Good Day,
Dee

anon
06-17-2006, 09:31 PM
Content visible to registered users only.
/bow /bow /bow

you're welcome Dee :)

proprod
07-04-2006, 05:24 AM
Content visible to registered users only.

The rightside code works excellent, have been using it for weeks now. I'm trying to add a left column now, but this is becoming a problem, hehe... I try to use the code provided above but tweak it to appear on left side, but whatever I try just makes the table appear under the category listing. And ideas out there?

Thanks in advance.

Nerz
08-10-2006, 05:59 AM
Content visible to registered users only.

Anyone have a solution for this in 3.06 using a right side column...seems fine apart from this search page problem, most hits, top rated etc etc..

webwriter
09-24-2006, 06:16 PM
I'm having the same issue-

When adding a left AND a right column, everything lines up correctly on the home page but on the category pages, the right column appears under the categories, not next to it.

Any suggestions?

eurodata
10-14-2006, 12:55 AM
I tried this mod and its excellent thanks to the coder, i put the code on the bottom and adjusted the table so to make it appear on the bottom along the page so i can get banners to fit on there.

now my quesiton is, is it possible to isolate this code so i can add different banners and different table for each category page, and if thats not possible how can i limit this mod so it only appear on the home page??

please have a look at my directory and feel freee to put a free submission and let me know any hints or comments that may improve things,

{non working link removed}

thanks in advance

Aleister
10-18-2006, 05:28 PM
This is a nice mod!
I would just like to point a tiny syntaxe error,
'right' is written 'rigth' in the code, so, be careful when you create your right.tpl file to either spell your file rigth.tpl or correct the syntaxe error in the code. :cool:

patsalko
11-19-2006, 12:15 AM
Works like charm.. Thanks

regoat
11-27-2006, 12:04 AM
hi

how to make it a left column?

anon
11-27-2006, 12:09 AM
just add a <td> you stuff here </td>

before the main

<td>
<table>

all link and main stuff

</table>
<td>

technomatters
12-13-2006, 04:04 AM
Seems demo link is not working domain expired. can you show some other url please

recep
03-31-2007, 02:51 PM
Anon, it didnt worked! for me, l did the same things you listed but it didnt worked!

jminscoe
03-31-2007, 03:03 PM
to get mine to work on Skyblue template this is what I have on main.tpl just look for similiar code
For left column

{include file="top_bar.tpl"}
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="180" valign="top" class="l-rep">{include file="leftside.tpl"}</td>
<td>
{* Calculate the number of categories per row *}
for right column
</td>
<td width="160" valign="top" class="l-rep">{include file="rightside.tpl"}</td>
</tr>
</table>
{include file="footer.tpl"}
{/strip}

anon
04-01-2007, 01:53 AM
Content visible to registered users only.

depending on the template you may have put things in the wrong spots.
all it really is, is adding a <td></td> before the whole main section. honest :)

Rob

shadav
04-01-2007, 04:09 PM
i think it depends on the template...one of my templates is set up simular to the ways anon and jminscoe posted

on another one it's edited in my top_bar.tpl
Content visible to registered users only.

lol i'm sure there's a better way to do it but that's how i got it to work with my template

lostndazed
04-09-2007, 12:57 AM
Content visible to registered users only.I don't know how to use the smarty engine yet. So, I'll use jminscoe (http://www.phplinkdirectory.com/forum/member.php?u=307)'s sky blue template example and attempt an example of a right hand column on the homepage only (based on the little I know of php).

I'd try adding something like:

Content visible to registered users only.I might have the actual code wrong. (See disclaimer above about my lack of skills.)
But the theory is that:
IF the home page, show left column, middle columns and right column.
ELSE (if any other page), show left column and middle columns.
CLOSE THE IF STATEMENT.

You should be able to figure out how to set your pages from the sample if you understand HTML and follow the sample.
Hope this helps someone.

Mary
04-09-2007, 07:21 PM
Hello,

here a demo, works with 3.1

http://www.fadenfreunde.de

valuebuy
04-14-2007, 09:54 AM
Could someone tell me where do I get the code for the leftside.tpl and the rightside.tpl

The code seem fine but it references and is dependant upon the "liftside.tpl" so where is the coding for that file or the "rightside.tpl" file?

Please keep in mind I am a novice.

shadav
04-14-2007, 01:14 PM
did you create these templates? or are you using a premade template?

from the first post
Content visible to registered users only.

valuebuy
04-14-2007, 09:31 PM
I use all three steps and got this ERROR Message -
Warning: Smarty error: unable to read resource: "right.tpl" in /public_html/libs/smarty/Smarty.class.php on line 1095

Please help me, and keep in mind I am a novice

the9crow
04-17-2007, 02:20 PM
There is no need to use left and right tpl...

shadav
04-17-2007, 09:21 PM
true but some of us, hehehe, like to rather create templates and use the include tag to place them where we want them to be displayed :D

valuebuy
04-20-2007, 08:42 AM
How do you make a left column?
How do you make a right column?

Please keep in mind I am a novice

Grayzag
04-21-2007, 01:42 PM
Content visible to registered users only.

Yes, it is possible replace to only put on homepage (excludes search pages too):

Content visible to registered users only.with:
Content visible to registered users only.And replace:
Content visible to registered users only.with:
Content visible to registered users only.

I do realise that there is a working example above, but it doesn't exclude search result pages.

naboo
06-24-2007, 08:59 PM
Thanks for this, i had been wanting to make use of some of the white space on one of my directories, i followed the first example to create a right column and it works great.

thanks
naboo:)