Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP Album+ : my new plugin for pictures


  • francescolaffi
    Participant

    @francescolaffi

    Test here: http://bptest.flweb.it

    Lot of details here: http://flweb.it/buddypress-album-plus/

    User can upload picture to their album, and they can add title, description, choose privacy option ( public, visible to members, visible to friends, private) and enable/disable comments for the pic. Users can edit and delete their pictures.

    Admin can set limit for picture upload total count, to enable/disable privacy options and limit for each of them, if description can be empty, pic per page in the default query.

    For each upload pic will be generated a thumb and a middle size pic, admin can set thumb size, middle size and if original file should be kept.

    Templating should be easy as the pics template class works in a way similar to the wp posts template.

    Tested only with WP 2.9 and BP 1.2, don’t know if it work with previous versions. This is an early release and should be used carefully.

    I created this plugin because i needed it for a work and bppicture-album plugin wasn’t enough flexible. As I started from scratch (well, from the bp1.2 skeleton component) this is not a mod of bppicture-album, is not compatible with it, so please don’t install this if you have bppicture-album and you cant migrate the db tables by yourselfs.

Viewing 25 replies - 51 through 75 (of 76 total)

  • francescolaffi
    Participant

    @francescolaffi

    It seem that I did a very bad work in mergin the 0.1.3 tag with the admin menu, several files were not updated. Still have to learn well all the svn thing.

    Fixed version online in minute, sorry for the hitch


    Xevo
    Participant

    @xevo

    Hehe, if you keep going with your version numbers like this, you’ll soon be at version 20.0. :)

    Downloaded 1.5 to cure division by zero and Constants issues, however uploading images failing:

    “There were problems saving picture details.”

    Have sql syntax errors in error logs reported seeming to revolve around the admin image quantity settings, also when simply clicking into album page an error is generated:

    <snip>

    WordPress database error Table 'mysite.wp_bp_album' doesn't exist for query SELECT DISTINCT COUNT(id) AS count FROM wp_bp_album WHERE 1 = 1 AND owner_id = 1 AND privacy <= 10 made by require, wp, WP->main, do_action_ref_array, call_user_func_array, bp_album_setup_globals, bp_album_query_pictures,

    Running pretty clean install of 2.9.2 & BP 1.2.2.1


    foxly
    Participant

    @foxly

    @Tosh, @Baur, @Modemlooper, @Jedbarish

    Thanks for your very fast replies. The problem you are experiencing was caused by a problem with a failed SVN commit, and WordPress.org’s plugin repository rolling-back to version 1.3 on about half of our files without telling us.

    Obviously, that broke the plugin.

    Upgrade to the 1.5 and the problem will vanish. If you’re still having trouble, just delete the entire bp-album folder and copy the bp-album 1.5 folder in its place. It will start working again instantly.

    @Xevo – I think the version number incrementing thing is very funny. What’s with all this version 0.0.16 software out on the Internet. I want to be at version 87.5 by 2012 …lol!

    @hnla – two questions:

    First, did version 1.3 work?

    Second, are you running MySQL in “Strict” mode?

    @Travel-Junkie

    We’ve temporarily switched to single options to make debugging faster for the admin panel upgrade.

    We wanted to get the admin panel version out absolutely as fast as possible AND have a table we can easily ask users to view using PHPmyAdmin if something goes wrong.

    You are clever for noticing this! Don’t worry, we will remove it once we are sure everything works properly.

    ^F^


    @hnla
    – two questions:

    First, did version 1.3 work?

    Second, are you running MySQL in “Strict” mode?

    1/ No never tried 1.3, first install was with 1.4 and bad timing on my part as it was literally two minutes before you uploaded 1.5 :-) deactivated 1.4 unzipped new files reactivated, devision issues cleared but errors appeared as above.

    2/ Hmm Strict Mode – almost certainly not however not 100% sure but this was on my local dev running pretty loose in all server respects and think Strict Mode would have been an issue arising before as I have perhaps half a dozen test installs in various states and not having issues, it’s true also that I have a further company dev server and two live servers so get confused sometimes what is running what.

    I’m on the company network so am going to try installing to my local dev copy here and see what gives if it works here then it’s an issue with my set up which I’ll track down and report for the record.


    Mariusooms
    Participant

    @mariusooms

    http://en.wikipedia.org/wiki/Software_versioning

    That article explains a lot. I use the revision number for bug fixes. Minor versioning for new feature releases and major…well haven’t gotten to that yet, but when it is completely rewritten or forked, update the Major number.

    fyi :)


    Tosh
    Participant

    @xberserker

    Upgraded to the latest version btw. Working great now :)

    I’ve been using CubePoints with my single WP install to get people on contribute to my site.

    They get points for posts, comments, forum posts, daily visit, etc

    https://wordpress.org/extend/plugins/cubepoints/

    Anyway, they provide a simple API, so I was just wondering where I could put this code. So when people upload a photo they get some points. If they delete a photo it will take away points.

    <php

    if( function_exists('cp_alterPoints') && is_user_logged_in() ){
    cp_alterPoints(cp_currentUser(), 20);
    cp_log('Photo Upload', cp_currentUser(), 20, Community)

    }

    if( function_exists('cp_alterPoints') && is_user_logged_in() ){
    cp_alterPoints(cp_currentUser(), -20);
    cp_log('Photo Deleted', cp_currentUser(), -20, Community)

    }

    ?>


    @hnla
    – two questions:

    First, did version 1.3 work?

    Second, are you running MySQL in “Strict” mode?

    Now tested a further install on 2.92 / 1.2.2.1 and for interests sake running backwards compatibility plugin.

    Same issue as previously described

    <snip>

    WordPress database error Table ‘powl_theowlmu.wp_bp_album’ doesn’t exist for query SELECT

    Checked my.conf and definitely not running in Strict mode.

    However a significant amount of other errors such as global-adminbar.php not found and internal redirect exceeded suggests that perhaps the test against backwards compatibility plugin is not a valid one.

    I assume I’m meant to be seeing some tables created on install? or only when an image is successfully uploaded?


    jedbarish
    Participant

    @jedbarish

    After I updated to 1.5 and still got the error message “There were problems saving picture details.” after uploaded the picture. I checked the folder where the user’s directory under album already uploaded several photos but still couldnt get through the error message and display those images.


    xanderrem
    Participant

    @xanderrem

    Hi, I have the same problem as jedbarish.

    I use bp version 1.2.2.1 and wpmu 2.9.2

    When i uploaded an image i get the error message “there were problems saving picture details”

    Xander


    tadziz
    Participant

    @tadziz

    i have the same problem.


    foxly
    Participant

    @foxly

    FIXED! FIXED! FIXED!

    We have a working fix for the “There were problems saving picture details.” error.

    I will post a link to a .ZIP file with the updated plugin here within an hour. If you are experiencing this problem, please download it and confirm that it works on your server.

    After that, we will release 0.1.6 with the fix included in it.

    Thanks so much to all of you for helping with nailing this bug!

    ^F^


    foxly
    Participant

    @foxly

    Okay beta testers, do us proud:

    http://foxly.ca/bp-album-1_6_BETA.zip

    ^F^


    jedbarish
    Participant

    @jedbarish

    I still got the same error “There were problems saving picture details.” when I uploaded the picture :(


    foxly
    Participant

    @foxly

    And you deleted the entire BP Album plugin directory and copied the new files in their place?

    ^F^


    modemlooper
    Moderator

    @modemlooper

    what was changed? testing without error. Only thing I notice is more privacy options.


    foxly
    Participant

    @foxly

    For some users with specific PHP and mySQL options set, the plugin did not install properly, making it impossible to upload images.

    This release fixes that problem by using different SQL syntax to create the main database table.

    ^F^


    jedbarish
    Participant

    @jedbarish

    It worked after re-installed for several times. Im looking forward to see lots of improvement!

    downloaded your 1.6 beta zip and overwrote existing files, re-activated plugin and this time activation correctly created table wp_bp_album

    Successfully uploaded and saved an image so all appears to be functioning correctly now.

    Only possible issue I saw was that after initial upload the thumbnail is a clipped view of the full image and at no point did I see any means of cropping, and all thumbnail representations of the actual image are not resized but simply clipped; is this by design? or perhaps I have not addressed settings in backend correctly?

    For some users with specific PHP and mySQL options set

    Hmm in a dev environment I tend to have very loose restrictions, and can run things as I see fit , it tends to be production environments where these sorts of issues would arise.

    What version of MySQL were you writing to?


    Rocio Valdivia
    Participant

    @_dorsvenabili

    Great work francescolaffi, it works perfectly with version 1.6, congratulations for the plugin :)


    Tosh
    Participant

    @xberserker

    One thing I noticed. After I upload a photo, then I post a regular update (not a reply). It acts like a reply sorta. But it shouldn’t be displayed under a photo upload. Here are some screenshots

    http://i41.tinypic.com/2lmpcg6.png

    http://i42.tinypic.com/21nmzcy.png


    foxly
    Participant

    @foxly

    @_dorsvenabili – I’m glad you like our plugin.

    There are actually two developers working on this plugin now, @francescolaffi, and myself @foxly; @francescolaffi is busy writing his exams right now, so I’m handling all the user support for the next few days.

    BP Album is community-developed software! If you find it useful, please consider contributing code, translations, and ideas to the project. Helping answer new user’s questions on the forums is also helpful, because it means we have more time to work on writing code.

    @hnla – Deciding how to dimension thumbnails, based on images with widely varying aspect ratios, and then present them in a grid, has been a problem that has dogged graphic designers since the earliest days of the Internet.

    The two most popular way to do this are “Facebook Style”

    http://foxly.ca/facebook-style.jpg

    and “Flickr Style”

    http://foxly.ca/flickr-style.jpg

    I’m actually writing code for *both* options *right now*, and after some back and forth with @francescolaffi we’ll probably get it set up as an option in the administrator backend.

    We could probably add the ability for users to manually crop the thumbnail for each picture in their gallery using the avatar cropping tool, and I will look at the feasibility of doing this. Experience has shown that most users do *not* want to do this for every picture they upload …and that’s why neither Facebook nor Flickr include this functionality.

    ^F^


    foxly
    Participant

    @foxly

    There is now a DEDICATED THREAD for BP Album+ Feature Requests and Discussion,

    Join the discussion here!

    https://buddypress.org/forums/topic/bp-album-new-features-requests-and-discussion

Viewing 25 replies - 51 through 75 (of 76 total)
  • The topic ‘BP Album+ : my new plugin for pictures’ is closed to new replies.
Skip to toolbar