Pages (2): 1 2   
Member
Member
lkjs   12-11-2011, 01:41
#1

People are equally subscribing to both the gallery feed (which is also used as a blog) and the zenpage feed (which is the main blog. How do I go about combining these two for technorati etc...

Also, the rss-news.php is broken and renders no image formatting or text, just a link to the main page. The rss.php works perfectly.

Mixing in rssmix and then putting a parser on the site might work? I want to have only one unified RSS on the site.

Member
Member
lkjs   12-11-2011, 01:52
#2

I think a good solution is to allow album images into the zenpage blog. The blog is an rss feed of the album images so people who have already browsed the images in the site and mini blogs can just keep up in one place.

Now it is very confusing for the viewers and they are missing out a lot on content. Combi news works but not for RSS!

Member
Member
lkjs   12-11-2011, 07:58
#3

is it possible just to make xyz.com/zenphotoinstall/news an RSS feed by modifying rss.php and forgetting about rss-news.php altogether?

The combi works nicely, but xyz.com/zenphotoinstall/news?rss=true only has entries from rss.php

Edit: Tired and obviously see why that wouldn't work. If anyone knows a simple way to inject the zenpage entries into rss.php that would be great. rss-news.php is broken anyway so it doesn't matter if it is just the title and link, I can worry about formatting later.

Member
Member
lkjs   12-11-2011, 08:14
#4

require_once(ZENFOLDER . '/'.PLUGIN_FOLDER . "/image_album_statistics.php"); require_once(ZENFOLDER . '/'.PLUGIN_FOLDER . "/zenpage/zenpage-functions.php"); require_once(ZENFOLDER . '/'.PLUGIN_FOLDER . "/zenpage/zenpage-template-functions.php");
I'm not sure what is needed to inject to rss.php or if it would be corrupted if you did, but it seems to start with this. It is totally different code.

Administrator
Administrator
acrylian   12-11-2011, 11:00
#5

You don't need to do anything as is all already there in rss-news.php. Replace the normal rss functions with the Zenpage plugin ones on your theme.

Please see the documentation about the names and option parameters. Also look at the Zenpage plugin that uses these in the sidebar.php.

Member
Member
lkjs   12-11-2011, 19:40
#6

I looked around documentation, nothing made sense, will try now with fresh head. :-)

Member
Member
lkjs   12-11-2011, 19:51
#7

I looked around documentation, nothing made sense, will try now with fresh head. :-)

Administrator
Administrator
acrylian   12-11-2011, 20:11
#8

Add this to your theme:
``

Example of the link itself here (also on the forum in the side bar the rss list ("All news")
http://www.zenphoto.org/index.php?rss-news&withimages

Member
Member
lkjs   12-11-2011, 21:57
#9

So take rss-news.php and rename rss.php and then somehow format the combined articles?

Or just insert this code into rss.php? Sorry if I am thick.

Here is site: http://www.nadiakhuzina.com/khuzinastudios/news

Everything shows up there in the RSS except the "Occupy Toronto" post which is part of a zenpage category. The rest are blogs from the gallery. Everything is standard on site, I just commented out link to other RSS feeds so there is only one choice.

Member
Member
lkjs   12-11-2011, 22:13
#10

Well pasting rss-news.php renders just the news, but it works which means it can be consolidated to one file. You can't stack the rss feed code on top of each other unfortunately. It is just a matter of combining them, but with my limited knowledge I'm not even sure that would work.

I have experience formatting the RSS and it is very difficult much like advance htaccess stuff.

I'm dying for the simple way, but I don't think it is there. Hopefully I'll have an aha moment soon. :-)

Administrator
Administrator
acrylian   13-11-2011, 09:45
#11

I really gave you an direct example of the function and an exmaple link it creates....Did you even try it?? You don't need hack anything except you will have to modify your theme to use this link instead of the standard one (there is a separate function for the page ). If you haven't read the theming tutorial yet you should do that now.Of course RSS shows only the latest x items as set on the options...

Just calling rss-news.php of course only gets the news. Also note that rss feeds (all!) take care of the protection and publish state. If a category is unpublished any article assigned is as well (no matter if in other categories that are not). All items inherit the state from their parents (but that is common for Zenphoto anyway).

Member
Member
lkjs   13-11-2011, 11:06
#12

Yes, I tried, been reading everything. I am just slow.

Thank you for the more detailed explanation. Been hammering away fixing bits. I have a decent understanding of everything in zpfocus + zenpage and how it works together as I've edited a couple installs, but code makes my head hurt. I'm not a programmer, but understand some procedure.

Trying...will update if anything intelligent to post. :-)

Administrator
Administrator
acrylian   13-11-2011, 12:17
#13

All right, was not that much code though..;-)

Member
Member
lkjs   14-11-2011, 05:43
#14

Thanks for you patience. I played tennis match and face-palmed after serving an ace. I got it. Took me 5 seconds when I got back.

When in school failed Algebra first course three times but got a rare perfect score on the ACT in math. In fact I usually got perfect scores on math tests with bubbles. I still don't understand how to factor a binomial equation, maybe that logic will come to me someday.

Now I just need to fix formatting for the rss-news.php, will check the new version before being acting a script kiddie again. When this site makes me money, I'll definitely throw you a bone or two.

Member
Member
lkjs   14-11-2011, 06:55
#15

Well now only rss-news.php is used. I thought both were for some reason until I saw it echoed for the album images as well.

So why do the zenpages not have text? I am at a loss.

All that is shown for news items in the feed itself is:

ZenPage News Entry (zenpage-category) 26 October 2011 23:00 ...
No summary for the news items!!!! The images are formatting perfectly.

echos only albums for some reason. Looking through all the code for mimetype and can't figure out what call is missing. This is Really Difficult Syndication!

Member
Member
lkjs   14-11-2011, 07:47
#16

Also, when I make zenpage.php:

setOptionDefault('zenpage_rss_length', '');

I still get a 100 character length even after purging cache. What's up with that? Did I miss something?

Member
Member
lkjs   14-11-2011, 08:23
#17

I did miss something on the text length front, the settings in the plugin which seem to work.

Not only that, but making this value 500 solved the formatting problem with the News items. It must treat an image as more than 100 characters? It also doesn't show anything if you don't leave a value, and no sumamry text if you put a 0 in there. Strange, but happy it's working.

Ahh, trying the easy way. This has been a good use of my life. :-)

Administrator
Administrator
acrylian   14-11-2011, 10:50
#18

setOptionDefault is only called on first enabling of a plugin to set default values (otherwise nothing will work as nothing is set). You need to change the options the plugin provides.

Our truncate function tries not ot break html commands so it it clears more than expected. For example if you cut a gfdgd the code will be invalid. So it tries to eitehr close it or clear it completly. You can't truncate an images so it is cleared.

Acatually no value should show the full text. Might be a bug. Best you file a ticket.

Member
Member
lkjs   14-11-2011, 20:52
#19

Ticket Submitted, as well as another for the other bug I found with RSS options allowing direct downloads of uncompressed images.

Thanks for your help!

Administrator
Administrator
acrylian   15-11-2011, 11:11
#20

Thanks we will take a look, might take some time though.

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.