Not signed in (Sign In)

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

    • CommentAuthorjack
    • CommentTimeFeb 17th 2007 edited
     
    I can't remember (haven't modified anything within Plogger for quite some time ;)), but was there a way that Plogger would use the filename without the extension (.jpg) in the case no title/capture was given?
    Recently I'm using longer filenames like bird020207-3462.jpg and in every case I want the namepart to be the title/description. Now for every image I have to copy past that part of the filename. That can be a lot of work :)

    I thought there was a way to do this, but I can't remember how. Anyone?
    •  
      CommentAuthormike
    • CommentTimeFeb 17th 2007
     
    Should be pretty easy Jack, are using the new version with Themes?
    • CommentAuthorjack
    • CommentTimeFeb 18th 2007
     
    Yes, well... Version beta 3 with themes. But when I leave out the caption nothing will be displayed right now.
    How does it work?
    •  
      CommentAuthormike
    • CommentTimeFeb 18th 2007
     
    Well, in your theme you could do something like...

    psudocode:

    If plogger_get_caption is blank then
    print plogger_get_filename

    There may not be a function in plog-functions.php that gets the filename now that I think of it, maybe we need to add one... I know you can get the URL, so maybe you could parse the filename off the end of that. If I get a minute I will try to write up some code for you.
    • CommentAuthorjack
    • CommentTimeFeb 19th 2007
     
    Would be great! Also as a selectable (default) option in the options menu, because I think a lot of people are already using descriptive filenames and this would save a lot of time ;)

    Thank you!