PDA

View Full Version : Question for firefly...


Yaa 101
04-25-2002, 03:42 PM
Hi,

Some time ago, before vb.org existed i installed a hack i took from the original vb community...

However it does not work anymore and i can't find the hack on here anymore...

The hack is called Last x posts...

this is the header of it:

//...........Last X Posts v1.0.5...........\\
//......by Kevin (kevin@xxxxxxxx.com)......\\

// For vBulletin version 2 (betas 3, 4, 5, RC1, RC2, RC3)
// (c) 2001 Jelsoft Enterprises, Ltd.

Can you help me get this hack in sane condition again for 2.2.5?

I am a PHP programmer myself so i don't need a very detailed explanation...
I want to get this hack working again so i can feed the contents it points to into a rdf-rss feed.

Thanks in front...
Bassie.

Sparkz
04-25-2002, 04:06 PM
Could you post or email your version of the hack, and I'll have a go at making it work in 2.2.5.

Not being able to see the old version makes it a bit hard to suggest what needs to be done :)

Yaa 101
04-25-2002, 05:26 PM
Thanks Sparkz...

1 request though...

Can you remark the old code instead of removing then i can see the changes made in the file...
To be honest i posted this here because lack of time...
I wanna learn from the differences...

Thanks in front M8...

:)

NTLDR
04-25-2002, 05:55 PM
This hack is on vB.org, I got it from here some time ago!! Its in this thread https://vborg.vbsupport.ru/showthread.php?s=&threadid=12324&highlight=last10.php

It still works fine for me on 2.2.4, I don't know about 2.2.5. I hope this helps.

Regards,
Lee

Sparkz
04-25-2002, 07:32 PM
I just tried both versions on my testboard, which is a mostly clean 2.2.5, and I had no problems.

What error do you get?

Yaa 101
04-25-2002, 08:14 PM
Sorry for wasting your time on this...

I believe you immediately that things work fine...

My error is can't select database...

I even hardcoded the name of my db in but i keep getting this error...
Something must be realy wrong as my board works fine and i used the name of my db from my admin/config.php

I think i am getting crazy here...

Thanks for your valueable time and i go look on in this crap...

Bassie.

NTLDR
04-25-2002, 08:17 PM
No problem Bassie, at least you have Identified the error!

Yaa 101
04-25-2002, 08:24 PM
yes i did as it's working now...

I tell you what happened...

Last week i took the username and password out of my admin/config.php as part of my quest to make my board safer then before...

The name and pass are in my .htaccess now as environment variable and is automaticly visible in PHP.

only somehow i have to find a way to also get it working on other parts of my server...

yes i tried to put the same .htaccess also in the same dir as last 10 posts but without any results...

I look on and will answer here my findings (i hope lol...).

Bassie.