Go Back   Mosets Community > Archives > Mosets Tree 2.2 > Discussions, Troubleshooting & Problems

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-24-2011, 09:58 AM
dknight dknight is offline
Mosets Team - Lead Developer
 
Join Date: Dec 2004
Posts: 27,228
Lightbulb Template - Category-specific Add Listing form for Mosets Tree 2.2

This is an update to the popular Category-specific Add Listing form template (M2Calf) template for Mosets 2.2.
Attached Files
File Type: zip tem_m2calf-14.zip (5.7 KB, 163 views)
__________________
Lee
Lead Developer
Mosets.com - Quality Joomla! Solutions

Last edited by dknight; 10-14-2011 at 04:22 PM. Reason: Updated template to fix an issue affecting image update.
  #2  
Old 03-28-2011, 05:02 PM
stephencox stephencox is offline
Mosets'd
 
Join Date: Jul 2008
Location: Hervey Bay Qld. Australia
Posts: 26
Default

Hi Lee,
You might want to make this topic a Sticky so it doesn't get lost which could happen soon.

Just a thought!.

Regards Steve.
Developer of PaymentsPlus
  #3  
Old 06-20-2011, 10:29 PM
marinos marinos is offline
Mosets'd
 
Join Date: Sep 2010
Posts: 104
Default

Hi Guys

Im getting an error when trying to install this

Fatal error: Call to a member function getjconf() on a non-object in /home/myuser/public_html/domains/subdirectory/administrator/components/com_mtree/admin.mtree.php on line 3970

Trying to install from mosetstree-templates-add
  #4  
Old 08-26-2011, 07:23 PM
jodybterblanche jodybterblanche is offline
Mosets'd
 
Join Date: Aug 2011
Posts: 6
Default Template - Category-specific Add Listing form -Kinabalu

Hi guys, does anyone have the updated code to do this in the kinabalu template? I must say, I was quite dissapointed to learn that one cannot assign specific fields to specific categories - it seems like such an obvious feature, I didnt even think to look for it in the demo...

Since i'll have to mess around with codes and templates, can anyone point me in the right direction how to do this? All the other posts about this seems quite outdated...

Im running MT 2.2.3 on Jooml! 1.7.0

Thanks in advance!
  #5  
Old 09-18-2011, 05:38 AM
aprilboone aprilboone is offline
Mosets'd
 
Join Date: Jul 2011
Posts: 4
Default

I have installed this template and made it the default. I've also added the following code to the page_addlisting.tpl.php:

$catfields = array(
29 => array(1,2),
30 => array(1,2),
31 => array(2),
32 => array(2)
// Custom Field ID => array(Category IDs)
);

But when I go to Add Listing in category 1, all the custom fields I have created are showing - not just #29 & 30.

I can't figure out what I'm doing wrong. Can anyone help?
  #6  
Old 09-27-2011, 04:39 PM
thierrykeller thierrykeller is offline
Mosets'd
 
Join Date: Jul 2010
Posts: 16
Default Kinabalu - Specific Add Listing form - Category

Quote:
Originally Posted by jodybterblanche View Post
Does anyone have the updated code to do this in the kinabalu template? I must say, I was quite dissapointed to learn that one cannot assign specific fields to specific categories
I agree with jodybterblanche, Is it possible ?
  #7  
Old 09-28-2011, 03:53 PM
tradewise tradewise is offline
Senior Member
 
Join Date: Feb 2006
Location: Hervey Bay Qld Australia
Posts: 576
Default

I think you'll find that page_addListing.tmp.php is the same file in both M2 and Kinabalu.

So if you are using the Category-specific Add Listing form it's really only a matter of replacing the file you currently have with the the one in the tem_m2calf-13.zip file. Just remember that when you upgrade Mtree, the upgrade will over-right the file again so you'll have to replace it again.

For users of PaymentsPlus
Note that PaymentsPlus extensively modifies page_addListing.tmp.php and that PaymentsPlus allows you to specify Custom Fields to any subscription product to only show in specified categories. Effectively this feature its an extension of the above Category-specific Add Listing form, BUT, all the values are configured in the Subscription Product and then saved to the database thus you don't need to touch any code in the template itself.

Hope this helps
Regards Steve
Developer of PaymentsPlus

Last edited by tradewise; 09-28-2011 at 03:57 PM. Reason: typo
  #8  
Old 09-28-2011, 04:55 PM
thierrykeller thierrykeller is offline
Mosets'd
 
Join Date: Jul 2010
Posts: 16
Default

The code is not the same in the two files, when I overwrite it in Kinabalu, it displays a white page.
  #9  
Old 09-28-2011, 06:21 PM
tradewise tradewise is offline
Senior Member
 
Join Date: Feb 2006
Location: Hervey Bay Qld Australia
Posts: 576
Default

I'm guessing that you downloaded the Category-specific Add Listing form from this thread in which case its designed for Mtree 2.20+ where as you are running MT 2.1.8 + Kinabalu + Joomla! 1.5.23 as seen in a tag line from another of your recent posts.

Mtree 2.20 is for Joomla 1.6+ and the blank page will most likely be because of syntax changes.

So what you'll most likely need is the older version of the Category-specific Add Listing form found here: http://forum.mosets.com/showthread.php?t=13511

Hope this helps
Regards Steve
Developer of PaymentsPlus
  #10  
Old 09-29-2011, 05:28 PM
thierrykeller thierrykeller is offline
Mosets'd
 
Join Date: Jul 2010
Posts: 16
Default

Quote:
Originally Posted by tradewise View Post
Mtree 2.20 is for Joomla 1.6+ and the blank page will most likely be because of syntax changes.

So what you'll most likely need is the older version of the Category-specific Add Listing form found here: http://forum.mosets.com/showthread.php?t=13511
Beautiful,you were right ! It works, thanks a lot !
But just a question, is it possible to invert the selection?
Because I would NOT display certain field in a specific category.

Best regards,
  #11  
Old 10-01-2011, 09:12 AM
tradewise tradewise is offline
Senior Member
 
Join Date: Feb 2006
Location: Hervey Bay Qld Australia
Posts: 576
Default

Quote:
Originally Posted by thierrykeller View Post
Beautiful,you were right ! It works, thanks a lot !
But just a question, is it possible to invert the selection?
Because I would NOT display certain field in a specific category.

Best regards,
It might be possible but without looking at the code, essentially it may be possible to change how the array functions to not include the ID's instead but without playing I couldn't say for sure.

Hope this helps
Regards Steve
Developer of PaymentsPlus
  #12  
Old 10-01-2011, 05:58 PM
lorinczandreiattil lorinczandreiattil is offline
Mosets'd
 
Join Date: Sep 2011
Posts: 4
Default How can make psd to mosettree?

Hy for all i know is a lite offtopic but need someone to code psd to mosettree and make little php change how can make it please add me on Skype andreiunicat or YM andreiunicat the website is Cazare Romania make on joomla 1.7 and MosetTree 2.2.3
  #13  
Old 08-14-2012, 10:57 PM
susanpitt susanpitt is offline
Mosets'd
 
Join Date: Dec 2009
Posts: 14
Default

I have tried installing this on a new site with Joomla 2.5.6, using Mosets Tree 2.2.5.
It seems that the save button no longer works in the front end once the update has been applied, also, even if I specify which categories need to work for the fields in the php file, there is no difference and they are all listed still.

All the custom fields display regardless of which field ID and category ID's etc I use in the php file.

I have set it as the new default template, and it is definitely using the correct file, but just seems to have no effect on the category listings.

Does anyone have any suggestions?
  #14  
Old 08-14-2012, 11:54 PM
susanpitt susanpitt is offline
Mosets'd
 
Join Date: Dec 2009
Posts: 14
Default

It seems to be that if I revert back to the original addlisting file, the save works again from the front end.
I have upgraded to the latest version of mosets tree now, and tried again with the category specific add listing form again, but it still does not work.

I have noticed that there is a line of code in the calf file that looks like its referencing a js that does not exist in my file tree, see here:

/components/com_mtree/js/jquery-ui-personalized-1.5.3.min.js

when I browse through my site files, that js file is not in that folder location at all. Could this be why the page does not save from the front end?

I have reverted back to the original files, but I would love to be able to specify fields for the user depending on the categories chosen...any advice would be appreciated

Thanks
  #15  
Old 08-17-2012, 01:41 AM
danphillips danphillips is offline
Mosets'd
 
Join Date: Jul 2012
Posts: 11
Default updated m2calf addlisting file

The file in the first post of this thread is not compatible with mt 2.2.6 - the jquery file and Google Maps api have both been changed. I have attached a version that works for mt 2.2.6 in J! 2.5.6. Change the name, of course, to remove "m2calf-"
Attached Files
File Type: php m2calf-page_addListing.tpl.php (11.1 KB, 33 views)
  #16  
Old 08-17-2012, 05:41 AM
susanpitt susanpitt is offline
Mosets'd
 
Join Date: Dec 2009
Posts: 14
Default

@danphillips thank you!
I have downloaded and tested and it works perfectly
You are a legend!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +8. The time now is 11:28 PM.

Copyright © 2005-2010 Mosets Consulting

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.