Trevally
Lost but trying
Profile
Posts: 12
Reg: Jul 26, 2011
location unknow...
120
05/23/13 08:29 PM (12 years ago)

email, share options for rss feed pages

Is there a plugin or update to RSS feeds that allows you to download or share the link for a webpage or resource that is part of an RSS feed?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/23/13 09:12 PM (12 years ago)
Don't think the RSS plugin allows for this, but maybe it does? At any rate, you could always load the RSS feed into the Custom URL plugin and do it through that. Or, you could modify the RSS plugin to do the job if it's not there already.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
05/24/13 08:40 AM (12 years ago)
Hi Trevally. It would be very easy to add the "Would you like to view this in Safari" button to the web view. From there you could email, sms, tweet, Facebook, print, etc the page. Of course this would take the user out of your app. I will look into adding an email button to the web view later today. That might keep the user inside the app.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
05/24/13 04:33 PM (12 years ago)
No luck on adding an email button. Well, adding the button was easy, but the webview does not cache the screen so you can't send it. Bummer.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/24/13 04:43 PM (12 years ago)
@Red Dog - check out the HTML plugins. There's a method for detecting the current URL, which can be passed in an email as a string
 
Trevally
Lost but trying
Profile
Posts: 12
Reg: Jul 26, 2011
location unknow...
120
like
05/24/13 04:43 PM (12 years ago)
Thanks for trying, I'll see if I can work out how to add the 'would you like to view in safari' button. That would work well for my app actually.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
05/24/13 05:38 PM (12 years ago)
You just need to add a few lines in the index.php. No Xcode changes needed. I can send you the lines late tonight.
 
Trevally
Lost but trying
Profile
Posts: 12
Reg: Jul 26, 2011
location unknow...
120
like
05/24/13 05:51 PM (12 years ago)
Thanks for trying, I'll see if I can work out how to add the 'would you like to view in safari' button. That would work well for my app actually.
 
Trevally
Lost but trying
Profile
Posts: 12
Reg: Jul 26, 2011
location unknow...
120
like
05/24/13 05:52 PM (12 years ago)
Great. Thanks.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
05/24/13 09:15 PM (12 years ago)
Here is the code to add to the "Story Properties" section in your index.php. Around line 536: <div style='padding-top:10px;'> <label>Launch in Native App</label> <select name="json_rssItemShowBrowserBarLaunchInNativeApp" id="json_rssItemShowBrowserBarLaunchInNativeApp" style="width:250px;"> <option value="" <?php echo fnGetSelectedString("", fnGetJsonProperyValue("rssItemShowBrowserBarLaunchInNativeApp", $jsonVars));?>>--select--</option> <option value="1" <?php echo fnGetSelectedString("1", fnGetJsonProperyValue("rssItemShowBrowserBarLaunchInNativeApp", $jsonVars));?>>yes</option> <option value="0" <?php echo fnGetSelectedString("0", fnGetJsonProperyValue("rssItemShowBrowserBarLaunchInNativeApp", $jsonVars));?>>no</option> </select> </div>
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
05/24/13 09:18 PM (12 years ago)
Here is a screenshot showing where to place the code: https://dl.dropboxusercontent.com/u/16323370/Screen%20Shot.png
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
05/24/13 09:20 PM (12 years ago)
Our line numbers may not be the same, so just place it just above the "button" section in the ////////////// story properties ////////// area.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
05/24/13 09:24 PM (12 years ago)
@chris1 Thanks for the suggestion. I will try to look into that over the weekend. I would like to (in the future) add a button to the webview that would launch the UIActivityViewController. Then users could share the story in several ways.
 
Trevally
Lost but trying
Profile
Posts: 12
Reg: Jul 26, 2011
location unknow...
120
like
05/25/13 04:10 AM (12 years ago)
Great. Thanks.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
10/15/13 08:51 PM (12 years ago)
Thanks Red Dog and Chris1, Great info, that was easy to implement! I also tried adding the old "Story" rss properties like navbar color etc but it must be named differently perhaps? Because I could set them in the control panel but it didn't change what was happening on the app. Anyway, my RSS feed links directly to a newsletter pdf, so I want to be able to email the pdf as well. I had a poke around in the RD_customURL.m and there is indeed a method to "emailDocument". Any hints on how to hook it up either through json or by adjusting the pages properties in the index.php file? Cheers Darrel
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.