Is it possible.

Problems installing LinkMan?
Post Reply
mad-wolfie
Posts: 2
Joined: Thu Jul 24, 2008 6:58 pm

Is it possible.

Post by mad-wolfie »

Hi all.

I've used a few of the phpJunkyard scripts on a few of my site's now & i'm impressed, however, what i'm about to suggest i don't know if this has been done already or has been suggested. my searches are currently drawing a blank - typing "<?php" followed by any keyword into the search box & you get everything from tin-tacs to tractors.

I've just revamped an existing site for myself & intend to use the Linkman script & possibly add a couple of the others (guestbook, hesk etc) at a later date, but i already have a linkspage which i want to change from manual HTML editor to using the linkman script to add/update/remove links

What i want to do is use the linkman script more as an SSI by creating the links page as a blank page within an exisitng page & "injecting" the link script into it.

to simplify, this is what i have in mind. I'll use the Linkman script as an example as that is what i'm looking at using in this case.

1) to rename the "links.php" script to a new name (mainly as the existing page name will be links.php), giving the script to a name such as linkman.php
2) to install & configure the script as per the normal way.
3) instead of creating a header/footer page or embedding the linkscript between header &footer (these could be ommited or left blank so they don't appear) thus creating a new page, but to add the linkman script to the site add in a line of php code such as this...

Code: Select all

<?php include('linkman.php'); ?>
this would mean of course the linkman script would be inside the existing site.
4) use the script in the normal way

so my question is, is this possible, (or has it been done) & if so how could i bring up the linkman script (or any of the others) using a PHP include to an already exisitng page as described above? if so, how do i do it.

Also while on the subject, as a suggestion, could this perhaps be added as a future upgrade or some form of instruction added to the readme file. This could also mean that the junkyard scripts can be used in blogs & within forums etc

Thanks in Advance & keep up the good work, the phpJunkyard scripts are superb.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Well almost anything can be done if you know PHP & HTML :wink: For now you'd have to do such modifications yourself. I noted some suggestions and although I can't promise anything I might consider including some of them in future releases.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
mad-wolfie
Posts: 2
Joined: Thu Jul 24, 2008 6:58 pm

Post by mad-wolfie »

Thanks Klemen.

This post was intended as more of a suggestion for a future update (hence why i posted in this forum room as opposed to the support area) rather than a "how do you do it" type posting, which i'm glad you picked up on & to see if it had been done already as a suggestion.

I'm pleased to say this "Mod" does work with Linkman & it's easy, but i'm not sure if it would work on Gbook or some of the other scripts - mainly as i've not tried it.

to do it on Linkman all i had to was

1) enter the line of php code to do the include in the pre-created page

Code: Select all

<?php include('links.php'); ?>
the page MUST end in the .php extension, so if you are trying to add this to a page called "links.html" for example, chances are it won't work, so go back to plan A & do it the old fashioned way.
2) if you are adding the links page to an existing page called "links.php" within your site, rename the links.php file from the linkman script to another name, (in this instance I used "linkman.php") but i suppose you could do any name really - if your links page on your site isn't called links.php you could leave it & skip this step, but remember to alter the pagename code on the include link IF YOU RENAME THE FILE.

Code: Select all

<?php include('YOUR CUSTOM PAGE NAME'); ?>
3) leave the header/footer text files blank - Delete all information within them so they are empty, unless you want to add a line of instruction or any friendly welcome messages for your visitors
4) upload all the files into the appropriate directory & configure in the normal way

However, there is a small catch.. on this particular site i have left off the links form as i don't need it because i'm handling the links myself, so it does not appear on the main links page, so i've not tested it with the links form switched on, but i'm pleased to say all the admin side works perfectly OK as does the PR & the featured links, on that basis i can only assume all would work fine if the links form was turned on.
Post Reply