About this topic

  • Posted by deanhodges 2 years ago. There are 6 posts. The latest reply is from deanhodges.
  • This topic is not resolved
  1. Hi Guys,

    I have installed Wordpress MU that as you probably know creates users an independent blog each time they subscribe.

    What i have done is add the photosmash to the mu-plugin folder which automatically enables the plugin on creation of a new blog. However, i was wondering if i could take it a stage further and add some sql code to create tables enabling the user to upload straight away. i.e reducing the need to go into the backend and create one.

    What do you think?

  2. Dean,
    I'm not a MU user, so I may be missing your questions, but if you're looking to allow users to upload images without creating a Post and uploading from the front end, one work around would be to have the user upload images to the Media Library...they could then import them into PhotoSmash galleries through the Import Photos screen in PhotoSmash.

    BB

  3. Hi Byron,
    Thats fine, i understand.

    Could you quickly guide me through the installation of the Photosmash plugin. I see that it sets up default settings in the admin such as captions and 'Default image css class:' etc.

    What i am looking to do is change some of these settings and possibly create a default gallery aswell. Im trying to reduce the user having to log into the backend.

    So on Wordpress MU:

    The user registers and creates their own blog on subdomain 'example.website.com'
    They then go to this URL and login on the front end as an admin.
    The theme that would be installed would be a gallery. Therefore, as soon as the user logs in, a default gallery has already been set up and they can then upload straight away to Photosmash. i.e the first page is a gallery. No blog, no posts etc. Just your plugin with a few tweeks

    Therefore, im looking into a way of adding some command so that it creates mysql tables. Just as if they have gone into Photosmash settings inside the wp-admin panel.

  4. For example.. Can this be fixed (a link) on the front as apposed to the admin panel?
    [code]PhotoSmash Database - Needs to be Updated

    The PhotoSmash database is missing field: tag_name in table: wp_6_bwbps_categories.

    Update required. Click here to Update the DB and view Plugin Info./[code]

  5. Edit:

    Ive added the code: [\photosmash\] lol without the slashes which automatically creates a gallery. Perfecto. No need to edit sql

    However, when i log in i get: "Missing PhotoSmash gallery: "

    Ive looked on the wp-admin and at the top i get an error message "PhotoSmash Database - Needs to be Updated
    " and then click on the button to update. I cant manually do that for everyone so is there anyway of adding the 'click here' to the front end?? (for admins)

  6. Ive tried adding a button linking to a php file so that it would hopefully run the following:

    <?php

    function BWBPS_Info(){

    if(isset($_REQUEST['bwbpsRunDBUpdate'])){
    require_once("bwbps-init.php");
    $initer = new BWBPS_Init();
    $this->message = "<p>Database updated.</p>";
    }
    ?>
    <h1>test</h1>
    <input type='submit' value="Update DB" name="bwbpsRunDBUpdate" /> Run the database Update script (Should not be necessary, but it's here just in case.)

    But typically, it doesnt.

    What am i doing wrong? Or how could i amend the above to work?

RSS feed for this topic