Amazon plugin
-
I’m using the Amazon plugin as a way to show what book I am currently reading.
I’d also like to do the same with video games I am playing, but I’d like them to be separate sections. I was thinking the only way to do this would be install a duplicate Amazon plugin, but I know that wouldn’t be easy …
currently i have just renamed the section to “currently reading/playing” and added the video game … so the book is shown and the video game is below it (all in the same section). that was the only thing i could think of doing to get what i want.
is there another plugin I can use additionally, or can i do something with existing plugin to make two separate entities?
-
OK, that takes away the title etc, but leaves the time date stamp, it is still aligning to the right and is no longer a clickable link. Also I’d like to go with an image a tad bigger if possible. Would you mind taking a peek?
http://www.danisown.com/blog (right sidebar is where the 2 blocks are)
Thanks!
I’m using CG-Amazon. I’d like to add my Amazon Associate ID. How can I do this?
the associates id is added in the cga-config.php file
// set this if you have an Associates ID you want to use
// $AmazonID = ‘ ‘;add your id, and uncomment the line
Thanks!
nyifan –
Which function(s) are you calling? That’ll make a difference in how I approach this.
I’m going to need to code something up. I thought I had a solution, but the Preview thing isn’t it… The display:none should work (others have used that), but there should be a simple solution for folks who just want to output a list of picture-links of a given size. Lemme look into it, and I’ll try to get 1.5a7 out with a fix in the next day or two… if my schedule plays nice! š
-d
I have a solution roughed out, with a new cga-config variable to control it, and the added ability to allow the Annotations to be output if you say to (turns off all text generally, but allows you a per-item override if you want it, and only where you specify it in the local database…). Timestamp is also turned off as a side-effect for the moment.
What this will allow you is basically to say you just want images, nothing else. The overall ‘wrappering’ of amazon block output will occur as normal, so that you have extra divs/etc. that you can apply CSS to in order to have a LOT of flexibility with formatting.
Note that cga-config also allows other control of the output, via $amazonWrapperDiv, $amazonWrapInfo, $amazonInfoBreak, $defaultAmazonImage, and more. Write back if you need more help (I didn’t see a CG-Amazon block on your site — just your existing amazon stuff…).
Keep an eye out, as not sure if I’ll make one new thread or multiple crossposts as I get A7 out the door…
-d
Hi David
I got frustrated last night and yanked it off until I could get it the way I wanted it – long way around, temp fixWhen i get home from work I will check to see if the new version is available for download and start again =) Thank you so much for your help and for the changes!!
If you send me an email at cgcode at chait dot net, with more details of exactly what you are trying to do in terms of results, formatting, etc., I can try to mock it up locally and ‘prove out’ the CSS tweaks.
-d
Hi David
I got frustrated last night and yanked it off until I could get it the way I wanted it – long way around, temp fixWhen i get home from work I will check to see if the new version is available for download and start again =) Thank you so much for your help and for the changes!!
Don’t know if you just accidentally double posted, but do drop me an email or post here with what ‘visually’ you are trying to get for results, so I can help make sure the output is generating the results you’ll want/need. š
-d
That is BEYOND weird – I didn’t do the 2nd posting – HONEST lol
I just sent the email your way. THANK YOU!
New version posted. š
-d
We’re closer! Have some weirdness still though!
I realize you have many other things on your plate, so when you get a chance to look, great =)1 – I have image size set to medium, but image still seems like it’s small
2 – If you mouse over the image, it’s like there is a size set for the image and when you hover you see the outline
3 – the positioning is closer to what I wanted, but it appears that there is a set left margin instead of a true center option. larger images (music) are left aligned with the books, rather than taking a centered positionand finally,
4 – the VH album is obviously music, and it is tagged as “Listening” in the CGA options, yet for some odd reason, it shows in Reading, with the 2 books
while Listening shows “no products found”I am calling the list with:
<? show_amazon_items(3, true, "Reading"); ?>
and
<? show_amazon_items(3, true, "Listening"); ?>Leaving it up even though it’s off in case you get a chance to take a peek.
Many thanks!
-=DWill send this in email as well, but cc here so others can learn.
1. cga-config.php. try uncommenting the line:
// $defaultAmazonImage = ‘SmallMediumShadowed’;
And note the sizes are all InitCapsWords — lowercase won’t match. So if you want medium, use ‘Medium’. Medium is big though, you likely want SmallMedium (but SmallMediumShadowed might be cool/different for many folks, so I added that as a ‘sample default’).2. Well, the link IS being tagged as display: block. If #3 below doesn’t make things look better, let me know. If you want to ‘adjust’ just the hover, I just tested on my site something like:
.amazon-item-wrap a:hover { background: #223366; }
Obviously, you can adjust the ‘a’ as well as ‘a:hover’ if you want. There’s an existing “.amazon-item-wrap a” in the css that does the block control.3. The css for the sidebar that’s important is “.amazon-block li”. You want something like:
.amazon-block li { text-align: center; }
The ‘float’ and ‘inline’ cases are only used with CG-Inline. (HINT: Do a View Source on the page, find the output, and look at how it generates — good to see what you want to try to tag.) (HINT 2: The cg-amazon.css file is only an example approach — feel free to rip it apart, start from scratch, modify what’s there.. whatever works for you!)4. Try:
<? show_amazon_items(3, 'time', true, "Reading"); ?>
and
<? show_amazon_items(3, 'time', true, "Listening"); ?>-d
really fast this morning, tried a few quick things before work, and it is SO close =) I need to get that block centered, and adjuct the background ont he block yet, but I think (operative word) I can tease apart the css to get what I want now. You sir, are a prince amung men =)
Thank you!!!
The topic ‘Amazon plugin’ is closed to new replies.