CyberiaPC.com Community Forums Main Page
RSS Feeds: Late(st) News | Zenith Picture Gallery | Most Recent Community Topics | Tips, Tricks and Other Useful Stuff

Welcome Guest ( Log In | Register )

 Forum Rules Also hosted on SourceForge and FreshMeat
Reply to this topicStart new topic
> Inserting a Gallery RSS to website
jhutch
post Jul 5 2007, 05:30 AM
Post #1


New Member
*

Group: Members
Posts: 32
Joined: 29-May 06
Member No.: 3,650

Nothing Selected




I want to run an RSS feed off of my gallery. I want to insert the feed into a section on my website. The site is a .shtml page.... what line of coding would I need to place in the certain section to get the RSS feed working off of my gallery?

Thanks
Go to the top of the page
 
+Quote Post
usr.c
post Jul 6 2007, 03:55 PM
Post #2


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




Not sure how you've got things setup, but if the page expects a rss feed as input, then pointing it to your rss.php should do the trick.

Let me know what happens.


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
jhutch
post Jul 7 2007, 02:15 PM
Post #3


New Member
*

Group: Members
Posts: 32
Joined: 29-May 06
Member No.: 3,650

Nothing Selected




The site is this, draft.nflspot.com ... I want to add a feed in the bottom right section, under extras... I figured there was some code to copy in there and I would be set.
Go to the top of the page
 
+Quote Post
usr.c
post Jul 10 2007, 08:13 PM
Post #4


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




Sorry for not getting back to you till now.

Hmm...I don't know if you'll be able to get it to show up the way you want by simply including the feed like this

CODE
<?php include("path/to/your/gallery/rss.php"); ?>

So let me update zenith_includer.php for you so that it's compatible with your version of the gallery (I've not touched it in a long time); it does exactly the thing you want.

Expect a reply from me within the coming two days thumbs_up.gif


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
usr.c
post Jul 13 2007, 01:20 AM
Post #5


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




Attached is the updated zenith_includer.php file. Here's what you need to do:

1. Replace your existing zenith_includer.php with the one attached.
2. Insert the following line wherever you want the thumbnails to appear on your shtml page

CODE
<!--#include file="path/to/your/gallery/zenith_includer.php"-->


Replacing "path/to/your/gallery/" with your actual path. I've never used ssi's; I got the above from here.

You can set things such as whether to display the last added pictures or random ones, how many pictures to display and whether the title, date or views counter is shown by modifying the appropriate settings at the top of zenith_includer.php

If you need to customize it in another way, i.e. change things like the size of the thumbnails, just let me know.
Attached File(s)
Attached File  zenith_includer.php ( 3.68K ) Number of downloads: 36
 


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th May 2013 - 06:04 PM