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)

Steve Machol 07-14-2001 07:36 PM

Sorry - forgot the IE p ic:

Rostor 07-14-2001 08:05 PM

Quote:

Originally posted by tubedogg
Rastor: There's no reason why it shouldn't work on IIS5. Have you tried it?
Yes I test it as you can see here:
www.swzone.org/main_home.php

It works but gives out many errors.

And I don't know how to solve it.

jarvis 07-15-2001 06:11 AM

Rostor,

I, too, was getting your exact same error. I went round and round for days wondering what the heck was going on in my little NT world. :(

I have found that IIS appears to have problems with filtering or parsing included files. The IIS include is looking for a txt or HTML file, and thus I could not get it working with a plain SHTM(L) include statement.

What I did as a work around, is I set up my SHTM pages to be parsed by the PHP Isapi filter versus the ssinc.dll that is default. Basically my homepage is now PHP parsed, but still mostly HTML-based. Have I confused you yet? :)

Now that my page is PHP-parsed, I can just just the standard <? include("last10.php"); ?> statement in my code and everything works fine. I was a bit nervous about doing this as I wondered if any of my FP extensions would not function, but all seems to working well. (knock on wood)

You can view how I implemented the hack on my site at www.mhogaming.com

Hope that helps...

-Brian

gmyachtsman 07-15-2001 08:08 AM

Kevin and Steve,

I am having the same problem on Netscape 4.7 with the overlapping of the end of the thread title at www.citysailor.com

I removed the <nobr> tags, but it did not help.


A guess a Kludgy solution might be to specifically limit the number of letters printed, depending on the space allocated.

[By the way, if anyone reading this knows how to make the background image on Netscape just x-repeat, instead of repeating down the whole page, please let me know]

Love&Hate 07-17-2001 05:11 PM

First of all- I would like to thank tubedogg for ths wonderful hack! It is a great traffic builder! Thanks tubedogg!
Now on to my (stupid) concern:
I don't know a thing about "Parsed", never heard of the term. But I WAS able to follow the "Last XX Post" instructions up until the point of having the "last10.php" work :) . The problem I am having is incorperating this into some sort of HTML (or similar) document.

How EXACTLY is this accomplished?

Thanks in advance...

Rostor 07-18-2001 08:29 AM

Hi Jarvis thx for your help but i take a different way to solve the problem :)
Last Week I bought 2 books about PHP and started to study it !!!
After 3 days i make little modify to lastXX so now the hack works fine with IIS5.

First:
In the lastxxconfig.php file I add this lines:
// by rostor
$counter = "";
// fine inserimento rostor

So a problem with undefined constant has been solved.

Second:
In the lastxx.php I defined this line with " " :)

// if the title is more than $len characters, we need to cut it off and add ... to the end
if (strlen($threads["title"]) > $len) {
$title = substr($threads["title"],0,$len);
$title .= "...";
} else {
$title = $threads["title"];
}
// convert the date to a format readable by non-unix geeks :)
$fd = date($fdt,$threads["lastpost"]);

That's All

RobAC 07-18-2001 01:48 PM

Has anyone else included this hack into a non VB page (HTML document) and then looked at it in Netscat? It's not pretty.....and this particular line of code really confuses me...:

PHP Code:

<td bgcolor=\"$bc\" style=\"font-family:$f; font-size:$fs; color:$tc;\" align=\"center\"> 

Is defining style = font-family: font size......etc. within a table cell tag a valid argument???

Steve Machol 07-18-2001 04:25 PM

Yep - this doesn't look good in Netscape 4.7x at all. I wish I knew how to fix the HTML so it works with NS as well.

Love&Hate 07-18-2001 05:57 PM

I wish I knew how to put it in HTML period! Can't anyone help me with this?

gmyachtsman 07-18-2001 06:33 PM

try changing the name of your file to .shtml from .html and put this code in where you want the last 10 to show up on your page:

Your choice of

<!--#include virtual="last10/last10.php"-->

or

<!--#include file="last10/last10.php"-->

If folder your.shtml file is in is not above the last10 folder in your directory, you need to do "../last10/last10.php" instead (note the "../" ) That tells it to look up one folder before looking down for the last10 folder .


All times are GMT. The time now is 05:15 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.01575 seconds
  • Memory Usage 1,743KB
  • 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
  • (1)bbcode_php_printable
  • (1)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