Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 04-25-2002, 03:42 PM
Yaa 101 Yaa 101 is offline
 
Join Date: Dec 2001
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Question for firefly...

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:

PHP Code:
//...........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.
Reply With Quote
  #2  
Old 04-25-2002, 04:06 PM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 04-25-2002, 05:26 PM
Yaa 101 Yaa 101 is offline
 
Join Date: Dec 2001
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...

Attached Files
File Type: zip last10.zip (5.7 KB, 8 views)
Reply With Quote
  #4  
Old 04-25-2002, 05:55 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack is on vB.org, I got it from here some time ago!! Its in this thread https://vborg.vbsupport.ru/showthrea...ght=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
Reply With Quote
  #5  
Old 04-25-2002, 07:32 PM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 04-25-2002, 08:14 PM
Yaa 101 Yaa 101 is offline
 
Join Date: Dec 2001
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 04-25-2002, 08:17 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem Bassie, at least you have Identified the error!
Reply With Quote
  #8  
Old 04-25-2002, 08:24 PM
Yaa 101 Yaa 101 is offline
 
Join Date: Dec 2001
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05275 seconds
  • Memory Usage 2,244KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete