forked from vanilla/wordpress-vanilla
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
executable file
·88 lines (84 loc) · 3.97 KB
/
plugin.php
File metadata and controls
executable file
·88 lines (84 loc) · 3.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
/*
Plugin Name: Vanilla Forums
Plugin URI: http://vanillaforums.org/addons/
Description: Integrates Vanilla Forums with WordPress: embedded blog comments, embedded forum, single sign on, and WordPress widgets.
Version: 1.1.18
Author: Todd Burry
Author URI: http://www.vanillaforums.org/
ChangeLog:
1.0.4
- Fixed validation of Vanilla Url to correct when users incorrectly enter the path to their discussion instead of the actual root of the forum.
- Fixed a bug that caused Vanilla Admin JS & CSS to be included on all wp dashboard pages.
- Fixed a bug that caused the copy of the embed template to fail and throw a fatal PHP error.
- Added an option to the embed form that allows widgets to use the embed url instead of the actual forum url.
- Changed discussions widget to friendly-url-encode discussion titles.
- Fixed plugin to work with forums that are not using mod_rewrite.
1.0.5
- Fixed css & js includes so the containing folder is no longer hard-coded.
- Added css file so Vanilla icon displays on all admin pages (not just when looking at a vanilla page).
1.0.6
- Forgot to add the admin.css file to svn in the last release
1.1.0
- Cleaned up url validation (allow you to override it now if you want)
- Adding new jsConnect SSO functionality
- Added comment embedding
1.1.1
- Somehow missed adding some files for 1.1.0
1.1.2
- Missing css & image files
- Removed code that was causing embedded comments to get encoded/decoded poorly
1.1.3
- Fixed discussion & activity widgets to pull data correctly.
- Removed unnecessary variables from comments.php template.
- Removed unnecessary timestamping of count.js url.
1.1.4
- Updated description, help, and readme.
- Fixed bad reference to transparent.png that caused a broken image in the dashboard menu.
- Fixed a bug that caused the forum url input to fill with garbage when the input is blank or an incorrect url is used.
1.1.5
- Added fix so that the forum's domain is on the trusted domain whitelist in WordPress and redirects will function properly between wordpress and vanilla.
1.1.6
- Incorrect version saved before push.
1.1.7
- Added embed sso code.
1.1.8
- Fixed sso photourl.
1.1.9
- Made the sso pluggable.
1.1.10
- Fixed sso admin page.
1.1.11
- Added the ability to match categories with WordPress.
1.1.12
- Fixed typo where {Redirect} should have been {Target}.
1.1.13
- Added the auto sso string to the forum embed page.
1.1.14
- Added a check for forum embedding so that the forum and comments don't get embedded at the same time.
1.1.15
- Added the full role names to the list of roles sent on sso.
1.1.16
- Fixed webroot parsing in url validation function.
1.1.17
- Added link to video and version.
- Fixed webroot parsing.
- Fixed Vanilla URL endpoints to not use 'p' parameter.
1.1.18
- Update handling of /categories/all.json
Copyright 2010-2016 Vanilla Forums Inc
This file is part of the Vanilla Forums plugin for WordPress.
The Vanilla Forums plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The Vanilla Forums plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the Vanilla Forums plugin. If not, see <http://www.gnu.org/licenses/>.
Contact Vanilla Forums Inc at support [at] vanillaforums [dot] com
*/
define('VF_OPTIONS_NAME', 'vf-options');
define('VF_PLUGIN_PATH', dirname(__FILE__));
define('VF_PLUGIN_URL', WP_PLUGIN_URL.'/'.plugin_basename(dirname(__FILE__)));
include_once(VF_PLUGIN_PATH.'/functions.php');
include_once(VF_PLUGIN_PATH.'/admin.php');
include_once(VF_PLUGIN_PATH.'/embed.php');
include_once(VF_PLUGIN_PATH.'/widgets.php');
//include_once(VF_PLUGIN_PATH.'/sso.php');
include_once(VF_PLUGIN_PATH.'/hooks.php');