nukeSEO.com - PHPNuke SEO Search engine optimization, professional tools including nukeSEO, nukeSPAM, nukeFEED, nukePIE, nukeWYSIWYG and more

 

. Welcome to nukeSEO.com  ! 
.
.
.


.
nukeSEO.com: Forums


 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Custom Feed?
 
 
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeFEED (tm)
View previous topic :: View next topic  
Author Message
Austin457
Newbie
Newbie


Joined: Aug 03, 2008
Posts: 2

PostPosted: Mon Aug 04, 2008 3:12 am    Post subject: Custom Feed? Reply with quote

Custom Feed

OK, I’m feeling really stupid. I’m not an expert, but I generally can stumble my way thru nuke stuff.
Everything seemed to install fine. I did have some header error messages, but I followed the post

http://nukeseo.com/modules.php?name=Forums&file=viewtopic&t=225 and put

Code:
include_once('includes/custom_files/nukeSEO/nukeFEEDhdr.php');

in root/header.php… was that correct? The errors stopped…

Incidentally, this looks like one of the smoothest GUIs for a module I've tried yet. The js pop-ups are a nice touch.
I've never messed with feeds before, I've been doing a lot of searching and reading, but I’m too far out of my element. My site isn’t “open” yet, so it doesn’t have much on it- but it does have a full encyclopedia which is what I want a feed for. Actually, I want to make a Google Gadget to pull down a daily definition. I made a block that shows a daily definition (I was surprised that no-one had made one yet. And I looked around a lot for one.)
I’m sure my block isn’t the most efficient way of achieving what I want, but it works.

I know it’s a vague thing I’m asking- but I don’t even know where to begin.

For my block I created two new fields in my table. The block picks a random entry and puts 1 in one field and the date in second field the first time the definition is shown. For the rest of the day it shows the entry that matches today’s date. Each new day (date) the block picks a random entry from all entries that do not have that 1. At the end of the encyclopedia it clears the fields and starts over.

To make things more interesting- I need to have a picture in that feed also. The encyclopedia defines the pictures. Not much good with out ‘em.

Now to really screw things up, my Encyclopedia has restricted access. I give a definition a day as a teaser. But full access requires membership. I can preview the default Encyclopedia feed fine as long as I’m logged in, but not otherwise. This again falls back to perhaps using my block code.

I followed this thread
http://nukeseo.com/modules.php?name=Forums&file=viewtopic&t=278
and I’m made a copy of the includes/content.php to play with. I put my block code in it, but I don’t know where to go from there. How do I get the results from my query into a feed? I’m thinking it has something to do with making a class, but I’m not familiar enough with that to know.
These are my variables (the end results that get echoed in my block).
Code:


$todaypic = $row[0];
$todaytitle = $row[2];
$todaytext = $row[3];

$todaypic is achieved by naming the .gifs with numbers that correspond to the tid, and then dropping it in
Code:


<img src=\"/images/color_candles/".$todaypic.".gif\" />

It’s bound to be something simple, bit I’m way too tired atm to wrap my head around it.
Input?
Austin
www.ezcandlesticks.com/lounge (don’t expect to see much)
Nuke 8

As an after-thought, since my setup doesn’t require items such as Order and Level how would that affect the admin interface?

Edit: I just realized that none of the feeds provide by this module can be displayed if I'm not logged in, even when I have the modules themselves set to "Viewable by Everyone". Displays fine when I'm logged in. By contrast, using the default simple backend.php will display news articles regardless of logged in status. Back to the studying...
  
Back to top
View user's profile Send private message
kguske
Site Admin
Site Admin


Joined: May 12, 2005
Posts: 876

PostPosted: Mon Aug 04, 2008 9:10 pm    Post subject: Re: Custom Feed? Reply with quote

First, if your site doesn't have much content, I'd suggest switching to RavenNuke. It's much more stable (and secure) than PHP-Nuke, including version 8. nukeFEED is already integrated as well. You should not need to be logged in to view a feed - is your feed module set to display for members only?

Regarding your feed, can you provide the structure of the table (e.g. name, fields, etc.)? It's not hard to create a content class for custom tables, but it does require basic understanding of how classes work.
_________________
  
Back to top
View user's profile Send private message Visit poster's website
Austin457






PostPosted: Tue Aug 05, 2008 3:40 pm    Post subject: Re: Custom Feed? Reply with quote

Thanks for the prompt reply.
I came back to say that, although it took me a whole day, I figured most of it out.
I used the default backend.php file as a template and made my own that delivers the content as I want. Went back and forth to Only registered users can see links on this board! Get registered or login! till I got it right. I then made a Gadget that pulls the data successfully and looks decent. Today I'm trying to add a couple of bells n whistles to my gadget- a bit more learning curve on that. First time trying that also.
Raven is not on an option. I have a tremendous amount of work involved in this. By not much content I meant not much dynamic content -yet. The site has a lot of features and will be rather busy (I hope) once it's open.
Yes, most of my modules are members only- using NSN Groups.
I'll come back to focus on this later. I do like the nukeFEED, and I'll want to implement it, but I want to get my gadget right first.
Thanks again,
Austin
  
Back to top
Display posts from previous:       
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeFEED (tm) All times are GMT - 5 Hours
 
 Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001-2008 phpBB Group


Page Generation: 0.05 Seconds