Skip to content

Instantly share code, notes, and snippets.

View RaymondBenc's full-sized avatar

Raymond Benc RaymondBenc

View GitHub Profile
@RaymondBenc
RaymondBenc / unite-sephp-api.md
Last active October 1, 2019 15:06
Example using Unite Backend to Connect to SEPHP

Event Listener

You need an event listener in Unite for API Router and in your /srv/HelloWorld/APIRouter-match.js file you need the following:

const app = require('app');

async function call (method, endpoint, query = {}) {
    /**
     * The following two settings are borrowed from the SEPHP Bridge app
     */
    const url = await app.setting('sephp:url');
@RaymondBenc
RaymondBenc / View.js
Created September 25, 2019 15:45
Override Unite Profile Controller
import React from 'react';
import Controller from '@SE/Core/Page/Controller';
import app from '@SE/Core/App';
import ProfileService from '@SE/Profile/Service/ProfileService';
import Loader from '@SE/Core/Loader';
export default class Component extends React.Component {
static propTypes = {};
constructor (props) {
@RaymondBenc
RaymondBenc / Controller.js
Created September 5, 2019 14:29
Filter Nav Component
import React from 'react';
import app from '@SE/Core/App';
import Controller from '@SE/Core/Page/Controller';
import Nav from '@SE/Core/Nav';
export default class HelloWorldControllerHome extends React.Component {
static propTypes = {};
constructor (props) {
super(props);
@RaymondBenc
RaymondBenc / Controller.js
Created September 5, 2019 07:26
Unite Event Listeners
import React from 'react';
import app from '@SE/Core/App';
import Controller from '@SE/Core/Page/Controller';
import Button from '@SE/Core/Button';
export default class Component extends React.Component {
static propTypes = {};
constructor (props) {
super(props);
'files' => array(
'theme.css',
'main.less'
),
'less' => array(
'main.less'
)
@include "main.css";
@RaymondBenc
RaymondBenc / default.tpl
Created July 28, 2017 13:17
Basic default.tpl for SocialEngine
<header id="se-header">
<!-- Site logo -->
<?php echo $this->logo; ?>
<!-- Main Search widget -->
<?php echo $this->search; ?>
<!-- Notification mini-menu -->
<?php echo $this->notify; ?>
# Open file: PF.Base/module/admincp/include/service/module/module.class.php
# Look for and remove
switch ($aRow['module_id']) {
case 'im':
case 'music':
case 'shoutbox':
case 'subscribe':
case 'forum':
if (Phpfox::isPackage(['3'])) {
@RaymondBenc
RaymondBenc / 4.3.2.txt
Created April 20, 2016 12:37
phpFox 4.3.2 Changelog
M PF.Base/include/checksum/md5
M PF.Base/include/library/phpfox/image/helper.class.php
M PF.Base/include/library/phpfox/phpfox/phpfox.class.php
M PF.Base/include/library/phpfox/template/template.class.php
M PF.Base/install/include/installer.class.php
A PF.Base/install/include/version/4.3.2.php
M PF.Base/module/admincp/include/component/controller/maintain/cache.class.php
M PF.Base/module/event/include/service/callback.class.php
M PF.Base/module/feed/include/service/feed.class.php
M PF.Base/static/jscript/main.js
@RaymondBenc
RaymondBenc / 4.3.1.txt
Created April 4, 2016 15:35
4.3.1.txt
M .gitignore
M PF.Base/include/checksum/md5
M PF.Base/include/library/phpfox/file/file.class.php
M PF.Base/include/library/phpfox/file/minimize.class.php
M PF.Base/include/library/phpfox/image/helper.class.php
M PF.Base/include/library/phpfox/phpfox/phpfox.class.php
M PF.Base/include/library/phpfox/setting/setting.class.php
M PF.Base/include/library/phpfox/template/template.class.php
M PF.Base/include/library/phpfox/url/url.class.php
M PF.Base/include/setting/common.sett.php