Skip to content

Instantly share code, notes, and snippets.

Raymond Benc RaymondBenc

Block or report user

Report or block RaymondBenc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@RaymondBenc
RaymondBenc / unite-sephp-api.md
Last active Oct 1, 2019
Example using Unite Backend to Connect to SEPHP
View unite-sephp-api.md

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 Sep 25, 2019
Override Unite Profile Controller
View View.js
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 Sep 5, 2019
Filter Nav Component
View Controller.js
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 Sep 5, 2019
Unite Event Listeners
View Controller.js
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);
View manifest.php
'files' => array(
'theme.css',
'main.less'
),
'less' => array(
'main.less'
)
@RaymondBenc
RaymondBenc / default.tpl
Created Jul 28, 2017
Basic default.tpl for SocialEngine
View default.tpl
<header id="se-header">
<!-- Site logo -->
<?php echo $this->logo; ?>
<!-- Main Search widget -->
<?php echo $this->search; ?>
<!-- Notification mini-menu -->
<?php echo $this->notify; ?>
View module.class.php
# 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 Apr 20, 2016
phpFox 4.3.2 Changelog
View 4.3.2.txt
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
View 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
You can’t perform that action at this time.