Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Upgrade J15 Module to j25

Upgrade J15 Module to j25 1 year 1 month ago #43923

  • chaimk
  • chaimk's Avatar
  • OFFLINE
  • OSTycoon
  • Posts: 244
  • Karma: 0
Can anyone provide feedback on how to upgrade a J15 module to be compatible with J25?

Thanks in advance,
Chaim
Please become a member of OSTraining to reply to this post.

Upgrade J15 Module to j25 1 year 1 month ago #43941

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3949
  • Thank you received: 134
  • Karma: 9
Hello Chaim,

Which module are you trying to upgrade to be compatible with J.2.5?

Have you tried to speak with the extension developer? Or are you talking about a module that is part of Joomla core?
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Upgrade J15 Module to j25 1 year 1 month ago #44010

  • chaimk
  • chaimk's Avatar
  • OFFLINE
  • OSTycoon
  • Posts: 244
  • Karma: 0
Tessa,

The module is a custom module (for J15), that is no longer being developed by the developer as he doesn't have the time to update it; however I am in the process of upgrading my site to J25 (using the Square One Distro), and need the functionality that is provided by the module.

The core script won't change (unless I need to), I need to make sure that I can install the module. For clarity sake i will post the code below for both the XML and PHP files.

XML code:
<?xml version="1.0" encoding="UTF-8"?>
-<install version="1.5" type="module"> <name>Custom Module</name> <author>DEV</author> <authorEmail></authorEmail> <authorUrl></authorUrl> <creationDate></creationDate> <copyright>2009</copyright> <license>GPL</license> <version>1.0</version> <description> </description> -<files> <filename module="mod_CustomModule">mod_CustomModule.php</filename> </files> -<params> <param type="text" description="PARAMMODULECLASSSUFFIX" label="Module Class Suffix" default="" name="moduleclass_sfx"/> <param type="text" description="Please enter the text you would like displayed before the output." label="Pre-text" default="" name="pre_text"/> <param type="text" description="Please enter the text you would like displayed after the output" label="Post-text" default="" name="post_text"/> </params> </install>

PHP Code:
/* 
* @author 
* Email : 
* URL : 
* Description : 
* 
* Generated By : YouCMSAndBlog IDE Joomla Module Plugin (http://vivociti.com)
* (please support YouCMSAndBlog by promoting it, dont remove above line. Thanks.)
* WE LOVE JOOMLA! 
***/
/// no direct access 
defined('_JEXEC') or die('Restricted access'); 
//Get parameters 

//Please enter the text you would like displayed before the ouput.
$pre_text = $params->get('pre_text'); 
//Please enter the text you would like displayed after ouput
$post_text = $params->get('post_text'); 

Custom Code

?>

Thanks in advance,
Chaim
Please become a member of OSTraining to reply to this post.

Upgrade J15 Module to j25 1 year 1 month ago #44012

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3949
  • Thank you received: 134
  • Karma: 9
Hello Chaimk,

Have you tried to install it on your testing version of your website? You should always have a test version.
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Upgrade J15 Module to j25 1 year 1 month ago #44138

  • chaimk
  • chaimk's Avatar
  • OFFLINE
  • OSTycoon
  • Posts: 244
  • Karma: 0
Hi Tessa,

I am still working on my staging site; why would a J15 module work on a J25, I thought that there is no backwards compatibility?
Please become a member of OSTraining to reply to this post.

Upgrade J15 Module to j25 1 year 1 month ago #44140

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16762
  • Thank you received: 378
  • Karma: 55
Hi Chaim,

Modules are pretty easy. Give the following tutorial a try:
www.themepartner.com/blog/27/upgrading-a...module-to-joomla-16/

Let us know if you get stuck.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Upgrade J15 Module to j25 1 year 1 month ago #44142

  • chaimk
  • chaimk's Avatar
  • OFFLINE
  • OSTycoon
  • Posts: 244
  • Karma: 0
Thanks Nick will check it out.
Please become a member of OSTraining to reply to this post.

Upgrade J15 Module to j25 1 year 1 month ago #44170

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16762
  • Thank you received: 378
  • Karma: 55
You're welcome, Chaim!

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Upgrade J15 Module to j25 1 year 3 weeks ago #44747

  • chaimk
  • chaimk's Avatar
  • OFFLINE
  • OSTycoon
  • Posts: 244
  • Karma: 0
Nick I got the module to work :) It didnt take too long (about 30 minutes with some debugging and testing). Next step is to further enhance the module.
Please become a member of OSTraining to reply to this post.

Upgrade J15 Module to j25 1 year 3 weeks ago #44749

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16762
  • Thank you received: 378
  • Karma: 55
Awesome! That's a great accomplishment! Congrats! :)

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.