Please upgrade here. These earlier versions are no longer being updated and have security issues.

Trying to upgrade vanilla forum because my forum js was infected*

135

Comments

  • Got the directory file, even reducing the font size to 8 produces 82 pages. (I've got a lot of uploads).

  • peregrineperegrine MVP
    edited March 2014

    you can use grep to look in the file quickly.

    e.g.

    cat dirlist.txt | grep js

    would list all js files.

    cat dirlist.txt | grep doc

    would list all doc files

    cat dirlist | grep pdf

    would list all pdf files

    if you want to create a new file that lists only pdf

    you could e.g.

    cat dirlist.txt | grep pdf > pdf.txt

    the greater then sign just means redirect all output into a file.

    you can google grep on the web it is a very handy tool that could answer your other questions.
    you can also google cat

    and look at a unix command primer, if you want to learn more about it.

    you can also type

    man grep

    to see all the options available with grep.

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

    vrijvlinder
  • I've jumped ahead again, sorry, already uploaded userpics folder and seems ok so far.
    Grep looks useful, I'll lookinto that.

  • so are you set to go or do you have any more questions? (aside from the scanning for viruses).

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

  • I think I'm good to go, would just like to tidy up the module order as per my other discussion then I'll change the folder names over and go live.

  • you also need to fix this if you are using OnlineUsers - it doesn't find the image in
    /plugins/OnlineUsers/status-offline-icon.png

    <img style="vertical-align:middle" src="/newvanilla/index.php?p=/plugins/OnlineUsers/status-offline-icon.png">
    

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

    vrijvlinder
  • once you get this all going. you can now experiment with 2.1b2 and make a test installation :).

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

  • Youre giving me lines of code that I have no idea where they go again.
    I have tried to look (I am honestly trying) I can see a similar line in class.onlineusers.plugin.php line 69 is that where it goes? and what about the online icon too?

    Another snag, I can't order the modules correctly on the right of the page. When offline the howdy stranger box has dropped below my tag cloud despite copying the code from my old config.php which displayed correctly.

  • peregrineperegrine MVP
    edited March 2014

    @peregrine said:
    you also need to fix this if you are using OnlineUsers - it doesn't find the image in
    /plugins/OnlineUsers/status-offline-icon.png

    <img style="vertical-align:middle" src="/newvanilla/index.php?p=/plugins/OnlineUsers/status-offline-icon.png">
    

    this is what firebug shows.

    but
    status-offline-icon.png

    is not found.

    does it exist in /plugins/OnlineUsers/

    you may need to download the plugin again if you use it and re-install. it should have two png files indicating online and off line. you don't add any code anywhere, you just need the files to exist and be readable.

    about the modules.

    post your config statement again relate to the panel modules sort order.

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

    vrijvlinder
  • see

    http://vanillaforums.org/discussion/comment/204120/#Comment_204120

    regarding modules and respond to module questions there.

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

  • peregrineperegrine MVP
    edited March 2014

    last issue.... (or maybe last)... :)

     >   @peregrine said: you also need to fix this if you are using OnlineUsers - it doesn't find the image in /plugins/OnlineUsers/status-offline-icon.png
    
        >    <img style="vertical-align:middle" src="/newvanilla/index.php?p=/plugins/OnlineUsers/status-offline-icon.png">
    

    this above is what firebug shows.

    but status-offline-icon.png
    
    is not found.
    
    does status-offline-icon.png  exist in /plugins/OnlineUsers/
    

    you may need to download the plugin again if you use it and re-install. it should have two png files indicating online and off line. you don't add any code anywhere, you just need the files to exist and be readable.

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

    vrijvlinder
  • The png files are both there with permissions set at 604

  • peregrineperegrine MVP
    edited March 2014

    make it 644 and see if that works

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

    vrijvlinder
  • No difference

  • I'll upload a change to try in a few minutes

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

    vrijvlinder
  • Looking at the page source the image is being called from:-

    /forum/index.php?p=/plugins/OnlineUsers/status-online-icon.png

    Should I be seeing some reference to OnlineUsers in index.php?

  • peregrineperegrine MVP
    edited March 2014

    in class.onlineusers.plugin.php

    replace

      protected function _AttachOnlineUsers(&$Sender) {
          if(in_array($Sender->EventArguments['Author']->UserID, $Sender->Data('Plugin-OnlineUsers-Marker'))){
            echo "<a href=\"#\" class=\"tooltip\" title=\"Online\"><img src='".Url('/plugins/OnlineUsers/status-online-icon.png')."' style='vertical-align:middle' > </a>";
          }else{
            echo "<a href=\"#\" class=\"tooltip\" title=\"Offline\"><img src='".Url('/plugins/OnlineUsers/status-offline-icon.png')."' style='vertical-align:middle' > </a>";
          }
       }
    

    with

       protected function _AttachOnlineUsers($Sender) {
          if(in_array($Sender->EventArguments['Author']->UserID, $Sender->Data('Plugin-OnlineUsers-Marker'))){
    
    
              echo sprintf(' <img src="%s" class="tooltip" title="Online"/>', $this->GetWebResource('status-online-icon.png', FALSE, TRUE));
    
          }else{
    
          echo sprintf(' <img src="%s" class="tooltip" title="Offline"/>', $this->GetWebResource('status-offline-icon.png', FALSE, TRUE));
    
          }
    
    }
    
    

    you should also look for &$Sender and replace it with $Sender in a few other place in file. But the above change should fix it for you.

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

    vrijvlinder
  • Perfect, "the nuts" as we say in the UK.

    Thanks.

    vrijvlinder
  • no prob. glad you are up and running.

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

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

Sign In or Register to comment.