App help needed

ccsccs Registered Users Posts: 222 Major grins
OK... I've looked around the FAQ, searched etc., and haven't found what Im looking for. I want to code a mini-ap of sorts that displays Recent GALLERIES (rather than Recent Photos) that auto-updates.

I see that recent galleries appear in the RSS feeds (suggesting this already happens on some level), but I can't figure out how I could have a page (e.g. using the JAVA homepage duplication) to display only recent galleries that updates automatically when I create a new gallery. Im fine creating the homepage duplication, it's the recent galleries part I can't find any leads on.

Ideas? thanks so much!

Comments

  • darryldarryl Registered Users Posts: 997 Major grins
    edited June 21, 2010
    Hey, I wrote a hack to do that:

    http://dgrin.com/showthread.php?p=688574#post688574

    Let me know if you have any questions.

    Oh, except this one: "Oh good lord this JavaScript hackery is nasty. Why doesn't SmugMug offer this as a homepage option like Recent Photos instead of making me clutter up my customization with this junk?"

    :-}

    Only SmugMug can answer that.
  • ccsccs Registered Users Posts: 222 Major grins
    edited June 21, 2010
    Darryl! Great work on the script.

    It looks like your script replaces featured galleries rather than Recent Photos. I was hoping to have both a featured galleries section and a recent galleries section (instead of recent photos) - here:http://www.quarkview.com/recent

    Do you think it's modifiable to do this? I apologize for my lacking/rookie coding-abilities!!

    Cheers,
    Chris
  • darryldarryl Registered Users Posts: 997 Major grins
    edited June 21, 2010
    ccs wrote: »
    Darryl! Great work on the script.

    It looks like your script replaces featured galleries rather than Recent Photos. I was hoping to have both a featured galleries section and a recent galleries section (instead of recent photos) - here:http://www.quarkview.com/recent

    Do you think it's modifiable to do this? I apologize for my lacking/rookie coding-abilities!!

    Cheers,
    Chris

    Hi Chris - yup, you can replace Recent Photos instead. Here's the relevant lines you'll need to change:
    // Rename Featured Galleries to Recent Galleries
    YE.onContentReady('featuredTitle', function() {this.innerHTML='recent galleries'});

    Change to: recentPhotosBoxTitle

    divTags = YD.getElementsByClassName("boxBottom", "div", YD.get("featuredBox"));

    Change to: recentPhotosBox

    Hrm, I should probably document this in the post.
  • ccsccs Registered Users Posts: 222 Major grins
    edited June 21, 2010
    Hi Darryl,
    I might be missing something obvious... but when I do this, I initially got a message that said "error 0"

    When I update my custom domain name as
    // NOTE: If you are using a custom domain (CNAME), you need to change http://XXXXXX.smugmug.com to
    // http://yourcustomdomain.com

    var rssurl = "http://www.quarkview.com/hack/feed.mg?Type=nickname&Data=XXXXXX&format=rss200&ImageCount=10";

    // OR as : var rssurl = "http://quarkview.com/hack/feed.mg?Type=nickname&Data=XXXXXX&format=rss200&ImageCount=10";

    I get a "recent galleries" title, but no galleries show up. It will occasionally revert back to recent photos as well (with the code in place)

    Am I missing something obvious? Sorry if I am!!

    Thanks for your help, it's GREATLY appreciated.

    Chris
  • darryldarryl Registered Users Posts: 997 Major grins
    edited June 21, 2010
    ccs wrote: »
    Hi Darryl,
    I might be missing something obvious... but when I do this, I initially got a message that said "error 0"

    When I update my custom domain name as
    // NOTE: If you are using a custom domain (CNAME), you need to change http://XXXXXX.smugmug.com to
    // http://yourcustomdomain.com

    var rssurl = "http://www.quarkview.com/hack/feed.mg?Type=nickname&Data=XXXXXX&format=rss200&ImageCount=10";

    // OR as : var rssurl = "http://quarkview.com/hack/feed.mg?Type=nickname&Data=XXXXXX&format=rss200&ImageCount=10";

    I get a "recent galleries" title, but no galleries show up. It will occasionally revert back to recent photos as well (with the code in place)

    Am I missing something obvious? Sorry if I am!!

    Thanks for your help, it's GREATLY appreciated.

    Chris

    DOH, sorry, the second XXXXXXX (in Data=XXXXXX) needs to be your SmugMug nickname. In your case: Data=CCMixed

    That's from your RSS feed. I should make that clearer.

    BTW, your theming is very nice.

    I'm so frigging lazy/CSS illiterate, all my sites are stock SmugMug. But then, I hardly use SmugMug for everyday use.
  • ccsccs Registered Users Posts: 222 Major grins
    edited June 21, 2010
    Thanks! That did it. I will add this to my site down the road... I want to sort this out first though:

    When logged in, I can see the gallery titles. When I logout (or go to visitor view), I can't see the titles. The galleries also become a lot closer together (i.e. immediately adjacent to each other horizontally and vertically)

    I think there might be some CSS specific to logged in/logged out that can help with this.

    That said, Im not useful with any language really so, it'll take me a while to figure out if it's out there!!!

    p.s -- thanks for the kind comments. I got a LOT of help from fine folks like yourself. Im still tinkering!

    Cheers!
Sign In or Register to comment.