Gossamer Forum
Home : Products : Links 2.0 : Customization :

Yurik Mod 4 Pics

Quote Reply
Yurik Mod 4 Pics
Is there anybody who can repost this MOD ?

The link in the resource :
http://gossamer-threads.com/scripts/resources/Detailed/845.html is dead !

and I'd like thisone soooooo bad ...
Thanks a zillion in advance !

Crockie

Quote Reply
Re: Yurik Mod 4 Pics In reply to
Why don't you try to use the Priority and Logo mod linked in the Resource Center?

Thomas
http://www.japanreference.com
Quote Reply
Re: Yurik Mod 4 Pics In reply to
Right, try this (I just made it, so I havn't checked it; so it may not work).

Open links.def

Find the line

ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']

now add a comma to the end of that line and then add this line after it;

Image => [14, 'alpha', 40, 75, 1, 'http://', '^http:']


Now add

$db_image = 14; after $db_mail = 13;

and then save and close links.def

Now open up link.html if you are using templates and add a new line of code where you want the image to appear.

The code is;

<%if Image%>
<p><img border="0" src="<%Image%>"></p>
<%endif%>

You now also need to add a text box into add.html, add_error.html, modify_error.html and modify.html called Image (e.g. <p><input type="text" name="Image" size="20"></p>).

Now, hopefully that should do the job. If not could one of you Guru's for Links 2 please tell me!!!! I'm not that used to Links 2, but i THINK this should work!!!! Cool

See Ya

Andy
webmaster@Ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Yurik Mod 4 Pics In reply to
You forgot two very important steps and codes:

1) If you have an EXISTING links.db with records already in them, you need to UPDATE your database using the upgrade.pl script located in this Forum. Search for Bobsie upgrade pl.

2) If you want to print something like "No Image", then you will need to add the following codes in the link.html file:

Code:

<%ifnot Image%>
<p>No Image</p>
<%endif%>


AFTER the following codes:

Code:

<%if Image%>
<p><img border="0" src="<%Image%>"></p>
<%endif%>


In Reply To:
If not could one of you Guru's for Links 2 please tell me!!!! I'm not that used to Links 2, but i THINK this should work!!!!
I thought you are an Installer? You should be familar with the program then. Wink



Regards,

Eliot Lee
Quote Reply
Re: Yurik Mod 4 Pics In reply to
I am used to it from an installing point of view, but i'm not very good when it comes to adding extra option's to links.def as the documentation for it is nil (or thats what i think anyway, unless you can prove me wrong!!!).

Andy

Quote Reply
Re: Yurik Mod 4 Pics In reply to
Hi yall ,

Thanks for the replies but I think I better just explain my prob:
The Priority Pic Mod does not cover this... I checked

In short :
----------

1) UPLOAD images by link owner ?
2) names given to uploaded images and max size?


Not so short :
--------------

Links is being used as the engine to handle Name/Street/Phone/Fax...
of companies and shops from one city. ( adding fields... No prob)
Depending of the type of link a detailed page of the link is active or not.
( isDetailed MOD bij AnthroRules). This works fine .

1) Now I only want to use image(s) on detailed pages.
Therefor I want to give to user who adds all the info to the predefined fields also the possibility to UPLOAD his image(s) to some central image directory. ($db_image_path and $db_image_url) by adding input fields to the templates :

<input type=file name="image1" size="36">
<input type=file name="image2" size="36">...and so on... to browse for the files,

This is where I'm stuck : How should add.cgi be modified to do the job

2) The UPLOAD-MOD should give an uploaded image a name like :
<%link_id%>_<%image_id%>.gif (or .jpg). and should check for max size.


I know that I may be asking too much but I think it might be
a cool MOD anyway and useful for lots of stuff.


Thanks in advance and keep up the good work !
Pardon my english ... i'm just a stupid belgian...

Quote Reply
Re: Yurik Mod 4 Pics In reply to
So, you are looking for an UPLOAD MOD, which has been removed the Web, right?

Welp, may be Phoenix will stop-by and post the codes for the UPLOAD MOD.

Regards,

Eliot Lee
Quote Reply
Re: Yurik Mod 4 Pics In reply to
Hi Eliot,
that's right , Phoenix's Upload Mod might just be what I need, but as you can see it's been since March last year that Phoenix posted on these forums using that name...
Hehe, I'm an optimist but I don't really expect Phoenix to show up right now when I need the MOD the most.

So please ... if there's anyone who has the MOD written down on his wall,fridge or maybe in some text file , please repost it here or send it in a private msg or to my email addy.

I'd be more than grateful...

Crocket
crocket@aalst.com

Quote Reply
Re: [crocket] Yurik Mod 4 Pics In reply to
Hi,

I want to know if it is possible to place "a link with Logo" at the Top of a page?...In order to have priority rather than others links that have no picture.

Thank you in advance. Smile
Quote Reply
Re: [crocket] Yurik Mod 4 Pics In reply to
I need that mod, too :-| does anyone have it? please help me....
Quote Reply
Re: [Andy] Yurik Mod 4 Pics In reply to
Hi Andy,

I absolutely have no idea what I'm doing, but I followed your instructions and it worked! Thanks.

I was wondering if you could explain this to me...

Image => [14, 'alpha', 40, 75, 1, 'http://', '^http:']

What I would like to do is repeat the process so that I can use one as a thumbnail etc.

Image => [15, 'alpha' ?, ?, ?, 'http://', '^http:']

Thanks, your help is appreciated!
Quote Reply
Re: [Saph] Yurik Mod 4 Pics In reply to
I would really be interested in the image upload aswell,

Thanks
Hamsterpants
Quote Reply
Re: [Saph] Yurik Mod 4 Pics In reply to
Code:
Image => [18, 'alpha', 50, 100, 0, '', ''], Image_tn => [19, 'alpha', 50, 100, 0, '', ''],


Make the size and maxlength ( 50, 100, etc ) what ever your need. The 0 means not required ( a 1 means required )

then follow the original instructions by Andy/Stealth.

As for the upload mod, I believe Paul had one that was quite extensive. Search for it.


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Quote Reply
Re: [esm] Yurik Mod 4 Pics In reply to
Here's the thread, but I don't think the upload mod is available:

http://www.gossamer-threads.com/...load%20image;#171102

------------------------------------------
Quote Reply
Re: [esm] Yurik Mod 4 Pics In reply to
SmileThank you, that really helped a lot.