Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 13:49

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: A couple of questions
PostPosted: 18. May 2008, 21:46 
Offline

Joined: 18. May 2008, 21:25
Posts: 16
First let me say I love this program! I spent days looking for a good software and eventually came across this. It's marvellous!

I'm not a php guru, so please bare with me. Questions are as follows. Please keep in mind that I can't use iframes.. my host adds ads to them, and iframes are weird..

1. I uploaded 2 pictures to the pictures folder (not in a subdirectory, but in the pictures folder itself because I don't want multiple galleries. They show up, but when I click on one of the pics, the image does not show up (i get a white box with a red "x"). When I click the pic in the navigation bar at the bottom though, then the image loads up. Why is it not loading the image when I first click it? In the installation check, the image doesn't load either where it says "An image has to be shown below. If not, images cannot be loaded properly! Please check the debug file for more details!" but nothing is in the logs about it. I don't have ffmpeg installed, could this be the reason? The images are jpg. Everything else passes / is ok in the installation check page. When I click on an image to launch the full image in a popup, that doesn't load either.. window pops up with a white box and a red x.



2. My site is currently set up with php and css. I have one php for header, one for left panel, one for body, and one for footer. I want to place TWG in the right panel so i copy-pasted index.php from the main directory into it. Is this the right way? It seems to work minus the issue mentioned above, and it's also kind of messing up my formatting (see 3).


3. The formatting for my left panel is being changed. I had some elements named <h3> that were a smaller size than the default, but on the TWG page's index.php, they go back to default size. When i first launch the folder where index.php is, it shows up fine, but when the TWG code runs (the right side / body loads) it changes. I'm guessing this has to do with my site's style.css being used, and then twg overriding it when it loads. Any workaround?


I tried a fresh installation as well, without changing anything, without using my site's style.css, header, or any other file (all original TWG files) and have the same problem with the image not showing up.


Help will be really, really appreciated. I really want to incorporate this tool on my site.
Thanks!!


Top
 Profile  
 
 Post subject:
PostPosted: 19. May 2008, 09:43 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

1. check the php memory size - are you maybe at the limit? and have you adopted the paths?

2. no - include the stuff with php include. read howto 2 how do do this properly - it maybe solved 1 too!

3. TWG is not overwritting default styles like table or h3 because I use classes almost everywhere. Only the link colors are overwritten.
You should use classes as well!

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. May 2008, 12:21 
Offline

Joined: 18. May 2008, 21:25
Posts: 16
Thanks!

1. As far as the php memory size, glad you mentioned that :) Here's what the installation check says.
- Memory limit Memory limit not detected
What does that mean?

2. I'll give php include a shot after work today. I really hope it works :) I can't wait to have this program working on my site.

3. Hmm, that's weird.. that was the only reason I could think of since my other pages still work fine, and the gallery page uses my site's style for a few seconds in internet explorer, and then the gallery loads and the page changes to a slightly different style (the left navigation panel moves a little to the right, and the sub-headings in it get larger). I'll try to set up classes for it :)


Thanks man!


Top
 Profile  
 
 Post subject:
PostPosted: 19. May 2008, 12:42 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
3. make sure to set the php include settings. you might have to modify the style.css of TWG where the html part is. html does not allow a class therefore I overwrite your margin settings.

/Michael


Top
 Profile  
 
 Post subject: Some issues resolved :D
PostPosted: 19. May 2008, 19:31 
Offline

Joined: 18. May 2008, 21:25
Posts: 16
Thanks!!! Really happy now :D The include setting worked. Can't believe I didn't read that on the how to's before..

The other issue remains though. The white square with a red x, initially. The image doesn't load in the installation check either in the admin control panel.

"An image has to be shown below. If not, images cannot be
loaded properly! Please check the debug file for more details!

And there's nothing in the debug file about it..

Also having trouble with captions disappearing. Below my images, i see "()" instead of the captions.


Top
 Profile  
 
 Post subject:
PostPosted: 19. May 2008, 19:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
is there a log file in the counter folder?
Seems your setup is still not right.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. May 2008, 20:37 
Offline

Joined: 18. May 2008, 21:25
Posts: 16
Yup,

user_log.txt has "17&05&2008&21& 18&05&2008&22& "

and the actual log file, _twg.log has my login attempts, but nothing else.

Those are the only two files in the counter folder that have anything to do with logs. The rest are .txt files for storing other things it seems, like the counter, users online, etc.


I tried a fresh install on another domain (same host). I didn't use any of my php files for it, nor changed anything. It's exactly the package that I downloaded from here, unmodified. it also has the same problem, with the red x :(


Top
 Profile  
 
 Post subject:
PostPosted: 19. May 2008, 21:07 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
the log file would be _mydebug.out.

if you right click on the red x and open the link what is shown?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. May 2008, 21:19 
Offline

Joined: 18. May 2008, 21:25
Posts: 16
_mydebug.out doesn't exist in that directory.

When i right-click the red x and open the link, i get a popup. My host puts ads in all popups so there's the ad at the top, and then I get some special characters ("ÿØÿà").

If I click the red x and check its link, I get this address (image.php? twg_album=&twg_type=small&twg_show=clouds.jpg&twg_rot=-1)

is twg_rot=-1 valid? Also, I don't have galleries, I just have all my pictures in the "pictures" folder directly, not in sub-directories. Could this be causing it? I really don't want to use galleries, i want to have a default gallery that is automatically launched in index.php.


Top
 Profile  
 
 Post subject:
PostPosted: 19. May 2008, 21:23 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
of course you can have images in the main dir.

maybe the popup stuff is adding additional code before the image! And then it cannot be shown properly!

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. May 2008, 21:29 
Offline

Joined: 18. May 2008, 21:25
Posts: 16
Ah, the ad shouldn't mess things up though.. Here's the source code of the popup.



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>clouds.jpg</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../style.css" >
<script type="text/javascript">
var myWidth = 0, myHeight = 0;

function fitWindow(id)
{
var OriginalWidth = 0, OriginalHeight = 0;
bild = document.getElementById(id);
if (OriginalWidth == 0 && OriginalHeight == 0)
{
document.body.style.display = "block";
bild.style.display = "block";
OriginalWidth = bild.width;
OriginalHeight = bild.height;
}
if (((screen.width-180)>bild.width) && ((screen.height-100)>bild.height)) {
window.resizeTo(900, 600);
getInnerWidth();
offsetx = 900 - myWidth;
offsety = 600 - myHeight;
window.resizeTo(bild.width + offsetx, bild.height + offsety);
document.title=document.title + " " + OriginalWidth + "x" + OriginalHeight + " (100%)";
} else { // pic is larger than screen
factor = bild.width/bild.height;
factorscreen = screen.width/screen.height;

if (factor > factorscreen) {
// width of screen!
window.resizeTo(screen.width-180, (screen.width-180)/factor);
getInnerWidth();
yoff = ((myWidth / myHeight) - factor) * myHeight;
window.resizeBy(0 , yoff);
} else {
// height of screen!
window.resizeTo(((screen.height-60)*factor), (screen.height-60));
window.resizeBy(-35, 0);
}

getInnerWidth();
if (Math.abs(((myWidth / myHeight) - factor)*100) < 10) {
bild.width=myWidth;
bild.height=myHeight;
percent = Math.round((bild.width / OriginalWidth) * 100);
document.title=document.title + " " + OriginalWidth + "x" + OriginalHeight + " (" + percent + "%)";
pos = (screen.width-myWidth)/2;
window.moveTo(pos ,0);
} else { // Opera or settings that don't allow to resize the browser !
newFactor = myWidth / myHeight;
if (newFactor > factor) { // height is restricting
bild.width=myHeight*factor;
bild.height=myHeight;
} else { // width is restricting !
bild.width=myWidth;
bild.height=myWidth/factor;
}
}
}
}

function getInnerWidth() {
if( typeof( window.innerHeight ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement &&
( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
}
</script>
</head>
<body class="twg_body_popup" onload="javascript:fitWindow('popimage');"><div style='z-index:1191'><a href='../image.php?twg_album=&amp;twg_show=clouds.jpg'><img style='border:none' alt='' id='popimage' src='../image.php?twg_album=&amp;twg_show=clouds.jpg'></a></div></body>
</html></object></layer></span></div></table></body></html><!-- adsok -->
<script language='javascript' src='https://a12.alphagodaddy.com/hosting_ads/gd01.js'></script>



so only the last line is added by the host. It's probably an error with my configuration since images don't show up in the installation check either.

Also noticed one more thing. The href points to "../image.php?" etc. Is it actually looking for image.php in the parent directory? Maybe I'm misunderstanding that piece of the code. Shouldn't it be "image.php?" etc without the "../"?


Top
 Profile  
 
 Post subject:
PostPosted: 19. May 2008, 21:33 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you are looking to the wrong place.

you openend the popup. I was talking about the image itself.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. May 2008, 22:53 
Offline

Joined: 18. May 2008, 21:25
Posts: 16
Only the html code I pasted is from the popup. The address for the red x (right-clicked the x, clicked properties, and pasted the address) is
http://www.bakershell.com/pictures/imag ... twg_rot=-1

Might be easier if you check out my page?

I really appreciate the help man :)


Top
 Profile  
 
 Post subject:
PostPosted: 20. May 2008, 02:24 
Offline

Joined: 18. May 2008, 21:25
Posts: 16
an update.

Apparently the following link is called upon launching the gallery and it doesn't work.

http://www.bakershell.com/pictures/inde ... clouds.jpg

clouds.jpg does exist in http://www.bakershell.com/pictures/pictures/
twg is installed in http://www.bakershell.com/pictures/


Top
 Profile  
 
 Post subject:
PostPosted: 20. May 2008, 08:39 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
your problem are the ad's !!

http://www.bakershell.com/pictures/imag ... clouds.jpg

This is the link that should generate an image and return it. And your hoster is adding his add stuff to the link. And than of course it does not work anymore.
This is the same reason why the thumbnail flash does not work. The xml that should be returned is not valid because of the ad's that is in the xml.

Get a ad free hoster.

/Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 82 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy