Search found 37 matches
- Mon Mar 24, 2008 1:37 am
- Forum: Joombie Developer Lab
- Topic: My first Plugin
- Replies: 16
- Views: 7487
Re: My first Plugin
Thank you all very much for the comments, suggestions, requests and everything else! I am sorry to inform that I don´t know when I will have enough free time again to work with this project. I´d like to make some improvements in the plugin, but I have absolutely no plans on making a version 1.0.x co...
- Wed Jan 23, 2008 1:24 pm
- Forum: Announcements Discussions
- Topic: Discuss: Ladies and Gentlemen... here
- Replies: 126
- Views: 23976
Re: Discuss: Ladies and Gentlemen... here
Congratulations! I am proud of being author of more or less FOUR lines of code of the Joomla! 1.5 Yeah... ain´t much, but 1 million lines is made of a bunch of 1 lines... isn´t it? Joomla! Team, Core Developers, Working Groups Managers, Doc Team, and everyone else... Thank you very much for t...
- Sat Nov 17, 2007 2:17 pm
- Forum: Joombie Developer Lab
- Topic: My first Plugin
- Replies: 16
- Views: 7487
Website released
I released J! (1.5 RC3) website with this plugin at november 15th. I couldn´t wait RC4 or stable... It´s a very simple site. No problem. And I am not using the known unstable features.
http://www.radiosai.org.br
Observation: this is an edit - this post was generated by mistake![Embarrassed :-[](./images/smilies/embarrassed.gif)
![Smiley :)](./images/smilies/smiley.gif)
Observation: this is an edit - this post was generated by mistake
![Embarrassed :-[](./images/smilies/embarrassed.gif)
- Sat Nov 17, 2007 1:57 pm
- Forum: Joombie Developer Lab
- Topic: My first Plugin
- Replies: 16
- Views: 7487
Re: My first Plugin
Now you can find the plugin in the Extensions Directory: :laugh:
>>> Notify Admin <<<
With the recent clean up in the code, I changed the version number from 1.0.0 to 1.0.1 -
version "101" ![Smiley :)](./images/smilies/smiley.gif)
>>> Notify Admin <<<
With the recent clean up in the code, I changed the version number from 1.0.0 to 1.0.1 -
![Smiley :)](./images/smilies/smiley.gif)
![Smiley :)](./images/smilies/smiley.gif)
- Sat Nov 17, 2007 1:20 pm
- Forum: Joombie Developer Lab
- Topic: My first Plugin
- Replies: 16
- Views: 7487
Re: My first Plugin
I'd like to ask something that I found weird. $plugin =& JPluginHelper::getPlugin( 'system' , 'notifyadmin' ); $params = new JParameter( $plugin->params ); Do we have to use that code? I think the constructor pass the params to a property of the class. This is a code example from one of my plugins:...
- Thu Nov 15, 2007 6:15 am
- Forum: Joombie Developer Lab
- Topic: My first Plugin
- Replies: 16
- Views: 7487
4- pt-BR.plg_system_notifyadmin.ini
But... take a look at the portuguese language file! # $Id: pt-BR.plg_system_notifyadmin.ini # Joomla! Project # Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved. # License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php # Note : All ini files need to be saved as U...
- Thu Nov 15, 2007 6:12 am
- Forum: Joombie Developer Lab
- Topic: My first Plugin
- Replies: 16
- Views: 7487
3- en-GB.plg_system_notifyadmin.ini
The language file has all the used STRINGS that outputs TEXT to the USER, in the following places/ways: - XML description tag - XML label and description attributes from param tags - JText ::_( ' string ' ) used by the plugin (after loading the plugin language file!) # $Id: en-GB.plg_system_notifyad...
- Thu Nov 15, 2007 5:23 am
- Forum: Joombie Developer Lab
- Topic: My first Plugin
- Replies: 16
- Views: 7487
2- notifyadmin.php (the Plugin!) continuation
So, here is the "REAL" plugin code: <?php function onAfterRoute() { $user =& JFactory::getUser(); $isAuthor = ($user->usertype == 'Author'); $isSaving = (JRequest::getCmd( 'task' ) == 'save') && (JRequest::getCmd( 'option' ) == 'com_content'); if ($isAuthor && $isSaving) { $lang =& JFactory::g...
- Thu Nov 15, 2007 4:59 am
- Forum: Joombie Developer Lab
- Topic: My first Plugin
- Replies: 16
- Views: 7487
2- notifyadmin.php (the Plugin!)
Now, let´s see the plugin php code. First, the "skeleton": <?php defined( '_JEXEC' ) or die( 'Restricted access' ); class plgSystemNotifyadmin extends JPlugin { /** * Constructor * * For php4 compatability we must not use the __constructor as a constructor for plugins * b...
- Thu Nov 15, 2007 4:39 am
- Forum: Joombie Developer Lab
- Topic: My first Plugin
- Replies: 16
- Views: 7487
1- notifyadmin.xml (the XML file)
Let´s see the XML file: <?xml version="1.0" encoding="iso-8859-1"?> <install version="1.5" type="plugin" group="system"> <name>System - Notify admin plugin</name> <version>1.0.1</version> <author>J Bruni</author> <creationDate>November 2007</cr...
- Thu Nov 15, 2007 4:04 am
- Forum: Joombie Developer Lab
- Topic: My first Plugin
- Replies: 16
- Views: 7487
My first Plugin
I will share some experiences from the "making of" my first Plugin. Please, download it and unzip: http://br.geocities.com/joaohbruni/plugin_1.5_notify_admin.zip You will see there are only 4 files in there: 1- notifyadmin.xml (the Plugin installation and configuration file) 2- notifyadmin.ph...
- Tue Aug 21, 2007 1:40 am
- Forum: Joombie Coding Q/A
- Topic: Getting Started - part 3 - JTree and JNode
- Replies: 6
- Views: 1309
Re: Getting Started - part 3 - JTree and JNode
Time to go to sleep. I shall continue tomorrow with JNode class . Keep in mind that you may extend JNode class , and then you have JTree and JNode features avaiable to make a tree from your custom object: it means, you are able to make trees from every object you want : JOranges, JApples, and so on ...
- Tue Aug 21, 2007 1:35 am
- Forum: Joombie Coding Q/A
- Topic: Getting Started - part 3 - JTree and JNode
- Replies: 6
- Views: 1309
Re: Getting Started - part 3 - JTree and JNode
The getParent method gets the parent of the current node and sets it as the current node. function getParent() { $this->_current =& $this->_current->getParent(); } Be careful not to call this method when the current node is the root node! In this case, the current node will be set to null. http://fo...
- Tue Aug 21, 2007 1:24 am
- Forum: Joombie Coding Q/A
- Topic: Getting Started - part 3 - JTree and JNode
- Replies: 6
- Views: 1309
Re: Getting Started - part 3 - JTree and JNode
And JTree provides three methods: addChild , getParent and reset . function addChild(&$node, $setCurrent = false) { $this->_current->addChild($node); if ($setCurrent) { $this->_current =& $node; } } For example: <?php $tree = new JTree; $node = new JNode; $tree->addChild($node, true); ?> The addChil...
- Tue Aug 21, 2007 1:14 am
- Forum: Joombie Coding Q/A
- Topic: Getting Started - part 3 - JTree and JNode
- Replies: 6
- Views: 1309
Re: Getting Started - part 3 - JTree and JNode
JTree have two private properties: var $_root = null; // Root node var $_current = null; // Current working node Yes, the root and the current nodes. Both are initialized in the constructor: function __construct() { $this->_root = new JNode('ROOT'); $this->_current = & $this->_root; } F...
- Tue Aug 21, 2007 1:02 am
- Forum: Joombie Coding Q/A
- Topic: Getting Started - part 3 - JTree and JNode
- Replies: 6
- Views: 1309
Re: Getting Started - part 3 - JTree and JNode
http://www.kidsdomain.com/holiday/winter/clip/tree.gif Before discovering what this mysterious masterpiece snippet does, and how we should use it, we shall think about what TREE is it all about! Certainly, it is not a Christmas tree... but a folder tree, or an XML tree, or a hierarchic content summ...
- Tue Aug 21, 2007 12:26 am
- Forum: Joombie Coding Q/A
- Topic: Getting Started - part 3 - JTree and JNode
- Replies: 6
- Views: 1309
Re: Getting Started - part 3 - JTree and JNode
Maybe next subpackage/class overview won´t be detailed so much "from the inside" as "from the outside" (we shall study only the HOW TO USE aspect). But for now let´s keep our scuba diving method. Here is JTree class definition code (comments ripped): <?php class JTree extends JObject { var $_root =...
- Tue Aug 21, 2007 12:17 am
- Forum: Joombie Coding Q/A
- Topic: Getting Started - part 3 - JTree and JNode
- Replies: 6
- Views: 1309
Getting Started - part 3 - JTree and JNode
Getting started? There is a good discussion about if the approach of this "Getting started" series is a good starting point to begginers ... In short: it MAY be a nice starting point, among many others that are possible. Possibly, this approach is very interesting to a few, while most others w...
- Mon Aug 20, 2007 6:18 am
- Forum: Joombie Think Tank
- Topic: 1.5 tutorials, good starting point?
- Replies: 86
- Views: 15187
Re: 1.5 tutorials, good starting point?
What do I think? Let me think... I can´t express exactly in english (I´d like to use my primary language, portuguese, here...) I kind of agree with Bruce (bascherz), I mean, he expressed some ideas that I am concerned (I have been thinking) about: [quote=∓quot;bascherz"\]I don't know if it's...
- Sun Aug 19, 2007 6:19 pm
- Forum: Joombie Coding Q/A
- Topic: php patterns
- Replies: 3
- Views: 1132
Re: php patterns
Although some design patterns are complex, others are not. Joomla! 1.5 uses many design patterns and knowing some of them can be very helpful for the developer. I just wrote about the Observer Pattern , implemented by JObserver and JObservable classes in the Joomla Framework, and it may be a debut i...
- Sun Aug 19, 2007 2:19 pm
- Forum: Joombie Coding Q/A
- Topic: Getting Started - part 2 - JObserver and JObservable
- Replies: 8
- Views: 1681
Re: Getting Started - part 2 - JObserver and JObservable
Well... I am trying to do my best, but please warn me if something is incorrect in this "Getting Started" series!
Any other comment or advice is welcome.
Thank you!
![Smiley :)](./images/smilies/smiley.gif)
Any other comment or advice is welcome.
Thank you!
![Smiley :)](./images/smilies/smiley.gif)
- Sun Aug 19, 2007 2:06 pm
- Forum: Joombie Coding Q/A
- Topic: Getting Started - part 2 - JObserver and JObservable
- Replies: 8
- Views: 1681
- Sun Aug 19, 2007 2:01 pm
- Forum: Joombie Coding Q/A
- Topic: Getting Started - part 2 - JObserver and JObservable
- Replies: 8
- Views: 1681
Re: Getting Started - part 2 - JObserver and JObservable
Now you understood brightly the power that underlies those interesting JObserver and JObservable classes, let´s take a look at the http://api.joomla.org/media/images/Class.png JObservable class ! <?php class JObservable extends JObject { var $_observers = array(); // An array of Observer objects to ...
- Sun Aug 19, 2007 3:22 am
- Forum: Joombie Coding Q/A
- Topic: Getting Started - part 2 - JObserver and JObservable
- Replies: 8
- Views: 1681
Re: Getting Started - part 2 - JObserver and JObservable
It was a joy for me to write for you again. I hope it helps. Joomla! is big... this is the tip of the iceberg... But I won´t think about that! ![Tongue :P](./images/smilies/tongue.gif)
Time to go to bed. I shall continue tomorrow.
May every beings in all worlds be happy and joyfull! ![Smiley :)](./images/smilies/smiley.gif)
![Tongue :P](./images/smilies/tongue.gif)
Time to go to bed. I shall continue tomorrow.
![laugh :laugh:](./images/smilies/laugh.gif)
![Smiley :)](./images/smilies/smiley.gif)
- Sun Aug 19, 2007 3:09 am
- Forum: Joombie Coding Q/A
- Topic: Getting Started - part 2 - JObserver and JObservable
- Replies: 8
- Views: 1681
Re: Getting Started - part 2 - JObserver and JObservable
A JObserver observes and responds to a JObservable notification . When you call JObserver constructor , instantiating an observer object , you should pass a JObservable instance as its parameter . This will make the link between the JObserver and its JObservable object : $observer = new JObserver($o...
- Sun Aug 19, 2007 2:19 am
- Forum: Joombie Coding Q/A
- Topic: Getting Started - JObject
- Replies: 36
- Views: 6503
Re: Getting Started - JObject
Now I´m writing "Getting Started - part 2 - JObserver and JObservable", classes from the same Base subpackage.
- Sun Aug 19, 2007 2:15 am
- Forum: Joombie Coding Q/A
- Topic: Getting Started - part 2 - JObserver and JObservable
- Replies: 8
- Views: 1681
Getting Started - part 2 - JObserver and JObservable
Let´s continue our http://api.joomla.org/media/images/package.png Base subpackage review. We already saw http://api.joomla.org/media/images/Class.png JObject class defined in object.php , at Getting Started - JObject thread. Now we´ll see http://api.joomla.org/media/images/Class.png JObserver class ...
- Fri Aug 17, 2007 3:49 pm
- Forum: Joombie Think Tank
- Topic: 1.5 tutorials, good starting point?
- Replies: 86
- Views: 15187
Re: 1.5 tutorials, good starting point?
[quote=∓quot;CirTap"\]hmm. I can only find/see the encoder which IIRC exclusively creates Windows Media files (.wmv) that only play "well" on Windows. Altough transcoding this to .flv or .mov is possible, it requires other skills[/quote] There is a freeware transcoder very good and complete....
- Tue Aug 14, 2007 4:05 am
- Forum: Joombie Coding Q/A
- Topic: Objects...
- Replies: 5
- Views: 1583
Re: Objects...
I wrote a post here, about the getPublicProperties method (JObject).
I didn´t mention protected properties. Is $_errors property private or protected? I´d like to hear some words before modifying my post.
Thank you!
I didn´t mention protected properties. Is $_errors property private or protected? I´d like to hear some words before modifying my post.
Thank you!
- Tue Aug 14, 2007 3:57 am
- Forum: Joombie Coding Q/A
- Topic: Getting Started - JObject
- Replies: 36
- Views: 6503
Re: Getting Started - JObject
http://api.joomla.org/media/images/Class.png JObject class summary : ⋅ Properties ⋅ Methods ⋅ Source code We saw we can get and set properties, getPublicProperties , and also setError , getError and getErrors , and also transform toString in a standard way for every...