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)

SeanD 06-20-2001 11:22 PM

This is just the hack i was looking for AND more. I read earlier about sombody wanting to get this hack to work on a differnt domain but on the same server, well I just got this puppy to work on an entirly DIFFERNT server than our MySQL db is on!

Our frontpage and our BBS are hosted on two differnt servers so I needed to find a way to do this. After having no prior experience with MySQL/PHP it took me awhile to learn how to give our frontpage server permisson to access the vBulletin db on the BBS server, but after about 30 mins of scanning the docs online I was able to do it and it works like a charm. All I had to do was add a new GRANT command and make a copy of the config.php file and toss it on the frontpage server, edit that to point to our BBS server instead of 'localhost', and that was that.

So again, wonderfull Job tubedogg. I just saw your who's online hack which im about to try out as well, im sure ill get the same success. Thanks again.

heynurse 06-22-2001 06:17 AM

I'm kinda new at this stuff, so take it easy on me ;)

using: Version 2.0.1

Here is the error I am getting when calling via ssi on an html page
SSI call: <!--#include file="last10.php" -->

Fatal error: Failed opening required 'last10config.php' (include_path='/usr/share/php') in /home/httpd/allnurses.com/htmldocs/last10.php on line 12


any ideas? Thanks

tubedogg 06-22-2001 06:35 AM

Did you upload last10config.php to the same directory as last10.php?

eva2000 06-22-2001 06:42 AM

kevin any help/ideas on this post in this thread http://vbulletin.com/forum/showthrea...172#post128172 ?

heynurse 06-22-2001 06:48 AM

Yes, both files are in the same dir.

Quote:

Originally posted by tubedogg
Did you upload last10config.php to the same directory as last10.php?

tubedogg 06-22-2001 06:56 AM

Eva: Sorry I missed that the first time around. In last10.php add
Code:

$boarddown1 = mysql_query("SELECT value FROM setting WHERE varname='bbactive'");
$boarddown = mysql_result($boarddown1,0,0);
if ($boarddown == "0") { echo("Sorry the forums are down for maintenance"); exit; }

Put that right after
Code:

mysql_select_db($dbname) or die("Can't select database");
heynurse: um...you aren't by any chance on a Windows server are you?

heynurse 06-22-2001 07:01 AM

No, I am on a linux server. Thanks for your prompt responses ;)

Quote:

Originally posted by tubedogg
heynurse: um...you aren't by any chance on a Windows server are you? [/B]

tubedogg 06-22-2001 07:26 AM

:( I don't know what to tell you. It should be requiring the file just fine...Well try one thing. Change
require("last10config.php");
require("$path/config.php");
to this:
include("last10config.php");
include("$path/config.php");
and see if that helps.

xdam 06-22-2001 08:00 AM

i can't set the maximum amount of characters to more than 120, as soon as i take it over i just get a blank page.

heynurse 06-22-2001 08:10 AM

kevin,

That didnt work either? I called my hosting tech support. They figured it out. They told me they modified the php.ini in the /etc dir and they needed to ad the include path or something like that. Whatever they did they got it working....Yippie!!!

Anyway, this is a great hack! I really appreciate your assistance Kevin! Thanks again!


All times are GMT. The time now is 04:33 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.01397 seconds
  • Memory Usage 1,739KB
  • 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