• Hi there all!

    Just like to announce that Amazon Media Manager 1.5 for WordPress is now available from https://www.sozu.co.uk/software/amm/

    It’s been a while in coming, but the new version is so far improved from the old one it hardly seems fit to call it 1.5, it should be 5.0 or something BUT, to stay in synch with the wordpress value for which it’s designed we went with 1.5

    The new system has:

    * Inbuilt search
    * Options page for, well, options
    * So many configurable ways to output stuff you’ll hopefully be able to do anything!
    * Support for displaying items in posts using quicktags
    * Go and get it now. ??

    Seriously, head over to https://www.sozu.co.uk/software/amm/ and grab a copy, there might be one or two little bugs we’ve not squashed but on the whole it should be all good.

    Sozu doesn’t have a forum or comment system yet, so for the meantime, keep your eyes on these forums and on https://www.denyerec.co.uk/index.php?p=198 where you can comment for the time being.

    If it calls for it, we’ll start a support thread in here too.

    Enjoy!

    ** PLEASE NOTE**
    Due to our host, occasionally you may get “Document Contains No Data” when trying to access the Sozu website.

    If this happens, just try again a few minutes later, they’re working out some issues.

Viewing 15 replies - 46 through 60 (of 217 total)
  • Thread Starter denyerec

    (@denyerec)

    You need to dive into amm_extras.php and write your own template, or modify an existing one.

    Then in the amm_getMedia() function call, you put the name of your new template or the name of the one you modified.

    There is an example of a basic template here:

    https://www.sozu.co.uk/software/amm/editing_templates.php

    If you follow that page through from start to finish, you should end up with a decent idea of how things fit together. If not, email me via my website and I’ll walk you through it.

    Ok, I seem to have gotten a lot further. It took me several minutes to remember I didn’t have anything added to the database, and that was why nothing was showing up (DUH!). But I got that working. I have a couple of questions, mostly concerning HTML. I know I can align the content center with <DIV> tags, but is there a way to do it in the amm_extras.php file? I tried sticking align=”center” to the first <DIV> tag in the file, and then the <UL> tag, followed by the <LI> tag, but none of that worked. I don’t mind doing it through my template, but I was just wondering. More of interest is, can I remove the link border around the image? I’d prefer to do it in the script, but I don’t care if I have to do it in the template; I just prefer my images not be bordered.

    Although I haven’t done much with it yet, it looks like a great script. Thanks for creating it!

    Thread Starter denyerec

    (@denyerec)

    Hey Amulet,

    Everything you describe can be controlled in CSS and, really, should be. The tricky part about AMM is whether you want to control your styling in the AMM template (amm_extras.php) or go adding things to your blog’s template CSS files. The latter I would recommend for permanent stuff, it’s really the best way.

    If you want to centre a div using inline styling, you would have something like this:


    <div style="text-align: center;"> my content </div>

    Basically using the style=”put_css_here” inside a tag lats you apply styling from your custom templates if you want to get something cheeky done quick but, as I say, the best long term plan is to add some class=”name” tags to elements, and style them from your site-wide CSS.

    TO remove borders from link images in CSS, simply use this style rule:


    a img {border: none;}

    (If that doesn’t work, remove the a)
    You may want to add classnames to things in your HTML so you can style *just* those things too.

    Thanks, denyerec! That’s a good idea. I thought I have all my image borders set to none, but I might be thinking of my previous CSS file, before I installed WordPress. I’ll do that. Much appreciated.

    Ok, a couple of other things: Can I change the text called by [code]<?php echo $amm->autoAuthorLabel();?>: <?php echo $amm->autoAuthor();?>[/code] to say “By” instead of “Author:”? Also, can I make the title link text link to the item page, like the image does (I think I want both the image and the title to link there)?

    And, is there a way to make it choose a template, based on the kind of item showing? For instance, if the item is a book, it would choose the template that lists title and author, but if the item were an electronic, it would list the model and brand? How about the price? Can I show that?

    Thread Starter denyerec

    (@denyerec)

    1) The price is not stored. We were not interested in bulding in things that were totally specific to Amazon. If a user is sufficiently interested by something to be interested in the price, they’ll click through ??

    2) Different templates for different items… This is achievable in two ways. Either a) Write multiple templates and make multiple AMM calls, calling the individual templates (EG ‘amm_book_display’ with AMM_BOOKS and ‘amm_music_display’ for AMM_MUSIC) or b) writing a single complex template with some CASE or IF statements in it. The flexibility of the system relies on users doing as they please with templates, rather than us building in 12974 potentially buggy features than don’t suit everyone anyway! ??

    You could change the autoAuthor text by modifying the function in amm_output.php, it should be easy to find. Alternatively you could build some logic into your custom template, testing against productGroup to decide what to output.

    3) Remember that most of the things that the AMM output functions return are plain text. So, if you want to make something clickable, just use basic HTML and an AMM function call, like so:


    <a href="<?php URL(); ?>"><?php echo $amm->title(); ?></a>

    Again, the AMM output functions are intended to supply the user with the bare data, allowing you to mould it around whatever HTML/CSS layout you wish.

    Thank you very much, for this Great plugin!

    Oh MAN! This is PERFECT. I am up and running. Question though,

    I have two blogs on the same server sharing a database. I got it working on the gay agenda but if I try to install it for North South, I get the following errors:
    ?>
    Warning: Cannot modify header information – headers already sent by (output started at /home/unfilter/public_html/North_South_Blog/wp-content/plugins/amm/amm_extras.php:98) in /home/unfilter/public_html/North_South_Blog/wp-admin/admin.php on line 10

    Warning: Cannot modify header information – headers already sent by (output started at /home/unfilter/public_html/North_South_Blog/wp-content/plugins/amm/amm_extras.php:98) in /home/unfilter/public_html/North_South_Blog/wp-admin/admin.php on line 11

    Warning: Cannot modify header information – headers already sent by (output started at /home/unfilter/public_html/North_South_Blog/wp-content/plugins/amm/amm_extras.php:98) in /home/unfilter/public_html/North_South_Blog/wp-admin/admin.php on line 12

    Warning: Cannot modify header information – headers already sent by (output started at /home/unfilter/public_html/North_South_Blog/wp-content/plugins/amm/amm_extras.php:98) in /home/unfilter/public_html/North_South_Blog/wp-admin/admin.php on line 13

    Just to try something, I changed the name of my function for the north south template. Didn’t seem to work. Any ideas how I can get it running on my other blog?

    Thread Starter denyerec

    (@denyerec)

    Please check the beginning and end of every AMM file for stray whitespace, especially the amm_extras file. Any rogue whitespace outside of <?php ?> tags will be sent to the browser which, when the plugin initialises, is a bad thing.

    If this still doesn’t help, contact me via my website and I’ll see what I can do.

    Yeah I simply copied over the files from the blog that works. Double-checked…

    It works on North South, just have the header errors.

    OK Thanks to denyerec’s outstanding tech support, we debugged my issue which was an errant closing tag.

    I can now confirm this will work on blogs sharing the same database. I am a very happy camper.

    Hi, I’m a noobie here and I’m trying to get it working on my wordpress site. I have the latest version of amm and wordpres running. I’m using the default theme, I have the amm plugin installed, and adjust/view all options via admin panel.

    However, I cannot see it on my site. What do I need to do?

    Thanx,

    A great plugin! This is something I’ve wanted for a while, and I’m glad I don’t have to reinvent the wheel…

    Thread Starter denyerec

    (@denyerec)

    Xarcell, please refer to the following page:

    https://www.sozu.co.uk/software/amm/getmedia_function.php

    If you read through that, and the page that follows it about editing templates, you should have a fairly good idea of how to display your AMM output. If you still can’t figure it out, contact me through my website and I’ll give you a hand.

    When I go to upgrade my database, all my entries show up like this…

    WordPress database error: [You have an error in your SQL syntax near ‘; ‘ at line 18]
    INSERT INTO wp_amm ( amm_author, amm_director, amm_title, amm_asin, amm_productGroup, amm_publisher, amm_artist, amm_label, amm_manufacturer, amm_model, amm_brand, amm_userComments, amm_rating, amm_country, amm_dateadded, amm_smallImageURL) VALUES (”, ”, ‘Bowling For Soup – A Hangover You Don\’t Deserve’, ‘B0007WF1UU’, ‘Music’, ”, ”, ”, ”, ”, ”, ”, ‘5’, ‘us’, ‘2005-07-24 02:26:46 00:00:00’, ‘https://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif&#8217;);

    then when I try to call anything from the DB, nothing outputs because I assume nothing was upgraded?

Viewing 15 replies - 46 through 60 (of 217 total)
  • The topic ‘NEW! Amazon Media Manager 1.5 (*Finally!*)’ is closed to new replies.