Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mirko

Pages: [1]
1
Applications / Re: "Hello World!" application
« on: March 21, 2009, 09:30:22 am »
Hm, I add a extjs-tab widget by changing the layout.js an add a new item.
When you have you own application in og, you can use extjs in you view files normally like anywhere - "Ext.MessageBox.show(...)" for example.

2
Community Contributions / Re: Chat extension
« on: February 11, 2009, 08:26:54 pm »
Yes, the "plugin-system" is not a really one. OG is more a monolithic software regarding plugins and not easy extensible. In my opinion, an software must be extensible to reach a large community, espacally an open source software. Maybe later it will be. :)

3
Community Contributions / Re: Chat extension
« on: February 10, 2009, 08:40:52 pm »
Hi,
little update: Now it should work in IE (solve IE problem 80020101 by removing <!-- --> in the script), longer text field and if you want you can use an icon from og repository for the chat-tab.
Have fun! ;)

Private messages are not supported, but I have an idea how it can be realized...

Mirko

4
Community Contributions / Re: Chat extension
« on: February 07, 2009, 09:07:23 pm »
New version:
Now you get an standard information window at the top, when a message is coming in, if the chat tab isn't open and you are logged in.
And you see all users, they are logged in. When the don't use the logout button of the chat, they will be logged out automatically after an hour of no activity in og.

5
Community Contributions / Re: Chat extension
« on: February 07, 2009, 04:43:36 pm »
Thanks for the comments. :)
If you have an icon and send it to me, I'll put it into the zip package. That would be nice. Otherwise you can read in the hello world totorial, to know where you can set it. The css class is named ico-chat.

I only use firefox, ;)  what og version do you use?

This is the simplest way realizing a chat. Nowhere is saved, wheaher a user is online or offline. So this will be a new feature.

6
Community Contributions / Re: Chat extension
« on: February 06, 2009, 07:38:45 pm »
Ok, if I find some time I'll start writing a tutorial. Currently I don't understand much of the model classes. Like you can see in the code. ;)

And I fixed the timezone problem.

7
Community Contributions / Re: Chat extension
« on: February 05, 2009, 02:41:33 pm »
Ok, my extension is a little bit simpler. I don't have extra "chatrooms". The most difficult was the javascript - to get not everytime a additional timer. ;)

You can combine some fields, because the have the same content, for example in the BaseChats class start_date and created_on. Or in the BaseChatLines class sender_id and created_by_id.

But it was interesting, what you write about the content objects. I choose the chat, cause I don't have the necessary knowlege of this co's. ;)

Maybe a generator for the model classes will be helpful, because it's much to write and it's every time the same. I often used the symfony framework and this has such a generator.

8
Community Contributions / Re: Chat extension
« on: February 05, 2009, 09:47:02 am »
Hi,
I hasn't read your wiki pages. :o Bacause they aren't liked from the developers homepage.

If I had known that, I would have perhaps chosen a different extension. ;) Is your chat working? Then I reluctantly want to change your nice wiki pages, otherwise I will try.

I update the zip file.

9
Community Contributions / Re: Chat extension
« on: February 04, 2009, 09:54:01 pm »
Oh, it's public/assets/javascript/og/layout.js. Approximately line 46 (in my version), depending on where you want it in your tab bar.
I update the zip file.

10
Community Contributions / Chat extension
« on: February 04, 2009, 07:28:39 pm »
Hi,
I have written a chat extension for opengoo. Probably it’s not the most important extension, but maybe helpful. ;-) I implement it in version 1.0, but it should also work with later versions. The zip file includes all files and some instructions to install it - it's simple. And before anyone ask: the color choice is just a dummy. I still have a problem with the timezones, you can see it in the ChatEntries class.

If I should install it somewhere, ask me.

I welcome any comment!!!

Mirko


PS: Newer versions in later posts.

11
Feature requests / Re: Offline tool
« on: December 18, 2008, 08:41:05 pm »
... or Adobe AIR.

12
Applications / "Hello World!" application
« on: November 24, 2008, 02:10:46 pm »
I try to write a new application the first time and now I want share my knowledge, because I don't find something like that in the forum or somewhere else. I think when it's clear how to write a extension, more peple will do it and can extend the software faster. It will be nice, if you get suggestions for improvement!!!

New controller:
Create a new file called HelloworldController.class.php in the application/controllers folder. This controller will be loaded automatically and have one or more actions (here only one: index). You can set some variables to use they in the view template.

Code: (php) [Select]
class HelloworldController extends ApplicationController {
function __construct() {
parent::__construct();
prepare_company_website_controller($this, 'website');
}
function index() {
$my_var = 'World';
tpl_assign('world', $my_var);

}
}

New view:
Create a file which is called equal to the action name, here index.php, in the application/views folder to show the output of the controller.

Code: (html) [Select]
Hello <?php echo $world ?> !
Show the new application near the others as a tab:
Add it to the constructor of the TabPanel class to the items array in public/assets/javascript/og/layout.js :

Code: (php) [Select]
var tab_panel = new Ext.TabPanel({
id: 'tabs-panel',
region:'center',
activeTab: 0,
enableTabScroll: true,
items: [
...
new og.ContentPanel({
title: lang('helloworld'),
id: 'helloworld-panel',
iconCls: 'ico-helloworld',
refreshOnWorkspaceChange: true,
defaultContent: {
type: "url",
data: og.getUrl('helloworld','index')
}
}),

Set a tab-label for the application:
For the English translation add a new item called helloword (see above) to the array in the javascript file language/en_us/lang.js.
   
Code: (js) [Select]
...
  'completed on': 'Completed on',
  /* Hello World */
  'helloworld': 'Hello World'

Now reload your opengoo and you will see your Hello World! application at the top.

Set an icon for the application:
The icon must set by the used theme, so for the default theme you save your icon by default in the public/assets/themes/default/images/16x16 folder.

Now connect the CSS class ico-helloworld to your image in the CSS file public/assets/themes/default/stylesheets/general/layout.css

Code: (css) [Select]
.ico-helloworld {
background-image: url(../../images/16x16/helloworld.png) !important;
}

Pages: [1]