![]() |
| |||||||
| Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum. |
![]() |
| | Thread Tools | Display Modes |
| | #1 |
| Join Date: Oct 2005 Posts: 24 | 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 *} 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> 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} 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> edit: added -> align="top" __________________ -- logged |
| |
| | #2 |
| Administrator phpLD Administrator Supporter Join Date: Jan 2005 Posts: 11,667 | Nice! Do you have a demo? __________________ Helpful Links: templates supporters forum █ follow me on twitter █ Quality Guidelines for Directories █ Recommended Host |
| |
| | #3 |
| Join Date: Oct 2005 Posts: 24 | Thanks, yes demo @ {non working link removed} __________________ -- logged Last edited by David; 08-01-2008 at 05:22 PM. |
| |
| | #4 |
| Administrator phpLD Administrator Supporter Join Date: Jan 2005 Posts: 11,667 | Great contribution! Thank you. __________________ Helpful Links: templates supporters forum █ follow me on twitter █ Quality Guidelines for Directories █ Recommended Host |
| |
| | #5 | |||
| Supporter Join Date: Nov 2005 Location: UK Posts: 57 | Hello, I added this mod but it seemed to have no effect? This is the two sections from my main.tpl Quote:
Quote:
Quote:
| |||
| |
| | #6 |
| Supporter Join Date: Nov 2005 Location: UK Posts: 57 | Found the error with the help of logged. Thanks for the help, A good little mod and would certainly recommend |
| |
| | #7 |
| Join Date: Nov 2005 Posts: 35 | 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! |
| |
| | #8 |
| Join Date: Jan 2006 Posts: 43 | 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 |
| |
| | #9 |
| Supporter Join Date: Dec 2005 Posts: 487 | @jay275 I had posted something but then realised it didn't exclude the search pages. Sorry. Net. |
| |
| | #10 | |
| Join Date: Jan 2006 Posts: 43 | Quote:
| |
| |
| | #11 |
| Join Date: Nov 2005 Posts: 50 | Any ideas on how to make it a left column? |
| |
| | #12 | |
| Supporter | Quote:
Rob __________________ DirectoryDump Web Directory | Link Directory | Full of Search Web Directory | Free phpLD Templates | |
| |
| | #13 |
| Supporter Join Date: May 2006 Posts: 13 | 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. |
| |
| | #14 |
| Supporter | 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. __________________ DirectoryDump Web Directory | Link Directory | Full of Search Web Directory | Free phpLD Templates Last edited by David; 08-01-2008 at 05:23 PM. |
| |
| | #15 |
| Supporter Join Date: May 2006 Posts: 13 | 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 |
| |
| | #16 | |
| Supporter | Quote:
you're welcome Dee __________________ DirectoryDump Web Directory | Link Directory | Full of Search Web Directory | Free phpLD Templates | |
| |
| | #17 | |
| Mentor Join Date: May 2006 Location: Fond du Lac, WI Posts: 1,380 | Quote:
Thanks in advance. __________________ | |
| |
| | #18 | |
| Join Date: Aug 2006 Posts: 118 | Quote:
| |
| |
| | #19 |
| Join Date: Sep 2005 Posts: 19 | 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? |
| |
| | #20 |
| Join Date: Oct 2006 Posts: 5 | 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. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|