Small error : explode

Problems installing LinkMan?
Post Reply
Guest

Small error : explode

Post by Guest »

Hi forum ,
i have a small error with Linkman v1.0.1
when i add a link in admin panel i see This error in index.php (admin main page):

Code: Select all

Warning: explode(): Empty delimiter. in /home/funir/public_html/linkbox/index.php on line 311
the line 311 is :

Code: Select all

list($name,$email,$title,$url,$recurl,$description)=explode($settings['delimiter'],$thisline);
Help me plz :oops:
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

What file have you got there? That is NOT the line 311 in original index.php that comes with LinkMan? I am unable to help you if you edited index.php.

Also copy/paste your settings.php file content here (replace your admin password with ****** ).

What is your URL of linkman?

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

Post by Guest »

Thanks for your Answer ! :oops:
311 is not Orginal Line because i deleted many line (they begin with // )like :

Code: Select all

// START mainpage()
settings.php file :

Code: Select all

<?php
// SETUP YOUR LINK MANAGER
// Detailed information found in the readme file

// What type of server is your website on?
// 1 = UNIX (Linux), 2 = Windows, 3 = Machintos
$settings['system']=1;

// Password for admin area
$settings['apass']="*****";

// Your website URL
$settings['site_url']="http://www.funir.com";

// Admin e-mail
$settings['admin_email']="jamese_0072000@yahoo.com";

// Send you an e-mail everytime someone adds a link? 1=YES, 0=NO
$settings['notify']=0;

// Maximum number of links
$settings['max_links']=10;

// Use "clean" URLs or redirects? 1=clean, 0=redirects
$settings['clean']=1;

// Where to add new links? 0 = top of list, 1 = end of list
$settings['add_to']=0;

// Name of the file where link URLs and other info is stored
$settings['linkfile']="linkinfo.txt";

// DO NOT EDIT BELOW
$settings['verzija']="1.0.1";
$settings['delimiter']="\t";

function myerror($problem) {
require_once("header.txt");
echo "
<p align=\"center\"><b>ERROR</b></p>
<p>&nbsp;</p>
<p align=\"center\">$problem</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p align=\"center\"><a href=\"javascript:history.go(-1)\">Back to the previous page</a></p>
";
require_once("footer.txt");
exit();
}
?>
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Well, settings.php looks ok.

If you edited the script then I can't help you, there are many things that could go wrong. I suggest you first test the ORIGINAL script, then make small changes and test them.

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

Post by Guest »

Thanks i have installed Orginal sources .
i have many more questions :
1.how i can change the link color , font , and more ...
2.if i dont want a field like "URL with reciprocal link" how can remove it from admin panel and link.php
3.is possible use your PHP click counter (Ccount 1.1) for link.php like :
Yahoo.com - all you need [ 6 clicks ]
4.how can edit admin panel texts and translate the language ? perhaps it will give me a error ?
Thanks A lot :oops:
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

1. You can change link colors using CSS styles for class a.linkman
CSS tutorial: http://www.w3schools.com/css/default.asp

2. and 3. would need some PHP knowledge and editing the files. Unfortunately I don't have the time to do it right now.

4. Open admin.php in a plain text editor (like Notepad or Wordpad) and just translate any text you find inside HTML code. It should work if you don't edit any other code.

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

Post by Guest »

Thanks Admin
i want the links.php be like this page :
http://www.iroonikids.com/link/link.php
how i can create a template like this page ?
Post Reply