Hi,
Mmm.. thats pretty hard :/
What you would need to do - is have a hook on add_link , and then grab the image.
Then, the hard bit is getting it into the tables.
1) You would need to add the value into your field in the glinks_Links table
2) Then, add another entry (with the new path and URL to the image) into glinks_Links_Files
3) Finally, save the image into a hashed directory.
Getting the hash number is something like:
my $fletter = ( reverse split //, $fid )[0]; # get the hashed folder number from the ID.
...$fletter then holds the "hashed" folder ..i.e /path/to/file/$letter/$file
As you can see, not very easy =)
Hope that helps.
Cheers
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!
Mmm.. thats pretty hard :/
What you would need to do - is have a hook on add_link , and then grab the image.
Then, the hard bit is getting it into the tables.
1) You would need to add the value into your field in the glinks_Links table
2) Then, add another entry (with the new path and URL to the image) into glinks_Links_Files
3) Finally, save the image into a hashed directory.
Getting the hash number is something like:
Code:
my $max_id = $DB->table('Links_Files')->select( ['MAX(ID)'] )->fetchrow; # get the highest ID, which should be the entry you just added my $fletter = ( reverse split //, $fid )[0]; # get the hashed folder number from the ID.
...$fletter then holds the "hashed" folder ..i.e /path/to/file/$letter/$file
As you can see, not very easy =)
Hope that helps.
Cheers
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!