PDA

View Full Version : Embedding into an existing page


kwirl
06-03-2005, 06:32 PM
Hello people, I'm kwirl and while I am also an alcoholic, that is not the purpose of my introduction!

The PHPLD installation went flawless, and while (as someone mentioned earlier) I would have liked prefixed mysql database entries, its no harm done.

My problem has come when attempting to embed the directory pages into an existing page/style.

I am not sure how I should go about doing this, the existing page has a session controlled login, but initial smarty error messages led me to exclude that for the sake of simplicity.

What is the best way to integrate the PHPLD into an existing page style? The whole SMARTY seems to be killing me, I have been modifying index.html out of the /tpl directory, but any change to merge my old web page structure with the SMARTY output seems to completely shut me down.

Anyone got any tips?

David
06-03-2005, 07:12 PM
Have you modified tmpl/page_main.tpl yet?
That is what you want.

Sorry we don't have excellent instructions yet on the site, but as soon as 2.0 is released, I will be moving forward with a redo of this site with better instructions, etc.

kwirl
06-03-2005, 07:52 PM
Ok, I'm going to experiment with that - should I just treat the page like html? slap my code around the center table and thats it, right?

David
06-03-2005, 08:21 PM
Exactly, you will see things like
{Content}
That is where the code is displayed, and then you can change the rest.

kwirl
06-03-2005, 08:26 PM
i just rebuilt the page_main.tpl file and it didn't even make a change to my site at all?

David
06-04-2005, 12:35 AM
I don't know if I mentioned this, but in the early stages of this script, we are giving free support, so feel free to email me your login info at david at david-duval.com and I will take a look and get you situated.

kwirl
06-04-2005, 01:49 AM
the login and everything else works perfectly, from the door it installed almost right away with no hitches at all.


the problem is when i am trying to modify files so that the link page is embedded as a table in an existing page on my site. i am basically taking an existing page and trying to just insert the output code from the link script into a table on one of my pages that will sit in the directory :( gah its late, ill try and make more sense tomorrow or later tonight after the parties

David
06-04-2005, 06:11 AM
I know this can be done, though I have not done it personally. I will see if I can get someone who has done it to tell us how it was done.

Anonymous
06-16-2005, 08:51 PM
i haven't tried this yet... but i'm going to attempt to implement it into my site soon enough...

1. make a copy of the index.php file... rename it to something like site_include.php
2. make a copy of /templates/main.tpl... rename it to something like site_main.tpl
3. go into the site_include.php file you just made and on line 85, change main.tpl to the new file u just made (site_main.tpl)
4. if all you want is the raw HTML table, simply remove all the include files (lines 16, 18, & 75... header.tpl, top_bar.tpl, footer.tpl)
5. include the site_include.php file into your site and it should work...

like i said, i haven't tried this yet... but i'm pretty sure that it'll work.. and will keep you updated on my progress in getting it to work.

lj.

David
06-16-2005, 08:59 PM
I know that Igonza did this successfully in the 1.0 version on several sites. He just converted a couple of sites to 2.0, but there are a couple of issues remaining. I am going to get him to hopefully post in this thread shortly.

trailblaza
06-27-2005, 06:22 PM
i was able to do this successfully... (i'm LaRosa in the previous post)

i basically followed the list that i outlined above...

only small change was that i had to change the links so that they'd link correctly... since my directory is located in a folder called "directory" i just added "/directory" immediately after all the "href="" instances in the file

after that, it worked perfectly... i would show you the link, but my site is still in development... i'll post the link once my site goes live

lj.

David
06-27-2005, 06:26 PM
Thanks for the update. I've already referred a couple of people to this thread.

KZaha
07-05-2005, 10:16 PM
Thanks for all the help here. Been very useful. But when i did all that you said all i get in my page is the categories. The submit link and search box is gone and the font is all messed up. I have this uploaded into its own directory. But not sure which links to change got lost on the second post. Any help would be great.

Ap0s7le
07-06-2005, 08:49 PM
KZaha, the submit/search bar is in the top_bar.tpl file, include it anywhere you want the bar to appear.

Now concerning your fonts, that's a CSS issue, try updating your current stylesheet with that of PLD or simply include it below your own.

If you continue to have problems let us know.

Thank you for using PHP Link Directory.

kulinar
10-04-2005, 05:01 PM
Content visible to registered users only.I just followed your instructions and the page is redirected to ../install/index.php

All error pages are redirected to index.php