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.


Topics - krashnik

Pages: [1]
1
Hello,

At HardMagic Publishing, we have had FengOffice 1.7.5 integrated for a few years now.  

As of June 15th, 2013 - we have our first integration of Feng 2.3 integrated with many pieces of software.  They include

Wordpress
ResourceSpace
Moodle
SMF Forum
plus more smaller programs.

We do this by having the user login to Wordpress as the main site.  Then, we have a subdirectory on the site such as example.com/feng

Inside of here, we edited the init.php file to include this:

Code: [Select]
if(isset($_GET['a'])){
if($_GET['a'] == 'login')
{
 //ADD THIRD PARTY SO IT DOES NOT LOAD MOODLE OR WORDPRESS
$third_party = 1;
define('WP_USE_THEMES', false);
require_once(__DIR__.'/../wp-blog-header.php');
if ( is_user_logged_in() ) {
   $current_user = wp_get_current_user();
$_SESSION["id"] = $current_user->ID;
ajx_current("empty");
$user = Contacts::getByUsername($current_user->user_login, owner_company());

try {
CompanyWebsite::instance()->logUserIn($user, 0);
} catch(Exception $e) {
flash_error(lang('invalid login data'));
return;
} // try
} else {

$actual_link = full_url();
    wp_redirect( wp_login_url( $actual_link  )  );
}

}}

We put this on line 162 of the file, which is somewhat important, yet it can be moved around in there.

This essentially checks to see if the user is getting authenticated... once authentication is checked (by having GET['a'] in the url) we hook this operation and tell the program to instead load up the wordpress header file.  

From here, we find the Wordpress user & pass them back as being logged in via the
Code: [Select]
$current_user = wp_get_current_user(); variable.  You can replace this variable with any other system you'd like & it will make your user logged in.  The variable should include the userID needed on the next line & the username on the line thereafter.

I hope this makes sense.  It is a small snippet & we have included this in our open-source software known as Pedadida.  (If given permission, I will post a link to this PHP software.

Pedadida automatically handles all integrations for you and gives you the latest version of all the softwares I mentioned above automatically integrated together.  This is a much larger installation that just FengOffice, itself, though great for Universities or Institutes that use FengOffice as the task management solution while also needing many other amenities on their site.

You may also browse our project on GitHub to see our latest revisions & to see the actual code.  

2
Getting Started / Feng Office Video Tutorial - Basics v 1.75
« on: November 08, 2012, 02:03:00 pm »
I made a tutorial for my company utilizing FengOffice.  

youtube.com/watch?v=lpTGCayeZlY

3
Feng Office 2 / Community Vs Professional Business Model?
« on: September 14, 2012, 01:48:20 pm »
First off, Great job on the 2.2 Beta release and all else going on.  I know this is a hard feat and look forward to what you create in the future.

I am still using v1.75 until I feel there is a 100% secure upgrade path.  I have also created quite a few modifications that I'll have to completely remake since table structures have been changed.

I am wondering the reason of having two different versions of FengOffice 2.x?  I see there are many features not included in the CE version compared with Pro.  Normally in an Open Source environment, this is offered the opposite way.

You use the Community version for new & innovative plugins, mods, and features.  Once those become stable, you release them in your professional version. 

With this business model, you make money from offering hosting & support to developers & businesses.  This seems to be the business model used prior to version 2.0.

I now see a strong difference in the direction FO is going with version 2.x.  As a member of the Community who has a plethora of code, expertise, and funds to contribute to this project, I'd like the community members to be made aware of the future of the development.

Do you plan on taking CE & Pro Editions in different directions to entice people to make a purchase of your product, or will CE always offer an open source version of the latest build of FO?

I understand developers haven't contributed nearly as much as your team would have liked in the past, but you must also understand that your product is very young and the direction of the entire Feng project has not been made clear to the public.  Nor has a proper plugin procedure been developed until recently.  With a clear business plan and collaborative communication with members I think you will find that developers will offer stronger support.

Also, focusing on making a seamless transition between 1.75 > 2.2 should be the highest priority over coming up with new features. 

I finally got my business to the point that I can contribute some great code to this project, but with so many structural changes in 1.75 to 2.0 - I will be spending easily 6 months of my team's time upgrading all of our features before I feel comfortable contributing large plugins.  A few plugins we have developed include an entire Mobile App for Feng - just to give you an example of the type of funds I have put into this platform.

With the ability to add new plugins to version 2.2, I know developers like myself will be happy to aide in the development of this opensource software.  However, we only have the intention of helping if it is truly going to be 100% open source in the future with a community edition that is not handicapped.

Please explain how you see the direction of Feng being developed and the effort you expect Community members utilizing the CE version to partake.

4
Installation problems / Check Mails & Reply Problems
« on: September 23, 2011, 05:50:42 am »
I'm having issues with my check mails.  I have about 8 email addresses linked to the sync & I'm not sure if they are timing out due to a long query, or what the issue is.  

After about 3 minutes of "loading" after hitting "check mails" the program responds with "No Emails".  Upon hitting "check mails" again, it will finally retrieve the latest emails.

Upon looking in the debug, I come up with this:

Code: [Select]
#3 ERROR: Error: mysql_ping() expects parameter 1 to be resource, null given in '........................../environment/classes/mail/MailUtilities.class.php' on line 177 (error code: 2)
#4 DEBUG: Could not save mail, original mail saved as ........................../tmp/unsaved_mail_78383.eml, exception:
    Failed to connect to database
#5 ERROR: Error: Undefined property: MysqlDBAdapter::$link in '........................../environment/library/database/adapters/AbstractDBAdapter.class.php' on line 410 (error code: 8)
#6 ERROR: Error: mysql_ping() expects parameter 1 to be resource, null given in '........................../environment/classes/mail/MailUtilities.class.php' on line 177 (error code: 2)
#7 DEBUG: Could not save mail, original mail saved as ........................../tmp/unsaved_mail_78384.eml, exception:
    Failed to connect to database



Furthermore, when replying to an email, it will briefly show all the contacts at the top of the screen and then the message is only displayed on the lower half.  This isn't consistent and at the current moment, it is now not showing any buttons at the top of the email, so I can't reply, or see anything.

I've attached a screenshot to show this.

I could probably diagnose this myself if FengOffice came with a nice Codex like wordpress has.  The documentation here is horrible and that is why the core program only gets upgraded by a handful of programmers.  To have a truly OpenSource program, the plugin architecture & the documentation need to be updated immediately.  Our organization would even fund many other projects if FO was forward-thinking like this.  

OpenSource is not new-age... App stores, plugins, and dynamic documentation is the wave of the future and FO will be forgotten unless these are addressed.  Not to mention upgrading the forum where we can mention these issues.

5
Community Contributions / Email Piping
« on: October 28, 2010, 04:21:13 pm »
I am designing an algorithm so users may send an email back to the notifications they receive and it will automatically add their reply into the comment area of the project, milestone, file, or other area. 

This is about 75% complete and has taken me about 5 hours. I'll finish it up within a few days.

Any suggestions or others who have done similar, feel free to post here.

Pages: [1]