Your Ad Here

Home | Karma2 Forums | Karma2 Downloads | Contact

  Home

The Karma2 Forum
Welcome, Guest
Please Login or Register.    Lost Password?
MyBlog Integration (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: MyBlog Integration
#46
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
MyBlog Integration 1 Year, 3 Months ago  
To integrate with MyBlog, go to:

/yourjoomladirectory/components/com_myblog/task
and open write.php


On line 256, it should display:
Code: :

 if(isset($_POST['closeme']) && $_POST['closeme'] == '1'){



add the following directly underneath (configure the number of points and entry to your liking):
Code: :

 global $mainframe,$my;                                 require_once( $mainframe->getCfg('absolute_path') . '/components/com_karma/karma.class.php' );                                 $points CLASS_karma::getConfig("Custom6");                                 CLASS_karma::addPoints($my->id8"Blog Entry");



and the result should look like:
Code: :

 // If everything is ok, close th thickbox if needed                         if(isset($_POST['closeme']) && $_POST['closeme'] == '1'){                                 global $mainframe,$my;                                 require_once( $mainframe->getCfg('absolute_path') . '/components/com_karma/karma.class.php' );                                 $points CLASS_karma::getConfig("Custom6");                                 CLASS_karma::addPoints($my->id8"Blog Entry");                                 // somehow, the parent_url might contain &task;=adminhome etc..                                 // and that would fail the input filter                                 //$_POST['parent_url'] = str_replace(';=' , '=', $_POST['parent_url']);                                 //$closeme = 'parent.window.location = \''.$_POST['parent_url'].'\';';                                 //$tpl->set('closeme', $closeme);                                                                  $onload 'parent.azrulWindowSaveClose();';                         } else {                                 $onload 'parent.azrulWindowSave('.$id.');';                         }                         $tpl->set('onload'$onload);                 } else {                         $message 'Save error';




This is for MyBlog version 1.2 version 236.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/11/24 17:10 By MindArchr.
  Reply Quote
Go to top Post Reply
Powered by FireBoard