Page 1 of 1

linkman included in php page

Posted: Mon Mar 28, 2011 8:37 am
by jvd88
Script URL: www.prijsklopper.com/linkpartners.php
Version of script: 1.7
Hosting company: Hensel
URL of phpinfo.php: www.prijsklopper.com/phpinfo.php
URL of session_test.php: ww.prijsklopper.com
What terms did you try when SEARCHING for a solution: include in php page

Write your message below:

Hi,

My website uses templates to work. I included www.prijsklopper.com/links/links.php in
www.prijsklopper.com/linkpartners.php

Now on www.prijsklopper.com/linkpartners.php you see that it works fine, except for showing
the allready excisting links.
This is the code used in the linkpartners.php:

require ("path.php");
require (PATH."include/include.php");


//*************************************************************************************************

include (PATH."session.php");


//*************************************************************************************************

$pageTitle = "Linkpartners";
$pageKeywords = "Links";
$pageDescription= "Linkpartners";

//*************************************************************************************************

// Call template
include(PATH.'links/links.php');

//*************************************************************************************************
?>

Do i need to include something else too for the excisting links ? Or do i have to modify the links.php in the links directory ?

If you type www.prijsklopper.com/links/links.php you see that it works. The errors are normal,
because the header.php can't be found in that root. But if you include the link.php in the template
it works fine.

Joep
www.prijsklopper.com

Re: linkman included in php page

Posted: Mon Mar 28, 2011 7:39 pm
by Klemen
links.php wasn't designed to be included and it won't work without a lot of modifications to the code.

You might be better off if you just copied PHP code that shows links from links.php and change file location paths.

Re: linkman included in php page

Posted: Tue Mar 29, 2011 9:17 am
by jvd88
Can you help me with that ? (By the way, it works.. as you see.. only the links itself won't work )
The submit form will be used as a popup (so no changes there, direct link to the linkman folder)
Changing the paths for the pages is the main thing.
Can i include it or hard code the location in there ?

It starts at *handle pages* i guess.

A little help is appreciated.. i supported the script by buying it :D and i am not that of a Php scripter.
i don't mind a link with "modified by " or something to your script.

Joep

Re: linkman included in php page

Posted: Mon Apr 04, 2011 5:45 pm
by Klemen
Don't modify links.php directly - use that as reference (it shows a bunch of errors now).

Then just copy all the code and hard-code (change) all the paths to files and images, that should work.

To be able to help I would need to see the exact structure and files you have, but I'm afraid that is out of the scope of my free support here.

Re: linkman included in php page

Posted: Mon Jun 27, 2011 11:53 pm
by DC
Ok as you know it can't be included by default, however you can mod it to do so but will need some code to do this correctly.

Heres my highly modified example of what you are trying to do.
http://www.clickcraft.net/linktest3.php

That will not work correctly unless you modify the script to work in this way.
I have info on this that others have asked in the past although the info here is for those asking for WP integration I do not use WP so some of the info I wrote on this should help you do what you want to do.

viewtopic.php?t=2556

DC