Go Back   PHP Link Directory Forum > PHP Link Directory (phpLD) > Mods and contribution Discussion

Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum.

Closed Thread
 
topic widgets
Old 10-28-2005   #1
logged
 
Join Date: Oct 2005
Posts: 23
Default Two columns left=directory, rigth=anything you want

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:
Code:
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:

Code:
Content visible to registered users only.
and then it should look like this:

Code:
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:
Code:
Content visible to registered users only.
Well, I hope it will work for you too :wink:

edit: added -> align="top"
__________________
--
logged
logged is offline  
Old 10-28-2005   #2
David
Administrator
phpLD Administrator
Supporter
 
David's Avatar
 
Join Date: Jan 2005
Posts: 12,325
Default

Nice!
Do you have a demo?
David is offline  
Old 10-28-2005   #3
logged
 
Join Date: Oct 2005
Posts: 23
Default

Thanks, yes demo @ {non working link removed}
__________________
--
logged

Last edited by David; 08-01-2008 at 04:22 PM.
logged is offline  
Old 10-28-2005   #4
David
Administrator
phpLD Administrator
Supporter
 
David's Avatar
 
Join Date: Jan 2005
Posts: 12,325
Default

Great contribution!
Thank you.
David is offline  
Old 11-13-2005   #5
iluvm
Supporter
 
iluvm's Avatar
 
Join Date: Nov 2005
Location: UK
Posts: 66
Default R/H Column

Hello,
I added this mod but it seemed to have no effect?
This is the two sections from my main.tpl
Code:
Content visible to registered users only.
and
Code:
Content visible to registered users only.
and this is contents of rigth.tpl
Code:
Content visible to registered users only.
Any idea's on what I'm doing wrong?
iluvm is offline  
Old 11-14-2005   #6
iluvm
Supporter
 
iluvm's Avatar
 
Join Date: Nov 2005
Location: UK
Posts: 66
Default Mod

Found the error with the help of logged.

Thanks for the help,

A good little mod and would certainly recommend
iluvm is offline  
Old 01-04-2006   #7
ZOMP
 
Join Date: Nov 2005
Posts: 35
Default

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.
__________________
If I have helped you in some way please consider adding your website to my website directory. Thanks!
ZOMP is offline  
Old 01-12-2006   #8
jay275
 
Join Date: Jan 2006
Posts: 47
Default

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
jay275 is offline  
Old 01-12-2006   #9
Neticus
Supporter
 
Neticus's Avatar
 
Join Date: Dec 2005
Posts: 484
Default

@jay275

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

Sorry.

Net.
Neticus is offline  
Old 01-13-2006   #10
jay275
 
Join Date: Jan 2006
Posts: 47
Default

Code:
Content visible to registered users only.
Thanks for trying anyways!
jay275 is offline  
Old 06-17-2006   #11
toolman
 
Join Date: Nov 2005
Posts: 50
Default

Any ideas on how to make it a left column?
toolman is offline  
Old 06-17-2006   #12
anon
Supporter
 
anon's Avatar
 
Join Date: Feb 2006
Location: As far from you as humanly possible!
Posts: 2,860
Default

Code:
Content visible to registered users only.
were you able to get this accomplished? if you need help let us know.

Rob
anon is offline  
Old 06-17-2006   #13
bella0212
Supporter
 
Join Date: May 2006
Posts: 15
Default

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

Last edited by David; 08-01-2008 at 04:23 PM.
bella0212 is offline  
Old 06-17-2006   #14
anon
Supporter
 
anon's Avatar
 
Join Date: Feb 2006
Location: As far from you as humanly possible!
Posts: 2,860
Default

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.

Last edited by David; 08-01-2008 at 04:23 PM.
anon is offline  
Old 06-17-2006   #15
bella0212
Supporter
 
Join Date: May 2006
Posts: 15
Default

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
bella0212 is offline  
Old 06-17-2006   #16
anon
Supporter
 
anon's Avatar
 
Join Date: Feb 2006
Location: As far from you as humanly possible!
Posts: 2,860
Wink

Code:
Content visible to registered users only.
/bow /bow /bow

you're welcome Dee
anon is offline  
Old 07-04-2006   #17
proprod
Mentor
Supporter
 
proprod's Avatar
 
Join Date: May 2006
Location: Fond du Lac, WI
Posts: 1,400
Default Re: Left Column

Code:
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.
__________________
Model Railroad
Premium Directory - New Design and Now Free!
Free Submit Directory
proprod is online now  
Old 08-10-2006   #18
Nerz
 
Join Date: Aug 2006
Posts: 118
Default

Code:
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..
Nerz is offline  
Old 09-24-2006   #19
webwriter
 
Join Date: Sep 2005
Posts: 19
Default Tables not lining up

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?
webwriter is offline  
Old 10-13-2006   #20
eurodata
 
Join Date: Oct 2006
Posts: 5
Default I tried it and its cool BUT have a small question

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

Last edited by David; 08-01-2008 at 04:24 PM.
eurodata is offline  
Closed Thread

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
topic widgets



All times are GMT +1. The time now is 05:59 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.