Your Ad Here

Home | Karma2 Forums | Karma2 Downloads | Contact

  Home

The Karma2 Forum
Welcome, Guest
Please Login or Register.    Lost Password?
JaSubmit integration example (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: JaSubmit integration example
#6
jasperli (User)
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
JaSubmit integration example 1 Year, 5 Months ago  
Hello,

I defeanetly do not take credits for the com_jasubmit (users can add content from the frontend) integration but i found it somewhere on the web and using it now on mine.
I think this is the right place to share so here it is:
Code: :

  } else if($option == "com_ja_submit" && $task == "great"){ if ($my->gid id); $var 0; $total 0; if(count($rows)){ $row=$rows[0]; $var += $row->var_karma; $total += $row->total_karma; } $var += $points; $total += $points; if(count($rows)){ $sql "update `#__karma_tb` set `var_karma` = '$var', `total_karma` = '$total' where `user_id` = '$my->id'"; } else { $sql "insert into `#__karma_tb` values ('$my->id', '$var', '$total')"; } $database->setQuery($sql); $database->query(); //log points logPoints($my->id$points"Submitted Content"); }



My own wishlist for Karma2:

- Jreviews (write review)
http://extensions.joomla.org/component/option,com_mtree/task,view_link_/_link__id,907/Itemid,35/
- SOBI2 (add item)
http://extensions.joomla.org/component/option,com_mtree/task,view_link_/_link__id,1113/Itemid,35/
- Eventlist (add events)
http://extensions.joomla.org/component/option,com_mtree/task,view_link_/_link__id,99/Itemid,35/
- Groupjive (add and maintain groups)
http://extensions.joomla.org/component/option,com_mtree/task,view_link_/_link__id,1738/Itemid,35/

p.s. I am not a coder. I can change simple php _script_s....

Jasper
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
#9
MindArchr (Admin)
Vows made in storms are forgotten in calm.
Admin
Posts: 19
graph
User Offline Click here to see the profile of this user
Gender: Female Digital Remarks MindArchrx DefiantMystery@msn.com Mindresort Location: Los Angeles, CA, USA Birthdate: 1985-12-11
Re:JaSubmit integration example 1 Year, 5 Months ago  
I had posted the original jasubmit code on the joomla forums not to long ago because I figured out how to do it months back. I set it up in the manner with that exact de_script_ion because at the time I only knew how to edit botpoints.php and didn't know anything about integrating the add/remove points code into files. So for those who don't want to add it into botpoints.php (found in /joomladirectory/mambots/system/)
I can assist you on how to add it. I also just implemented the code in Sobi2 last night, for whenever someone adds an entry, and I have it working on Groupjive to add points for joining a group, posting a bulletin, and creating a group. It is also set to remove points for un-joining a group and for deleting a bulletin.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
#10
Jasper (Visitor)
Click here to see the profile of this user
Birthdate:
Re:JaSubmit integration example 1 Year, 5 Months ago  
I am one of those who is very interested in the SOBI and Groupjive code
Can you assist me?

Jasper
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
#11
Re:JaSubmit integration example 1 Year, 5 Months ago  
I have been looking for this type of component recently and just noticed your great component. Thanks!!!

Now I would like to see added support for Jreviews also and mostly Virtuemart (both with purchases and reviews). If there was sample code available on where to insert and what, I could actually get this integrated for VM since Jreviews is encoded.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
#13
Re:JaSubmit integration example 1 Year, 5 Months ago  
Hi,

Is there a spot on the site for help with Groupjive and Mamblog integration with karma2?

Thanks,

Jay
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
#14
MindArchr (Admin)
Vows made in storms are forgotten in calm.
Admin
Posts: 19
graph
User Offline Click here to see the profile of this user
Gender: Female Digital Remarks MindArchrx DefiantMystery@msn.com Mindresort Location: Los Angeles, CA, USA Birthdate: 1985-12-11
Groupjive for Karma2 1 Year, 5 Months ago  
Here are my posted instructions and files for integrating it with Groupjive. I had to manually remove the Invite feature (which may affect some people), because it would add points each time the page was refreshed when clicking the Invite _link_. I included the files that have the Invite stripped away in the component. These files come with instructions so that you may just replace or find the files and alter/add the code yourself. PLEASE READ THE INSTRUCTIONS BEFORE DOING ANYTHING!!! I hold no guarantee for how this works on your site. This has only been tested on Groupjive version 1.6 beta4.

Monique
File Attachment:
File Name: Altered_Groupjive_Files_for_Karma2.zip
File Size: 25928
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
Go to top Post Reply
Powered by FireBoard