Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Badges

Try Vanilla Forums Cloud product

Swennet New

About

Username
Swennet
Joined
Visits
0
Last Active
Roles
Member
Points
24
Badges
3
  • Re: Making YAGA work in 2.3rc

    @daemoncesar

    You can fix this by editing /applications/yaga/controllers/class.badgecontroller.php

    Find this block of code:

          // Find the rule criteria
          $FormValues = $this->Form->FormValues();     
          $Criteria = array();
          foreach($FormValues as $Key => $Value) {
            if(substr($Key, 0, 7) == '_Rules/') {
              $RealKey = substr($Key, 7);
              $Criteria[$RealKey] = $Value;
            }
          }
    

    Replace with this (just comments out unnecessary lines)

          // Find the rule criteria
          $FormValues = $this->Form->FormValues();            
          $Criteria = array();
          foreach($FormValues as $Key => $Value) {
            //if(substr($Key, 0, 7) == '_Rules/') {
              $Criteria[$Key] = $Value;
            //}
          }
    
    Octaviann
  • Re: Call to undefined function mysql_connect()

    PHP7 no longer uses the mysql_connect function. Instead, it has been replaced with mysqli_connect.

    A simple solution would be to do a search and replace. Search for "mysql_connect" and replace with "mysqli_connect" in your /vanilla/applications/dashboard/models/class.importmodel.php file.

    VipulK
  • Re: Can I Make New Comments Appear at the Top of the Comments Right After You Click "Post Comment"

    Funnily enough I found your forum linked on Reddit the other day.

    Anyway, I had a quick look for you and found the solution. In your forum folder open /applications/vanilla/js/discussion.js

    Then on line 182 find
    $(json.Data).appendTo('ul.Comments,.DiscussionTable').effect("highlight", {}, "slow");

    Replace appendTo with prependTo. Done!

    It should be noted however, that this is a 'hack'. You will have to edit this file manually every time you update Vanilla, because it will be overwritten on update.

    Gerhard
  • Re: Vanilla Wordpress plugin not working with 2.3

    @Linc Here's some issues I've experienced whilst using it.

    1. Comment Integration cannot be completely turned off after having been turned on once (Even though the checkbox is unticked) I've had to delete this functionality from the plugin to stop it from inserting JS on every page that overwrites WordPress's native comment number with "No Comments".

    2. Logout from WordPress does not automatically log out from Vanilla. I fixed this by adding this to my functions.php file.

      function vanilla_auto_logout() {
          if ( !is_user_logged_in() ) {
              $smart_redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '/';
              wp_safe_redirect( $smart_redirect_to );
              exit();
          } else {
              wp_logout();
              setcookie('Vanilla', null, -1, '/');
              $smart_redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '/';
              wp_safe_redirect( $smart_redirect_to );
              exit();
          }
      } add_action ( 'login_form_logout' , 'vanilla_auto_logout' );
      
    3. The Widgets are painfully slow. I was scratching my head over why my front page was taking up 2 seconds of PHP processing time on every load. Eventually found out that it was because of a Vanilla widget in my sidebar. Disabling that widget reduced the load time to 0.5 seconds.

    vrijvlinder
  • Re: Vanilla Wordpress plugin not working with 2.3

    I found the WordPress plugin to be very buggy and poorly coded. You'll probably have to rewrite parts of it to make it work the way you want to.

    River