- Posts: 99
COMMUNITY FORUM
Favorite Item Module - Freelancer to do it faster?
- Different Color
-
Topic Author
- Offline
- Premium Member
People are using this for product catalogs - so it stands to reason being able to save a list of 'favorites' would be extremely helpful! Like a 'basket' of favorites either saved to a separate page or just in the module itself.
I know of a few extensions out there that could possibly be tweaked to work with K2. Is someone out there savvy enough to do it and interested in being paid to get this concept off the ground quickly?
Please Log in or Create an account to join the conversation.
- Andreas Renberg
-
- Offline
- New Member
- Posts: 9
Does anyone still have any use for this? I'm going to have to check with my client if I'm allowed to share the code. I'm not sure if he considers to have bought the code or the time spent working on the code, but he's pretty flexible, so it should work out.
Hm... Now, should charge for this code, or release it free?
If the client is OK with it, I think I'll release his version for free (tidied up a bit, and translated from Swedish to English), and I'll charge people $30-$40 or so to modify this version to fit their website's needs.
I'll keep an eye on this thread, and if I see any "rebumps" or requests, I'll go ahead and post the code on my site and put the link in here (is that alright with the mods?)
Please Log in or Create an account to join the conversation.
- Different Color
-
Topic Author
- Offline
- Premium Member
- Posts: 99
I found something that worked - but something better would be great! Not sure if there is a big demand for this type of thing - but I would think there would be. It seems like a must for product catalogs, tutorial sites, etc...
martha
Andreas Renberg said:This is wonderful! It's just what I finished working on for a client. :)
Does anyone still have any use for this? I'm going to have to check with my client if I'm allowed to share the code. I'm not sure if he considers to have bought the code or the time spent working on the code, but he's pretty flexible, so it should work out.
Hm... Now, should charge for this code, or release it free?
If the client is OK with it, I think I'll release his version for free (tidied up a bit, and translated from Swedish to English), and I'll charge people $30-$40 or so to modify this version to fit their website's needs.
I'll keep an eye on this thread, and if I see any "rebumps" or requests, I'll go ahead and post the code on my site and put the link in here (is that alright with the mods?)
Please Log in or Create an account to join the conversation.
- sigpro_firsttry
-
- Offline
- Junior Member
- Posts: 37
do you have any news for us regarding the "favorite item/article" code?
As i lost half of the day with research about this, you are my last hope.
Of course i am willing to pay/ donate.
Thanks!
Please Log in or Create an account to join the conversation.
- Nick
-
- Offline
- Elite Member
- Posts: 190
Please Log in or Create an account to join the conversation.
- Mark Banks
-
- Offline
- Premium Member
- Posts: 100
;-)
Please Log in or Create an account to join the conversation.
- Andreas Renberg
-
- Offline
- New Member
- Posts: 9
This is the FIRST DRAFT of the project, with the code taken DIRECTLY from its previous use. I will try to get the necessary translations up, but if you are in a hurry to get this working on your site, for $40 USD, I will do all the installation and translation for you. If you have any other "wants" for the project, I can implement those as well. For further details, leave a comment on my website (iqandreas.isbetterthanyou.org/) or send me an email.
More information can be found on my blog:
iqandreas.blogspot.com/2010/06/joomla-k2-favorite-item-manager.html
It is a very simply system, but if anyone has any suggestions for how to improve it, just say so.
If you guys like reading code, I apologize for making some of you cry when seeing it. ;) I am an ActionScript developer, but back in January I had just started learning PHP to fill a need. Despite the two languages being so similar, the way you are supposed to structure code etc can be quite different.
The first translations should be done by the middle of next week, along with some code improvements.
Cheers,
Andreas
iqandreas.blogspot.com/
Please Log in or Create an account to join the conversation.
- Markus
-
- Visitor
thx Andreas. But there are some "probs" in your code: com_planeringsverktyg ??? it should be com_k2,or?
Please Log in or Create an account to join the conversation.
- Andreas Renberg
-
- Offline
- New Member
- Posts: 9
iqandreas.blogspot.com/2010/06/joomla-k2-favorites-plugin-translated.html
As mentioned before, for those of you who have better things to do with their time, for $30, I will upload and make all changes directly to the server, so you don't have to worry about anything, including any wanted customization such as special text, CSS formatting, etc. If you have any other "wants" for the project, I can implement those as well.
Cheers,
Andreas
iqandreas.blogspot.com/
Please Log in or Create an account to join the conversation.
- Andreas Renberg
-
- Offline
- New Member
- Posts: 9
thx Andreas. But there are some "probs" in your code: com_planeringsverktyg ??? it should be com_k2,or?
Yep, as I said, that was just a direct copy from my original code so it can be used as soon as possible for those of you in a hurry to get this.
However, now it is all fixed and ready!
iqandreas.blogspot.com/2010/06/joomla-k2-favorites-plugin-translated.html
Do you have any further questions or suggestions? I'd be happy to hear them and implement them!
Andreas
Please Log in or Create an account to join the conversation.
- Markus
-
- Visitor
okay now i have the "add to favs". but where can i see all my favs?
Andreas Renberg said:Markus said:Hi, thx Andreas. But there are some "probs" in your code: com_planeringsverktyg ??? it should be com_k2,or?
Yep, as I said, that was just a direct copy from my original code so it can be used as soon as possible for those of you in a hurry to get this.
However, now it is all fixed and ready!
iqandreas.blogspot.com/2010/06/joomla-k2-favorites-plugin-tr...
Do you have any further questions or suggestions? I'd be happy to hear them and implement them!
Andreas
Please Log in or Create an account to join the conversation.
- sigpro_firsttry
-
- Offline
- Junior Member
- Posts: 37
thank you for your work.
The problem on my side is the same as Markus´s. I see the "Add item to favorites" link on top of the K2 item view but i don´t see any link to "all my favorites" or something like that.
I think the favorite items should be listed on the author-page. A backend-option would be fine to set the favorites as private or public.
The second problem is: When re-viewing the k2 item i can add that item to favorites again.
So it doesn´t seem to store the favorites.
The same occurs when i remove the item from favorites. On re-viewing that item i again get the "remove from favorites"-link. So that info doesn´t seem to be stored as well.
When using JA_Purity template i even don´t see the "Add item to favorites" -link.
I attached screenshots of the "jos_k2_favorites" table in phpmyadmin. Maybe it´s about that configuration (especially regarding the "primary key")?
In my opinion we can only set one key as the "primary key"?!
Best!
Please Log in or Create an account to join the conversation.
- Andreas Renberg
-
- Offline
- New Member
- Posts: 9
I added a FAQ page with that solution, plus a few more questions I have been asked
iqandreas.blogspot.com/2010/06/joomla-k2fave-frequently-aske...
@sigpro - Sorry I didn't have enough time to finish the part on setting up the database today. It's 4AM in my time zone, and I'm getting quite tired, but first thing tomorrow morning I will answer that question more fully.
It's not as common setting only one primary key, but try checking both of the rows in the checkboxes, and below them there should be a list of options. The button with the key on it should set it properly, but make sure both rows are selected first.
You might have to clear all duplicates out of the table in order to make the changes to the database work properly.
If that doesn't fix it, I'll try again tomorrow.
Thanks for the screenshots by the way, it always helps diagnosing problems when you have a clear view of what you see and what problem is actually occurring.
Cheers,
Andreas
Please Log in or Create an account to join the conversation.
- Markus
-
- Visitor
found this Component and Plugin:
www.instantiate.co.uk/joomla-extensions/components/favourite-listings
But this is for com_content. maybe someone can rework this for k2....
Please Log in or Create an account to join the conversation.
- Curry Roberts
-
- Offline
- New Member
- Posts: 4
Any help from anyone that his this working would be greatly appreciated! :)
Please Log in or Create an account to join the conversation.
- sigpro_firsttry
-
- Offline
- Junior Member
- Posts: 37
there was a quick explanation at the author´s site that showed how to handle this code.
I remember he offered to install his code as a paid work as well.
Curry Roberts said:I feel stupid.....this looks easy enough to implement, but no success. I get the link to add/remove favs at the top but I can't get the list of favs to show. Any help? I suppose that what I need is a teacher/child lesson. For example: Go to this.page.toeidt.php and place this code on line 34. Now to get items to show go to this.another.page.php and paste this code on line 47.
Any help from anyone that his this working would be greatly appreciated! :)
Please Log in or Create an account to join the conversation.
- Curry Roberts
-
- Offline
- New Member
- Posts: 4
Please Log in or Create an account to join the conversation.
- gerald sisimayi
-
- Offline
- Senior Member
- Posts: 44
Regards
Please Log in or Create an account to join the conversation.
- Shapes
-
- Offline
- Junior Member
- Posts: 30
Has anyone got this finally working ?
With latest files and info, I have been able to show button and add info to databse, but the remove button does not work, and I can't show favorites, it shows an empty table :
<table></table>
Using latest versions of k2 and Joomla.
Hoping for answers,
Best regards,
David aka Shapes
Please Log in or Create an account to join the conversation.
- Shapes
-
- Offline
- Junior Member
- Posts: 30
I managed to solve one problem here, the "remove" function.
In file "k2fave_k2item.html.php", i changed :
//This POST/GET system is different for a reason.
//These use the "id" property from k2, and the custom "fave" command
switch(JRequest::getCmd(REQ_K2ITEM_COMMAND))
{
case REQ_ADD_FAVE:
K2Fave::addFavorite($userID, $itemID);
//HTML
echo T_NOW_IN_FAVES;
break;
case REQ_REMOVE_FAVE:
K2Fave::addFavorite($userID, $itemID);
//Display the removal confirmation
echo T_REMOVED_FROM_FAVES;
break;
to :
//This POST/GET system is different for a reason.
//These use the "id" property from k2, and the custom "fave" command
switch(JRequest::getCmd(REQ_K2ITEM_COMMAND))
{
case REQ_ADD_FAVE:
K2Fave::addFavorite($userID, $itemID);
//HTML
echo T_NOW_IN_FAVES;
break;
case REQ_REMOVE_FAVE:
K2Fave::removeFavorite($userID, $itemID);
//Display the removal confirmation
echo T_REMOVED_FROM_FAVES;
break;
I now still have the problem to display the favorites, which is still an empty table.
The method I use for now is that I added at the bottom of my "item.php" :
<div class="favorites">
<?php include(JPATH_BASE.DS.'components'.DS.'com_k2'.DS.'k2fave'.DS.'viewfaves.html.php'); ?>
</div>
I would like to have it displayed on the items themselves, and in a module..
Hoping for answers,
Best regards,
David aka Shapes
Please Log in or Create an account to join the conversation.