Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorApreche
    • CommentTimeJul 9th 2006
     # 1
    I'm having some problems with the Preview Post addon. My friend pointed out that ordered lists were being improperly styled in the previews. So I came to the site and updated the previewpost addon to version 2.0 (was using 1.2). Now the preview post button still appears, but it doesn't do anything. Nobody can preview their posts. What to do?
    •  
      CommentAuthorWanderer
    • CommentTimeJul 10th 2006
     # 2
    If you have Quicktags installed, update that too.

    Worked for me :)
    •  
      CommentAuthorApreche
    • CommentTimeJul 10th 2006
     # 3
    nope, no quicktags.
    • CommentAuthorSirNot
    • CommentTimeJul 10th 2006 edited
     # 4
    You do know that the preview shows up as a 'comment' now, right? So, in a discussion if you preview it will essentially create another comment and preview it in that, instead of showing the preview below the input fields like before. If you're still quite sure it dosn't preview the post then it's probably a javascript error of some sort. What browser were you using?
    •  
      CommentAuthorApreche
    • CommentTimeJul 10th 2006
     # 5
    Boy, do I feel stupid. Thanks.
  1.  # 6
    I never preview my posts so i hadnt noticed that but it's pretty awesome sir!
    • CommentAuthorSirNot
    • CommentTimeJul 10th 2006 edited
     # 7
    Thanks. It's actually quite a recent update; I had gotten the idea from yayhooray's preview system, but adapted the concept to work with the existing AJAX-based previewing system. Mark's probably tired of updating my extensions, but I also just added an option button to the 'comment' to allow you to submit it from there, so you won't have to scroll back down if you have a long post.

    I suppose the next step is AJAX-ified posting and inline editing :-P
    • CommentAuthorMinisweeper
    • CommentTimeJul 10th 2006 edited
     # 8
    Cool beans. Perhaps it could be highlighted in some way? I'm not sure - i can see how for users who arent concentrating they'd expect the preview to go somewhere else and wouldnt notice it being added as comment then they might even think they'd already posted it or something. I like it a lot but it could just stand out a bit more i think? Could even bring in some of these spanky ajax slides or whatever but that's entirely user preference so i'll go over to you on that one. (for the record i didnt see sirnots edit before posting this)

    I'm gonna stop rambling now...
    •  
      CommentAuthorTrey
    • CommentTimeJul 10th 2006
     # 9
    I'm actually running into a problem with it now, when I go to preview the post it just shows my name and then right now after it, its not showing the actual comment itself. It was working fine earlier and I havent changed anything within the file either. This has happening with the previoud version (since you did just update it) So I figured I would also update mine, and its still doing it.
    I'm also getting a javascript error with it saying "no element is found" in ajax.php
    • CommentAuthorSirNot
    • CommentTimeJul 10th 2006
     # 10
    What do you mean when you say "I'm also getting a javascript error with it saying "no element is found" in ajax.php"? Are you saying an error is occuring in ajax.php, or the browser is showing js errors, or...?

    @mini: Well the goal of this type of preview system was to make it look as much like a comment as possible, so users could see exactly what it'd look like. I had figured a notice in the description would be enough, but I guess not. I suppose I could add something to make it a little more conspicuous, but I'd rather not color it as it'd conflict with other styles, and preferrably not use one of those js animations if possible. Maybe a background image of some sort?
    •  
      CommentAuthorTrey
    • CommentTimeJul 10th 2006
     # 11
    the browser is showing the errors as a javascript error -- web developer extension for firefox
    • CommentAuthorRoguefoxx
    • CommentTimeJul 10th 2006
     # 12
    I'm wondering if this could be made to show attachments in the preview as well? I guess it may not since the attachments have not yet been uploaded to the server, but I'm no expert so is this possible?
    • CommentAuthorSirNot
    • CommentTimeJul 10th 2006
     # 13
    Trey, could you post the exact error?

    Roguefoxx, I'll look into it, but I can't guarantee anything.
    • CommentAuthorRoguefoxx
    • CommentTimeJul 10th 2006
     # 14
    Actually SirNot, after thinking about it the only reason you would like to preview attachments is if you could add them in various places within your post. As it stands the attachments are only added to the end of the post. So if or until the attachment addon is capable of that then it probably isn't necessary.
    •  
      CommentAuthorTrey
    • CommentTimeJul 10th 2006
     # 15
    Image Hosted by ImageShack.us

    ^^ theres a preview of how I see it, with the javascript error that web devel is throwing at me. If you would like to check it out for yourself you can here its open membership so you'll get approve right away
  2.  # 16
    Yeah SirNot, i agree with your looking-as-much-like-a-post-as-possible thing. Background image is a good idea though, perhaps just a 'PREVIEW' watermark thing?
    • CommentAuthorSirNot
    • CommentTimeJul 10th 2006 edited
     # 17
    That is odd... Could you put in an var_dump($_POST); before the echo($Text); in ajax.php and see what happens?

    That's sort of what I was thinking of as well, mini. I'll see what it looks like.
    •  
      CommentAuthorTrey
    • CommentTimeJul 10th 2006
     # 18
    I tried adding that and nothing came up. I was also thinking it could be another extension conflicting with it, but that wasnt the case either because I disabled a bunch of the extensions that do have some sort of javascript with them =/
    • CommentAuthorSirNot
    • CommentTimeJul 10th 2006
     # 19
    Try adding that line right before $Text = ForceIncomingString('Data', '');Does it show anything when you preview then?
    •  
      CommentAuthorTrey
    • CommentTimeJul 10th 2006
     # 20
    no, but I started moving it around between the included statements, and its not showing up after the
    include('../../conf/extensions.php'); line, so I'm thinking it is some sort of extension that could be causing it to not work right. I'm about to head out now but when I get back I'll mess with it some more and if I find out it was an extension messing it up I'll post it back here
    • CommentAuthorSirNot
    • CommentTimeJul 10th 2006 edited
     # 21
    Well, good luck. You could also list the extensions you've currently got enabled, we might be able to help some.

    And mini, how's this? http://lussumo.com/addons/?PostBackAction=AddOn&AddOnID=84
  3.  # 22
    I dont have anywhere to install it so i dunno :D
    • CommentAuthorSirNot
    • CommentTimeJul 10th 2006
     # 23
    Oh, well here's a screenshot then:
  4.  # 24
    Looks alright to me. Assuming someone isnt trying to preview an image which looks exactly like that one. :D
    •  
      CommentAuthorremouk
    • CommentTimeJul 10th 2006
     # 25
    Well, adding an image with text inside is not that good for translations... Why not "preview" (in red if possible) instead of "right now", and the same background image as hidden comments? Just my thought... It's already pretty cool. ;)
    •  
      CommentAuthorTrey
    • CommentTimeJul 10th 2006
     # 26
    ok, I figured out what extension was causing the preview not to work. It was the Forum Stastics 0.2.8. I'm not sure how that affected the preview post at all but it did
    • CommentAuthorSirNot
    • CommentTimeJul 10th 2006
     # 27
    Darnit, this preview post extension is too darn realistic, especially without that 'submit post' button. I had made a post, previewed it then left the thread under the impression I had posted...

    Anyhow, Trey, I'm actually not surprised it's that extension; that's caused problems before like this. See here for fix/explanation: http://lussumo.com/community/discussion/2659/

    @remouk: It's not really that hard to change the styling of the comment. If you want the background img remove simply remove the line that looks likedocument.getElementById('Comment_Preview').style.backgroundImage = something... in preview.js, then add any styling you want in preview.css.
    •  
      CommentAuthorremouk
    • CommentTimeJul 11th 2006
     # 28
    I know, but when using an extension: the less you have to do, the better it is. Especially if you have to customize it again and again when you update it. :)
Add your comments
    Username Password
  • Format comments as