Removing automatic link delete function?

Problems installing LinkMan?
Post Reply
Your Guest

Removing automatic link delete function?

Post by Your Guest »

Hi man,

I love your PHP LinkManager 1.01 script. :D

I would like to get script working so that it won't delete links automatically. Just saying Link not found, like it do now.

So can you help me with this when have extra time? (iif this is allowed of course)
I have no experience in coding but looks like its admin.php that need to be edited.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

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
Your Guest

Working

Post by Your Guest »

Thanks alot man! This is working just like I wanted.
Only needed to change all index.php --> admin.php -inside file.

Your script got my vote! :D
shawnsmithnj

linkmand no delete

Post by shawnsmithnj »

is this something that can be switched on and off in the setup ? im new and not sure if this is in the ver i just downloaded...
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Nope, the original version automatically deletes expired links. But I will probably add on/off sometime soon.
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
seawind
Posts: 13
Joined: Thu Jan 19, 2006 10:18 pm

Post by seawind »

I would like to do the same thing but in the latest version v1.02. What did you change in the script? :roll:

Thanks,
Ryan
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

In index.php line 229 you will find

Code: Select all

echo "<br>\n<font color=\"#FF0000\">LINK NOT FOUND!</font><br><br>\n\nRemoving link ...<br>";
unset($lines[$i-1]);
$rewrite=1;
Change all that that to just

Code: Select all

echo "<br>\n<font color=\"#FF0000\">LINK NOT FOUND!</font><br><br>\n\n";
Haven't tested it, but should work.
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
seawind
Posts: 13
Joined: Thu Jan 19, 2006 10:18 pm

Post by seawind »

Klemen,

Works like a charm! Thanks!


Ryan
Post Reply