Hi all,
i tried to make a new mod
It works like this:
If a user adds a new link he can also add a link to an image which describes the link.
that was no problem to do.
I added a new field in links.def
but now I want to implement, thatthe script detects whether this image really exists - and if not that it enters a url of an image which can be defined as the standart image.
I've no idea how to test the image and where to make this if image exist...
else use alternate image.
Any ideas ?
Would be really cool
cya,
Nikolai
P.S. When this works I also want to add this image to the html in admin so that you can see the image when you modify a link. But where should i add this ? I found something like:
&build_html_record_form at the end of admin_html.pl but I cannot find the
sub build_html_record_form.
There it should be possible to implement the image shouldn't it ?
i tried to make a new mod

If a user adds a new link he can also add a link to an image which describes the link.
that was no problem to do.
I added a new field in links.def
Code:
'Image URL' => [15, 'alpha', 40, 75, 0, 'http://', '^http|news|mailto|ftp'],I've no idea how to test the image and where to make this if image exist...
else use alternate image.
Any ideas ?
Would be really cool

cya,
Nikolai
P.S. When this works I also want to add this image to the html in admin so that you can see the image when you modify a link. But where should i add this ? I found something like:
&build_html_record_form at the end of admin_html.pl but I cannot find the
sub build_html_record_form.
There it should be possible to implement the image shouldn't it ?