Showing posts with label Joomla. Show all posts
Showing posts with label Joomla. Show all posts

Wednesday, September 26, 2012

Joomla image problem Solution


The problem occurred while adding images on Joomla pages which has "Search Engine Friendly URLs" enabled.

First load shows images perfectly but after refresh it disappears., because of wrong image path. Even if you put full path, it removes domain path and leaves only default images path, Which is not right while SEF urls enabled.

Here is how to fix it ( Solution ):
1. Go to Gobal Configuration -> System -> Cashe settings
2. Change to "No"
3. Go to Plugin Manager. Search for System Cashe or Cashe.
4. Change Enabled to "No".
5. Done.

Full forums topic about this can be fount here:
http://forum.joomla.org/viewtopic.php?p=2124301

p.s. joomla 1.5 or others like 1.5.15, 1.5.20 and so on..

Monday, September 3, 2012

Disable code on specific Joomla pages

If you in trouble like me, and you cant fix problems which was created before you and you want to disable codes like mootools which was coded in index.php only on specific pages, so here is how:

1) Find index.php of your template
2) Find code which you want to disable
3) Check which component name of pages on which you want to disable code. In my situation it was - "com_hakishop"
4) Next add code lines:

if($option != 'com_hikashop') {
5) and close code with
} 
5) Save file. Delete cache. Refresh site to check if it works.
6) Done.

Friday, August 24, 2012

Upgrading old Joomla to Joomla 2.5 version



Today it was forced to upgrade my joomla 1.5.15 to 2.5.6 version, so i write step by step my install history.

Do buckup of your site in case you get "white screen". i dont take any responsibility for your actions. Only you do. Sooo good luck to you.

One big notice: Your current template of 1.5 will not be compatible with 2.5! You will need to update it else get new one for 2.5.

Here how i made it:

1) Upgrading Joomla from 1.5.15 to 1.5.16 by downloading zip file, uzipiing it, copying, pasting into project folder.
2) Upgrading Joomla from 1.5.16 to 1.5.17 by downloading zip file, uzipiing it, copying, pasting into project folder.
3) Upgrading Joomla from 1.5.17 to 1.5.18 by downloading zip file, uzipiing it, copying, pasting into project folder.
4) Upgrading Joomla from 1.5.18 to 1.5.19 by downloading zip file, uzipiing it, copying, pasting into project folder.
5) Upgrading Joomla from 1.5.19 to 1.5.20 by downloading zip file, uzipiing it, copying, pasting into project folder.
6) Upgrading Joomla from 1.5.20 to 1.5.21 by downloading zip file, uzipiing it, copying, pasting into project folder.
7) Upgrading Joomla from 1.5.21 to 1.5.22 by downloading zip file, uzipiing it, copying, pasting into project folder.
8) Upgrading Joomla from 1.5.22 to 1.5.23 by downloading zip file, uzipiing it, copying, pasting into project folder.
9) Upgrading Joomla from 1.5.23 to 1.5.24 by downloading zip file, uzipiing it, copying, pasting into project folder.
10) Upgrading Joomla from 1.5.24 to 1.5.25 by downloading zip file, uzipiing it, copying, pasting into project folder.
11) Upgrading Joomla from 1.5.25 to 1.5.26 by downloading zip file, uzipiing it, copying, pasting into project folder.

12) Register on http://redcomponent.com to get access to jUpgrade plugin
13) Download jUpgrade installer as zip file, install it from extension manager.
14) Activate "mootools" from plugin manager. ( It is already installed; So all you need to do is activate it )
15) Go to jUpgrade, press "start upgrade" it. Wait.
If it stucks on "Checking and cleaning..." read 16 steps;
else skip to 17.
16.a) If you upgrading on your PC server go to your php folder and find php.ini and find #extension=php_curl.dll and uncomment it - delete "#"
16.b) If you upgrading on hosting where your site is, people suggests to add 0777 chmod for "jupgrade" folder in your root directory

17) If you stuck at "Error: zip file was not successfully downloaded":
17.a) Check if folder jupgrade exists.
17.b) Go to google and search for "Joomla 2.5";
Download latest version;
Copy zip file to "jupgrade" folder in your root folder and extract it there.
Open JUpgrade and go to settings;
Near "skip download" select yes;
Near "skip decompress" select yes.
Try to upgrade again.

18) Finish.

Support our help with flatter.

Thanks

Friday, August 10, 2012

Joomla k2 joomfish elements translation

Yesterday and today i faced with problem in Joomla joomfish translation of joomla k2 elements.

While being in translation panel of joomla backend I couldn't find any of k2 elements for translation.

Solution for this is easy:

Please read #7 first

0) I suggest to do "backup" ( I used Akeeba backup )
1) Find same k2 version which you use, zip installer by searching it in internet
2) Download it
3) Than go to Extension manager of Joomla ( Backend Joomla -> Extensions -> Install / Uninstall )
4) Choose package file from browse for "Upload package file"
5) Select downloaded zip
6) Press "Upload file and install" button
7) After installiation you could miss some features which you might be changed before in k2 ( it happens whan you fix k2 code ( while doing it wrong way..., it shouldn't be happen if you do it right way by copying files to template folder to k2 html and so on.. ) ).
8) Now you should fine... and able to find k2 elements.

Good luck.

Thursday, July 12, 2012

WARNINGcall_user_func_array() expects parameter 2 to be array, string givenError in line 649

Today i faced with JCE joomla image manager problem. It was displaying all the time when i tried to insert or edit image.
PHP Error Message: WARNINGcall_user_func_array() expects parameter 2 to be array, string givenError in line 649 of file /customers/global-trade.dk/global-trade.dk/httpd.www/plugins/editors/jce/libraries/classes/plugin.php
So here is how to fix it:
1) Go to /plugins/editors/jce/libraries/classes/plugin.php,2) You should see the line code:
$result = call_user_func_array( $func, $args );
3) Edit it to this code:
$result = call_user_func_array( $func, (array)$args );
4) Save and go insert / edit images!

Source: http://ow-s.com/interesnye-stati/82-problema-s-jce-redaktorom-na-novyx-versiyax-php.html 

Tuesday, June 26, 2012

Warning: Parameter 1 to IcemodMainMenuHelper::IcebuildXML()



For few days i had headache because of icemod menu which was installed in web site which i got zipped by Akeeba Backup tool based on Joomla.

Finally after many restores, i got notification in place where error appeared:
Warning: Parameter 1 to IcemodMainMenuHelper::IcebuildXML() expected to be a reference, value given in blah...blah...\libraries\joomla\cache\handler\callback.php on line 99
Googling the error i found solution for it:
1. Go to your Joomla files
2. Go to this directory \templates\...template name...\html\mod_mainmenu ( ...template name... - your template name )
3. Open to edit helper.php
4. Find line 31 with this code:
function IcebuildXML(&$params)
5. Delete "&" sign or replace the line with this one:
function IcebuildXML($params)


It helped me. Good luck you.

Source: http://www.icetheme.com/Forums/Feedback-regarding-IceTheme-Website/37034-the-problem-with-the-main-menu.html

Thursday, March 15, 2012

Click to open image! Joomla K2

Today i faced problem "Click to open image!". Its an text which appears in K2 Joomla item "Image gallery" over each photo.

I searched everywhere but couldn't find where this freaking text.

After successful search i found forums:

http://forum.joomlaworks.gr/simple-image-gallery-(plugin)/change-'click-to-open-image!'/

Solution is to copy en-GB to your language folder this file

project_name\administrator\language\en-GB\en-GB.plg_content_jw_sigpro.ini ( this file )
project_name\administrator\language\lt-LT\lt-LT.plg_content_jw_sigpro.ini  ( here and rename it )

Done.

Good luck!

Tuesday, September 27, 2011

Joomla K2 watermark image

We need to edit file - item.php which exists in our administrator folder, full path:
\administrator\components\com_k2\models\item.php

first we need to define the variable:
$img_url_watermark = "../images/watermark.png"; //(line 202)

near the comment line
//Original image

Then we need to paste the lines after each image comment to which we want to add watermark (i recommand not to add to small and xsmall... images )
$handle->image_watermark = $img_url_watermark;
$handle->image_watermark_position = "TL";

Than we need to add the code:
//gallery watermark
if($dir = opendir($savepath.DS.$row->id)) {
while (false !== ($file = readdir($dir))) {
$handle = new Upload ($savepath.DS.$row->id.'/'.$file);
$handle->allowed = array('image/*');
$handle->file_auto_rename = false;
$handle->file_overwrite = true;
$handle->image_resize = ture;
$handle->image_x = 1024;
$handle->image_ratio_y = true;
$handle->image_watermark = $img_url_watermark;
$handle->image_watermark_position = "TL";
$handle->image_convert = "jpg";
$handle->jpeg_quality = 85;
$handle->Process($savepath.DS.$row->id);
$handle->Clean();
}
closedir($dir);
}
//end

After the code:

if (!JArchive::extract($savepath.DS.$handle->file_dst_name, $savepath.DS.$row->id)) {
$mainframe->redirect('index.php?option=com_k2&view=items', JText::_('Gallery upload error: Cannot extract archive!'), 'error');
} else {
$row->gallery = '{gallery}'.$row->id.'{/gallery}';
}
JFile::delete($savepath.DS.$handle->file_dst_name);
$handle->Clean();

Its about 430~ line

That is all.... done :)

p.s. some sources where the solution was fount

http://api.ning.com/files/HXT6DGp5WSJFHL5RzYp-Jb*WUL4Ep5eAy*opKr8s8KN4pt-DDD92wDPKlmNCmWeQd8msVcosqVIjDLKY3jJ-pZ*6PcJz56pR/diff1.gif
http://api.ning.com/files/*txNFL3oxugapDshDybYqwZ6pM1HRBera8DL7uZp5keDIc40jfg8UZf-SEvT3aVakQ35-yRj-RYTlZXBcGxHOa0R2gQPSkPN/diff2and3.gif
http://api.ning.com/files/2ryzVIrGkDjAz*ZMCXk1aYFdbHTiKTrxNSCfUK97YXCGDhmGv7azhnkMQ1cnJp7EdCivLSbtwdV1HmnwnnjnleMveePM*1LS/diff4.gif
http://community.getk2.org/forum/topics/im-just-trying-to-add-a-png

Tuesday, March 22, 2011

Rounded corners border CSS Problem in IE [ Internet Explorer ] [ Joomla ] [ Solved ]


Here you go.. There is an css code for "good" browsers to change your div's corners to rounded ones. But "bad" browsers such as Internet Explorer ( IE - IE6, IE7 and so on... doesnt works pretty good under this conditions.. ), so here is solution for this problem.


CSS CODE EXAMPLE OF DIV WITH CLASS = "box"
.box {
-moz-border-radius: 15px; /* Firefox */
-webkit-border-radius: 15px; /* Safari and Chrome */
border-radius: 15px; /* Opera 10.5+, future browsers, and now also Internet Explorer 6+ using IE-CSS3 */
-moz-box-shadow: 10px 10px 20px #000; /* Firefox */
-webkit-box-shadow: 10px 10px 20px #000; /* Safari and Chrome */
box-shadow: 10px 10px 20px #000; /* Opera 10.5+, future browsers and IE6+ using IE-CSS3 */
behavior: url(ie-css3.htc); /* This lets IE know to call the script on all elements which get the 'box' class */

}

There should be like this: "behavior: url(path/to/ie-css3.htc);"

Download url of the ie-css3.htc file. Put the file into root and css folder. ( and into other folders in other cases.. ^^ ):
http://uploading.com/files/dm247e4c/pie.zip/

I faced with this problem while doing rounded corners in Joomla template. Also this resources might be helpful

Sunday, January 9, 2011

Joomla Error loading feed data



The error occurs after installing joomla.

So fix the thing all you need to do is:
1. go to administrator panels
2. Extensions -> Module Manager -> Administrator tab
3. Find "Joomla! Security Newsfeed"
4. Disable it
5. Done
If you have the “yoo_tweet module” installed, disable this module as well.  This module is known to display this error message.

Why:
Because this module load feed data with link http://feeds.joomla.org/JoomlaSecurityNewsthis link is broken, so it pop up a error loading feed data error.

Have fun!