vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Last XX Posts on non-vB page (https://vborg.vbsupport.ru/showthread.php?t=12324)

kath 08-29-2005 05:27 PM

This is a great hack. We had it working on our old server and since we switched servers, we are having troubles :( It works perfectly on the cgi server in the root directory. However, once it is placed in a folder and to work on a non-vb page, it isn't recognized. We use this to update our features pages. For example if we place the last10config, naming it last107config in the root, the page works the way it should. http://cgi.cacfriends.com/ed.shtml. However, if we place it in a folder,naming that folder Ed, it doesn't seem to be able to find it, no matter what we try. We have even played with the config name and it makes no difference...it just doesn't see the folder!
The coding for Ed.shtml (which works properly) is as follows: <!--#include file="last107.php"-->
However, once it's placed inside a folder http://cgi.cacfriends.com/ed/ed.shtml and using that coding, we get an error.

If we use the following coding: <?php
include ('http://cgi.cacfriends.com/ed/last10.php'); ?> we don't get an error but it also isn't recognized. We have tried everything and nothing seems to work.

HELP!!
Thanks,
Kath

psoexplorer 09-09-2005 07:41 AM

...so does this not work with the latest VB3, then? I hope it does because it seems to be the only hack out there that does what I need!

Can anyone point me in the direction of another similar hack? I just want to show the most recent updated 5-10 threads on my main homepage!

mark99 09-14-2005 07:37 AM

It doesn't work with vB3.5.0 RC3 from what I have tried, can't find anything similar either and I'd really rather not use the External vB3 feed system due to how laggy it can make my front page.

Andreas 09-14-2005 08:07 AM

This is a vBulletin 2 Hack and for sure won't work with vBulletin 3.0 or 3.5

lowlight 10-05-2005 08:20 PM

Someone update this hack!

heynurse 10-10-2005 01:37 PM

I would also love to see this hack ported over the 3.5! I've used it for years, I just upgraded to 3.5 and I miss it :)

I just posted a request on 3.5 miod request forum for this one, if you'd like to see it ported over, please visit: https://vborg.vbsupport.ru/showthrea...923#post791923

and post your support!

lordofgun 10-14-2005 05:58 PM

Actually, it worked fine on 3.0 for me, but will not work on 3.5.

Would LOVE to see this ported to 3.5. :D

lordofgun 10-14-2005 06:05 PM

Quote:

Originally Posted by CDRlab
Hi there, I'm using this script for a long time (since 1.0.2) but now after upg. to 3.5 rc1 it stopped working. The solution is simple, just edit the file last10.php add after that:


Code:

$path/config.php");
Add after that:

Code:

$servername=$config['MasterServer']['servername'];
$dbusername=$config['MasterServer']['username'];
$dbpassword=$config['MasterServer']['password'];
$dbname=$config['Database']['dbname'];


This worked perfectly for me on VB3.5.0 Gold

twitch 10-14-2005 06:48 PM

hrmm, this could come in handy

Mireade 10-14-2005 07:05 PM

Quote:

Originally Posted by lordofgun
lordofgun

Thanks lordofgun,
I'll try it tomorow
Michel


All times are GMT. The time now is 03:35 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01628 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete