Gossamer Forum
Home : Products : Links 2.0 : Customization :

Hyperlinked Images during submission

Quote Reply
Hyperlinked Images during submission
 
Has anyone done a mod that allows for example, a submission of a site to be made and at the same time an audio file (or any other file) that can then be hyperlinked from a small graphic ie the real player graphic.

A bit like -

Enter your Site URL here: http://www.mymic.com
Enter your Audio clip URL here: http://ww...file.ram

Then the result looks like this:

mymusic.com main site - Free sound effects CLAP OF THUNDER (Added: 21-Oct-2000 Hits: 18 Rating: 0 Votes: 0) Rate It
[Icon] Click Icon to listen now

MMm hope you all got the idea!

Shawn
Quote Reply
Re: [aei] Hyperlinked Images during submission In reply to
not that i know much about this....but you could try searching for an upload mod. I know it has been discussed and some may have even worked.

If you are serving it up from the submitter's server, maybe you could just create a second field for the URL and link it to the file on his/her server...otherwise I hope you got tons of free bandwidth...



Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Quote Reply
Re: [aei] Hyperlinked Images during submission In reply to
Are you trying to let them point to a file that will be uploaded to your server, OR a file that is on their server (i.e just another field needing to be added) Tongue

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] Hyperlinked Images during submission In reply to
This would be a download... the idea is that you click on the Icon to download a sound file.

Of course the sound file URL (already on a server) would need to be submitted to the Links serch engine on the same submission form as the URL for the main site. IE ADD URL template!

I think thats clear.

Cheers
Shawn
Quote Reply
Re: [aei] Hyperlinked Images during submission In reply to
Im working on a similar situation.
I think that you just need to modify the links.def as in the mods "Priority Logo Links"
http://www.gossamer-threads.com/...fications/index.html

and add an extra field for the sound url.
# Definition of your database file.
%db_def = (

ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Date => [3, 'date', 15, 15, 1, \&get_date,''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'Yes', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes'],
Graphic => [14, 'alpha', 40, 75, 0, '', ''],
Gwidth => [15, 'alpha', 5, 5, 0, '', ''],
Gheight => [16, 'alpha', 5, 5, 0, '', ''],
Soundclip =>[17,'alpha',40,75,0,'','']



then in admin area go to the link.html template and change add something like:

<%if Graphic%>
<a href="<%Soundclip%>" target="_blank"><img src="<%Graphic%>" width="<%Gwidth%>" height="<%Gheight%>" alt="<%Title%>" border="0"></a>

<%endif%>

Assuming you named the new field "Soundclip"

Im still a newbie, but I think this will accomplish what you are seeking

gurus, please correct me if im wrong!

Jbridge14@home.com
Post deleted by jbridge14 In reply to
Quote Reply
Re: [jbridge14] Hyperlinked Images during submission In reply to
and the add.html file will need to be updated. you will need to find the area that lists the appropriate forms and add 1 for the image and 1 for the sound.


<form action="<%db_cgi_url%>/add.cgi" method="POST">
</table>
<p><font face="Arial" size="2">Please fill out the form completely, and we'll add your resource as soon as possible.</font></p>
<div class="margin">
<table border ="0" cellspacing="0" cellpadding="0">
<tr><td align="right" valign="top"><font face="Arial" size="2">Title:</font></td>
<td><font face="Arial" size="2"><input name="Title" size="50"></font></td></tr>

<tr><td align="right" valign="top"><font face="Arial" size="2">URL:</font></td>
<td><font face="Arial" size="2"><input name="URL" size="50"></font></td></tr>

<tr><td align="right" valign="top"><font face="Arial" size="2">Category:</font></td>
<td><font face="Arial" size="2"><%Category%></font></td></tr>

<tr><td align="right" valign="top"><font face="Arial" size="2">Description:</font></td>
<td><font face="Arial" size="2"><textarea wrap="virtual" name="Description" value="" rows="3" cols="42"></text-area></font></td></tr>

<tr><td align="right" valign="top"><font face="Arial" size="2">Contact Name:</font></td>
<td><font face="Arial" size="2"><input name="Contact Name" value="" size="40"></font></td></tr>

<tr><td align="right" valign="top"><font face="Arial" size="2">Contact Email:</font></td>
<td><font face="Arial" size="2"><input name="Contact Email" value="" size="40"></font></td></tr>

<tr><td align="right" valign="top"><font face="Arial" size="2">Image URL:</font></td>
<td><font face="Arial" size="2"><input name="Graphic" size="50"></font></td></tr>


<tr><td align="right" valign="top"><font face="Arial" size="2">Sound Clip URL:</font></td>
<td><font face="Arial" size="2"><input name="soundclip" size="50"></font></td></tr>


<td><font face="Arial" size="2"><input type="SUBMIT" value="Add Resource"></font></td></tr>
</table>
</div>
</form>


Quote Reply
Re: [jbridge14] Hyperlinked Images during submission In reply to
Hello, I've gone through this thread and make all the modifications that you posted, but when I go to validate the link, all of the fields at shifted. Is there more code to modify?

Thanks,

Will
Quote Reply
Re: [WTrippe] Hyperlinked Images during submission In reply to
The problem is that you did not upgrade your existing links.db file. What you should do is add one field at a time and use the upgrade.pl that is referenced quite a few times in this forum.

Then add the next field, upgrade, then add the next field, and then upgrade the links.db file again.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Heckler] Hyperlinked Images during submission In reply to
Thank you for your reply. I found out the reason was that I had one submission before the changes were made and had to empty them all out first. Works great!