Welcome, Guest. Please login or register.
Login with username, password and session length


VirtueMart 1.1.8 - [SECURITY RELEASE] is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: [1] 2   Go Down
Print
Author Topic: [MOD]JCE Plugin - mosproductsnp beta - working  (Read 30408 times)
Anthony C.
Sr. Member
****
Posts: 286


« on: July 31, 2007, 12:15:21 PM »

Hi all,

here is temporary fix for the current JCE

Version:
JCE Editor 1.1.6 (should work with 1.1.5)
mosproductsnap   1.2
plugin for JCE, version 1.1.0 beta 2

Please added the attached files in the specific directories and change one line in manager.php

1. directory: /mambots/editors/jce/jscripts/tiny_mce/libraries/jscripts/

add these files:
common.js
main.js
picker.js
selectableelements.js
sort.js

2. directory: /mambots/editors/jce/jscripts/tiny_mce/libraries/images/

add this image:
load_big.gif

3. directory: /mambots/editors/jce/jscripts/tiny_mce/plugins/productsnap/

file: manager.php
line: 183
change to:
var d = new dTree('d', lib_url);

This should help to solve basic problems. Please try it. If anyone finds an update, please tell us.

Thank you,

Anthony C.


* fix_for_JCE_1.1.6.zip (14.01 KB - downloaded 740 times.)
« Last Edit: August 02, 2007, 13:12:39 PM by Anthony C. » Logged
Jos van der Voort
Newbie
*
Posts: 9


« Reply #1 on: August 02, 2007, 06:21:18 AM »

Thank you Anthony!

I have installed this and my modproductsnap now works again. Wonderfull.

Maybe you should change the title of your topic so more people will find it. I stumbled upon it but I found earlier that more people struggle with the mosproductsnap after upgrading to the latest jce editor.

Again many thanks for helping me out!
Logged
Anthony C.
Sr. Member
****
Posts: 286


« Reply #2 on: August 02, 2007, 13:11:52 PM »

Hi,

glad to hear it works.

What title should I use?

@@
Logged
aravot
Peter
Quality&Testing Team
Hero Member
*
Posts: 2921


WWW
« Reply #3 on: August 02, 2007, 13:21:05 PM »

JCE Admin 1.1.1
JCE Mambot 1.1.6

Line 183 of /mambots/editors/jce/jscripts/tiny_mce/plugins/productsnap/manager.php is
Code:
<label id="container_paddinglabel" for="container_padding"><?php echo $pl['container_padding'];?> </label>

Should I change that line?
Logged

Anthony C.
Sr. Member
****
Posts: 286


« Reply #4 on: August 02, 2007, 14:16:57 PM »

Hi aravot,

look for

var d = new dTree('d');

and change it to

var d = new dTree('d', lib_url);


Anthony
Logged
aravot
Peter
Quality&Testing Team
Hero Member
*
Posts: 2921


WWW
« Reply #5 on: August 02, 2007, 16:40:54 PM »

Thank you.

Is it possible to show image for add to cart instead of a link, if so how.
Logged

Anthony C.
Sr. Member
****
Posts: 286


« Reply #6 on: August 02, 2007, 17:57:56 PM »

Hi aravot,

lol I never thought of that. ^^ didn't have a chance to look into that.

You can try to find the string and replace with your desired img link.

Anthony c.
« Last Edit: August 14, 2007, 11:13:47 AM by Anthony C. » Logged
leviks
Newbie
*
Posts: 5


« Reply #7 on: August 19, 2007, 15:04:58 PM »

Hi!

I have the problem - the messages appears:

"
Notice: Only variables can be passed by reference in z:\home\joomla\www\mambots\content\mosproductsnap.php on line 89
Notice: Only variables can be passed by reference in z:\home\joomla\www\mambots\content\mosproductsnap.php on line 90
Notice: Only variables can be passed by reference in z:\home\joomla\www\mambots\content\mosproductsnap.php on line 91
Notice: Only variables can be passed by reference in z:\home\joomla\www\mambots\content\mosproductsnap.php on line 92
Notice: Only variables can be passed by reference in z:\home\joomla\www\mambots\content\mosproductsnap.php on line 93
Notice: Only variables can be passed by reference in z:\home\joomla\www\mambots\content\mosproductsnap.php on line 94
Notice: Only variables can be passed by reference in z:\home\joomla\www\mambots\content\mosproductsnap.php on line 95
Notice: Only variables can be passed by reference in z:\home\joomla\www\mambots\content\mosproductsnap.php on line 96
Notice: Only variables can be passed by reference in z:\home\joomla\www\mambots\content\mosproductsnap.php on line 97
Notice: Only variables can be passed by reference in z:\home\joomla\www\mambots\content\mosproductsnap.php on line 98
Notice: Only variables can be passed by reference in z:\home\joomla\www\mambots\content\mosproductsnap.php on line 99
".

The file mosproductsnap.php have the next text from 89 to 99 lines:
"   
        $container_align  = mosGetParam( @$productsnap_params, 4, 'none' );
   $container_width = (int)mosGetParam( @$productsnap_params, 5, 150 );
   $container_margin = (int)mosGetParam( @$productsnap_params, 6, 2 );
   $container_padding = (int)mosGetParam( @$productsnap_params, 7, 2 );
   $text_align = mosGetParam( @$productsnap_params, 8, 'left' );
   $image_align = mosGetParam( @$productsnap_params, 9, '' );
   $vspace = (int)mosGetParam( @$productsnap_params, 10, 5 );
   $hspace = (int)mosGetParam( @$productsnap_params, 11, 5 );
   $border_width = (int)mosGetParam( @$productsnap_params, 12, '' );
   $border_color = mosGetParam( @$productsnap_params, 13, 'black' );
   $border_style = mosGetParam( @$productsnap_params, 14, 'solid' );
"
Have any idea?
Logged
Patrick
Newbie
*
Posts: 6


« Reply #8 on: August 22, 2007, 05:18:25 AM »

I don't seem to get any of the solutions working.

I've installed the latest Fix on top of the my JCE/JOOMLA/VIRTUEMART installation.
Virtuemart 1.0.12
Joomla 1.0.13/(also on another site joomla 1.0.12)
JCE  Admin 1.1.0
JCE Mambot 1.1.2
Product Snapshop Plugin for JCE
JCE Plugin: ProductSnap            1.10 Beta 2
Mos Product Snapshot               1.2

I don't get it working when i open the shoppingcart icon in the JCE i get a new window to select.
but i can't select anything at all. browsing and all is empty.
 i'm getting really frustated that it doesn't seem to work for me on any one of my sites.

I've edited several files as instructed on the forum's nothing seem to solve my problem.
(manager.php,mosproductsnap.php and so on so on so on....)
What am i doing wrong? please help me.

Thanxz.


Patrick
Logged
ricardo
Newbie
*
Posts: 3



« Reply #9 on: August 23, 2007, 10:33:24 AM »

hi everybody,

Thank you Anthony for the fix.

I recently installed JCE Product Snapshot plugin 1.1.0 beta 2 and the the fix_for_JCE_1.1.6.zip.

It seemed to work fine, but i realized that in the pop up window of JCE Product Snapshot, it doesn't show the products from the parent categories(subcategories or Child products), only the main products from the top categories.

Can anyone help me?

Regards,

Ricardo Rodrigues
« Last Edit: August 23, 2007, 10:37:25 AM by ricardo » Logged
Anthony C.
Sr. Member
****
Posts: 286


« Reply #10 on: August 23, 2007, 13:04:03 PM »

Hi Patrick,

this fix works for several people but not all. Therefore, try to specify what type of hacks you've done.

the only file that needed to be modified is   the   manager.php

If you have modified other files, try to use the default files provided by their original links.

Again, this is a temporary fix I found. If anyone found a better solution, welcome to post it here.

cheers,

Anthony

I don't seem to get any of the solutions working.

I've installed the latest Fix on top of the my JCE/JOOMLA/VIRTUEMART installation.
Virtuemart 1.0.12
Joomla 1.0.13/(also on another site joomla 1.0.12)
JCE  Admin 1.1.0
JCE Mambot 1.1.2
Product Snapshop Plugin for JCE
JCE Plugin: ProductSnap            1.10 Beta 2
Mos Product Snapshot               1.2

I don't get it working when i open the shoppingcart icon in the JCE i get a new window to select.
but i can't select anything at all. browsing and all is empty.
 i'm getting really frustated that it doesn't seem to work for me on any one of my sites.

I've edited several files as instructed on the forum's nothing seem to solve my problem.
(manager.php,mosproductsnap.php and so on so on so on....)
What am i doing wrong? please help me.

Thanxz.


Patrick
Logged
hitesh
Newbie
*
Posts: 4


« Reply #11 on: September 07, 2007, 07:30:46 AM »

Hi Anthony,

I suspect this is due to Forum being moved - so is it possible to repost the  'fix_for_JCE_1.1.6.zip' file - the link in your original post goes to a Page Not Found.
Or better still, why not repackage the file, call it plugin for JCE, version 1.1.0 Beta 3 and get it added to the Download section

Thanks
Hitesh
Logged
Anthony C.
Sr. Member
****
Posts: 286


« Reply #12 on: September 11, 2007, 17:21:02 PM »

Here is the file again....

* fix_for_JCE_1.1.6.zip (14.01 KB - downloaded 559 times.)
Logged
Don Hays
Full Member
***
Posts: 102



WWW
« Reply #13 on: September 18, 2007, 18:34:50 PM »

I've gotten this temporary fix to work on FF but not on IE7. On FF I get an error but it works okay on IE7 I get the browser window but there are no products or even categories. Anyone have any luck getting this to work on FF and IE7?

TIA
Logged

Don Hays
Gearbox Studios
morktron
Jr. Member
**
Posts: 86


WWW
« Reply #14 on: September 21, 2007, 00:39:17 AM »

Thanks Anthony , it worked straight away in Firefox on Mac   Smiley
Logged
Pages: [1] 2   Go Up
Print
Jump to: