Topic: Viewer is not working , images shown in different url

Hey

im having this problem and i don't why

when someone uploads an image , the preview image is shown in an incorrect url , and same problem in viewer


for example
i tried to upload http://chevereto.com/foro/img/smilies/smile.png
the preview image url should be http://fuzzypic.com/images/09212009/smile.png
but it shows like this http://fuzzypic.com/smile.png , and its not working , i mean thats not the real image url
and same problem with viewer http://fuzzypic.com/?v=smilemxm.png

anyone ?

Last edited by Gat Dat (09/21/2009 11:32:26)

Thumbs up Thumbs down

Re: Viewer is not working , images shown in different url

hmpf, have you changed the chmods of the upload dir or even renamed the normal "image" dir without taking care in the config.php?
Btw the normal urls to images are like that:
http://fuzzypic.com/images/09212009smile.png (no slash between)

Removing chevereto credit suxxx mad

Thumbs up Thumbs down

Re: Viewer is not working , images shown in different url

no i haven't changed anything with the image dir , btw i added a folders by date , and it worked well
but after i changed the style
im getting this problem

Thumbs up Thumbs down

Re: Viewer is not working , images shown in different url

In addition to your date-folder plugin u should add a htaccess to the images/MONTH_DAY_YEAR folder. Currently anyone can browse the content, e.g. http://fuzzypic.com/images/09222009/ contains some nice asian girls lol

Have you thought about releasing your date-folder plugin? Its some kinda hard to solve the url problem without knowing the the additional code and settings.

Thumbs up Thumbs down

Re: Viewer is not working , images shown in different url

Well , thats not my problem now , maybe i will do release the plugin , but now , what should i do to solve this problem ?

Thumbs up Thumbs down

Re: Viewer is not working , images shown in different url

Dustin wrote:

..Its some kinda hard to solve the url problem without knowing the the additional code and settings.

try this:
open index.php
and find

<div id="contenido">
    <div id="tools"><div id="fullsize"<? if ($ancho<=900) { echo ' style="display: none; "'; }?>><a href="<?=PATH_SCRIPT.DIR_IM.$folhost.$name?>" title="<?=$ancho?>x<?=$alto?>"><?=FULL_SIZE;?></a></div><div id="sharethis"><a id="sharing"><?=SHARE;?></a><a id="sharing-close" style="display: none;"><?=SHARE;?></a></div></div>
    <div id="imagen"><a href="<?=PATH_SCRIPT.DIR_IM.$folhost.$name?>"><img src="<?=PATH_SCRIPT.DIR_IM.$folhost.$name?>" alt="" <? if ($ancho>=900) { echo 'width="900" '; } ?>/></a></div>
    

Without knowing the additional script content u can try to change the URL variables to the preview image after uploading. This may cause some errrors.

Solving ur problem my become easyer by knowing the full plugin.

Thumbs up Thumbs down