If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
AGB: guests uploaded pictures  XML
Forum Index » Support Forum
Author Message
fatjacK
Student
[Avatar]

Joined: 08/11/2004 22:27:28
Messages: 50
Location: Isle of Sheppey
Offline

Morning,

I've searched the forum for this but can't find an answer.
on my guestbook at: http://www.jrmmusic.co.uk/gbook/index.php
at entry 140 the signer has included a picture - I can't see this on my computer but others can: is it a browser issue? I've turned off anti virus.
Can I look in the AGB files to check the existance of the up-loaded pictures? Also on my other guestbook if you click a picture a pop-up appears with the original uploaded image this does not seem to work at drrinK!

cheers in advance, fj
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

As to why you can't see the image, god knows. The picture is there, I can see it. It is in the public folder as it should be. In theory though none of the images should be showing as thay all start with /gbook/ which would tell the browser to look for a folder called gbook within the current folder. Do you see the other images? Have you set the base_url variable in the config file?

As to the pop up problem, you've removed the javascript responsible for it. It should be in the head section.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
fatjacK
Student
[Avatar]

Joined: 08/11/2004 22:27:28
Messages: 50
Location: Isle of Sheppey
Offline

Thankyou Carbonize for your prompt reply.
Yes I can see the other pictures and I just checked on another computer and the picture shows on that one using the same browser version. Hope god is watching this forum!

I haven't messed with the base_url variable yet will try now.

The head section? is that header.php where I replaced all with my html?
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Yup. Slap this in your head section
  1. <script language="JavaScript">  
  2. <!--  
  3. function gb_picture(Image,imgWidth,imgHeight) {  
  4.     var border = 24;  
  5.     var img = Image;  
  6.     var features;  
  7.     var w;  
  8.     var h;  
  9.     winWidth = (imgWidth<100) ? 100 : imgWidth+border;  
  10.     winHeight = (imgHeight<100) ? 100 : imgHeight+border;  
  11.     if (imgWidth+border > screen.width) {  
  12.         winWidth = screen.width-10;  
  13.         w = (screen.width - winWidth)/2;  
  14.         features = "scrollbars=yes";        
  15.     } else {  
  16.         w = (screen.width - (imgWidth+border))/2;  
  17.     }  
  18.     if (imgHeight+border > screen.height) {  
  19.         winHeight = screen.height-60;  
  20.         h = 0;  
  21.         features = "scrollbars=yes";        
  22.     } else {  
  23.         h = (screen.height - (imgHeight+border))/2 - 20;  
  24.     }  
  25.     winName = (img.indexOf("t_") == -1) ? img.substr(4,(img.length-8)) : img.substr(6,(img.length-10));  
  26.     features = features+',toolbar=no,width='+winWidth+',height='+winHeight+',top='+h+',left='+w;  
  27.     theURL = 'picture.php?img='+Image;  
  28.     popup = window.open(theURL,winName,features);  
  29.     popup.focus();    
  30. }  
  31. //-->  
  32. </script>  

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
fatjacK
Student
[Avatar]

Joined: 08/11/2004 22:27:28
Messages: 50
Location: Isle of Sheppey
Offline

Thankyou Sir,

That sorted that out.

Thats seven out of eight that see the picture in GB entries 140 & 143
at http://www.jrmmusic.co.uk/gbook/index.php at present it's only my browser that does not render the pictures.

as you say "god knows"

cheers
fj
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

What browser is it and can you see images on other guestbooks such as www.carbonize.co.uk/guestbookbeta/ ???

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
fatjacK
Student
[Avatar]

Joined: 08/11/2004 22:27:28
Messages: 50
Location: Isle of Sheppey
Offline

I'm running internet explorer ver. 6.0.2800. on windows XP
on your page I see images at locations 13, 15 & 22 only

I've just had a look in the public folder and as you say the pictures are there. I'll try pulling one out of there and uploading it myself to the GB

This is weird I located the file at http://www.myurl.co.uk/mygbfolder/public/img-1104484235.jpg
copied it and entered it into the GB My browser ignored it
I trimmed off the bit of white space either side of the picture then entered it in to the gb and presto!
[Email] [WWW]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum