Code Monkey home page Code Monkey logo

siforum's Introduction

SiForum a WordPress Forum Theme

Minimalist Forum and Community Theme made with WordPress and BuddyPress

Inspired from Discourse, Flarum and NodeBB. But much much simpler and FAST.

DEMO: https://www.atarikafa.com/topluluk/

Features

  • WordPress
  • BuddyPress
  • Best SEO
  • Post/Category Based (no custom posttypes or taxonomies)
  • Custom Category Colors (Hex, RGB or Name)
  • Custom Category Icons (Native WordPress Dash Icons No 3th party)
  • Advance Profiles
  • Custom Avatar
  • Custom Profile Banner
  • Profile Status Sharing
  • Friend Follow
  • Private Messaging
  • @Mention Users
  • Notifications
  • Subscriptions
  • Invite System

Requirements

  • WordPress
  • BuddyPress
  • SiForum Theme

Setup

  1. Install BuddyPress Plugin and Change BuddyPress setting to legacy theme (Settings > Buddypress > options)
  2. Install SiForum Theme
  3. Set the default registered user to "author" role
  4. Add some categories, category colors (css color names or #ccc color codes) and category icons (i used dashicons just paste the class name thats it) image
  5. Disable guest commenting since this theme using comments as replies
  6. Open register to everyone or use Buddypress invite system or both.
  7. Recommended: Install a Comment Edit plugin for users. https://wordpress.org/plugins/simple-comment-editing/
  8. Recommended: Install a security and role restriction plugin for disabling the wp-admin https://wordpress.org/plugins/protect-wp-admin/
  9. Disable image nested replies

Done.

You can have fun posting topics and start creating your community...

Advantages

  • Unlimited Plugins
  • Great SEO
  • Endless Possibilities
  • Easy to Edit Theme
  • Backward Compatibility
  • Forward Compatibilty

Screenshots

Index image

Post Custom Editor

@Mentions image

Activity image

Profile image

siforum's People

Contributors

opensorcererr avatar serkanalgur avatar sinanisler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

siforum's Issues

check this only on author - subscriber current users

check this only on author - subscriber current users

SiForum/functions.php

Lines 509 to 533 in 106cdd2

// Security - Hiding others posts for user to see
function only_show_own_author_posts( $wp_query ) {
if ( strpos( $_SERVER['REQUEST_URI'], '/wp-admin/edit.php' ) !== false ) {
if ( ! current_user_can( 'activate_plugins' ) ) {
add_action( 'views_edit-post', 'remove_items_from_edit' );
global $current_user;
$wp_query->set( 'author', $current_user->id );
}
}
}
add_filter( 'parse_query', 'only_show_own_author_posts' );
function remove_items_from_edit( $views ) {
unset( $views['all'] );
unset( $views['publish'] );
unset( $views['trash'] );
unset( $views['draft'] );
unset( $views['pending'] );
return $views;
}

prevent xss filter html usage / allowed html tags

prevent xss filter html usage

// Create function which allows more tags within comments
function filter_html_usage() {
  global $allowedtags;
  $allowedtags['pre'] = array('class'=>array());
  $allowedtags['p'] = array('class'=>array());
  $allowedtags['code'] = array('class'=>array());
  $allowedtags['strong'] = array('class'=>array());
  $allowedtags['href'] = array('class'=>array());
}
 
// Add WordPress hook to use the function
add_action('init', 'filter_html_usage',11);

Cannot Post Start New Topic

Why I cannot post new topic?

Here the log error

[01-Aug-2022 11:00:14 UTC] PHP Fatal error: Uncaught Error: Class 'tidy' not found in /home/website/public_html/wp-content/themes/SiForum-main/functions.php:669
Stack trace:
#0 /home/website/public_html/wp-includes/class-wp-hook.php(307): create_new_from_from_index('')
#1 /home/website/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
#2 /home/website/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#3 /home/website/public_html/wp-admin/admin-ajax.php(187): do_action('wp_ajax_create_...')
#4 {main}
thrown in /home/website/public_html/wp-content/themes/SiForum-main/functions.php on line 669

image

localization

the theme has static words right now.

not a big problem but localization could be nice to have later on.

FontAwesome icons

allow us to use or define font awsome icons in theme settings for lock, pin

hoping all colours and icons settings can be tuned in the admin panel

this theme is super fast without CF and APO .. i can't imagine how fast it is going to be if it is optimised ๐Ÿš€ great work.

image

multi-language or english support

Right now theme has lots of default Turkish words.

if you enable the theme in English or other languages you will see Turkish words here and there :)

not a big problem but multi-language or english support is important for making the theme user-friendly.

Sorting Discussions - Feature Request

image

Sorting Discussions on home, search, category pages

Latest = recent comment activity on posts
Top = has many WordPress comments
Newest = newly to old created WordPress posts
Oldest = old to new WordPress posts

Trending and Upovets sorting is not needed
We can add Pinned posts. (WordPress featured posts - if we mark a post as featured in WordPress panel we need to assume it as pinned post)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.