View Full Version : Searching by keywords
maximdim
Oct-07-2007, 03:40 PM
Looking and Smugmug API I don't see methods to search photos, say by keyword(s). Do I understand correctly that RSS feeds parsing should be used for this purpose?
Thanks,
devbobo
Oct-07-2007, 03:54 PM
G'day maximdm,
yes, at this point feeds should be used for searching keywords.
Cheers,
David
maximdim
Oct-07-2007, 04:13 PM
Great. Is there documentation for possible parameters which can be passed to feed's URL - e.g. max. number of results, order, etc?
yes, at this point feeds should be used for searching keywords.
devbobo
Oct-07-2007, 05:12 PM
There is some doco here (http://smugmug.jot.com/WikiHome/Customization/FeedsTricks).
Shout if you have any questions.
maximdim
Oct-07-2007, 06:06 PM
Thanks for the link
waltztj
Oct-27-2007, 12:52 AM
How came this line of code don't work...
oParams.feedURL = "http://www.wzphotos.smugmug.com/hack/feed.mg?Type=userkeyword%2526NickName=wzphotos%2526Data=statewars%2526format=rss%2526Size=Small";
and this line of code does work...
oParams.feedURL = "http://www.smugmug.com/hack/feed.mg?Type=keyword%2526Data=statewars%2526format=rss%2526Size=Small";
I have this in the bio box below is all the code in the bio box
<html>
<style>
.reset {
margin-left: -150px;
}
</style>
********>
var oParams = new Object;
oParams.feedURL = "http://www.smugmug.com/hack/feed.mg?Type=keyword%2526Data=statewars%2526format=rss%2526Size=Small";
oParams.randomStart = 'true'; /* differt starts */
oParams.borderThickness = '20';
oParams.borderColor = 'ffffff';
oParams.newWindow = 'false';
oParams.transparent = "true";
oParams.splash = "http://www.smugmug.com/img/ria/ShizamSlides/smugmug_black.png";
oParams.showLogo = "false";
oParams.clickUrl = "http://www.smugmug.com";
oParams.showThumbs = "false";
oParams.showButtons = 'true';
oParams.crossFadeSpeed = '250';
createSWF(500,400, oParams, "transparent");
</********
</html>
<p class="reset">I like to shoot sports as you can see, but I can shoot other events. I can do custom photos, team pictures etc...If you want me to shoot for you or have any questions e-mail me at wz.photos@verizon.net.</p>
<p class="reset">+++ The watermark will NOT be on the final print.+++</p>
<p class="reset">Also check out our other site at http://hockeyseed.org.</p>
<p>Thanks for looking.
Walt</p>
ANd the other thing is if I put the keywork so it will goto different galleries ie...change the keyworks in different galleries to the same keyword.....
it will only show some of the photos in one of the galleries...and it seems to be the gallery that was posted first
Thanks
Wally
vBulletin v3.5.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.