Plugin Directory

Changeset 1426867


Ignore:
Timestamp:
05/30/2016 01:57:41 PM (10 years ago)
Author:
VanillaForums
Message:

Webroot and URL construction bugfixes

Location:
vanilla-forums/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • vanilla-forums/trunk/admin.php

    r577966 r1426867  
    115115          url: '<?php echo site_url('wp-admin/admin.php?page=vf-admin-handle&vanillavalidate='); ?>'+validateUrl,
    116116          success: function(data) {
    117              if (data.indexOf('http://') == 0) {
     117             if (data.indexOf('http://') == 0 || data.indexOf('https://') == 0) {
    118118                $('input.InputBox').val(data);
    119119                $('.Validated').show();
  • vanilla-forums/trunk/embed.php

    r621730 r1426867  
    133133 
    134134  $resturl = vf_get_value('url', $options, '');
    135   $resturl = vf_combine_paths(array($resturl, '?p=categories/all.json'), '/');
     135  $resturl = vf_combine_paths(array($resturl, '/categories/all.json'), '/');
    136136  $categoryid = vf_get_value('embed-categoryid', $options, '0');
    137137  $matchCategories = vf_get_value('embed-matchcategories', $options, '0');
  • vanilla-forums/trunk/functions.php

    r1076088 r1426867  
    180180  $html = vf_rest($url);
    181181  $formats = array(
     182     '"WebRoot": "',     // 2.2 // BUGFIX
    182183     '"WebRoot":"',     // 2.2
    183184     '\'WebRoot\' : "', // 2.0.18.13+ and 2.1.1+
  • vanilla-forums/trunk/plugin.php

    r1076088 r1426867  
    33Plugin Name: Vanilla Forums
    44Plugin URI: http://vanillaforums.org/addons/
    5 Description: Integrates Vanilla Forums with Wordpress: embedded blog comments, embedded forum, single sign on, and Wordpress widgets.
    6 Version: 1.1.16
     5Description: Integrates Vanilla Forums with WordPress: embedded blog comments, embedded forum, single sign on, and WordPress widgets.
     6Version: 1.1.17
    77Author: Todd Burry
    88Author URI: http://www.vanillaforums.org/
     
    3939- Fixed a bug that caused the forum url input to fill with garbage when the input is blank or an incorrect url is used.
    40401.1.5
    41 - 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.
     41- 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.
    42421.1.6
    4343- Incorrect version saved before push.
     
    5151- Fixed sso admin page.
    52521.1.11
    53 - Added the ability to match categories with Wordpress.
     53- Added the ability to match categories with WordPress.
    54541.1.12
    5555- Fixed typo where {Redirect} should have been {Target}.
     
    6161- Added the full role names to the list of roles sent on sso.
    62621.1.16
    63 - Fixed webroot parsing in url vaidation function
     63- Fixed webroot parsing in url validation function.
     641.1.17
     65- Added link to video and version.
     66- Fixed webroot parsing.
     67- Fixed Vanilla URL endpoints to not use 'p' parameter.
    6468
    65 Copyright 2010 Vanilla Forums Inc
     69Copyright 2010-2016 Vanilla Forums Inc
    6670This file is part of the Vanilla Forums plugin for WordPress.
    6771The 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.
  • vanilla-forums/trunk/readme.txt

    r1076175 r1426867  
    33Tags: forum, forums, community, vanilla, vanilla forums, single sign-on, sso, widgets, widget, embed, embedded forum
    44Requires at least: 3
    5 Tested up to: 3.3.1
    6 Stable tag: 1.1.12
     5Tested up to: 4.2.2
     6Stable tag: 1.1.17
    77
    88== Description ==
     
    38383. Configure the plugin in the WordPress Settings > Vanilla Forum menu
    3939
     40See our handy installation video <a href="https://www.youtube.com/playlist?list=PLEdMTbLR4h8zZ_odA15w4dJg6mcWMDOiC">here</a>
     41
    4042== Frequently Asked Questions ==
    4143
     
    5658= Q. How do Vanilla Comments work? =
    5759
    58 Embedding Vanilla Comments into your blog will insert a comment window at the bottom of each article. If the reader is not signed in, they will be prompted to do so using the Vanilla login form as you've configured it (SSO, Facebook, Google, Twitter, and OpenID options available). The comments are displayed below the article and simultaneously a new discussion thread is created in the forum.
     60Embedding Vanilla Comments into your blog will insert a comment window at the bottom of each article. If the reader is not signed in, they will be prompted to do so using the Vanilla login form as you've configured it (SSO, Facebook, Google, Twitter, and OpenID options available). The comments are displayed below the article and simultaneously a new discussion thread is created in the forum. Hosted customer also have the option of Disqus sign-in integration.
    5961
    6062= Q. What about my existing comments? =
     
    7072We don’t have all the features that stand alone commenting systems have but we are working on many that we see as important such as pre-moderation, integration into blogging software dashboards and automated imports of legacy comments.   
    7173
     74= Q. Can I see use this with Vanilla Forums self-hosted? =
     75Yes, you can use this with your self-hosted Vanilla Forums install.
     76
    7277= Q. Can I see some examples of Vanilla Comment implementations? =
    7378
     
    7681* http://unknownworlds.com/
    7782* http://battlebears.com/
     83* https://blog.vanillaforums.com/
  • vanilla-forums/trunk/widgets.php

    r507867 r1426867  
    4848        $url = vf_get_value('url', $options, '');
    4949        $link_url = vf_get_link_url($options);
    50         $resturl = array($url, '?p=discussions.json');
     50        $resturl = array($url, '/discussions.json');
    5151        if ($categoryid > 0)
    52             $resturl = array($url, '?p=categories/'.$categoryid.'.json');
     52            $resturl = array($url, '/categories/'.$categoryid.'.json');
    5353           
    5454//      $DataName = $categoryid > 0 ? 'DiscussionData' : 'Discussions';
     
    111111        // Retrieve & build the category dropdown
    112112        $resturl = vf_get_value('url', $options, '');
    113         $resturl = vf_combine_paths(array($resturl, '?p=categories/all.json'), '/');
     113        $resturl = vf_combine_paths(array($resturl, '/categories/all.json'), '/');
    114114        $category_data = json_decode(vf_rest($resturl));
    115115        $select_options = vf_get_select_option('All Categories', '0', $categoryid);
     
    150150        $url = vf_get_value('url', $options, '');
    151151        $link_url = vf_get_link_url($options);
    152         $resturl = array($url, '?p=activity.json');
     152        $resturl = array($url, '/activity.json');
    153153        // if ($roleid > 0)
    154154        //  $resturl = array($url, 'activities/'.$roleid.'.json');
     
    249249        $url = vf_get_value('url', $options, '');
    250250        $link_url = vf_get_link_url($options);
    251         $resturl = array($url, '?p=user/summary.json');
     251        $resturl = array($url, '/user/summary.json');
    252252           
    253253        // Retrieve the latest discussions from the Vanilla API
Note: See TracChangeset for help on using the changeset viewer.