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
 
Thread Tools Display Modes
Old 10-28-2005   #1
logged
 
Join Date: Oct 2005
Posts: 24
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:
{include file="top_bar.tpl"}

{* New table added, td width 70% *}
<table border="0" cellpadding="0" cellspacing="2" width="100%"><tr>
<td width="70%" align="top">

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

Code:
{* closing 1st column, creating rigth column and adding new template file called rigth.tpl *}
</td><td width="30%" bgcolor="#FFFFFF">{include file="rigth.tpl"}</td></tr></table>
and then it should look like this:

Code:
</script>

{* closing 1st column, creating rigth column and adding new template file called rigth.tpl *}
</td><td width="30%" bgcolor="#FFFFFF">{include file="rigth.tpl"}</td></tr></table>

{include file="footer.tpl"}
{/strip}
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:
<table width="100%" cellspacing="0" celllpading="0" border="0"><tr>
<td width="100%" bgcolor="#FFFFFF" align="top"> HELLO WORLD </td></tr></table>
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: 11,667
Default

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

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

Last edited by David; 08-01-2008 at 05:22 PM.
logged is offline  
Old 10-28-2005   #4
David
Administrator
phpLD Administrator
Supporter
 
David's Avatar
 
Join Date: Jan 2005
Posts: 11,667
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: 57
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
Quote:
{include file="top_bar.tpl"}

{* New table added, td width 70% *}
<table border="0" cellpadding="0" cellspacing="2" width="100%"><tr>
<td width="70%" align="top">


{* Calculate the number of categories per row *}
and
Quote:
</script>

{* closing 1st column, creating rigth column and adding new template file called rigth.tpl *}
</td><td width="30%" bgcolor="#FFFFFF">{include file="rigth.tpl"}</td></tr></table>

{include file="footer.tpl"}
and this is contents of rigth.tpl
Quote:
<table width="100%" cellspacing="0" celllpading="0" border="0"><tr>
<td width="100%" bgcolor="#FFFFFF" align="top"> CAN YOU SEE ME? Here I AM! </td></tr></table>
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: 57
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: 43
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-13-2006   #9
Neticus
Supporter
 
Neticus's Avatar
 
Join Date: Dec 2005
Posts: 487
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: 43
Default

Quote:
Originally Posted by Neticus
@jay275

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

Sorry.

Net.
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,893
Send a message via Yahoo to anon
Default

Quote:
Originally Posted by toolman
Any ideas on how to make it a left column?
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: 13
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 05: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,893
Send a message via Yahoo to anon
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 05:23 PM.
anon is offline  
Old 06-17-2006   #15
bella0212
Supporter
 
Join Date: May 2006
Posts: 13
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,893
Send a message via Yahoo to anon
Wink

Quote:
Originally Posted by bella0212
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
/bow /bow /bow

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

Quote:
Originally Posted by anon
were you able to get this accomplished? if you need help let us know.

Rob
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.
__________________
proprod is offline  
Old 08-10-2006   #18
Nerz
 
Join Date: Aug 2006
Posts: 118
Default

Quote:
Originally Posted by Neticus
@jay275

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

Sorry.

Net.
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-14-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 05:24 PM.
eurodata is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:42 AM.


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