Not signed in (Sign In)

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

Please sign in or apply for membership to remove the ads
    • CommentAuthorphAn
    • CommentTimeMar 7th 2008
     
    When uploading a large batch of pictures, writing captions and descriptions can take up a lot of time. Especially if you like to write down a lot of things. It has happened to me a few times that plogger had logged me out when pressing the UPLOAD button due to extensive 'idle' time on the upload page (because it took an hour to write all the captions) and - as a result of the logout - everything I had written was lost. My girlfriend tends to accidently leave the upload page while writing her captions/descriptions, also resulting in a loss of everything. I managed to write a script preventing her to leave the upload page unintentionally, to solve that problem.

    To be on the safe side, I nowadays usually choose to first upload everything into an album. I add the captions and descriptions afterwards, on the manage tab. Which works perfectly, adding comments on that page is an easy system which I find very intuitive.

    HOWEVER

    Almost everytime I click the 'save' button on either a caption or a description, a funny square is added to it. I then have to reclick the caption/description, remove the square and hit the save button again to remove it. Which is kind of irritating. The weird thing is that, however mostly at the end of my writings, sometimes the square appears in the middle of a sentence. I added a screenshot to show what I'm talking about:



    Anybody else getting these squares? Any ideas how to get rid of them forever? I can't seem to find what's causing this...
    • CommentAuthorjrthor2
    • CommentTimeMar 9th 2008
     
    Yes, I get the same thing.
    • CommentAuthorphAn
    • CommentTimeMar 12th 2008
     
    The square appears whenever you edit an empty description/caption. Appearantly a 'space' is added, whenever you click on an empty desc/capt. I guess the square appears due to some alphabetic sanitizing that's done to whatever you write; translating an invisible space into a visible square.

    When editing empty captions and/or descriptions I find it the easiest to remove the space before writing anything. Saves me second click, delete and save action.

    When copy & pasting the space, however, it does not result in multiple squares. Deleting it before saving definately gets rid of the square problem, though.
    • CommentAuthorjrthor2
    • CommentTimeMar 16th 2008
     
    can't this be changed in the program somewhere? I have a site that is maintained by multiple people. I can tell them to delete the space before editing, but I know some will forget, etc.

    Thanks
    •  
      CommentAuthormemic.a
    • CommentTimeAug 27th 2008
     
    Did anyone found what is creating that irritating blank space on the end of captions and descriptions.
    I tried to use trim() function on all the output in plog-manage.php but that blank spaces are still there!!
    •  
      CommentAuthorsidtheduck
    • CommentTimeAug 27th 2008
     
    memic.a,

    Try this. Open plog-admin-functions.php and find a similar code in the functions update_collection_field(), update_album_field(), update_comment_field(), and update_picture_field():
    $value = mysql_real_escape_string($value);
    and change it to this:
    $value = mysql_real_escape_string(trim(SmartStripSlashes($value)));

    I think that should fix it for you.
    •  
      CommentAuthormemic.a
    • CommentTimeAug 27th 2008
     
    I have already used the trim() function in all those functions but nothin changed.
    Maybe this blank space isn't generated in those functions...
    I spend some time yesterday to find out what is creating blank spaces but I didn't find anything :-)
    •  
      CommentAuthorsidtheduck
    • CommentTimeAug 28th 2008
     
    memic.a,

    Try the fixes from this patch. Just erase the code highlighted in red and add the code in green. The line numbers may or may not match up to what you have in your code as this is a patch for the SVN code (not the beta3 code).