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.

change element postion

2»

Comments

  • See the line include $this->FetchViewLocation('discussion', 'discussion');? So we know that we have to find our information in the view "discussion" in the subfolder "discussion". But you've looked there anyway...

  • And now I'm as far as you are and see what the problem is, sorry to be so much slower than you've been already...
    You were completely right to cut the complete <div class="Item-Header DiscussionHeader">...</div> and I assume you've already put it at the right place.

    But in the code for DiscussionHeader, there are some variables, that are defined in discussion.php and so you can not use them in index.php

    Make sure that you copy that lines from discussion.php to index.php:

    $UserPhotoFirst = C('Vanilla.Comment.UserPhotoFirst', TRUE);
    
    $Discussion = $this->Data('Discussion');
    $Author = Gdn::UserModel()->GetID($Discussion->InsertUserID); // UserBuilder($Discussion, 'Insert');
    
    // Prep event args.
    $CssClass = CssClass($Discussion, FALSE);
    

    In index.php you could delete $UserPhotoFirst = C('Vanilla.Comment.UserPhotoFirst', TRUE);

  • No, I wasn't completely right. Look at the files and compare them to what you've got. Again, i could recommend Notepad++. It has a file compare plugin which is quite helpful for that.

    Do yourself a favor and paste those two files into your own theme subfolder and restore the core files.

    I've packed title and discussion info into a div#TitleWrapper, so that you could style them.

  • It was a pleasure but know I have to quit and do our weekend shopping, otherwise my girlfriend will kick my ass...
    Hope we see your theme one day in the addon section!

  • UnderDogUnderDog MVP
    edited August 2013
    for ($i=0; $i < 100)
    {
      if($R_J == "behind computer")
      {
        /*
         Alternate High and low ass kickings, based on the value of $i<del></del>
        */
        $hilow = 'low';
        KickAss($hilow)
        $i--;
      }
    }
    

    There was an error rendering this rich post.

  • im back was afk just now . gonna read the replys via google slowly slowly again :D

  • @UnderDog said:

    for ($i=0; $i < 100; $i++)
    {
      ($R_J == "behind computer") && KickAss($i%2);
    }
    

    Just feeling silly :D

    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.

  • UnderDogUnderDog MVP
    edited August 2013

    @hgtonight said:

    for ($i=0; $i < 100; $i++)
    

    No no no, you fixed my bug! LOL!
    For the others : I created an infinite loop, $i would never be bigger than 100, because I was doing $i-- instead of $i++ and hgtonight fixed that... (dammit).
    Spoiler button in the buttonbar would be great here...

    There was an error rendering this rich post.

Sign In or Register to comment.