how can I extract MYSITE from there? somebody?
c’mon guys.. help me with my little problem
Are you using the TimThumb plugin? Looks like it. Can you show us the code you’re using in your theme to fetch the image?
yes it is the TimThumb and i hope this code line is what you asking.
<img class=”home-thumbs” alt=”‘.$title.'” src=”‘.$blogurl.’/thumbnail.php?src=’.$image.’&h=80&w=120&zc=0″ />
and that line means …thumbnail.php?src=http://www.mysite.com/image.jpg and it is not working.. if i test without “http://www.mysite.com” it works but i dont know how to extract my url from link
Ok here’s what I have to do when I use TimThumb. First make sure the folder that contains it has it’s permissions set to writeable. Here’s what my code looks like:
<img src="http://mysite.com/js/timthumb.php?src='.$image.'&w=280&zc=1" alt="" class="">
You have to point the image location first to TimThumb, and then to the location of the image. So if your TimThumb script is in a folder named ‘js’ at the root of your domain the url would look like the one above.
Or did you rename timthumb to be thumbnail.php? If so and it’s still not working try replacing ‘.$blogurl.’ with an absolute path. If that doesn’t work double check your permissions on the folder containing the TimThumb script, and also make sure that inside that same folder is another folder named “cache” that’s also writeable.
i can not point the image location because this is automatically if i point one image it will modify more images… more posts with the same pic.
the problem is not at ‘.$blogurl.’ the problem is at ‘.$image.’
that ‘.$image.’ means http://www.mysite.com/image-location/ and i want ‘.$image.’ to be /image-location/ only.
thanks
Did you define $image somewhere else, above the code perhaps?
no i didnt defined it.. i think this is the solution but i don’t know how to do that.. to define $image to /
Hm…I’m not too sure either. You could try this, but I don’t know that it will work.
<? $image = /image-location/ ?>
That’s probably not right but it might be close. Hopefully someone else will be able to pop in and give you the right answer.
can somebody else to help please?