studio

site development

Добро пожаловать, Гость
Пожалуйста Вход или Регистрация.    Забыли пароль?

Problem with smartresize
(1 чел.) (1) Гость
ВнизСтраница: 1
Сообщения темы: Problem with smartresize
*
#500
Problem with smartresize 2 г., 2 мес. назад Репутация: 0
I'm having a problem getting the expected results from smartresize. I new at all this (joomla and smartresize) but I'm using the latest stable version of joomla (downloaded it last week) and version 1.13 of smartresize. I get a border around the image but no resizing. I've attached a word document that has information that should show everything I've done and the results I get. Any help would be appreciated.

Прикрепленный файл
Имя файла: Plugin_details.doc
Размер файла: 79360
Mike G
Fresh Boarder
Постов: 4
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#502
Re: Problem with smartresize 2 г., 2 мес. назад Репутация: 6
Hello.
First. The sizes you set in plugin parametres are too small (5px). Set the real sizes (50-100)

GENERAL TWO: You should use relative Joomla path for image src, such us
Код:

<IMG src="images/image.jpg">

Also You should place images into Joomla site folder /images.
Also You can use absolute path for image src, such as
Код:

<IMG src="http://www.yoursite.com/images/image.jpg">


You should not use the file system path such as
Код:

<IMG src="c:\myserverfolder\image.jpg">
Igort
Administrator
Постов: 584
graph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 12.03.2010 17:57 Редактировал Igort.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#503
Re:Problem with smartresize 2 г., 2 мес. назад Репутация: 0
I made the changes you suggested and while there was some difference in result it still isn't what you would have expected. I also looked in the image folder and there was no thumbnail created for my image. I did as you suggested and moved the original picture into the image folder and added it to the article from there. A;so if I click on the image placeholder (that displays in the article where the thumbnail should be) the result is not the full image but simply the placeholder shows up again. as before, any help appreciated - I realize I'm doing some dead wrong but whatever it is, isn't obvious.
Прикрепленный файл
Имя файла: Plugin_details_2.doc
Размер файла: 54272
Mike G
Fresh Boarder
Постов: 4
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 12.03.2010 20:20 Редактировал Mike G.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#504
Re:Problem with smartresize 2 г., 2 мес. назад Репутация: 6
Your img source path is invalid. Do you set it manually? Use TinyMCE editor to add image into article. You source path must be the following:
Код:

images/stories/image.jpg

or full URL
Код:

httt://www.yourlocalhost.com/images/stories/image.jpg

but not this
Код:

http://localhost/joomla1514/images.. - it is wrong URL
Igort
Administrator
Постов: 584
graph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 12.03.2010 20:51 Редактировал Igort.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#505
Re:Problem with smartresize 2 г., 2 мес. назад Репутация: 0
Still not working. I used the "picture" button at the top of the editor (previously I'd used image button at the bottom).

This is the editor source (cobtained by clicking on the "Toggle editor button):
<P><IMG style="FLOAT: left" src="images/stories/tarkingtontower.jpg" mce_style="float: left;" mce_src="images/stories/tarkingtontower.jpg">&nbsp;</P>

After I add the class=smartresize command it looks like this:
<P><IMG class=smartresize style="FLOAT: left" src="images/stories/tarkingtontower.jpg" mce_style="float: left;" mce_src="images/stories/tarkingtontower.jpg">&nbsp;</P>

When I toggle back I see the very large picture that was loaded from:
images/stories/tarkingtontower.jpg

If I toggle back to the source again, I see:
<P><IMG style="FLOAT: left" class=smartresize src="localhost/joomla15/images/stories/tarkingtontower.jpg" mce_style="float: left;" mce_src="images/stories/tarkingtontower.jpg">&nbsp;</P>

When I preview my site, I get the placeholder icon.


-----

came back to add that the image folder is marked as "read only" in properties. could that be preventing the creation of a thumbnail?

tried to change the permissions but couldn't, for some reason my OS will not permit it. I'm using Vista on my machine.
Mike G
Fresh Boarder
Постов: 4
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 12.03.2010 21:44 Редактировал Mike G.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#506
Re:Problem with smartresize 2 г., 2 мес. назад Репутация: 6
Its very strange. Try to set TinyMCE editor plugon parameter "URLs" to value "Relative". Then use "Image" button at the bottom of editor to add image. Then select image and open image properties with "picture" button of editor tools panel. Set class smartresize, set needed width and height of image, then press Ok and save article.

Your image src must be images/stories/tarkingtontower.jpg
Your use very strange server software, which make strange URL such as
Код:

http://localhost/joomla1514/images

Try to do relative path of img src images/stories/tarkingtontower.jpg
Igort
Administrator
Постов: 584
graph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#507
Re:Problem with smartresize 2 г., 2 мес. назад Репутация: 0
I checked the parameters for the editor and it was the "relative" setting for URLs.

I also loaded the image using the button at the bottom of the editor screen, then selected the loaded image and clicked on the HTML button (instead of using the editor toggle button).

The HTML before I changed it:
<P><IMG alt="" src="localhost/joomla15/images/stories/tarkingtontower.jpg" mce_src="images/stories/tarkingtontower.jpg">&nbsp;</P>

I then made the changed "src=" string (but didn't yet click update so you could see the change I made:
<P><IMG alt="" src="images/stories/tarkingtontower.jpg" mce_src="images/stories/tarkingtontower.jpg">&nbsp;</P>

Then added the class=smartresize command:
<P><IMG alt="" class=smartresize src="images/stories/tarkingtontower.jpg" mce_src="images/stories/tarkingtontower.jpg">&nbsp;</P>


Then I clicked on the HTML source editor update button. I clicked it again so I could double check the result:
<P><IMG class=smartresize alt="" src="localhost/joomla15/images/stories/tarkingtontower.jpg" mce_src="images/stories/tarkingtontower.jpg">&nbsp;</P>



by the way, the server software is: XAMPP if that matters. Also the O/S is Windows Vista as I'm developing this locally before I upload it to a "for real" host.


By the way, I noticed that: localhost/joomla15/images/stories/tarkingtontower.jpg


is a valid URL once I posted it "here". So I clicked on it to see if that would display the picture for me and I got the following message:

Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403
localhost
03/12/10 16:17:48
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
Mike G
Fresh Boarder
Постов: 4
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 13.03.2010 00:21 Редактировал Mike G.Причина: to add additional information
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#510
Re:Problem with smartresize 2 г., 2 мес. назад Репутация: 6
Hello Mike.
I do not know how to configure XAMPP properly. I use another server software for local server.
But I can assume by analogy with my local server, you must assign a virtual host name for the folder of your site, such as mysite.com.
Appeal to your local site not should be via localhost/yoursitefolder, but should be addressed through the virtual domain mysite.com. Try to set up your local server so
Igort
Administrator
Постов: 584
graph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 13.03.2010 10:53 Редактировал Igort.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
ВверхСтраница: 1
Модераторы: Igort
получить последние сообщения прямо на Ваш рабочий стол