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)

ashy 12-28-2001 05:25 AM

I think I have read every of the 270 posts here and still cant figure out how to make this work across servers.

How about the last10.php generating a text file on the forums server which I could then pick with javascript on the main site server?

If possible I suppose it could be automated to run every xx mins but I need this for "latest breaking news" for a community site so my "news people" could run the utility after posting to the news section.

Please please please is this a viable way of handling the different servers problem a lot of people are asking about?

Ali 12-28-2001 03:15 PM

So, I'm guessing this doesn't work with 2.2.1?

mikeB 12-31-2001 06:18 PM

ok, I got this working perfectly on http://www.highradiation.com on a php page... however... is there a way to get this on an ASP or HTML page with out SSI or PHP/MYSQL?

Is there an asp tag that will work?

hope I didn't repeat anything, thanks so much

Bitmap 01-04-2002 06:24 AM

Quote:

Originally posted by Ali
So, I'm guessing this doesn't work with 2.2.1?
works perfectly for me :)

Gutspiller 01-04-2002 04:16 PM

Anybody know if this hack works with 2.0.3?

And no, I am not upgrading. :p

boatdesign 01-07-2002 02:55 AM

I originally installed this on vB 2.0.3 and it worked great. I upgraded to 2.2.0 and 2.2.1 and it still works great!

One question - has anyone modified the formatting to exactly match the default vBulletin New Posts or Todays' Active Topics formatting?

EJMack 01-12-2002 03:50 PM

how can i get this to span the width of an entire table, is there a way to specify the width of this?

boatdesign 01-12-2002 06:03 PM

Quote:

how can i get this to span the width of an entire table, is there a way to specify the width of this?[
I'm not sure I understand your question exactly, but if you just want the width of the whole table to span the page, look for this section in the last10config.php file:

$tw = "100%"; // width of the table that shows the info, in either a percent ( e.g. 95% ) or in pixels ( e.g. 300 ). leave blank if you want the table to be sized naturally

And just change the pixel number to 100% there.

eva2000 01-13-2002 04:21 AM

tubedogg remember the issue with this hack when a forum is closed the non-vb pages have all this gibberish displayed when the forums were closed ? and how you gave me a fix for that ? well for some reason it no longer works and nothing really changed

your fix before allowed me to close my forum and the last10 topics hack on non-vB pages would just display closed for maintenance message..

but now it just calls and displays my vB forums entire closed forum message page... screen cap below

the fix you gave me was to add the code in bold below to last10.php file
PHP 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; } 

just under

PHP Code:

// let's get connected
require("last10config.php");
require(
"$path/config.php");
$db=mysql_connect($servername,$dbusername,$dbpassword) or die("Can't open connection to MySQL");
mysql_select_db($dbname) or die("Can't select database"); 

but for some strange reason that doesn't work anymore ????? :(

any help is appreciated since my server is being moved and i need to close my forums a day before hand but my normal non-vb sites have this hack being called

RSliker 01-13-2002 07:05 PM

Any way to display this stuff no in a table? Or have it better, easier to modify?


All times are GMT. The time now is 08:20 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.01552 seconds
  • Memory Usage 1,742KB
  • 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_php_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