Welcome, Guest
Username Password: Remember me

help with imagerescaler
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: help with imagerescaler

help with imagerescaler 13 years ago #4256

  • farukkm
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Hi,

Can someone please help me with this error : Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in/homez.420/miboutiq/www/administrator/components/com_mobilejoomla/imagerescaler.class.php on line 18.

here is the code

<?php
/**
* Mobile Joomla!
* www.mobilejoomla.com
*
* @version 0.9.12
* @license www.gnu.org/licenses/gpl-2.0.htm GNU/GPL
* @copyright (C) 2008-2011 MobileJoomla!
* @date February 2011
*/
defined('_JEXEC') or die('Restricted access');

jimport('joomla.filesystem.file');
jimport('joomla.filesystem.folder');

class ImageRescaler
{
static $thumbdir = 'Resized';
static $addstyles = true;
static $forced_width = null;
static $forced_height = null;
static $scaledimage_width = null;
static $scaledimage_height = null;
static $scaletype = 0;

function RescaleImages($text, $scaletype = 0, $addstyles = false)
{
ImageRescaler::$scaletype = $scaletype;
ImageRescaler::$addstyles = $addstyles;
return preg_replace('#<img(\s[^>]*?)\s?/?>#ie', "'<img'.ImageRescaler::imageParsing('\\1').' />'", $text);
}

thanks in advance

Re: help with imagerescaler 13 years ago #4257

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
Use PHP5 (or replace instances of "static $" by "var $" in that file).
The following user(s) said Thank You: farukkm

Re: help with imagerescaler 12 years, 12 months ago #4276

  • farukkm
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Hi again, im sorry to bug a boo but now i have changed to PHP 5 no more error messages but now i have lost all the images and links i had before on the front page and on the menu links.

Re: help with imagerescaler 12 years, 12 months ago #4277

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
Check value of "Image rescaling" parameter on each of MJ settings tabs (iPhone, Wap, etc.).

Re: help with imagerescaler 12 years, 12 months ago #4278

  • farukkm
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Image rescaling parameters:

Image adaptation method : Rescale if bigger
Use style to force image size: Yes
Gzip compression: Auto
Remove unsupported tags: Yes
Decrease Image Width: Default value

All the rest is on default settings

Re: help with imagerescaler 12 years, 12 months ago #4279

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
What is URL of your site?

Re: help with imagerescaler 12 years, 12 months ago #4280

  • farukkm
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0

Re: help with imagerescaler 12 years, 12 months ago #4281

  • farukkm
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
this is what it looks like after instaling MJ! as you can see no images of the products on front page or side links but when i disable MJ they comeback!!

Re: help with imagerescaler 12 years, 12 months ago #4282

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
It looks like you don't enable show of component on homepage (by default MJ shows menu module only to speedup access to other parts of the site).

Re: help with imagerescaler 12 years, 12 months ago #4308

  • farukkm
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
thank you for your quick ressponse!! you are the man
  • Page:
  • 1
Time to create page: 0.10 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.