• Content count

  • Joined

  • Last visited

  • Days Won


straightvisions last won the day on January 20

straightvisions had the most liked content!

Community Reputation

26 Excellent

About straightvisions

  • Rank
  • Birthday 11/06/85

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Hamburg / Germany

Recent Profile Visitors

2241 profile views
  1. The API works per default with a forum setup enabled with search engine friendly URLs. If you have this feature disabled, you'll either need to enable search engine friendly URLs or set the following trigger before first API request: $ipbwi->core->url_rewrite = false; Example: require_once('../ipbwi.php'); $ipbwi->core->url_rewrite = false; // basic board information try{var_dump($ipbwi->core->hello());}catch(Throwable $t){ echo 'Type Error, line '.$t->getLine().': ' .$t->getMessage(); }
  2. Install IPBWI for WordPress SSO plugin, as this is required for this addon Install the IPBWI for WordPress - Sync Groups plugin in WordPress Go to WP Admin -> IPBWI4WP -> Sync Groups Map WP roles with IPS usergroups here Go to IPS Admin -> IPBWI -> Hooks and check Activate Default Hooks Slave notification
  3. Once discussion has started, the discussion topic id is saved as post meta. get topic id meta field: $tid = get_post_meta($post_id, 'ipbwi_cc_topic_id', true); You may want to change that value. This can be done programmatically, too: add_post_meta($post_id, 'ipbwi_cc_topic_id', $topic_id, true);
  4. The following WordPress filters are available through IPBWI for WordPress - Community Comments: ipbwi4wp_community_comments_create_topic array $parameters: forum, author, title, post ipbwi4wp_community_comments_create_post array $parameters: topic, author, post
  5. Just copy file /wordpress/wp-content/plugins/ipbwi4wp_community_comments/lib/assets/tpl/community_comments.php to /wordpress/wp-content/themes/YOUR_THEME/ipbwi/community_comments.php and start editing.
  6. Following these steps will clean your IPS installation from IPS connect entries left by IPBWI: update the IPS base URL in IPBWI's SSO Settings in WordPress remove the outdated IPS connect Slave URL in PHPmyAdmin -> IP.board Database -> Table ibf_core_ipsconnect_slaves -> Field slave_url set value of field connect_slaves in table ibf_core_sys_conf_settings to amount of entries in table ibf_core_ipsconnect_slaves Go to IPS ACP -> System -> Support -> Something isn't working correctly -> continue Flush any Browser- and Servercaches, as well as CDNs like Cloudflare. Unfortunately, we will not offer a more convenient way for these steps, as IPS has already mentioned in a support ticket that such a feature is on their todo list
  7. With IPBWI 4, you are able to handle hooks triggered by IPS 4. Configuration IPBWI PHP Wrapper set ipbwi_ACTIVATE_HOOKS in /ipbwi-api/ to true rename file /ipbwi-api/lib/hooks.php.dist to hooks.php edit file hooks.php and fill methods with your custom code SSO Hooks SSO Hooks are based on IPS.connect and automatically fire to all slaves regardless of the settings below. IPBWI IPS App After you've installed the App Go to IPS ACP -> IPBWI -> Advanced -> Hooks Activate Default Hooks. We will describe how to add custom hooks later You may want to activate hooks going to be sent to all IPS connect slaves, a custom URL and/or via email. In all cases, data is sent as json-string. Default Hooks The following Hooks are triggered for Topics and Posts when Default Hooks has been activated. set_pp_main_photo IPS\\ipbwi_hook_ipbwi_member::set_pp_main_photo Whenever a profile photo of a member has been changed. The delivered data object contains the photopath and the updated member object save IPS\\forums\\ipbwi_hook_ipbwi_forums_topic::save IPS\\forums\\Topic\\ipbwi_hook_ipbwi_forums_topic_post::save Whenever Topic Data has been created or changed - great if you are caching topic information on your site and want to get a refresh trigger. The delivered data object contains the field item with detailed informations about the item. modAction IPS\\forums\\ipbwi_hook_ipbwi_forums_topic::modAction IPS\\forums\\Topic\\ipbwi_hook_ipbwi_forums_topic_post::modAction Whenever a mod action has been performed, the data object contains a field action which informs about the type of action performed: feature unfeature pin unpin hide unhide lock unlock move merge delete approve Additionally, information about the member who has performed the action as well as a reason and item information are delivered in data object. Custom Hooks You can create your own, custom hooks utilizing the Code Hooks feature of IPS. Snippet: if(isset(\IPS\Settings::i()->ipbwi_hooks_activate_default) && \IPS\Settings::i()->ipbwi_hooks_activate_default == 1 && isset($this) && is_object($this) && method_exists($this, 'apiOutput')){ $hooks = new \IPS\ipbwi\modules\admin\advanced\hooks; $hooks->send(__METHOD__,array('item' => $this->apiOutput())); }
  8. In most cases, IPBWI for WordPress v4 works without any issues. Some third party extensions are known to generate issues in connection with IPBWI for WordPress v4. Coming Soon Page & Maintenance Mode by SeedProd This plugin deactivates the WordPress' REST API, so you'll receive the following error code during login/logout: {"code":"rest_cannot_access","message":"Only authenticated users can access the REST API.","data":{"status":401}} You may deactivate this plugin and try another one or edit file /wp-content/plugins/coming-soon/inc/class-seed-csp4.php and remove or outcomment the following line: return new WP_Error( 'rest_cannot_access', __( 'Only authenticated users can access the REST API.', 'coming-soon' ), array( 'status' => rest_authorization_required_code() ) );
  9. Default Avatars in WordPress are replaced with IPS Avatars. IPBWI for WordPress v4 uses the following hooks: add_filter('pre_get_avatar', array($this->avatars,'ipb_get_avatar'), 99 , 5); add_filter('get_avatar', array($this->avatars,'ipb_get_avatar'), 99 , 5); If you want to add new hooks for compatibility to third party plugins, like buddypress, you may add them like this: add_filter('JUST_ANOTHER_AVATAR_HOOK', array($GLOBALS['ipbwi4wp']->avatars,'ipb_get_avatar'), 99 , 5); The example above is just for orentiation, please note that no free support can be provided for hooking into other third party plugins.
  10. Since IPS v4 and IPBWI API v4, online status isn't shared anymore. The reason is how SSO since v4 has changed: v3 required cookie sharing for working SSO, while v4 has implemented a redirect method to allow SSO without domain or hosting limitations. If you are using the same domains for your site and forum and have both installed on the same host, you can get the online status of a member with the following code snippet: require_once(dirname(__FILE__).'/forum/init.php'); \IPS\Session\Front::i(); if(\IPS\Member::loggedIn()->member_id) { } Please note that our standard support does not include help with code snippets like this, as these are not part of the standard IPBWI functionality. This snippet is intended as quick start for your own research.
  11. If a WordPress site has IPBWI for WordPress v4 plugin activated and an IPS connect Key saved in settings, it will be added as slave to IP.board. If the same WordPress site is available on both, http://domain.example and https://domain.example, there will be a security mismatch key error. Please decide whether your domain is available on HTTP oder HTTPS completely and force a redirect. You may use the following htaccess code to force a 301 redirect to HTTPS. Finally, please clean your IPS table "core_ipsconnect_slaves" e.g. via PHPmyAdmin, from the false entries. # Force HTTPS RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  12. IPBWI for WordPress tries to assist you as best as possible to avoid extra documentation, but some feature are by nature more hidden than others. A complete list and explanation of all features is available on Installation unzip download package on your local harddrive copy folder ipbwi4wp to /wp-content/plugins/ activate plugin in WordPress go to IPBWI4WP settings menu page and follow the instructions there.
  13. A brief explanation is available on More Details about each SSO feature and how it exactly works are described here.
  14. A brief explanation is available on While all IPS connect features are supported, you'll find an explanation for each SSO feature here.