Log in

View Full Version : now u can but ur last 10 thread in ur phpnuke


lordnet
05-02-2002, 10:00 PM
Hi the first thing u do is to download the attached file and put it in the

forum file then go to the admin of the nuke and do the setup

then there in the new window , go down and put ur web site domain and put this www.yourdomain.com/forum/backend.php


thats all

my best wishs...

LORD :devious:

John
05-03-2002, 11:36 AM
Who knows what this does...

Sparkz
05-03-2002, 11:42 AM
I think it is supposed to make a rss-file with your ten last posts or something.
PostNuke has sopport for newsfeeds in this format, I believe, and this would be an easy way to get those posts on the first page.

But I'd never understand from just reading the post above. Think there was 1 hardcoded word in russian or something in there too that has to be replaced for english pages. Should be replaced with Poster or Author or something to that extent.

*reading file again*
Umm, is this even valid PHP?
$result = $getlastpost=$DB_site->query("SELECT threadid, title, postusername FROM thread WHERE visible=1 AND (sticky=1 OR sticky=0) AND open<>10 ORDER BY lastpost DESC LIMIT 10");

Velocd
05-03-2002, 12:28 PM
Variable1 = Variable2 = Query?

Is that what your'e asking is valid or not? I haven't seen it done yet, or maybe I have but didn't take notice.

As for this hack, its just another that doesn't make sense. I sooooo wish that these hacks would be moderated before being put up, and somewhat understandable. I know the guy is from another country and doesn't know english well, but there's gotta be a better way to improve things.

Sparkz
05-03-2002, 12:32 PM
More like $var=$somevar=functioncall() or whatever...
I think Perl let's you do stuff like that.

lordnet
05-03-2002, 05:10 PM
hi

u can use it if u have phpnuke like a block

to but the last theard in ur vb board

LORD :)

Sigon
05-04-2002, 02:22 PM
Man can anyone understand this? I would love to be able to put the last 10 threads on my main pahe(I use phpnuke) but jeesh I cannot even understand what he is talking about. bah!

Sparkz
05-04-2002, 02:24 PM
Well, it all makes more sense if you replace but with put most of the places :P

Scott MacVicar
05-04-2002, 02:46 PM
I've just read this over, its not even correct php.

I'm moving this to the beta releases, please sort the problems lordnet.

Sigon
05-04-2002, 03:39 PM
Still the php isn't even right. Man if you are going to release something do it right.

Scott MacVicar
05-04-2002, 06:28 PM
Ok i've pretty much rewritten this to be like my news syndicate hack.

Upload the file into your forums directory, then go to your php nuke admin page, click blocks, at the bottom you will see something like RSS/RDF file URL: and then on the right is a link which says [setup]

click that and in there at the bottom you can enter the url to the backend.php file and the title.

I've removed the call to global.php as it was kinda pointless, it loads lots of variables and checks sessions and loads functions which we aren't gonna use.

It just loads the database abstraction layer and then it checks forum permissions. The previous copy by lordnet didn't.

I've tested that this works in my browser and it generates the standard xml file fine, not sure about as a block though.

lordnet
05-05-2002, 06:09 PM
thanks PPN to helping me and im working into the hack and

see what i can do best than this ;)

my best wish...

LORD :)

DemiNeo0101
05-06-2002, 06:28 PM
I'm puting what i think is current in this post: Anything changed will be bold.


Hi first thing You do is download the attached file and put it in the forum Folder then go to the admin c of the phpnuke and then (((IMPORTANT PART THAT YOU DIN'T UNDERSTAND))) Set that file up at an rss block in the phpnuke do this by going to the blocks link in the phpnuke admin cp, go down and put your web site domain and put that php file you uploaded to your forums dir.

www.yourdomain.com/forum/backend.php


i don't get any of the below..

then do like what i say in the nuke olso without but the file bekzz the file is already in the nuke

thats all
my best wish...
LORD

Attachment: backend.zip
This has been downloaded 10 time(s).
__________________

rapsearch
09-09-2002, 02:30 PM
Hate to upp an old thread but this is what i'm looking for :).. I use postnuke and would love to display the latest threads in a blovk at my mainpage...

I tried the above but can't get the threads to show up...

I see:


Any suggestions??

this i a dope addon which most postnuke will need:)

rapsearch
09-11-2002, 09:50 AM
PPN..anyone?... please help me out on this great addon for PN sites.... i really want/need this

blackice912
09-14-2002, 12:44 PM
Hey...I wonder if this would work with Trillian Pro, as it supports RSS

rapsearch
09-16-2002, 05:09 PM
people!!..dont ghost on this...

any idea why the posts dont show up with me??

cdrforum
09-29-2002, 12:53 PM
I have implemented this hack on my phpnuke site a few months ago, if anyone wants the code just let me know, i will give it you in the phpblock format and all you have to do is add your mysql data and so on
check out www.cdrtimes.com to see it working.

rapsearch
10-02-2002, 02:06 PM
cdrforum... please send it to me... staff@rapsearch.com

I'd like to try it out...

brendanlim
05-06-2003, 08:18 PM
09-29-02 at 02:53 PM cdrforum said this in Post #18 (https://vborg.vbsupport.ru/showthread.php?postid=303829#post303829)
I have implemented this hack on my phpnuke site a few months ago, if anyone wants the code just let me know, i will give it you in the phpblock format and all you have to do is add your mysql data and so on
check out www.cdrtimes.com to see it working.


Could you please send this to me at limbren@auburn.edu
Thank you so much!!