Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Following plugin doesnt working on 2.1?

jeongweejeongwee Vanilla version 2.6 ✭✭

any change to make it working on 2.1?

Best Answer

Answers

  • Options
    hgtonighthgtonight ∞ · New Moderator

    Which plugin?

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options
    jeongweejeongwee Vanilla version 2.6 ✭✭
  • Options

    lol

    The Who is playing.

    That's what I said. Who is playing?

    grep is your friend.

  • Options
    hgtonighthgtonight ∞ · New Moderator

    You can post a question to a specific plugin by clicking on Ask a question on the plugin page.

    The main issue is the event this plugin uses to hook into the profile page is non-existent in 2.1b1.

    Add this function to your class.following.plugin.php file:

    public function ProfileController_BeforeUserInfo_Handler($Sender) {
      $ViewingUserID = Gdn::Session()->UserID;
      if ($ViewingUserID == $Sender->User->UserID) {
        return;
      }
    
      $IsFollowing = $this->_CheckIfFollowing($ViewingUserID, $Sender->User->UserID);
      $FollowText = ($IsFollowing) ? "Unfollow" : "Follow";
      $FollowAction = ($IsFollowing) ? 'unfollow' : 'follow';
      echo Anchor(T($FollowText), '/profile/'.$FollowAction.'/'.$Sender->User->UserID.'/'.Gdn_Format::Url($Sender->User->Name));
    }
    

    You also need to replace all &$ with just $ in this file.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options
    jeongweejeongwee Vanilla version 2.6 ✭✭
    edited July 2013

    @hgtonight sry, but ..since i did these changes the site is down .................

  • Options
    jeongweejeongwee Vanilla version 2.6 ✭✭

    @x00 no offense thats not funny

  • Options
    hgtonighthgtonight ∞ · New Moderator

    I can't tell you anything other than I tested this working on 2.1b1 and you should revert your changes to see if that fixes your issues.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options
    jeongweejeongwee Vanilla version 2.6 ✭✭

    @hgtonight its fine, take your time .i will revert changes.

  • Options
    peregrineperegrine MVP
    edited July 2013

    As x00 pointed out the comedy sketch went as follows - all because you didn't post the question under the plugin, and instead chose to post in general questions. not a good recipe for success or to help others later.

        jeongwee: Following plugin doesnt working
        hgtonight:  which plugin?
        x00:lol
               The Who is playing.
                That's what I said. Who is playing?
    

    @jeongwee said:
    x00 no offense thats not funny

    actually @x00 gets +5 points for the comedic metacomment.

    what, they didn't teach you about Abbot and Costello in your college english class?

    http://www.youtube.com/watch?v=J_gSWTQKE-0

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    jeongweejeongwee Vanilla version 2.6 ✭✭

    sry my bad ...didnt understand that kind of humor= = i know Mr. Bean but Abbot and Costello....
    anyway sry forget it :(

  • Options

    no one expects you to know a comedy routine from the 1940's or 1950's on american television and movies.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    I bet the chinese know more about that than you may think !!

    @jeongwee

    when you work on a plugin and it fails, you can disable it from the config.php

    just put FALSE instead of TRUE on the enabled plugin and that will disable it.

    http://www.youtube.com/watch?v=e0ArzztZfO0

  • Options
    jeongweejeongwee Vanilla version 2.6 ✭✭

    i didnt know i can put a question on the plugin page until hgtonight tell me.

  • Options

    change line 62 and 83 of your class.followingmodule.php
    <img src="<?php echo Url('uploads'.DS.ChangeBasename($User['Photo'], 'n%s')); ?>"

Sign In or Register to comment.