Removed
Dec 5, 2007, 1:59 AM
Veteran / Moderator (18441 posts)
Dec 5, 2007, 1:59 AM
Post #28 of 43
Views: 11953
Hi,
Send over GLinks admin access, and I'll have a look for you. Not sure what your problem is at the moment, so will just be easier to look into it.
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!
Send over GLinks admin access, and I'll have a look for you. Not sure what your problem is at the moment, so will just be easier to look into it.
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!
Feb 4, 2008, 9:43 AM
User (238 posts)
Feb 4, 2008, 9:43 AM
Post #30 of 43
Views: 11918
Hi
I have just had a 'problem' trying to get file upload to work correctly, this is the problem that I've had.
Added the Gloabl 'filecol_url'
------------------------------------------------------
sub {
my ($col, $id) = @_;
my $finfo = $DB->table('Links')->file_info($col, $id);
return $finfo->File_URL if $finfo;
}
------------------------------------------------------
Then added the relevant code to the link.html & detailed.html templates:
<img src="<%filecol_url('Imagesmall', $ID)%>" alt="<%Title%> <%bbtype%> <%Address%>: <%Category%>" align="left" hspace="5" />
<img src="<%filecol_url('Image', $ID)%>" alt="<%Title%> <%bbtype%> <%Address%>: <%Category%>" align="left" hspace="10" />
--------------------
Added 2 fields for images in the Links table: Image & Imagesmall
Links Table 'Image' properties (also used same settings for Imagesmall)
Column Name: Image
Column Type: VARCHAR
Column Size: 255
Form Type: FILE
File Save Location: /homepages/39/d216654623/htdocs/breakfastcom/bedandbreakfast
File Save Method: HASHED
Form Regex: (?i)^(?:|[\w-\. ]+\.(?:jpg|jpeg|jpe|gif|png))$
-------------------------------------------
I was able to upload the images, which were being stored in the designated 'File Save Location'
But when the 'link' and detailed pages were viewed, the 'image was missing'
Right click on where the missing image should have been showed a different url (different to the expected path)
----------------------------
Link ID 1 & 2
Image
Imagesmall
missing image (image file url properties)
http://www.******************.com/...leap_lodge_small.JPG
path: /breakfastcom/bedandbreakfast/2/2-byards_leap_lodge_small.JPG
http://www.******************.com/...yards_leap_lodge.JPG
path: /breakfastcom/bedandbreakfast/1/1-byards_leap_lodge.JPG
---------------------------
One point to notice is that I had the 'paths & url's' set to:
http://www.**************.com/list/
After checking all settings, the only way that I found to make this work was I changing the 'paths & url's' to www.**************.com and changing
File Save Location: /homepages/39/d216654623/htdocs/breakfastcom
Any ideas as what went 'wrong' also at present the images are being stored in folders named '0' to '9' at the root of the domain
Is this OK
What is / was the problem?
Any advice appreciated.
Thanks
Colin Thompson
I have just had a 'problem' trying to get file upload to work correctly, this is the problem that I've had.
Added the Gloabl 'filecol_url'
------------------------------------------------------
sub {
my ($col, $id) = @_;
my $finfo = $DB->table('Links')->file_info($col, $id);
return $finfo->File_URL if $finfo;
}
------------------------------------------------------
Then added the relevant code to the link.html & detailed.html templates:
<img src="<%filecol_url('Imagesmall', $ID)%>" alt="<%Title%> <%bbtype%> <%Address%>: <%Category%>" align="left" hspace="5" />
<img src="<%filecol_url('Image', $ID)%>" alt="<%Title%> <%bbtype%> <%Address%>: <%Category%>" align="left" hspace="10" />
--------------------
Added 2 fields for images in the Links table: Image & Imagesmall
Links Table 'Image' properties (also used same settings for Imagesmall)
Column Name: Image
Column Type: VARCHAR
Column Size: 255
Form Type: FILE
File Save Location: /homepages/39/d216654623/htdocs/breakfastcom/bedandbreakfast
File Save Method: HASHED
Form Regex: (?i)^(?:|[\w-\. ]+\.(?:jpg|jpeg|jpe|gif|png))$
-------------------------------------------
I was able to upload the images, which were being stored in the designated 'File Save Location'
But when the 'link' and detailed pages were viewed, the 'image was missing'
Right click on where the missing image should have been showed a different url (different to the expected path)
----------------------------
Link ID 1 & 2
Image
Imagesmall
missing image (image file url properties)
http://www.******************.com/...leap_lodge_small.JPG
path: /breakfastcom/bedandbreakfast/2/2-byards_leap_lodge_small.JPG
http://www.******************.com/...yards_leap_lodge.JPG
path: /breakfastcom/bedandbreakfast/1/1-byards_leap_lodge.JPG
---------------------------
One point to notice is that I had the 'paths & url's' set to:
http://www.**************.com/list/
After checking all settings, the only way that I found to make this work was I changing the 'paths & url's' to www.**************.com and changing
File Save Location: /homepages/39/d216654623/htdocs/breakfastcom
Any ideas as what went 'wrong' also at present the images are being stored in folders named '0' to '9' at the root of the domain
Is this OK
What is / was the problem?
Any advice appreciated.
Thanks
Colin Thompson
Feb 4, 2008, 10:14 AM
Veteran / Moderator (18441 posts)
Feb 4, 2008, 10:14 AM
Post #31 of 43
Views: 11770
Hi,
Mmm.. I'm not sure - but I do think you need to set your "file save URL" for the field (not just the "path")
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.. I'm not sure - but I do think you need to set your "file save URL" for the field (not just the "path")
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!
Feb 4, 2008, 1:03 PM
User (238 posts)
Feb 4, 2008, 1:03 PM
Post #32 of 43
Views: 11732
Andy
before I go and make a blunder!!
if I now set the "File Save URL" and "File Save Path" to use the folder that I originally wanted to use:
Path = /homepages/39/d216654623/htdocs/breakfastcom/bedandbreakfast
Url = http://www.*************.com/bedandbreakfast
Will I then need to 'move' the image files that are currently located at:
/homepages/39/d216654623/htdocs/breakfastcom/1
/homepages/39/d216654623/htdocs/breakfastcom/2
/homepages/39/d216654623/htdocs/breakfastcom//3 etc
Thanks.
Colin Thompson
before I go and make a blunder!!
if I now set the "File Save URL" and "File Save Path" to use the folder that I originally wanted to use:
Path = /homepages/39/d216654623/htdocs/breakfastcom/bedandbreakfast
Url = http://www.*************.com/bedandbreakfast
Will I then need to 'move' the image files that are currently located at:
/homepages/39/d216654623/htdocs/breakfastcom/1
/homepages/39/d216654623/htdocs/breakfastcom/2
/homepages/39/d216654623/htdocs/breakfastcom//3 etc
Thanks.
Colin Thompson
Feb 5, 2008, 1:08 AM
Veteran / Moderator (18441 posts)
Feb 5, 2008, 1:08 AM
Post #33 of 43
Views: 11818
Hi,
Its not quite as simple as just "moving" the images.
You need to update your glinks_Links_Files table, as the "paths" in there will be wrong otherwise (they will still be linking to the old place)
How many images do you have already? If its only a few, then the easiest way is to just re-upload them with the new settings - otherwise there is a more long winded way to do it, if you have hundreds of images.
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!
Its not quite as simple as just "moving" the images.
You need to update your glinks_Links_Files table, as the "paths" in there will be wrong otherwise (they will still be linking to the old place)
How many images do you have already? If its only a few, then the easiest way is to just re-upload them with the new settings - otherwise there is a more long winded way to do it, if you have hundreds of images.
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!
Feb 5, 2008, 1:21 AM
Veteran / Moderator (18441 posts)
Feb 5, 2008, 1:21 AM
Post #35 of 43
Views: 11884
Hi,
Yeah, definatly better to get sorted sooner rather than later :)
If you get the GD plugin, I don't mind helping you get it all working (without having to re-do all the images)
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!
Yeah, definatly better to get sorted sooner rather than later :)
If you get the GD plugin, I don't mind helping you get it all working (without having to re-do all the images)
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!
Dec 30, 2010, 12:09 PM
User (164 posts)
Dec 30, 2010, 12:09 PM
Post #37 of 43
Views: 11472
Andy wrote:
Hi, The attachment is there :) Here's a direct link to it. http://www.gossamer-threads.com/...ment;postatt_id=2060 Hope that helps. CheersScript functions well, however when I want to Delete an image appears an error: Logomarca cannot contain the value "
Quote:
<div class="row clear"> <label for="Logomarca" class="name">Logomarca:</label>
<div class="value wrappedtext">
<%~if page_id eq add%>
<input type="file" id="Logomarca" name="Logomarca" class="file" />
<%~else%>
<%~if Logomarca%>
<input type="radio" id="Logomarca_del_2" name="Logomarca_del" value="0" checked="checked" /> <label for="Logomarca_del_2"><%Logomarca%></label>
<%~endif%>
<div>
<%~if Logomarca%>
<input type="radio" id="Logomarca_del_0" name="Logomarca_del" value="1" /> <label for="Logomarca_del_0">Delete</label>
<input type="radio" id="Logomarca_del_1" name="Logomarca_del" value="0" /> <label for="Logomarca_del_1">Replace <input type="file" id="Logomarca" name="Logomarca" class="file" /></label>
<%~else%>
<input type="file" id="Logomarca" name="Logomarca" class="file" />
<%~endif%>
</div>
<%~endif%>
</div>
</div>
Dec 30, 2010, 12:16 PM
User (164 posts)
Dec 30, 2010, 12:16 PM
Post #38 of 43
Views: 11373
Quote:
Added 2 fields for images in the Links table: Image & Imagesmall Links Table 'Image' properties (also used same settings for Imagesmall)
Column Name: Image
Column Type: VARCHAR
Column Size: 255
Form Type: FILE
File Save Location: /homepages/39/d216654623/htdocs/breakfastcom/bedandbreakfast
File Save Method: HASHED
Form Regex: (?i)^(?:|[\w-\. ]+\.(?:jpg|jpeg|jpe|gif|png))$
Quote:
# Allow no file to be attached or an image of type jpeg, gif, or png (?i)^(?:|[\w-\. ]+\.(?:jpg|jpeg|jpe|gif|png))$
# A pdf must be attached
(?i)^[\w-\. ]+\.pdf$
USE:
(?i)^([\w-\. ]+\.(?:jpg|jpeg|jpe|gif|png))$
Dec 30, 2010, 11:59 PM
Veteran / Moderator (18441 posts)
Dec 30, 2010, 11:59 PM
Post #39 of 43
Views: 11439
I'm assuming this means you managed to work it out?
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!
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!
Dec 31, 2010, 8:29 AM
Veteran / Moderator (18441 posts)
Dec 31, 2010, 8:29 AM
Post #41 of 43
Views: 11387
Ok cool
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!
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!